/* =====================================================
   CLARITY VISION — OPTICIAN & EYE CARE STYLES
   ===================================================== */

:root {
  --primary:       #1e3a5f;
  --primary-dark:  #142d4c;
  --primary-light: #eef4fb;
  --primary-glow:  rgba(30,58,95,0.10);
  --accent:        #3a8fd4;
  --accent-light:  #e8f4fd;
  --bg:            #f7f9fc;
  --bg-card:       #ffffff;
  --surface:       #f0f5fb;
  --border:        rgba(30,58,95,0.10);
  --border-subtle: rgba(30,58,95,0.05);
  --text:          #0f1e30;
  --muted:         #5a7291;
  --dim:           #8faab8;
  --success:       #10b981;
  --radius:        14px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(30,58,95,0.08);
  --shadow-lg:     0 16px 56px rgba(30,58,95,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

img { display: block; width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input, textarea { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ALERT BAR */
.alert-bar { background: var(--primary); color: #fff; text-align: center; padding: 10px 20px; font-size: .82rem; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.alert-cta { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 4px 14px; border-radius: 100px; font-size: .78rem; font-weight: 700; transition: background .2s; }
.alert-cta:hover { background: rgba(255,255,255,.3); }

/* NAVBAR */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(247,249,252,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; height: 68px; display: flex; align-items: center; gap: 32px; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; background: var(--primary); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.brand-icon { width: 18px; height: 18px; color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: .92rem; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.brand-sub { font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link { padding: 6px 14px; border-radius: 8px; font-size: .87rem; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--primary); border-radius: 8px; }
.nav-toggle svg { width: 22px; height: 22px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 700; transition: all .2s; cursor: pointer; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 28px var(--primary-glow); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--primary-light); border-color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--border); font-size: .8rem; padding: 7px 16px; }
.btn-outline:hover { background: var(--primary-light); border-color: var(--accent); }
.btn-lg { padding: 14px 30px; font-size: .95rem; }
.btn-sm { padding: 7px 16px; font-size: .8rem; }
.btn-full { width: 100%; justify-content: center; }

/* EYEBROW */
.eyebrow-tag { display: inline-block; background: var(--accent-light); color: var(--accent); border: 1px solid rgba(58,143,212,.2); padding: 5px 16px; border-radius: 100px; font-size: .72rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 16px; }

/* SECTION */
.section { padding: 100px 0; }
.section-alt { background: var(--surface); }
.section-header { text-align: center; max-width: 660px; margin: 0 auto 64px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: .97rem; line-height: 1.75; }

/* HERO */
.hero { padding: 80px 0 100px; overflow: hidden; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-content { max-width: 580px; }
.hero-headline { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.15; margin-bottom: 24px; }
.line-serif { display: block; color: var(--text); }
.line-accent { display: block; color: var(--accent); font-style: italic; }
.hero-sub { color: var(--muted); font-size: 1.02rem; line-height: 1.8; margin-bottom: 36px; max-width: 500px; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--border); padding-top: 36px; }
.hero-stat { text-align: left; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: .74rem; color: var(--muted); margin-top: 4px; }

.hero-visual { position: relative; }
.hero-img-wrap { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-img { aspect-ratio: 4/5; object-fit: cover; }
.hero-badge-float { position: absolute; top: 24px; left: -20px; background: #fff; border-radius: 12px; padding: 10px 18px; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 32px rgba(30,58,95,0.15); font-size: .82rem; font-weight: 700; color: var(--primary); }
.hero-badge-float svg { width: 16px; height: 16px; color: var(--success); }
.hero-badge-float-b { position: absolute; bottom: 32px; right: -20px; background: var(--primary); border-radius: 12px; padding: 10px 18px; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 32px rgba(30,58,95,0.3); font-size: .82rem; font-weight: 700; color: #fff; }
.hero-badge-float-b svg { width: 16px; height: 16px; color: #ffd94a; }

/* TRUST BAR */
.trust-bar { background: var(--primary); padding: 22px 0; }
.trust-items { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: .82rem; font-weight: 600; }
.trust-item svg { width: 16px; height: 16px; color: #7ec4f0; flex-shrink: 0; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: transform .3s, box-shadow .3s, border-color .3s; animation-delay: var(--delay, 0s); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.svc-icon { width: 48px; height: 48px; background: var(--accent-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.svc-icon svg { width: 22px; height: 22px; color: var(--accent); }
.svc-title { font-size: .97rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.svc-desc { font-size: .83rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.svc-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-subtle); padding-top: 14px; }
.svc-time { display: flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--dim); }
.svc-time svg { width: 13px; height: 13px; }
.svc-price { font-size: .85rem; font-weight: 700; color: var(--primary); }

/* EYEWEAR */
.filter-bar { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-btn { background: var(--bg-card); border: 1.5px solid var(--border); color: var(--muted); padding: 8px 20px; border-radius: 100px; font-size: .82rem; font-weight: 600; transition: all .2s; font-family: inherit; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.frames-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.frame-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.frame-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.frame-card.hidden { display: none; }
.frame-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface); }
.frame-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.frame-card:hover .frame-img { transform: scale(1.04); }
.frame-badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; }
.frame-body { padding: 20px; }
.frame-brand { font-size: .72rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.frame-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.frame-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.frame-material { font-size: .78rem; color: var(--muted); }
.frame-price { font-size: .97rem; font-weight: 800; color: var(--primary); }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-img-wrap { aspect-ratio: 3/4; overflow: hidden; }
.team-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.team-card:hover .team-img { transform: scale(1.04); }
.team-body { padding: 20px; }
.team-name { font-size: .97rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.team-title { font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.team-bio { font-size: .8rem; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.team-specialisms { display: flex; flex-wrap: wrap; gap: 5px; }
.specialism-chip { background: var(--primary-light); color: var(--primary); border-radius: 100px; padding: 3px 10px; font-size: .68rem; font-weight: 700; }

/* INSURANCE */
.insurance-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 24px; }
.insurance-chip { display: flex; align-items: center; gap: 7px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; padding: 8px 18px; font-size: .84rem; font-weight: 600; color: var(--text); }
.insurance-chip svg { width: 15px; height: 15px; color: var(--success); }
.insurance-note { text-align: center; color: var(--muted); font-size: .88rem; max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.star-fill { width: 16px; height: 16px; color: #f59e0b; fill: #f59e0b; }
.testimonial-text { font-size: .92rem; color: var(--text); line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; flex-direction: column; gap: 2px; }
.testimonial-author strong { font-size: .88rem; font-weight: 700; color: var(--text); }
.testimonial-author span { font-size: .76rem; color: var(--dim); }

/* FAQ */
.faq-container { max-width: 780px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: .97rem; font-weight: 700; color: var(--text); text-align: left; }
.faq-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding-bottom: 20px; color: var(--muted); font-size: .92rem; line-height: 1.75; }

/* CONTACT */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-block { display: flex; align-items: flex-start; gap: 14px; }
.info-block svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.info-label { font-size: .74rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.info-value { font-size: .92rem; color: var(--text); font-weight: 600; }
a.info-value:hover { color: var(--accent); }
.info-hours h4 { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.hours-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); font-size: .84rem; }
.hours-day { color: var(--muted); }
.hours-time { font-weight: 600; color: var(--text); }
.map-placeholder { background: var(--surface); border: 1.5px dashed var(--border); border-radius: var(--radius); height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--dim); font-size: .84rem; margin-top: 4px; }
.map-placeholder svg { width: 22px; height: 22px; }

/* FORM */
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: .8rem; font-weight: 700; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem; color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58,143,212,.12); }
.form-group textarea { resize: vertical; }
.form-note { text-align: center; font-size: .78rem; color: var(--dim); margin-top: -4px; }

/* FOOTER */
.footer { background: var(--primary); color: rgba(255,255,255,.8); padding-top: 72px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .nav-brand { margin-bottom: 16px; }
.footer-brand .brand-mark { background: rgba(255,255,255,.15); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.5); }
.footer-tagline { font-size: .84rem; line-height: 1.65; max-width: 240px; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.social-link:hover { background: rgba(255,255,255,.2); }
.social-link svg { width: 16px; height: 16px; color: #fff; }
.footer-col h4 { font-size: .75rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 22px 0; text-align: center; font-size: .78rem; color: rgba(255,255,255,.4); }

/* BACK TO TOP */
.back-to-top { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s; z-index: 90; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .frames-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 20px 28px 28px; gap: 4px; box-shadow: var(--shadow-lg); }
  .nav-cta.open { display: block; margin: 8px 28px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .frames-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-badge-float, .hero-badge-float-b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}
