/* Economy Optical — crisp downtown eyewear boutique
   Manrope + Fraunces · slate-blue / white / honey amber */

:root {
  --bg: #ffffff;
  --bg-2: #f3f5f9;
  --ink: #15203a;
  --slate: #1f2a44;
  --slate-soft: #54607a;
  --honey: #d98a2b;
  --honey-soft: #e7a84a;
  --line: #e1e6ef;
  --line-2: #cfd6e3;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --pad: clamp(1.2rem, 4vw, 4rem);
  --reveal-delay: 0ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--slate); color: #fff;
  padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: 0 8px 30px -22px rgba(21, 32, 58, 0.5);
}
.wordmark { display: flex; align-items: center; gap: 0.7rem; }
.wordmark__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  color: var(--honey);
  background: var(--slate);
  flex: none;
}
.wordmark__name {
  font-family: var(--serif);
  font-size: 1.32rem; font-weight: 600;
  letter-spacing: -0.01em; display: block; line-height: 1;
}
.wordmark__since {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate-soft); display: block; margin-top: 0.34rem;
  font-weight: 600;
}
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate-soft); font-weight: 600; transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--honey); }
.site-nav__cta {
  color: #fff !important; background: var(--slate);
  padding: 0.6rem 1rem; border-radius: 999px; letter-spacing: 0.06em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.site-nav__cta:hover { background: var(--honey) !important; transform: translateY(-1px); }
@media (max-width: 820px) {
  .site-nav a:not(.site-nav__cta) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans);
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700;
  padding: 0.9rem 1.6rem; border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--slate); color: #fff; }
.btn--ink:hover { background: var(--honey); }
.btn--ghost { border: 1.5px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--slate); background: var(--slate); color: #fff; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--pad) clamp(3rem, 7vw, 6rem);
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1.02fr 0.98fr; align-items: center;
}
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } }
.hero__eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--honey); margin: 0 0 1rem; font-weight: 700;
}
.rule { width: 38px; height: 2px; background: var(--honey); display: inline-block; border-radius: 2px; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: 0.98;
  margin: 0; letter-spacing: -0.02em;
}
.hero__title span { display: block; }
.hero__title--accent { font-style: italic; color: var(--honey); font-weight: 400; }
.hero__sub {
  max-width: 40ch; margin: 1.6rem 0 0; font-size: 1.05rem; color: var(--slate-soft);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.8rem;
  margin: 2rem 0 0; padding: 0.65rem 1.1rem 0.65rem 0.7rem;
  border: 1px solid var(--line-2); border-radius: 999px;
}
.hero__badge-num {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  color: var(--honey); line-height: 1;
  background: var(--bg-2); width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%;
}
.hero__badge-txt {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--slate-soft);
}
.hero__figure { margin: 0; position: relative; }
.hero__figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 14px; box-shadow: 0 36px 70px -34px rgba(21, 32, 58, 0.55);
}
.hero__figure figcaption {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  background: color-mix(in srgb, var(--slate) 82%, transparent);
  color: #fff; font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600;
  padding: 0.6rem 0.9rem; border-radius: 8px;
  backdrop-filter: blur(4px);
}
.hero__seal {
  position: absolute; top: -34px; right: -20px; z-index: 2;
  color: var(--slate); animation: spin 38s linear infinite;
  background: var(--honey-soft); border-radius: 50%;
  box-shadow: 0 14px 30px -16px rgba(21, 32, 58, 0.6);
}
@media (prefers-reduced-motion: reduce) { .hero__seal { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__seal-text { font-family: var(--sans); font-size: 9.2px; font-weight: 700; letter-spacing: 1.5px; fill: var(--slate); }
.hero__seal-mid { font-family: var(--serif); font-size: 15px; font-weight: 600; fill: var(--slate); }
@media (max-width: 520px) { .hero__seal { width: 92px; height: 92px; top: -20px; right: -8px; } .hero__seal svg { width: 92px; height: 92px; } }

/* ---------- sections ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) var(--pad);
  border-top: 1px solid var(--line);
}
.section__head { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section__head--center { text-align: center; }
.section__num {
  font-family: var(--sans); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.3em; color: var(--honey); display: block; margin-bottom: 0.6rem;
}
.section__kicker {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.05; margin: 0;
  max-width: 18ch; letter-spacing: -0.01em;
}
.section__head--center .section__kicker { margin: 0 auto; }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }
.story__body p { margin: 0 0 1.2rem; font-size: 1.05rem; max-width: 48ch; color: var(--slate-soft); }
.story__pull {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 3.3vw, 2rem) !important; line-height: 1.3;
  color: var(--slate) !important; border-left: 3px solid var(--honey);
  padding-left: 1.1rem; margin: 1.8rem 0 !important; max-width: none !important;
}
.story__figure { margin: 0; }
.story__figure img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px;
  box-shadow: 0 24px 50px -30px rgba(21, 32, 58, 0.5);
}

/* ---------- services cards ---------- */
.section--services { background: var(--bg-2); max-width: none; border-top: none; }
.section--services > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.services { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 28px 52px -32px rgba(21, 32, 58, 0.45); border-color: var(--line-2); }
.card__figure { margin: 0; overflow: hidden; }
.card__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__figure img { transform: scale(1.05); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; }
.card__tag { font-family: var(--sans); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--honey); margin: 0 0 0.4rem; }
.card__body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.card__body p { margin: 0; color: var(--slate-soft); font-size: 0.94rem; line-height: 1.55; }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }
.visit__addr { font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; margin: 0 0 1.4rem; }
.hours { margin: 0 0 1.6rem; border-top: 1px solid var(--line); }
.hours__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.hours__row dt { margin: 0; letter-spacing: 0.02em; font-weight: 600; }
.hours__row dd { margin: 0; color: var(--slate-soft); }
.hours__row--muted dd { color: var(--honey); font-weight: 600; }
.visit__contact { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1rem; }
.visit__phone { font-family: var(--serif); font-size: 1.5rem; color: var(--slate); font-weight: 600; }
.visit__phone:hover { color: var(--honey); }
.visit__ig { font-size: 0.85rem; letter-spacing: 0.06em; font-weight: 600; color: var(--slate-soft); }
.visit__ig:hover { color: var(--honey); }
.visit__note { font-size: 0.85rem; color: var(--slate-soft); line-height: 1.6; }
.visit__map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); min-height: 340px; }
.visit__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- coda ---------- */
.coda { text-align: center; padding: clamp(3rem, 8vw, 6rem) var(--pad); border-top: 1px solid var(--line); }
.coda__mark { font-size: 1.4rem; color: var(--honey); margin: 0; letter-spacing: 0.3em; }
.coda__line { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2.2rem); margin: 0.6rem 0 0; letter-spacing: -0.01em; }
.coda__line em { color: var(--honey); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--slate); color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad);
}
.site-footer__name { font-family: var(--serif); font-size: 1.5rem; margin: 0; font-weight: 600; }
.site-footer__sub { font-size: 0.85rem; opacity: 0.7; margin: 0.3rem 0 0; }
.site-footer__col--links { display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem; justify-content: center; }
.site-footer__col--links a { font-size: 0.85rem; letter-spacing: 0.04em; font-weight: 600; opacity: 0.85; }
.site-footer__col--links a:hover { opacity: 1; color: var(--honey-soft); }
.site-footer__small { grid-column: 1 / -1; font-size: 0.72rem; opacity: 0.55; margin: 1rem 0 0; }
@media (max-width: 600px) {
  .site-footer { grid-template-columns: 1fr; }
  .site-footer__col--links { align-items: flex-start; }
}
