/* ============================================================
   PEARLY DENTAL CARE — MODERNIZED DEMO
   Palette: Deep Navy #0F1F38 | Gold #C9A84C | Sage #7A9E7E
             Cream #FAF8F4 | Warm White #FFFFFF
   Type: Cormorant Garamond (headings) + DM Sans (body)
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0F1F38;
  --navy-light: #1a3054;
  --gold:   #C9A84C;
  --gold-light: #e0c070;
  --sage:   #7A9E7E;
  --cream:  #FAF8F4;
  --warm-white: #FFFFFF;
  --text:   #1a1a2e;
  --text-muted: #5a5a72;
  --border: #e8e4dd;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(15,31,56,.08);
  --shadow-md: 0 8px 32px rgba(15,31,56,.12);
  --shadow-lg: 0 20px 60px rgba(15,31,56,.18);

  --transition: 0.25s ease;
  --max-w: 1200px;
  --section-py: 5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
ul { list-style: none; }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ───────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.section-heading em {
  font-style: italic;
  color: var(--gold);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section { padding: var(--section-py) 0; }
.section-alt { background: var(--cream); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--cream);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--warm-white);
}

.btn-outline-light {
  background: transparent;
  color: var(--warm-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--warm-white);
}

.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-icon svg { display: block; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.logo--light .logo-name { color: var(--warm-white); }
.logo--light .logo-tagline { color: rgba(255,255,255,0.6); }

/* Nav */
.main-nav { margin-left: auto; }

.main-nav ul {
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover {
  color: var(--navy);
  background: var(--cream);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15,31,56,0.88) 0%,
    rgba(15,31,56,0.72) 45%,
    rgba(15,31,56,0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero-text { max-width: 580px; }

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--warm-white);
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-phones a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  transition: opacity var(--transition);
}

.hero-phones a:hover { opacity: 0.8; }

.phone-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.phone-number {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--warm-white);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--navy);
  padding: 2rem 0;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 2.5rem;
  text-align: left;
}

.trust-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}

.trust-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  font-weight: 500;
}

.trust-label small {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ── About ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.about-image-col {
  position: relative;
}

.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.4;
}

.about-image-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--navy);
  color: var(--warm-white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  max-width: 220px;
  line-height: 1.4;
  box-shadow: var(--shadow-md);
}

.about-badge svg { color: var(--gold); flex-shrink: 0; }

.about-text-col { padding-top: 1rem; }

.about-lead {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.about-text-col p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-hours {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--gold);
}

.about-hours h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.3rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hours-table td:first-child {
  font-weight: 500;
  color: var(--text);
  width: 55%;
}

/* ── Services Grid ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold);
}

.service-card--highlight {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--warm-white);
}

.service-card--highlight h3 { color: var(--gold); }
.service-card--highlight p { color: rgba(255,255,255,0.75); }
.service-card--highlight .service-icon { color: var(--gold); }

.service-icon {
  color: var(--gold);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
  transition: gap var(--transition);
}

.service-link:hover { opacity: 0.8; }

/* ── Split Feature ────────────────────────────────────────── */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.split-image {
  position: relative;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content {
  background: var(--navy);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-content .section-eyebrow { color: var(--gold); }

.split-content .section-heading { color: var(--warm-white); }

.split-content p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.split-content .btn-primary { margin-top: 1rem; align-self: flex-start; }

/* ── Technology ───────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.tech-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.tech-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tech-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.tech-list svg { color: var(--gold); flex-shrink: 0; }

.tech-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tech-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ── Reviews ──────────────────────────────────────────────── */
.yelp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff5f5;
  border: 1px solid #ffd0d0;
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #c0392b;
  margin-top: 0.75rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.review-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.review-card blockquote p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--navy);
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: auto;
}

.review-card footer strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.review-card footer span {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.reviews-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ── CTA Band ─────────────────────────────────────────────── */
.cta-band {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-band-image {
  position: absolute;
  inset: 0;
}

.cta-band-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.cta-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15,31,56,0.92) 0%,
    rgba(15,31,56,0.75) 50%,
    rgba(15,31,56,0.4) 100%
  );
}

.cta-band-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  max-width: 600px;
}

.cta-band-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--warm-white);
  margin-bottom: 1.25rem;
}

.cta-band-content h2 em {
  font-style: italic;
  color: var(--gold);
}

.cta-band-content p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ── Locations ────────────────────────────────────────────── */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.location-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.location-card:hover { box-shadow: var(--shadow-md); }

.location-map { width: 100%; }

.location-info {
  padding: 1.75rem;
}

.location-info h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.location-info address {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.location-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}

.location-phone:hover { color: var(--gold); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--warm-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 1.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin: 1rem 0 1.5rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--warm-white); }

.footer-col address {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.footer-phone {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--warm-white);
  transition: color var(--transition);
}

.footer-phone:hover { color: var(--gold); }

.footer-hours {
  width: 100%;
  border-collapse: collapse;
}

.footer-hours td {
  padding: 0.3rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.footer-hours td:first-child {
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  width: 55%;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer-bottom p {
  font-size: 0.775rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--warm-white); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-frame img { height: 400px; }
  .about-badge { right: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }

  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }

  .main-nav.open ul {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }

  .main-nav.open a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .hero-headline { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-phones { gap: 1.5rem; }

  .trust-items { gap: 0; }
  .trust-item { padding: 0.75rem 1.25rem; }
  .trust-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; }

  .split-feature { grid-template-columns: 1fr; }
  .split-image { height: 300px; }
  .split-content { padding: 3rem 1.5rem; }

  .reviews-grid { grid-template-columns: 1fr; }

  .locations-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }

  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { min-height: 90vh; }
  .trust-item { padding: 0.5rem 1rem; }
  .trust-num { font-size: 1.6rem; }
}
