/* ==========================================================================
   Panorama Eye — brand stylesheet
   Palette sampled directly from the practice letterhead (deep espresso brown
   script wordmark on white). Built on the same structural approach as the
   Masico Advisory reference site, adapted for a specialist medical practice.
   ========================================================================== */

:root {
  --espresso: #4B2A19;        /* primary brand brown (letterhead ink) */
  --espresso-2: #341C10;      /* deeper brown, used for depth/gradients */
  --caramel: #9C6B3E;         /* warm accent brown, sampled lighter than primary */
  --caramel-light: #B98A57;   /* lighter caramel for hover / highlights */
  --caramel-pale: #E7D9C7;    /* pale caramel/cream for quiet backgrounds */
  --rust: #7A3B23;            /* secondary brown accent */
  --taupe: #6B5842;           /* tertiary brown accent */
  --ink: #241B14;
  --slate: #5C5044;
  --line: #E6DDD2;
  --paper: #ffffff;
  --cream: #F8F4EF;

  --font-display: 'Newsreader', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--espresso);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 3rem; letter-spacing: 0.005em; }
h2 { font-size: 2rem; margin-bottom: 1.1rem; letter-spacing: 0.002em; }
h3 { font-size: 1.28rem; margin-bottom: 0.6rem; font-family: var(--font-body); font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 0.9rem;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head.left { margin: 0 0 3rem; text-align: left; }

p { margin-bottom: 1rem; color: var(--slate); }

p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.15rem;
  color: #4a4038;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  background-color: var(--paper);
  position: relative;
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand img { height: 52px; width: 52px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-text .name {
  font-family: var(--font-display);
  color: var(--espresso);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-text .tagline {
  font-family: var(--font-body);
  color: var(--caramel);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--espresso);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  background-color: var(--espresso);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid var(--espresso);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover { background-color: var(--espresso-2); border-color: var(--espresso-2); }

.btn-outline {
  background-color: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.65);
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.14);
  border-color: var(--paper);
  color: var(--paper);
}

.btn-caramel {
  background-color: var(--caramel);
  color: var(--paper);
  border-color: var(--caramel);
}
.btn-caramel:hover { background-color: var(--caramel-light); border-color: var(--caramel-light); }

/* ---------- Hero (gradient + eye-motif watermark, no photography) ---------- */

.hero {
  position: relative;
  color: var(--paper);
  padding: 6.5rem 0 5.5rem;
  text-align: left;
  overflow: hidden;
  background: linear-gradient(120deg, var(--espresso) 0%, var(--espresso) 55%, var(--espresso-2) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -6%;
  top: 50%;
  width: 560px;
  height: 560px;
  transform: translateY(-50%);
  background: url('images/eye-motif.svg') no-repeat center / contain;
  opacity: 0.14;
  pointer-events: none;
}

.hero-terms { padding: 4.5rem 0 3.5rem; }

.hero .container { position: relative; z-index: 2; max-width: 760px; }

.hero .eyebrow { color: var(--caramel-light); }

.hero h1 { color: var(--paper); margin-bottom: 1.1rem; }

.hero .subtitle {
  font-size: 1.18rem;
  color: #efe7dd;
  max-width: 620px;
  margin-bottom: 2.2rem;
}

.hero .cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */

.section { padding: 5.5rem 0; }
.section.tight { padding: 3.5rem 0; }
.section.bg-cream { background-color: var(--cream); }
.section.bg-espresso {
  background: linear-gradient(125deg, var(--espresso) 0%, var(--espresso) 55%, var(--rust) 100%);
  color: var(--paper);
  border-top: 3px solid var(--caramel);
  border-bottom: 3px solid var(--caramel);
}
.section.bg-espresso h2, .section.bg-espresso h3 { color: var(--paper); }
.section.bg-espresso p { color: #ecdfd2; }
.section.border-top { border-top: 1px solid var(--line); }

/* ---------- Service overview cards (home page) ---------- */

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

.service-card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2.4rem 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(75, 42, 25, 0.12);
}

.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}

.icon-tile svg { width: 28px; height: 28px; stroke: var(--paper); fill: none; }

.icon-tile.espresso { background-color: var(--espresso); }
.icon-tile.rust { background-color: var(--rust); }
.icon-tile.taupe { background-color: var(--taupe); }
.icon-tile.caramel { background-color: var(--caramel); }

.service-card h3 { font-size: 1.12rem; margin-bottom: 0.7rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 1.2rem; }
.service-card a.card-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--espresso);
  text-decoration: none;
  border-bottom: 1px solid var(--caramel);
  padding-bottom: 2px;
}
.service-card a.card-link:hover { color: var(--caramel); }

/* ---------- Detailed service list (services.html) ---------- */

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.6rem 3.5rem;
}

.service-item {
  display: flex;
  gap: 1.1rem;
}

.dot {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.dot svg { width: 20px; height: 20px; stroke: var(--paper); fill: none; }

.dot.espresso { background-color: var(--espresso); }
.dot.rust { background-color: var(--rust); }
.dot.taupe { background-color: var(--taupe); }
.dot.caramel { background-color: var(--caramel); }

.service-item h3 { color: var(--espresso); font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.4rem; }
.service-item p { font-size: 0.94rem; margin-bottom: 0.6rem; }
.service-item p:last-child { margin-bottom: 0; }
.service-item.flagship { grid-column: span 2; }
.service-item.flagship .service-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.service-item.flagship h3 { grid-column: span 2; }

.tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 3px;
  color: var(--paper);
  background-color: var(--caramel);
  margin-bottom: 0.6rem;
}

.fine-print { font-size: 0.82rem; font-style: italic; color: #8a7d6f; }

/* ---------- Values grid (about / home) ---------- */

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

.value-block {
  padding: 2rem 2.2rem;
  color: var(--paper);
  border-radius: 6px;
}

.value-block h3 { color: var(--paper); font-family: var(--font-display); font-weight: 600; font-style: italic; }
.value-block p { color: rgba(255,255,255,0.9); font-size: 0.95rem; margin-bottom: 0; }

.value-block.espresso { background-color: var(--espresso); }
.value-block.rust { background-color: var(--rust); }
.value-block.taupe { background-color: var(--taupe); }
.value-block.caramel { background-color: var(--caramel); grid-column: span 2; }

/* ---------- About / leadership ---------- */

.leadership {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.leadership .portrait {
  border-radius: 6px;
  border: 1px solid var(--line);
  background-color: var(--cream);
}

.leadership .credentials { color: var(--slate); font-size: 0.92rem; margin-bottom: 0.3rem; }

/* ---------- Forms ---------- */

.form-note {
  font-size: 0.88rem;
  color: var(--slate);
  max-width: 560px;
  margin-top: -0.3rem;
  margin-bottom: 1.4rem;
}

form { max-width: 620px; }

form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--espresso);
}

form input, form textarea, form select {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1.3rem;
  border: 1px solid #d8cfc3;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--paper);
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--caramel);
}

form button { border: none; cursor: pointer; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }

/* ---------- Contact details ---------- */

.contact-details {
  border-left: 3px solid var(--caramel);
  padding-left: 1.6rem;
}

.contact-details .row { margin-bottom: 0.9rem; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.contact-details .label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--caramel); margin-bottom: 0.2rem; width: 100%; }
.contact-details .note-inline { font-size: 0.82rem; color: var(--slate); font-style: italic; }

.whatsapp-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--espresso); text-decoration: underline; text-decoration-color: var(--caramel); font-weight: 600; }
.whatsapp-link svg { width: 16px; height: 16px; fill: #3fae5a; flex-shrink: 0; }

.billing-note {
  background-color: var(--cream);
  border-left: 3px solid var(--rust);
  padding: 1.2rem 1.4rem;
  font-size: 0.9rem;
  color: var(--slate);
  border-radius: 4px;
  margin-top: 1.2rem;
}
.billing-note strong { color: var(--espresso); }
.billing-note ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.billing-note ul li { margin-bottom: 0.5rem; line-height: 1.5; }
.billing-note ul li:last-child { margin-bottom: 0; }

/* ---------- FAQ accordion ---------- */

.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.4rem 0;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--espresso);
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chevron { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--caramel); transition: transform 0.2s ease; }
.faq-item[open] summary .chevron { transform: rotate(180deg); }
.faq-item .faq-body { padding-bottom: 1.5rem; font-size: 0.95rem; color: var(--slate); max-width: 720px; }

/* ---------- Patient info list blocks ---------- */

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
.info-block { padding: 1.8rem 2rem; background-color: var(--cream); border-radius: 6px; border-left: 3px solid var(--caramel); }
.info-block h3 { margin-bottom: 0.6rem; }
.info-list { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.info-list li { margin-bottom: 0.4rem; line-height: 1.5; color: var(--slate); }
.info-list li:last-child { margin-bottom: 0; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.hours-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--slate); }
.hours-table td:first-child { font-weight: 600; color: var(--espresso); width: 45%; }

/* ---------- Payment information ---------- */

.payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 1.6rem; }
.payment-block { padding: 1.6rem 1.8rem; background-color: var(--cream); border-radius: 6px; border-top: 3px solid var(--rust); }
.payment-block h3 { margin-bottom: 0.6rem; font-size: 1.05rem; }
.payment-block p { font-size: 0.9rem; color: var(--slate); margin-bottom: 0; }

/* ---------- Map embed ---------- */

.map-embed { width: 100%; height: 380px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }

/* ---------- Blockquote / legal ---------- */

.legal-body p { font-size: 0.92rem; color: var(--slate); }
.legal-body h2 { font-size: 1.35rem; }
.legal-body h3 { font-size: 1.02rem; color: var(--espresso); margin-top: 1.6rem; margin-bottom: 0.5rem; }
.legal-body ul { margin: 0.4rem 0 1.2rem 1.2rem; }
.legal-body li { font-size: 0.92rem; color: var(--slate); margin-bottom: 0.45rem; }

.toc {
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--caramel);
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}
.toc ol { list-style: none; margin-top: 0.8rem; }
.toc li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.toc a { color: var(--espresso); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--caramel); }

.disclaimer-note {
  background-color: var(--cream);
  border-left: 3px solid var(--caramel);
  padding: 1.4rem 1.8rem;
  border-radius: 4px;
  font-size: 0.86rem;
  color: var(--slate);
  margin: 1.6rem 0 2.4rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--espresso);
  color: rgba(255,255,255,0.85);
  padding-top: 4rem;
  border-top: 4px solid var(--caramel);
}

.footer-brand .brand img { height: 46px; width: 46px; background-color: var(--paper); border-radius: 50%; padding: 6px; }
.footer-brand .brand-text .name { color: var(--paper); }
.footer-brand .brand-text .tagline { color: var(--caramel-light); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.68); font-size: 0.9rem; max-width: 320px; }

.site-footer h4 {
  color: var(--caramel-light);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-nav ul, .footer-contact { list-style: none; }
.footer-nav li { margin-bottom: 0.6rem; }
.footer-nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--caramel-light); }

.footer-contact li { color: rgba(255,255,255,0.8); font-size: 0.92rem; margin-bottom: 0.6rem; }
.footer-contact a { color: var(--caramel-light); text-decoration: underline; text-decoration-color: var(--caramel-light); text-underline-offset: 0.2em; }
.footer-contact a:hover { color: var(--paper); }

.footer-legal-note {
  background-color: rgba(255,255,255,0.06);
  padding: 1.6rem 1.8rem;
  margin: 2.5rem 0;
  border-radius: 4px;
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
}
.footer-legal-note p { color: rgba(255,255,255,0.75); margin-bottom: 0.8rem; font-size: 0.78rem; }
.footer-legal-note a { color: var(--caramel-light); font-weight: 600; }

.copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.4rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: center;
  text-align: center;
}

.copyright a { color: rgba(255,255,255,0.55); text-decoration: none; }
.copyright a:hover { color: var(--caramel-light); }

/* ==========================================================================
   Mobile (phones, <=767px).
   ========================================================================== */
@media (max-width: 767px) {
  body { overflow-x: hidden; }

  .container { padding: 0 1.25rem; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.12rem; }

  .section { padding: 3.5rem 0; }
  .section.tight { padding: 2.5rem 0; }

  .site-header .container { height: auto; padding: 0.9rem 1.25rem; position: relative; }
  .brand img { height: 40px; width: 40px; }
  .brand-text .name { font-size: 1.2rem; }
  .brand-text .tagline { font-size: 0.58rem; }

  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--paper);
    border-bottom: 3px solid var(--caramel);
    z-index: 20;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1.25rem; }
  .main-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .main-nav li:last-child a { border-bottom: none; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero-terms { padding: 2.75rem 0 2.25rem; }
  .hero .container { max-width: 100%; }
  .hero h1 { font-size: 1.85rem; }
  .hero .subtitle { font-size: 1.02rem; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn, .hero .cta-row .btn-outline { text-align: center; }
  .hero::after { width: 340px; height: 340px; opacity: 0.10; }

  .card-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .service-item.flagship .service-body { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .value-block.caramel { grid-column: span 1; }
  .leadership { grid-template-columns: 1fr; gap: 2rem; }
  .leadership .portrait { max-width: 220px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .info-grid { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: 1fr; }
  .map-embed { height: 280px; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; padding-bottom: 2.2rem; }
  .footer-brand p { max-width: none; }
  .footer-legal-note { padding: 1.4rem 1.5rem; }

  .toc { padding: 1.4rem 1.5rem; }

  .btn, .btn-outline, .btn-caramel { display: block; width: 100%; text-align: center; padding: 0.95rem 1.5rem; }
  form input, form textarea, form select { padding: 0.95rem 1rem; }
}
