/* ==========================================================================
   One Optics — site stylesheet
   Brand: primary blue #396cca, navy #16233f
   ========================================================================== */

:root {
  --blue: #396cca;
  --blue-dark: #2b55a5;
  --blue-light: #eaf0fb;
  --navy: #16233f;
  --navy-soft: #1f3054;
  --ink: #232a35;
  --text: #46505e;
  --muted: #7b8494;
  --line: #e3e8ef;
  --bg-soft: #f5f8fc;
  --white: #ffffff;
  --green: #1e8e5a;
  --green-light: #e7f6ee;
  --amber: #b97324;
  --amber-light: #fdf3e4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 35, 63, 0.10);
  --shadow-soft: 0 4px 14px rgba(22, 35, 63, 0.07);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 600; }

h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container { width: min(1140px, 92%); margin-inline: auto; }

.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #c6d0e2; }

.section-intro { max-width: 720px; }
.section-intro p { margin-top: 0.75rem; }

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
  font-family: inherit;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }

.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--white); }

.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { color: var(--blue); }

.btn--ghost-white { border-color: rgba(255,255,255,0.7); color: var(--white); background: transparent; }
.btn--ghost-white:hover { background: var(--white); color: var(--navy); }

.btn--lg { padding: 0.95rem 2.2rem; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0.7rem 0;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 74px; height: auto; }

.main-nav ul { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.main-nav a {
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--blue); border-bottom-color: var(--blue);
}

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-weight: 600; color: var(--navy); font-size: 0.95rem; white-space: nowrap; }
.header-phone:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 0.4rem;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; margin: 5px 0;
  background: var(--navy); border-radius: 2px; transition: 0.25s;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(57,108,202,0.35), transparent 60%),
    linear-gradient(140deg, var(--navy) 0%, #1c3059 55%, #24417a 100%);
  color: var(--white);
  padding: 5rem 0 5.5rem;
}

.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }

.hero h1 { color: var(--white); margin-bottom: 1.1rem; }
.hero p.lead { color: #cdd8ea; font-size: 1.12rem; max-width: 560px; margin-bottom: 2rem; }

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

.hero-badges { display: flex; gap: 1.4rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 0.5rem; color: #cdd8ea; font-size: 0.9rem; font-weight: 500; }
.hero-badge svg { flex: none; }

.hero-photo img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  object-fit: cover; width: 100%; max-height: 430px;
}

/* --------------------------------------------------------------------------
   Cards / service boxes
   -------------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.5rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 1.2rem;
}

.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.95rem; margin-bottom: 0.6rem; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card p:last-of-type { margin-bottom: 1.4rem; }

/* --------------------------------------------------------------------------
   Split sections (text + photo)
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split--narrow-img { grid-template-columns: 1.15fr 0.85fr; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split h2 { margin-bottom: 1rem; }
.split p + p { margin-top: 0.9rem; }

/* Tick lists */
.tick-list { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.tick-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.tick-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
  margin-top: 0.2rem;
}
.section--navy .tick-list li { color: #c6d0e2; }

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.5rem; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; box-shadow: var(--shadow-soft); position: relative;
}
.step-number {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.93rem; }

/* --------------------------------------------------------------------------
   Video + media placeholders
   -------------------------------------------------------------------------- */
.video-embed { max-width: 860px; margin: 2.5rem auto 0; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(140deg, var(--navy) 0%, #24417a 100%);
  display: grid; place-items: center;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.video-placeholder { text-align: center; color: #cdd8ea; padding: 1rem; }
.video-placeholder .play-circle {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.14);
  border: 2px solid rgba(255,255,255,0.6); display: grid; place-items: center; margin: 0 auto 1rem;
}
.video-caption { text-align: center; margin-top: 1rem; font-weight: 500; color: var(--ink); }

/* --------------------------------------------------------------------------
   Quiz (NHS eligibility)
   -------------------------------------------------------------------------- */
.quiz {
  max-width: 720px; margin: 2.5rem auto 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.2rem clamp(1.2rem, 4vw, 2.6rem);
}

.quiz-progress { margin-bottom: 1.6rem; }
.quiz-progress-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 0.5rem; }
.quiz-bar { height: 8px; background: var(--blue-light); border-radius: 999px; overflow: hidden; }
.quiz-bar-fill { height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width 0.3s ease; }

.quiz-question h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.quiz-reassure { font-style: italic; color: var(--muted); font-size: 0.92rem; margin-bottom: 1.6rem; }

.quiz-answers { display: flex; gap: 1rem; flex-wrap: wrap; }
.quiz-answers .btn { min-width: 130px; font-size: 1.05rem; padding: 0.9rem 2rem; }

.quiz-back {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-family: inherit; font-size: 0.88rem; margin-top: 1.4rem; padding: 0;
}
.quiz-back:hover { color: var(--blue); }

.quiz-result { text-align: center; padding: 1rem 0 0.4rem; }
.quiz-result-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.2rem;
  display: grid; place-items: center; font-size: 1.8rem;
}
.quiz-result--success .quiz-result-icon { background: var(--green-light); color: var(--green); }
.quiz-result--info .quiz-result-icon { background: var(--blue-light); color: var(--blue); }
.quiz-result--warm .quiz-result-icon { background: var(--amber-light); color: var(--amber); }
.quiz-result h3 { margin-bottom: 0.8rem; }
.quiz-result p { max-width: 520px; margin: 0 auto 1.5rem; }
.quiz-result .btn { margin: 0.2rem; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-wrap {
  max-width: 760px; margin: 2.5rem auto 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.4rem clamp(1.2rem, 4vw, 2.8rem);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field--full { grid-column: 1 / -1; }

.form-field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.4rem; }
.form-field .required { color: #c0392b; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 0.97rem; color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(57,108,202,0.15);
}

.checkbox-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; padding-top: 0.2rem; }
.checkbox-row label {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 500; font-size: 0.93rem; color: var(--text); margin: 0; cursor: pointer;
}
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--blue); }

.form-actions { margin-top: 1.6rem; text-align: center; }
.form-actions .btn { width: 100%; max-width: 340px; }

.form-note { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }

.form-success {
  text-align: center; padding: 2.5rem 1rem;
}
.form-success .quiz-result-icon { background: var(--green-light); color: var(--green); }
.form-success h3 { margin-bottom: 0.6rem; }

.form-error {
  display: none; margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 10px;
  background: #fdecea; color: #b03a2e; font-size: 0.92rem; text-align: center;
}

/* --------------------------------------------------------------------------
   Testimonials & reviews
   -------------------------------------------------------------------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.5rem; }

.testimonial {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.stars { color: #f5a623; letter-spacing: 0.15em; margin-bottom: 0.9rem; font-size: 1rem; }
.testimonial blockquote { font-size: 0.95rem; flex: 1; }
.testimonial footer { margin-top: 1.2rem; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.testimonial-logo { height: 42px; width: auto; margin: 1rem auto 0; border-radius: 6px; }

.reviews-cta { text-align: center; margin-top: 2.4rem; }

/* --------------------------------------------------------------------------
   Brands
   -------------------------------------------------------------------------- */
.brands-strip {
  display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; justify-content: center; margin-top: 2.4rem;
}
.brand-chip {
  padding: 0.65rem 1.5rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-weight: 600; color: var(--navy); font-size: 0.95rem;
  letter-spacing: 0.04em; box-shadow: var(--shadow-soft);
}

.brand-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.brand-photos img { border-radius: var(--radius); box-shadow: var(--shadow-soft); aspect-ratio: 4/3; object-fit: cover; }

/* --------------------------------------------------------------------------
   Charity band
   -------------------------------------------------------------------------- */
.charity-band {
  background: linear-gradient(140deg, var(--navy) 0%, #24417a 100%);
  border-radius: var(--radius); color: var(--white);
  padding: clamp(2rem, 5vw, 3.4rem);
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center;
  box-shadow: var(--shadow);
}
.charity-band .heart {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,0.12); display: grid; place-items: center; font-size: 2rem;
}
.charity-band h2 { color: var(--white); margin-bottom: 0.7rem; }
.charity-band p { color: #cdd8ea; max-width: 760px; }
.charity-band img { margin-top: 1.6rem; border-radius: 10px; width: 100%; max-width: 400px; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; margin-top: 2.5rem; }

.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 2rem 1.8rem;
}
.contact-card + .contact-card { margin-top: 1.5rem; }

.contact-list { list-style: none; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list .ico {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-light); color: var(--blue); display: grid; place-items: center;
}
.contact-list strong { display: block; color: var(--ink); font-size: 0.9rem; }
.contact-list a, .contact-list span.val { font-size: 0.97rem; }

.social-labels { list-style: none; display: grid; gap: 0.8rem; }
.social-labels a { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; color: var(--ink); }
.social-labels a:hover { color: var(--blue); }
.social-labels .ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--blue-light); color: var(--blue); display: grid; place-items: center;
}

.map-embed { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #b9c4d8; margin-top: 4rem; }

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem; padding: 3.5rem 0 2.5rem;
}

.footer-brand-name { font-size: 1.35rem; font-weight: 700; color: var(--white); letter-spacing: 0.02em; }
.footer-brand-name span { color: #7fa4e6; }
.footer-tagline { font-size: 0.92rem; margin: 0.7rem 0 1.2rem; }

.site-footer h4 {
  color: var(--white); font-size: 0.95rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.92rem; }
.site-footer a { color: #b9c4d8; }
.site-footer a:hover { color: var(--white); }

.footer-contact li { display: flex; gap: 0.6rem; align-items: baseline; }

.social-icons { display: flex; gap: 0.8rem; margin-top: 0.4rem; }
.social-icons a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #d8e0ee;
  transition: background 0.15s ease, color 0.15s ease;
}
.social-icons a:hover { background: var(--blue); color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.4rem 0; font-size: 0.85rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* Action A10 — visible small light-grey SEO location text */
.footer-seo-text {
  padding: 0 0 1.8rem;
  font-size: 0.72rem;          /* ~9.5pt */
  line-height: 1.6;
  color: #8791a3;              /* light grey — visible, per Google guidelines */
}

/* --------------------------------------------------------------------------
   Mobile sticky click-to-call bar (Action A9)
   -------------------------------------------------------------------------- */
.sticky-call {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--blue); color: var(--white);
  text-align: center; padding: 0.9rem 1rem;
  font-weight: 600; font-size: 1.02rem;
  box-shadow: 0 -4px 16px rgba(22,35,63,0.25);
}
.sticky-call a {
  color: var(--white); display: inline-flex; align-items: center; gap: 0.6rem; justify-content: center;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(57,108,202,0.35), transparent 60%),
    linear-gradient(140deg, var(--navy) 0%, #1c3059 60%, #24417a 100%);
  color: var(--white); padding: 3.6rem 0;
}
.page-hero h1 { color: var(--white); max-width: 800px; }
.page-hero p { color: #cdd8ea; max-width: 720px; margin-top: 1rem; font-size: 1.05rem; }
.page-hero .btn { margin-top: 1.6rem; }

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */
.center { text-align: center; }
.center .section-intro { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }

.review-btn-row { margin-top: 1.8rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .card-grid, .steps, .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 520px; }
  .split, .split--narrow-img { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-photos { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none; padding: 1rem 4%;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 0.7rem 0.2rem; border-bottom: 0; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
}

@media (max-width: 768px) {
  .sticky-call { display: block; }
  body { padding-bottom: 64px; }   /* keep footer clear of the call bar */
  .section { padding: 3.2rem 0; }
}

@media (max-width: 620px) {
  .card-grid, .steps, .testimonial-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .charity-band { grid-template-columns: 1fr; text-align: center; }
  .charity-band .heart { margin-inline: auto; }
  .charity-band img { margin-inline: auto; }
  .header-cta .btn { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
  .quiz-answers .btn { flex: 1; }
}
