/* ═══════════════════════════════════════════
   Ewing Optical — Shared Stylesheet
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --cream:        #FAF7F2;
  --cream-dark:   #F0EBE1;
  --cream-border: #E2D9CC;
  --gray-light:   #999999;
  --gray:         #666666;
  --gray-dark:    #3D3D3D;
  --red:          #CC1A1A;
  --red-dark:     #A51515;
  --red-muted:    #F5DADA;
  --text:         #2D2D2D;
  --text-muted:   #666666;
  --white:        #FFFFFF;
  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Source Sans 3', sans-serif;
  --max-width:    1160px;
  --pad:          80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--text); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── TOP BAR ── */
.topbar { background: var(--gray-dark); color: rgba(255,255,255,0.72); font-size: 13px; padding: 9px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: rgba(255,255,255,0.85); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; gap: 24px; }

/* ── HEADER ── */
header { background: var(--cream); border-bottom: 1px solid var(--cream-border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(60,60,60,0.07); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo-img { height: 52px; width: auto; mix-blend-mode: multiply; display: block; }
.logo-sub { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); margin-top: 6px; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; padding: 8px 14px; border-radius: 6px; transition: background 0.18s, color 0.18s; }
nav a:hover, nav a.active { background: var(--cream-dark); color: var(--gray-dark); }
.nav-cta { background: var(--red) !important; color: var(--white) !important; padding: 10px 22px !important; margin-left: 10px; }
.nav-cta:hover { background: var(--red-dark) !important; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-family: var(--font-body); font-size: 15px; font-weight: 600; border-radius: 6px; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(204,26,26,0.35); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.42); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }

/* ── SECTION LABELS ── */
.section-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gray); margin-bottom: 14px; }
.section-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gray); }
h2.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--gray-dark); margin-bottom: 14px; }
.section-body { font-size: 17px; font-weight: 300; color: var(--text-muted); line-height: 1.75; max-width: 600px; }

/* ── PAGE HERO (subpages) ── */
.page-hero { background: var(--gray-dark); padding: 64px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: var(--hero-bg, none); background-size: cover; background-position: center; opacity: 0.18; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gray-light); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.page-hero-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gray-light); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); font-weight: 700; color: var(--white); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.page-hero h1 em { font-style: italic; color: #BBBBBB; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 580px; line-height: 1.7; }

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--cream-dark); border-bottom: 1px solid var(--cream-border); padding: 12px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 8px; }

/* ── CONTENT SECTION ── */
.content-section { padding: var(--pad) 0; }
.content-section.bg-white { background: var(--white); }
.content-section.bg-cream { background: var(--cream); }
.content-section.bg-dark { background: var(--gray-dark); color: var(--white); }
.content-section.bg-dark .section-title { color: var(--white); }
.content-section.bg-dark .section-body { color: rgba(255,255,255,0.6); }
.content-section.bg-dark .section-eyebrow { color: var(--gray-light); }
.content-section.bg-dark .section-eyebrow::before { background: var(--gray-light); }

/* ── TWO-COLUMN GRID ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.col-img { width: 100%; height: 420px; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.12); }

/* ── FEATURE LIST ── */
.feature-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { width: 36px; height: 36px; background: var(--red-muted); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.feature-item h4 { font-size: 15px; font-weight: 600; color: var(--gray-dark); margin-bottom: 3px; }
.feature-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── CARD GRID ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card { background: var(--white); border: 1px solid var(--cream-border); border-radius: 10px; padding: 32px 28px; }
.card-icon { width: 44px; height: 44px; background: var(--red-muted); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--red); margin-bottom: 18px; }
.card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--gray-dark); margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── CTA BANNER ── */
.cta-banner { padding: 72px 0; background: var(--red); text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: var(--cta-bg, none); background-size: cover; background-position: center; opacity: 0.08; }
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: var(--white); margin-bottom: 14px; }
.cta-banner p { font-size: 17px; color: rgba(255,255,255,0.82); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-ghost { font-size: 16px; padding: 15px 38px; border-color: rgba(255,255,255,0.55); }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: #fff; }

/* ── TRUST STRIP ── */
.trust-strip { background: var(--cream-dark); border-bottom: 1px solid var(--cream-border); padding: 18px 0; }
.trust-strip .container { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--gray-dark); }
.trust-icon { color: var(--red); flex-shrink: 0; }

/* ── FOOTER ── */
footer { background: var(--gray-dark); color: rgba(255,255,255,0.52); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 48px; }
.footer-logo .logo { align-items: flex-start; }
.footer-logo .logo-img { filter: brightness(0) invert(1); opacity: 0.85; mix-blend-mode: normal; }
.footer-logo .logo-sub { color: var(--gray-light); }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.36); margin-top: 14px; line-height: 1.65; max-width: 250px; }
.footer-col h4 { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray-light); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.46); text-decoration: none; transition: color 0.18s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ── LOCATION PAGE ── */
.location-hero { background: var(--gray-dark); }
.loc-intro { padding: var(--pad) 0; background: var(--white); }
.loc-services { padding: var(--pad) 0; background: var(--cream); }
.loc-map { padding: var(--pad) 0; background: var(--white); }
.map-frame { border-radius: 10px; overflow: hidden; border: 1px solid var(--cream-border); height: 400px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.map-frame iframe { width: 100%; height: 100%; border: none; display: block; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.info-block { margin-bottom: 28px; }
.info-block h4 { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gray); margin-bottom: 10px; }
.info-block p, .info-block address { font-size: 16px; color: var(--text); font-style: normal; line-height: 1.7; }
.info-block a { text-decoration: none; color: var(--text); }
.info-block a:hover { color: var(--red); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--cream-border); }
.hours-table tr:last-child { border: none; }
.hours-table td { padding: 10px 0; font-size: 15px; color: var(--text); }
.hours-table td:last-child { text-align: right; color: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --pad: 56px; }
  .container { padding: 0 24px; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse { direction: ltr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .topbar-right { display: none; }
  nav a:not(.nav-cta) { display: none; }
  .trust-strip .container { gap: 18px; }
  .info-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .btn { justify-content: center; }
  .page-hero { padding: 48px 0; }
}

/* ── BRAND LOGO MARQUEE (home + frames) ── */
.brand-marquee { overflow: hidden; width: 100%; position: relative; }
.brand-marquee::before,
.brand-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 1;
  pointer-events: none;
}
.brand-marquee::before { left: 0; background: linear-gradient(90deg, var(--cream-dark), transparent); }
.brand-marquee::after { right: 0; background: linear-gradient(270deg, var(--cream-dark), transparent); }
.bg-white .brand-marquee::before { background: linear-gradient(90deg, var(--white), transparent); }
.bg-white .brand-marquee::after { background: linear-gradient(270deg, var(--white), transparent); }
.brand-marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: brand-marquee-scroll 90s linear infinite;
  will-change: transform;
}
.brand-marquee:hover .brand-marquee-track { animation-play-state: paused; }
.brand-marquee-logo {
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.95;
}
.brand-marquee-more {
  flex-shrink: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  color: var(--text-muted, #666);
  white-space: nowrap;
  opacity: 0.95;
  letter-spacing: 0.02em;
}
@keyframes brand-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
  }
}
