/* =========================================================
   NEO Periodontics & Dental Implants — Site Stylesheet
   Palette: Navy & Gold
   ========================================================= */

:root {
  --navy-900: #0a1c30;
  --navy-800: #0f2740;
  --navy-700: #163a5f;
  --navy-600: #1f4a75;
  --gold-300: #e6cd9d;
  --gold-400: #d8b878;
  --gold-500: #c9a15f;
  --gold-600: #ab8449;
  --cream: #faf7f1;
  --white: #ffffff;
  --ink: #1e2733;
  --gray-700: #46505c;
  --gray-500: #6b7480;
  --gray-300: #d9dee4;
  --gray-100: #f3f1ec;
  --shadow: 0 10px 30px rgba(10, 28, 48, 0.10);
  --shadow-sm: 0 4px 14px rgba(10, 28, 48, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy-800);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--gray-700); }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.2em; color: var(--gray-700); }
li { margin-bottom: 0.5em; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--gray-100); }
.section-navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: var(--white); }
.section-navy p, .section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.section-navy .eyebrow { color: var(--gold-400); }

.center { text-align: center; }
.intro { max-width: 680px; margin: 0 auto 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(120deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-700); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Logo (real brand logo image) ---------- */
.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; display: block; }
.logo-badge {
  background: var(--white);
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-flex;
}
.logo-badge img { height: 42px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-300);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy-800);
  border-radius: var(--radius-sm);
}
.main-nav > ul > li > a:hover { background: var(--gray-100); }
.main-nav > ul > li.current > a { color: var(--gold-600); }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
  list-style: none;
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-panel li a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-800);
}
.dropdown-panel li a:hover { background: var(--gray-100); color: var(--gold-600); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; font-size: 0.92rem; color: var(--navy-800); display: flex; align-items: center; gap: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy-800);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--navy-700) 0%, var(--navy-900) 55%, #071523 100%);
  color: var(--white);
  padding: 100px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 20%, rgba(201,161,95,0.28), transparent 45%),
    radial-gradient(circle at 95% 85%, rgba(201,161,95,0.16), transparent 40%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.85); font-weight: 600; }
.hero-badge .icon { color: var(--gold-400); flex-shrink: 0; }

.hero-visual {
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.16);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-visual .glow {
  position: absolute;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(216,184,120,0.35), transparent 70%);
  filter: blur(10px);
}
.hero-visual svg { position: relative; width: 46%; opacity: 0.92; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.breadcrumb a { color: var(--gold-400); font-weight: 600; }

/* ---------- Icon tiles ---------- */
.icon-tile {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.icon-tile svg { width: 26px; height: 26px; stroke: var(--gold-400); }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gold-600); font-size: 0.88rem; margin-top: 6px; }
.card-link svg { width: 14px; height: 14px; }

/* ---------- Split section (About teaser, etc.) ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.split-reverse { grid-template-columns: 1.1fr 0.9fr; }
.split-reverse .split-media { order: 2; }
.split-media {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.split-media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(216,184,120,0.35), transparent 55%);
}
.split-media svg { width: 34%; position: relative; opacity: 0.9; }
.split-media.photo::after { display: none; }
.split-media.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius);
}
.split-media .caption {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  background: rgba(10,28,48,0.55);
  color: var(--white);
  font-size: 0.78rem;
  padding: 10px 14px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.value-list { list-style: none; padding: 0; margin: 22px 0; }
.value-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-300);
}
.value-list li:last-child { border-bottom: none; }
.value-list svg { width: 20px; height: 20px; stroke: var(--gold-600); flex-shrink: 0; margin-top: 3px; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-300);
  height: 100%;
}
.stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.95rem; }
.testimonial-name { font-weight: 700; color: var(--navy-800); margin-top: 14px; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--gray-500); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(216,184,120,0.30), transparent 50%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 0; position: relative; }
.cta-banner .actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  display: flex; gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-300);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  display: flex; align-items: center; justify-content: center;
}
.steps h4 { margin-bottom: 4px; }
.steps p { margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 700; color: var(--navy-800); }
input, select, textarea {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-500); }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.78rem; color: var(--gray-500); margin-top: 10px; }

.info-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
}
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gray-300); }
.info-row:last-child { border-bottom: none; }
.info-row svg { width: 20px; height: 20px; stroke: var(--gold-600); flex-shrink: 0; margin-top: 2px; }
.info-row h4 { margin-bottom: 2px; font-size: 0.95rem; }
.info-row p { margin: 0; font-size: 0.9rem; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-300); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-about p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-network {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.footer-network a { color: var(--gold-400); font-weight: 700; }
.footer-network a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 0.8rem; color: rgba(255,255,255,0.55); flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--gold-400); }

/* ---------- Placeholder notice (dev aid, remove when real content is added) ---------- */
.placeholder-note {
  background: #fff7e6;
  border: 1px dashed var(--gold-500);
  color: #6b4f1d;
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  /* backdrop-filter on .site-header makes it a positioning container for its
     fixed-position children (Safari/Chrome quirk), which squeezes the
     full-screen mobile nav into the header's own small box instead of the
     full viewport. Drop the blur on mobile so the nav can size correctly. */
  .site-header { backdrop-filter: none; }
  .main-nav {
    position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .dropdown-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 14px; }
  .dropdown.open .dropdown-panel { display: block; }
  .header-phone { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 36px; }
}
