/* Style and Vision Opticians — site styles
   Palette and type carried over from the original GoDaddy site:
   Playfair Display (headings) + Open Sans (body), ink on white with taupe/sand accents. */

:root {
  --ink: #151515;
  --ink-soft: #3a3633;
  --muted: #6b635b;
  --taupe: #9a866f;
  --taupe-deep: #7f6e5c;
  --sand: #e6d4c1;
  --cream: #f7f2ec;
  --white: #ffffff;
  --line: #e4ddd5;
  --radius: 4px;
  --max: 1160px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Open Sans', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--taupe-deep); }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center.narrow { margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--taupe-deep);
  margin-bottom: 1rem;
  display: block;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--taupe-deep);
  margin-top: 4px;
}
.nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .4rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--taupe); }
.nav-toggle {
  display: none;
  background: none; border: 0; padding: .5rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .nav li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--taupe-deep); border-color: var(--taupe-deep); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: #d9d2ca; }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.bg-ink .eyebrow { color: var(--sand); }
.rule { width: 56px; height: 1px; background: var(--taupe); border: 0; margin: 0 0 1.6rem; }
.center .rule { margin-inline: auto; }

/* ---------- Home hero ---------- */
.hero {
  padding: 0;
  background: var(--cream);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: min(78vh, 680px);
}
.hero-copy { padding: 4rem 3rem 4rem 0; }
.hero-copy p { max-width: 30rem; }
.hero-media { height: 100%; min-height: 380px; position: relative; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 3rem 0 2rem; }
  .hero-media { min-height: 300px; margin: 0 -1.25rem; }
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: var(--cream);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.page-banner p { max-width: 42rem; }

.kv { padding: 0; background: #2b2b33; }
.kv img { width: 100%; max-height: 460px; object-fit: cover; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.6rem; }
.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: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card .card-icon {
  width: 44px; height: 44px; margin-bottom: 1.2rem;
  color: var(--taupe-deep);
}
.card-feature { border-top: 3px solid var(--taupe); }
.card-badge {
  display: inline-block;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  background: var(--ink); color: var(--white);
  padding: .3rem .7rem; border-radius: 2px; margin-bottom: 1rem;
}
.card-badge.alt { background: var(--sand); color: var(--ink); }
.card .logo-badge { height: 26px; width: auto; margin-bottom: 1.2rem; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--taupe-deep); border-bottom: 2px solid var(--taupe-deep);
  transform: rotate(-45deg);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--white); line-height: 1; margin-bottom: .6rem; }
.bg-cream .stat-num, .stats.light .stat-num { color: var(--ink); }
.stat-label { font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; } }

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.panel {
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.6rem; grid-template-columns: repeat(3, 1fr); }
.step { counter-increment: step; padding-top: 1rem; border-top: 1px solid var(--taupe); }
.step::before {
  content: "0" counter(step);
  display: block; font-family: var(--serif); font-size: 2rem; color: var(--taupe); margin-bottom: .4rem;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Branch cards ---------- */
.branch { display: flex; flex-direction: column; }
.branch address { font-style: normal; margin-bottom: 1rem; }
.branch .phone { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); text-decoration: none; display: inline-block; margin-bottom: 1rem; }
.hours { width: 100%; border-collapse: collapse; font-size: .93rem; margin-bottom: 1.4rem; }
.hours td { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 600; color: var(--ink); }
.map-frame {
  width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius);
  background: var(--cream); margin-top: auto;
}
.placeholder {
  background: #fff4d6; border: 1px dashed #c9a43b; color: #6b5310;
  padding: 0 .3em; border-radius: 2px; font-size: .9em;
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.2rem; color: var(--ink);
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--taupe-deep); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .9rem 0 0; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  padding: .85rem 1rem;
  border: 1px solid #cfc6bc; border-radius: var(--radius);
  background: var(--white); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--taupe); outline-offset: 1px; border-color: var(--taupe); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #eef5ec; color: #2e5a2a; }
.form-status.err { background: #fbeeee; color: #7a2626; }

/* ---------- Footnotes ---------- */
.footnotes { font-size: .78rem; color: var(--muted); line-height: 1.55; }
.footnotes ol { padding-left: 1.2rem; margin: 0; }
.footnotes li { margin-bottom: .45rem; }
sup { font-size: .65em; line-height: 0; }
sup a { text-decoration: none; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band p { max-width: 36rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9b1a8; padding: 4rem 0 2rem; font-size: .93rem; }
.site-footer a { color: #e2d9cf; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: var(--white); font-size: 1.05rem; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-brand { font-family: var(--serif); color: var(--white); font-size: 1.4rem; margin-bottom: .6rem; }
.footer-base { border-top: 1px solid #333; margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: .6rem 1rem; }
