/* ========================================
   Luna Dental — Design System
   dentistastoriany.com

   Color palette (from live Squarespace site):
   --navy:       hsl(239, 80%, 22%)   #0B0C63
   --coral:      hsl(8, 79%, 72%)     #E9897A
   --cream:      hsl(26, 85%, 95%)    #FDF1E7
   ======================================== */

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

:root {
  --navy: #0B0C63;
  --navy-light: #1a1b7a;
  --coral: #E9897A;
  --coral-light: #f0a89d;
  --cream: #FDF1E7;
  --cream-dark: #f5e3d0;
  --white: #fff;
  --black: #111;
  --gray: #555;
  --gray-light: #888;
  --border: #e5e5e5;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

a:hover {
  color: var(--coral);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: "Instrument Serif", Georgia, serif;
  line-height: 1.2;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -0.03em;
}

h1 {
  font-size: 2.8em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 2em;
  margin-bottom: 0.6em;
}

h3 {
  font-size: 1.3em;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
  color: #333;
}

ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1.25em;
}

li {
  margin-bottom: 0.5em;
}

strong {
  font-weight: 600;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

td {
  padding: 0.6em 1em 0.6em 0;
  border-bottom: 1px solid var(--border);
}

/* --- Layout --- */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5em;
}

.container--wide {
  max-width: 1100px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 17px 30px;
  font-size: 0.9em;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: all 0.25s ease;
}

.btn--primary {
  background: var(--coral);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--coral-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 137, 122, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.btn--secondary:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-1px);
}

/* Light variant for use on dark backgrounds */
.btn--light {
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--light:hover {
  background: var(--white);
  color: var(--black);
}

/* --- Header --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75em 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--black);
}

.site-logo img {
  height: auto;
}

.logo-desktop {
  width: 220px;
}

.logo-mobile {
  display: none;
  width: 50px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0.25em;
  color: var(--black);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2em;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--black);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1em;
}

.header-phone {
  font-size: 0.95em;
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.header-phone:hover {
  color: var(--coral);
}

.header-book {
  padding: 10px 22px;
  font-size: 0.9em;
}

/* --- Footer --- */
.site-footer {
  background: var(--cream);
  padding: 3.5em 0 2em;
  margin-top: 0;
  color: #444;
  font-size: 0.95em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5em;
}

.footer-col h4 {
  font-size: 1em;
  margin-bottom: 0.75em;
  color: var(--black);
}

.footer-col p,
.footer-col li {
  margin-bottom: 0.4em;
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col a {
  color: #444;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--navy);
}

.footer-bottom {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--cream-dark);
  text-align: center;
  font-size: 0.85em;
  color: var(--gray-light);
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 5em 0 4em;
  background: var(--cream);
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 0.5em;
}

.hero p {
  font-size: 1.15em;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 2em;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 0.75em;
  flex-wrap: wrap;
}

/* Hero with background photo */
.hero--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  width: 100%;
  padding: 6em 0 5em;
  background: linear-gradient(
    135deg,
    rgba(253, 241, 231, 0.92) 0%,
    rgba(253, 241, 231, 0.85) 50%,
    rgba(253, 241, 231, 0.7) 100%
  );
}

.hero--photo h1 {
  font-size: 3.2em;
}

.hero--photo p {
  color: #333;
  font-size: 1.2em;
}

/* --- Section --- */
.section {
  padding: 4em 0;
}

.section-heading {
  margin-bottom: 1em;
}

/* Cream tinted section */
.section--cream {
  background: var(--cream);
}

/* Navy full-bleed section */
.section--navy {
  background: var(--navy);
  position: relative;
  padding: 5em 0;
}

.section--navy h2 {
  color: var(--white);
}

.section--navy p,
.section--navy .testimonial blockquote {
  color: rgba(255, 255, 255, 0.9);
}

.section--navy .testimonial {
  border-left-color: var(--coral);
}

.section--navy .testimonial cite {
  color: var(--coral-light);
}

/* Wavy dividers for navy sections */
.wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* --- Photo Break --- */
.photo-break {
  overflow: hidden;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-break img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
}

/* --- Doctor Photo --- */
.doctor-photo {
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
}

.doctor-photo img {
  width: 100%;
  border-radius: 12px;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  margin: 2em 0;
}

.service-card {
  padding: 1.75em;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
  margin-bottom: 0.5em;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95em;
  margin-bottom: 0.75em;
}

.service-card a {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--navy);
}

/* --- Testimonials --- */
.testimonial {
  border-left: 3px solid var(--coral);
  padding-left: 1.5em;
  margin-bottom: 2em;
}

.testimonial blockquote {
  font-size: 1.1em;
  font-style: italic;
  margin-bottom: 0.5em;
  color: #333;
}

.testimonial cite {
  font-style: normal;
  color: var(--gray);
  font-size: 0.9em;
  font-weight: 600;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1.1em 0;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.05em;
  list-style: none;
  color: var(--black);
  transition: color 0.2s;
}

.faq-item summary:hover {
  color: var(--coral);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.5em;
  font-size: 1.3em;
  font-weight: 300;
  color: var(--coral);
  margin-right: 0.5em;
  transition: transform 0.2s;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-answer {
  padding: 0 0 1.25em 2em;
  color: var(--gray);
  line-height: 1.7;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5em;
  margin: 2em 0;
}

.contact-info dt {
  font-weight: 600;
  margin-top: 1em;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  margin-left: 0;
}

.map-embed {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 10px;
}

/* --- Insurance Grid --- */
.insurance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  margin: 2em 0;
}

.insurance-card {
  padding: 1.5em;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
}

.insurance-card h3 {
  font-size: 1.05em;
  margin-bottom: 0.3em;
}

.insurance-card p {
  font-size: 0.9em;
  color: var(--gray);
  margin-bottom: 0;
}

/* --- Image Placeholder --- */
.img-placeholder {
  background: var(--cream);
  border: 1px dashed var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 0.9em;
  min-height: 200px;
  border-radius: 10px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-secondary { color: var(--gray); }
.mt-1 { margin-top: 1em; }
.mt-2 { margin-top: 2em; }
.mt-3 { margin-top: 3em; }
.mb-1 { margin-bottom: 1em; }
.mb-2 { margin-bottom: 2em; }

/* --- Mobile --- */
@media (max-width: 768px) {
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.4em; }

  .site-header .container {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 1em;
    gap: 0.75em;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .site-nav.is-open + .header-cta,
  .site-nav.is-open ~ .header-cta {
    display: flex;
    width: 100%;
    justify-content: center;
    padding-top: 0.75em;
  }

  .hero {
    padding: 3em 0 2.5em;
  }

  .hero--photo {
    min-height: 50vh;
  }

  .hero--photo h1 {
    font-size: 1.8em;
  }

  .hero-overlay {
    padding: 3em 0 2.5em;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  .section {
    padding: 2.5em 0;
  }

  .section--navy {
    padding: 4em 0;
  }

  .wave-top,
  .wave-bottom {
    height: 35px;
  }

  .photo-break,
  .photo-break img {
    height: 250px;
    max-height: 250px;
  }
}
