/* ===========================================================
   Total Eyecare Center — global stylesheet
   Theme: editorial boutique — warm cream, neutral charcoal and
   a camel/tan accent, in the spirit of The Monocle Optometry.
   Light, airy serif headlines (Fraunces) over a clean geometric
   sans (Poppins), wide-tracked uppercase labels, crisp minimal
   buttons rather than heavy pill shapes.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg: #ede7e3;             /* warm cream — page background */
  --color-bg-alt: #e3dcd6;         /* deeper cream — alternate sections */
  --color-card: #ffffff;           /* white cards/panels */
  --color-primary: #3a3a3a;        /* neutral charcoal — buttons / footer */
  --color-primary-dark: #262626;   /* darkest charcoal — hover / deepest */
  --color-text: #3a3a3a;           /* charcoal text */
  --color-muted: #71685f;          /* warm muted gray-brown body text */
  --color-accent: #c7a48b;         /* camel/tan — dividers, nav hover, eyebrow */
  --color-accent-dark: #a3806a;    /* darker camel — labels on light bg */
  --color-accent-pale: #f4ece4;    /* pale tan tint — icon tiles */
  --color-border: #ddd3c8;         /* warm light border */
  --radius: 10px;
  --radius-xl: 20px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 14px rgba(58, 58, 58, 0.07);
  --shadow-md: 0 18px 44px rgba(58, 58, 58, 0.14);
  --max-width: 1140px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-text);
  letter-spacing: 0;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 300; }
h3 { font-size: 1.35rem; font-weight: 500; }

p { margin: 0 0 1em; color: var(--color-muted); }

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

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent-dark);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* Buttons — crisp, minimal, wide-tracked uppercase, arrow on primary actions */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-light {
  background: var(--color-bg);
  color: var(--color-primary);
  border-color: var(--color-bg);
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-primary::after,
.btn-light::after {
  content: "\2192";
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-primary:hover::after,
.btn-light:hover::after {
  transform: translateX(3px);
}

/* ===== Top bar ===== */
.topbar {
  background: var(--color-primary);
  color: #e3d2c3;
  font-size: 0.83rem;
  letter-spacing: 0.01em;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar a {
  color: #e3d2c3;
  transition: color 0.2s ease;
}

.topbar a:hover {
  color: #fff;
}

.topbar-contact {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar-contact span,
.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 680px) {
  .topbar {
    display: none;
  }
}

/* ===== Header / nav — soft tan gradient banner ===== */
header.site-header {
  background: linear-gradient(180deg, rgba(199, 164, 139, 0.45) 0%, rgba(237, 231, 227, 0.45) 100%), var(--color-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile-cta {
  display: none;
}

nav.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

@media (max-width: 1260px) {
  nav.main-nav ul {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: none;
  }

  nav.main-nav.open ul {
    display: flex;
  }

  nav.main-nav ul li {
    width: 100%;
  }

  nav.main-nav ul a {
    display: block;
    padding: 17px 24px;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    border-bottom: 1px solid var(--color-border);
  }

  nav.main-nav ul li:last-child a {
    border-bottom: none;
  }

  nav.main-nav ul .nav-mobile-cta {
    display: block;
    width: 100%;
    margin-top: 6px;
  }

  nav.main-nav ul .nav-mobile-cta a {
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 18px 24px;
    border-bottom: none;
  }

  nav.main-nav ul .nav-mobile-cta a:active {
    background: var(--color-primary-dark);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta .btn-primary {
    display: none;
  }
}

@media (max-width: 420px) {
  .nav-wrap {
    padding: 14px 16px;
  }

  .brand-logo {
    height: 38px;
  }
}

/* ===== Hero — cream background with a large white rounded card ===== */
.hero {
  background: var(--color-bg);
  padding: 96px 0;
}

.hero-card {
  background: var(--color-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-card-main {
  flex: 1.15;
}

.hero-card-main h1 {
  margin-bottom: 0;
}

.hero-card-divider {
  width: 1px;
  align-self: stretch;
  background: var(--color-border);
  flex-shrink: 0;
}

.hero-card-side {
  flex: 0.85;
}

.hero-card-side .lead {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

@media (max-width: 860px) {
  .hero {
    padding: 56px 0;
  }

  .hero-card {
    flex-direction: column;
    align-items: stretch;
    padding: 40px 28px;
    border-radius: var(--radius);
  }

  .hero-card-divider {
    width: 100%;
    height: 1px;
  }
}

/* Generic placeholder box (used for office/team photo slots) */
.hero-art {
  background: var(--color-accent-pale);
  border-radius: var(--radius);
  padding: 20px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
  font-weight: 600;
  text-align: center;
  border: 1px dashed var(--color-accent);
}

/* Real photo in a two-column content section */
.section-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Transparent-background cutout: no frame, sits directly on the section */
.section-photo--cutout {
  border-radius: 0;
  box-shadow: none;
  max-width: 480px;
  margin: 0 auto;
}

/* Tall photo in a two-column section, cropped so it doesn't tower over the text */
.section-photo--portrait {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  max-height: 620px;
}

/* ===== Eyewear brand wall ===== */
.brand-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.brand-tile {
  flex: 0 0 calc((100% - 4 * 14px) / 5);
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-tile:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.brand-tile img {
  width: auto;
  max-width: 100%;
  /* render every logo in the site's charcoal for a unified wall */
  filter: brightness(0);
  opacity: 0.78;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  color: #000;
  opacity: 0.78;
}

.brand-note {
  max-width: 760px;
  margin: 32px auto 0;
  text-align: center;
}

@media (max-width: 900px) {
  .brand-tile { flex-basis: calc((100% - 2 * 14px) / 3); }
}

@media (max-width: 560px) {
  .brand-tile { flex-basis: calc((100% - 14px) / 2); height: 96px; }
  .brand-word { font-size: 0.9rem; }
}

/* ===== Breadcrumbs & page meta (inner pages) ===== */
.breadcrumbs {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--color-accent-dark);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span[aria-hidden] {
  margin: 0 6px;
  opacity: 0.6;
}

.page-meta {
  margin-top: 16px !important;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--color-accent-dark);
}

/* ===== Long-form article layout ===== */
.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-figure {
  margin: 0 0 40px;
}

.article-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body h2 {
  margin: 40px 0 14px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

.article-body p,
.article-body li {
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-body ul {
  padding-left: 22px;
  margin: 0 0 18px;
}

.article-body li {
  margin-bottom: 8px;
  color: var(--color-muted);
}

.article-body a,
.card p a,
.section-head p a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Linked cards (services & articles) ===== */
.card--link {
  display: flex;
  flex-direction: column;
  color: inherit;
}

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

.card-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
}

.card-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

/* ===== Google rating badge ===== */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-card);
  font-size: 0.88rem;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.rating-badge:hover {
  border-color: var(--color-accent);
}

.rating-stars {
  color: #e2a93b;
  font-size: 1.05rem;
  line-height: 1;
}

footer.site-footer .rating-badge--footer {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f4ece4;
  box-shadow: none;
}

/* ===== Page header (non-home hero) ===== */
.page-header {
  background: linear-gradient(180deg, rgba(199, 164, 139, 0.18) 0%, rgba(237, 231, 227, 0) 85%), var(--color-bg);
  padding: 68px 0 56px;
  text-align: center;
}

.page-header .eyebrow {
  justify-content: center;
}

.page-header p {
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Cards / grids ===== */
.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card .icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--color-accent-pale);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

/* ===== Team ===== */
.team-card {
  text-align: center;
}

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--color-primary);
  color: #f4ece4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  border: 4px solid var(--color-accent-pale);
  box-shadow: var(--shadow-sm);
}

.team-role {
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

/* ===== Testimonials ===== */
.testimonial {
  position: relative;
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-accent-pale);
  line-height: 1;
}

.testimonial p {
  color: var(--color-text);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial .stars {
  color: #d9a441;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.testimonial .author {
  font-weight: 700;
  color: var(--color-primary);
  font-style: normal;
}

/* ===== Lists ===== */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ===== Insurance logos row ===== */
.insurance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.insurance-pill {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* ===== CTA banner ===== */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(199, 164, 139, 0.22) 0%, rgba(199, 164, 139, 0) 60%), var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 50px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.cta-banner h2, .cta-banner p {
  color: #fff;
  margin: 0;
  position: relative;
  z-index: 1;
}

.cta-banner p { opacity: 0.8; margin-top: 6px; }

/* ===== Info blocks (hours/contact) ===== */
.info-block {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

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

.hours-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-muted);
  font-weight: 500;
}

.hours-table tr:last-child td {
  border-bottom: none;
}

/* ===== Forms ===== */
form.contact-form {
  display: grid;
  gap: 18px;
}

form.contact-form label {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  display: block;
  color: var(--color-primary);
}

form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(199, 164, 139, 0.25);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

.form-status {
  margin: 0;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  background: var(--color-accent-pale);
  border: 1px solid var(--color-accent);
  color: var(--color-primary);
}

.form-status.is-error {
  background: #f8ecea;
  border-color: #c98a80;
  color: #7a3329;
}

/* ===== Map placeholder ===== */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  min-height: 320px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ===== Footer ===== */
footer.site-footer {
  background: var(--color-primary);
  color: #b9ab9c;
  padding: 60px 0 24px;
}

footer.site-footer h4 {
  font-family: var(--font-display);
  color: #f5efe8;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

footer.site-footer a {
  color: #b9ab9c;
  transition: color 0.2s ease;
}

footer.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #94877a;
}

.text-center { text-align: center; }

/* ===== FAQ accordion ===== */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px 24px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-accent-dark);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 20px;
  margin: 0;
  color: var(--color-muted);
}

.faq-item p a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* ===== Climate / info panel ===== */
.climate-panel {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 44px;
}

.climate-panel .grid {
  margin-top: 24px;
}

.climate-stat {
  text-align: center;
}

.climate-stat .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-primary);
  display: block;
}

.climate-stat .label {
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Appointment modal ===== */
#appt-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(38, 38, 38, 0.78);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

#appt-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.appt-modal {
  position: relative;
  width: min(420px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 2.75rem 2.25rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transform: scale(0.94) translateY(10px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#appt-modal-overlay.active .appt-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.appt-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.appt-modal-close:hover {
  background: var(--color-accent-pale);
}

.appt-modal-close::before,
.appt-modal-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--color-primary);
  transform-origin: center;
}

.appt-modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.appt-modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.appt-modal-close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.appt-modal-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.appt-modal-sub {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
}

.appt-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.appt-modal-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background 0.2s ease, transform 0.2s ease;
}

.appt-modal-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.appt-modal-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.appt-modal-btn-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  color: #e3d2c3;
}

.appt-modal-btn-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.appt-modal-btn-label {
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appt-modal-btn-number {
  font-family: var(--font);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  user-select: text;
}

.appt-modal-btn-pending {
  background: transparent;
  border: 1px dashed var(--color-border);
  color: var(--color-primary);
  cursor: not-allowed;
}

.appt-modal-btn-pending:hover {
  background: transparent;
  transform: none;
}

.appt-modal-btn-pending .appt-modal-btn-icon {
  color: var(--color-accent);
}

.appt-modal-btn-number-pending {
  color: var(--color-muted);
  font-style: italic;
}

.appt-modal-helper {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.appt-modal-note {
  font-size: 0.78rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

@media (max-width: 480px) {
  #appt-modal-overlay { padding: 4vh 5vw; }
  .appt-modal { padding: 2.25rem 1.5rem 1.75rem; border-radius: var(--radius-sm); }
  .appt-modal-title { font-size: 1.6rem; }
}

/* ===== Technology showcase (dry eye / device feature) ===== */
.tech-showcase {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.tech-showcase-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.tech-showcase-media img {
  width: 100%;
  height: auto;
  display: block;
}

.tech-showcase-body h2,
.tech-showcase-body .eyebrow {
  color: #fff;
}

.tech-showcase-body .eyebrow {
  color: #e3d2c3;
}

.tech-showcase-body .eyebrow::before {
  background: #e3d2c3;
}

.tech-showcase-body p {
  color: rgba(255, 255, 255, 0.8);
}

.tech-badges {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.tech-badges img {
  height: 32px;
  width: auto;
  display: block;
}

.tech-badges img.badge-envision {
  height: 46px;
}

@media (max-width: 860px) {
  .tech-showcase {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

.tech-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.tech-card-media {
  background: #0d2b2e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tech-card-media img {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
}

.tech-card-body {
  padding: 26px 26px 30px;
}

.tech-card-body .team-role {
  margin-bottom: 8px;
}

/* ===== Numbered steps ===== */
.steps-list {
  display: grid;
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 {
  margin-bottom: 6px;
}

.step-body p {
  margin-bottom: 0;
}

/* ===== Decorative iris artwork (homepage) =====
   Horizontal bleed past the viewport edge is always safe (body has
   overflow-x:hidden). Vertical offsets are kept inside each section's
   own box, except where the adjacent section shares the same
   background color, so no hard seam is ever visible. Each host
   section gets its own stacking context (position + z-index) so the
   negative z-index artwork reliably sits behind that section's
   foreground content without affecting other sections. */
.decor-iris {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: auto;
  height: auto;
  user-select: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.decor-iris--hero {
  right: -9%;
  bottom: 2%;
  width: 59.5vw;
  max-width: 945px;
  opacity: 0.92;
}

#doctors {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.decor-iris--doctors {
  left: -7%;
  bottom: 6%;
  width: 42vw;
  max-width: 665px;
  opacity: 0.14;
}

#testimonials {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.decor-iris--testimonials {
  right: -6%;
  bottom: -8%;
  width: 38.5vw;
  max-width: 595px;
  opacity: 0.14;
}

@media (max-width: 860px) {
  .hero {
    padding-bottom: 120px;
  }

  .decor-iris--hero {
    width: 55vw;
    max-width: 260px;
    right: -8%;
    bottom: -4%;
    opacity: 0.85;
  }

  .decor-iris--doctors {
    width: 46vw;
    max-width: 220px;
    left: -8%;
    bottom: -4%;
    opacity: 0.16;
  }

  .decor-iris--testimonials {
    width: 46vw;
    max-width: 220px;
    right: -8%;
    bottom: -4%;
    opacity: 0.16;
  }
}

@media (max-width: 420px) {
  .decor-iris--hero {
    width: 62vw;
    max-width: 220px;
  }
}


/* ===== Social links (Facebook / Instagram) ===== */
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 18px;
}

.hero-follow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent-dark);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar .social-links {
  gap: 6px;
}

.topbar .social-link {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #e3d2c3;
}

.topbar .social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topbar .social-link svg {
  width: 15px;
  height: 15px;
}

footer.site-footer .social-links {
  display: flex;
  margin-top: 16px;
}

footer.site-footer .social-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f4ece4;
  box-shadow: none;
}

footer.site-footer .social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Brand colours for the social icons (all locations) */
.social-links .social-link[href*="facebook.com"],
.social-links .social-link[href*="instagram.com"] {
  border: 0;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social-links .social-link[href*="facebook.com"],
.social-links .social-link[href*="facebook.com"]:hover {
  background: #1877f2;
}

.social-links .social-link[href*="instagram.com"],
.social-links .social-link[href*="instagram.com"]:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-links .social-link[href*="facebook.com"]:hover,
.social-links .social-link[href*="instagram.com"]:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.08);
}
