/* =========================================================
   Adal Eye Clinic — brand-matched light theme
   Blue + white, friendly-clinical, conversion-first.
   Matches the logo/flyer identity. WCAG-AA contrast.
   ========================================================= */

:root {
  /* Brand blues (from logo) */
  --navy:   #14377D;
  --navy-d: #0E2A63;
  --blue:   #1F56C4;
  --blue-2: #2E6BD6;
  --blue-3: #3D7BE0;

  /* Light surfaces */
  --bg:     #FFFFFF;
  --sky:    #F2F7FF;
  --sky-2:  #E4EEFF;
  --tint:   #EAF1FF;

  /* Text */
  --ink:    #142036;   /* AA on white */
  --slate:  #4C5C77;
  --muted:  #71819B;

  /* Accents */
  --sun:    #FFB836;   /* warm "smile" accent, used sparingly */
  --sun-d:  #E89A12;
  --teal:   #1FB6A6;
  --green:  #16A37B;

  --line:   #DBE5F4;
  --line-2: #C9D8F0;

  /* Type */
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;

  /* Metrics */
  --max:      1200px;
  --radius:   22px;
  --radius-s: 14px;
  --header-h: 74px;
  --shadow:   0 18px 44px rgba(20, 55, 125, 0.10);
  --shadow-s: 0 8px 22px rgba(20, 55, 125, 0.08);
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--navy);
}

.eyebrow {
  font-family: var(--body);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--blue); border-radius: 2px; }

.lead { font-size: 1.2rem; color: var(--slate); line-height: 1.55; }
.muted { color: var(--muted); }

.container { width: min(100% - 3rem, var(--max)); margin-inline: auto; position: relative; }
.section { padding: clamp(3.2rem, 7vw, 6.5rem) 0; }
.bg-sky { background: var(--sky); }
.bg-navy { background: linear-gradient(135deg, var(--navy), var(--navy-d)); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .lead { color: #C6D6F2; }

/* ---------- Top info banner ---------- */
.topbar {
  background: linear-gradient(90deg, var(--navy), var(--navy-d));
  color: #DCE7FB; font-size: .82rem; position: relative; z-index: 60;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #DCE7FB; transition: color .2s var(--ease); }
.topbar a:hover { color: #fff; }
.topbar .tb-group { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar svg { width: 14px; height: 14px; flex: none; color: var(--sun); }

/* ---------- Sticky header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(20,55,125,0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand svg { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--navy); }
.brand-slogan { font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: .55rem .9rem; border-radius: 999px; font-weight: 600; font-size: .98rem; color: var(--slate); transition: color .2s var(--ease), background .2s var(--ease); }
.nav-links a:hover { color: var(--navy); background: var(--tint); }
.nav-links a.active { color: var(--navy); background: var(--sky-2); }

.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body); font-size: .98rem; font-weight: 700;
  padding: .8rem 1.35rem; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--blue-2), var(--navy)); color: #fff; box-shadow: 0 10px 24px rgba(31,86,196,0.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31,86,196,0.40); }
.btn-wa { background: #25D366; color: #06301a; box-shadow: 0 10px 24px rgba(37,211,102,0.28); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37,211,102,0.4); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.btn svg { width: 17px; height: 17px; }

.nav-toggle { display: none; background: #fff; border: 1px solid var(--line-2); border-radius: 11px; width: 44px; height: 44px; cursor: pointer; color: var(--navy); align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky), #fff); }
.hero::before {
  content:""; position:absolute; top:-180px; right:-140px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(46,107,214,0.12), transparent 62%); pointer-events:none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); max-width: 14ch; }
.hero h1 .hl { color: var(--blue); position: relative; }
.hero h1 .hl::after { content:""; position:absolute; left:0; right:0; bottom:.06em; height:.16em; background: var(--sun); opacity:.5; border-radius:4px; z-index:-1; }
.hero p.lead { margin: 1.2rem 0 1.8rem; max-width: 46ch; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.6rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-trust .t { display: flex; flex-direction: column; }
.hero-trust .t b { font-family: var(--display); font-size: 1.5rem; color: var(--navy); line-height: 1; }
.hero-trust .t span { font-size: .82rem; color: var(--muted); margin-top: .25rem; }

.hero-media { position: relative; }
.hero-photo {
  border-radius: 28px 28px 28px 90px; overflow: hidden;
  box-shadow: var(--shadow); border: 6px solid #fff; position: relative; z-index: 2;
  aspect-ratio: 4/5; background: var(--sky-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content:""; position:absolute; inset: 24px -24px -24px 24px; border-radius: 28px 28px 28px 90px; background: linear-gradient(135deg, var(--blue-2), var(--navy)); z-index: 1; opacity: .14; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; z-index: 3;
  background: #fff; border-radius: 16px; padding: .85rem 1.1rem; box-shadow: var(--shadow-s);
  display: flex; align-items: center; gap: .7rem; max-width: 230px;
}
.hero-badge .dot { width: 38px; height: 38px; border-radius: 11px; background: var(--sky-2); color: var(--blue); display: grid; place-items: center; flex: none; }
.hero-badge .dot svg { width: 20px; height: 20px; }
.hero-badge b { display: block; font-size: .92rem; color: var(--navy); font-weight: 800; }
.hero-badge span { font-size: .78rem; color: var(--muted); }

/* ---------- 3 steps strip ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step { display: flex; gap: .9rem; align-items: flex-start; padding: 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); }
.step .n { width: 34px; height: 34px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--blue-2), var(--navy)); color: #fff; font-family: var(--display); font-weight: 800; display: grid; place-items: center; }
.step b { font-family: var(--display); color: var(--navy); display: block; margin-bottom: .15rem; }
.step p { margin: 0; font-size: .96rem; color: var(--slate); }

/* ---------- Section heads ---------- */
.section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card.feature { border: 2px solid var(--blue); box-shadow: var(--shadow-s); }
.card.feature::before { content:"Most booked"; position:absolute; top:-11px; left:1.5rem; background: var(--sun); color:#3a2a00; font-size:.68rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; padding:.25rem .6rem; border-radius:999px; }
.card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-2); color: var(--blue); margin-bottom: 1rem; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.32rem; }
.card p { color: var(--slate); margin: .35rem 0 0; font-size: 1rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.media-left { grid-template-columns: .95fr 1.05fr; }
.media-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; aspect-ratio: 4/5; background: var(--sky-2); }
.media-img.wide { aspect-ratio: 4/3; }
.media-img img { width: 100%; height: 100%; object-fit: cover; }

.checklist { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; color: var(--slate); }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 2px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius-s); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); }
.stat .num { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: #fff; line-height: 1; }
.stat .lab { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: #B9CBEC; margin-top: .5rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue-2), var(--navy)); border-radius: calc(var(--radius) + 8px); padding: clamp(2.2rem, 5vw, 3.8rem); text-align: center; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.cta-band::before { content:""; position:absolute; width: 420px; height: 420px; left:-120px; bottom:-180px; background: radial-gradient(circle, rgba(255,184,54,0.25), transparent 65%); }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.cta-band .lead { color: #D6E2F7; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--sky); border: 1.5px solid var(--line-2); border-radius: var(--radius-s);
  padding: .85rem 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa9c0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,86,196,0.15); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%234C5C77' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { display: none; margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-s); background: #E7F7F0; border: 1px solid #A9E2CC; color: #0f7a55; }
.form-success.show { display: block; }

/* ---------- Contact info ---------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ico { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--sky-2); color: var(--blue); }
.info-list .ico svg { width: 21px; height: 21px; }
.info-list b { display: block; font-family: var(--display); color: var(--navy); }
.info-list span, .info-list a { color: var(--slate); }
.info-list a:hover { color: var(--blue); }

.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .68rem 0; border-bottom: 1px solid var(--line); color: var(--slate); }
.hours td:last-child { text-align: right; color: var(--ink); font-weight: 600; }
.hours tr:last-child td { border-bottom: none; }
.closed { color: #C24A4A; }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(135deg, var(--navy), var(--navy-d)); color: #C6D6F2; padding: 3.4rem 0 2rem; }
.footer .brand-name { color: #fff; }
.footer h4 { font-family: var(--body); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8FA8D6; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { color: #C6D6F2; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: .7rem; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.2); transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease); color:#fff; }
.socials a:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8FA8D6; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #06301a; box-shadow: 0 10px 26px rgba(37,211,102,0.45); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content:"Book"; position:absolute; right:70px; background:#fff; color:var(--navy); font-weight:700; font-size:.82rem; padding:.4rem .7rem; border-radius:8px; box-shadow:var(--shadow-s); white-space:nowrap; opacity:0; transform:translateX(6px); transition:opacity .2s, transform .2s; pointer-events:none; }
.wa-float:hover::after { opacity:1; transform:translateX(0); }

/* Page hero (interior) */
.page-hero { background: linear-gradient(180deg, var(--sky), #fff); padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; top:-160px; right:-120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(46,107,214,0.10), transparent 62%); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--blue); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin-inline: auto; order: -1; }
  .split, .split.media-left { grid-template-columns: 1fr; }
  .media-img { order: -1; max-width: 480px; margin-inline: auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: calc(var(--header-h) - 2px); left: 0; right: 0; background: #fff; padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--line); gap: .2rem; box-shadow: var(--shadow-s); }
  .nav-links.open a { padding: .85rem 1rem; }
  .topbar .tb-group.secondary { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .hero-trust { gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
