/* ==========================================================
   DDG Medical Centre Ltd. - stylesheet
   Brand: logo sky-blue + red, deepened with navy for contrast
   ========================================================== */
:root {
  --navy: #0a2540;
  --navy-2: #0f3157;
  --blue: #0898d7;
  --blue-600: #0679b0;
  --blue-50: #eaf6fc;
  --red: #e0262b;
  --red-50: #fdecec;
  --ink: #0e1c2b;
  --muted: #5b6b7c;
  --line: #e3e9ef;
  --bg: #f6f9fb;
  --white: #fff;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, .06);
  --shadow: 0 18px 40px -18px rgba(10, 37, 64, .25);
  --shadow-lg: 0 40px 80px -30px rgba(10, 37, 64, .45);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--blue); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.35rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  font-family: inherit;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(8, 152, 215, .8); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.eyebrow--light { color: #9fdcf7; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #3ee08f;
  box-shadow: 0 0 0 0 rgba(62, 224, 143, .7); animation: pulse 2s infinite;
}
.eyebrow:has(.pulse)::before { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(62, 224, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 143, 0); } }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #c4d4e3; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; }
.topbar__item, .topbar__links a { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__links { display: flex; gap: 1.5rem; }
.topbar__links a:hover { color: #fff; }
.topbar svg { color: var(--blue); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo { width: 44px; height: auto; mix-blend-mode: multiply; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.05rem; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.brand__text small { font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.brand--light .brand__logo { mix-blend-mode: normal; background: #fff; border-radius: 12px; padding: 4px; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: #8aa3bb; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { font-weight: 600; font-size: .93rem; color: #33465a; position: relative; padding: .25rem 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--navy); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: .6rem 1.2rem; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(8, 152, 215, .45), transparent 60%),
    radial-gradient(40% 50% at 10% 100%, rgba(224, 38, 43, .22), transparent 60%),
    linear-gradient(180deg, var(--navy), #071a2e);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center;
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(5rem, 9vw, 7.5rem);
}
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); font-weight: 800; margin-bottom: 1.25rem; }
.hero h1 em { color: #7fd3f7; }
.hero__lead { font-size: 1.12rem; color: #c5d6e6; max-width: 34rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.75rem; }
.hero__trust { display: flex; gap: 2.25rem; flex-wrap: wrap; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero__trust li { display: flex; align-items: center; gap: .75rem; }
.hero__trust strong { font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.hero__trust span { font-size: .8rem; color: #9fb5ca; line-height: 1.35; }

.hero__media { position: relative; height: 520px; }
.hero__img { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero__img:hover img { transform: scale(1.05); }
.hero__img--main { inset: 0 18% 22% 0; border: 6px solid rgba(255,255,255,.08); }
.hero__img--a { width: 46%; height: 42%; right: 0; top: 12%; border: 5px solid var(--navy); }
.hero__img--b { width: 52%; height: 38%; right: 6%; bottom: 0; border: 5px solid var(--navy); }
.hero__badge {
  position: absolute; left: -1.5rem; bottom: 9%; display: flex; align-items: center; gap: .8rem;
  background: #fff; color: var(--ink); padding: .9rem 1.2rem .9rem .9rem; border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.hero__badge-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--red-50); color: var(--red); display: grid; place-items: center; font-size: 1.3rem; }
.hero__badge strong { display: block; font-size: .92rem; }
.hero__badge small { color: var(--muted); font-size: .8rem; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--blue); color: #fff; overflow: hidden; padding: 1rem 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span {
  display: inline-flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem;
  font-weight: 700; font-size: 1.05rem; white-space: nowrap; letter-spacing: -.01em;
}
.ticker span::after { content: "✚"; font-size: .8rem; opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.section__head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__head h2, .about h2, .contact h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 800; color: var(--navy); }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section__head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; text-align: left; gap: 2rem; flex-wrap: wrap; }
.section__head--split .eyebrow { justify-content: flex-start; }
.section__head--split h2 { margin: 0; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__media > img { border-radius: var(--radius-lg); aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about__stamp {
  position: absolute; right: -1.5rem; bottom: 2rem; width: 210px;
  background: #fff; border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
}
.about__stamp img { width: 64px; }
.about__stamp span { font-family: var(--serif); font-style: italic; color: var(--red); font-size: .95rem; line-height: 1.35; }
.about__content > p { color: var(--muted); font-size: 1.05rem; }

.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2rem; }
.vm__card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.vm__card:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.vm__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem; }
.vm__icon--red { background: var(--red-50); color: var(--red); }
.vm__card h3 { font-size: 1.15rem; color: var(--navy); }
.vm__card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Leadership ---------- */
.leader { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; position: relative; overflow: hidden; }
.leader::before {
  content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 152, 215, .35), transparent 65%);
}
.leader__grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.leader__photo { position: relative; }
.leader__frame { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
.leader__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(10, 37, 64, .55)); }
.leader__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.leader__photo::before {
  content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 2px solid rgba(127, 211, 247, .35); border-radius: var(--radius-lg); z-index: -1;
}
.leader__exp {
  position: absolute; left: -1.5rem; bottom: 2.5rem; background: var(--red); color: #fff;
  border-radius: var(--radius); padding: 1rem 1.3rem; display: flex; align-items: center; gap: .75rem; box-shadow: var(--shadow-lg);
}
.leader__exp strong { font-size: 2.3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.leader__exp span { font-size: .8rem; line-height: 1.3; font-weight: 600; }
.leader h2 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 800; margin-bottom: .25rem; }
.leader__role { color: #7fd3f7; font-weight: 700; margin-bottom: 1.75rem; }
.leader blockquote {
  margin: 0 0 1.5rem; padding-left: 1.25rem; border-left: 3px solid var(--red);
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.5; color: #fff;
}
.leader__content > p { color: #c5d6e6; font-size: 1.04rem; }
.leader__skills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.leader__skills li {
  padding: .5rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}

/* ---------- Services ---------- */
.services { background: var(--bg); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem;
  position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.svc::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--blue), var(--red));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
  background: var(--blue-50); color: var(--blue); margin-bottom: 1.25rem; transition: background .35s, color .35s, transform .35s var(--ease);
}
.svc:hover .svc__icon { background: var(--blue); color: #fff; transform: rotate(-6deg); }
.svc h3 { font-size: 1.2rem; color: var(--navy); }
.svc p { color: var(--muted); font-size: .95rem; }
.svc__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.svc__tags li { font-size: .74rem; font-weight: 700; color: var(--blue-600); background: var(--blue-50); padding: .25rem .65rem; border-radius: 999px; }
.svc--accent { background: linear-gradient(150deg, var(--red), #b51a1f); border: 0; color: #fff; }
.svc--accent h3, .svc--accent p { color: #fff; }
.svc--accent p { opacity: .9; }
.svc--accent .svc__icon { background: rgba(255,255,255,.18); color: #fff; }
.svc--accent:hover .svc__icon { background: #fff; color: var(--red); }
.svc--accent::before { display: none; }
.svc__link { font-weight: 800; border-bottom: 2px solid rgba(255,255,255,.5); padding-bottom: 2px; }
.svc__link:hover { border-color: #fff; }
.services__extra {
  margin-top: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: #fff; border: 1px dashed #c6d5e2; border-radius: var(--radius); padding: 1.5rem 1.9rem;
}
.services__extra h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: .2rem; }
.services__extra p { margin: 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter {
  font-family: inherit; font-weight: 700; font-size: .88rem; padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: .25s;
}
.filter:hover { color: var(--navy); border-color: #c6d5e2; }
.filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 1rem; }
.g { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: var(--bg); transition: opacity .4s, transform .4s var(--ease); }
.g--wide { grid-column: span 2; }
.g--tall { grid-row: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 37, 64, .8)); opacity: .7; transition: opacity .4s; }
.g figcaption {
  position: absolute; left: 1rem; bottom: .9rem; z-index: 1; color: #fff; font-weight: 700; font-size: .95rem;
  transform: translateY(4px); transition: transform .4s var(--ease);
}
.g:hover img { transform: scale(1.07); }
.g:hover::after { opacity: 1; }
.g:hover figcaption { transform: none; }
.g.is-hidden { display: none; }

/* ---------- Team ---------- */
.team__lead {
  display: flex; align-items: center; gap: 1.75rem; max-width: 760px; margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--blue-50), #fff); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem;
}
.team__lead img { width: 120px; height: 120px; border-radius: 22px; object-fit: cover; object-position: top; flex-shrink: 0; }
.team__lead h3 { font-size: 1.5rem; color: var(--navy); margin: .4rem 0 .3rem; }
.team__lead p { margin: 0; color: var(--muted); font-size: .93rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: #fff; background: var(--red); padding: .25rem .65rem; border-radius: 999px; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.member {
  text-align: center; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.member__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.member:hover .member__photo { transform: scale(1.04); }
.member__body { position: relative; padding: 1.1rem 1rem 1.3rem; background: #fff; border-top: 3px solid var(--blue); }
.member h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: .3rem; }
.member p { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.cta__inner {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-600) 55%, var(--navy) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta__inner::after {
  content: "✚"; position: absolute; right: -2rem; top: -4rem; font-size: 18rem; line-height: 1; color: rgba(255,255,255,.06); pointer-events: none;
}
.cta__inner > div:first-child { max-width: 620px; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta p { color: #dceffa; margin: 0; }
.cta .eyebrow--light { color: #fff; }
.cta__actions { display: flex; gap: .8rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Values ---------- */
.values { background: var(--bg); text-align: center; }
.values__inner { max-width: 820px; }
.values__mark { width: 52px; height: 52px; color: var(--red); margin: 0 auto 1.25rem; }
.values p { font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 700; color: var(--navy); line-height: 1.35; letter-spacing: -.02em; }
.values p em { font-family: var(--serif); font-weight: 500; color: var(--blue); }
.values span { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__info > p { color: var(--muted); font-size: 1.05rem; }
.contact__list { display: grid; gap: 1.25rem; margin-top: 2rem; }
.contact__list li { display: flex; gap: 1rem; }
.ci { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.contact__list strong { color: var(--navy); }
.contact__list p { margin: .15rem 0 0; color: var(--muted); }
.contact__list a { color: var(--ink); font-weight: 600; }
.contact__list a:hover { color: var(--blue); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: .25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 700; color: #33465a; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 500; font-size: .95rem; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
  transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(8, 152, 215, .12); }
.form .is-invalid { border-color: var(--red); background: var(--red-50); }
.form textarea { resize: vertical; }
.form__opt { font-weight: 500; color: var(--muted); }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__status { padding: .85rem 1rem; border-radius: 12px; font-size: .92rem; font-weight: 600; }
.form__status--success { background: #e8f8ef; color: #17693c; border: 1px solid #bfe8cf; }
.form__status--error { background: var(--red-50); color: #a3161a; border: 1px solid #f5c2c3; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form__note { font-size: .8rem; color: var(--muted); margin: 0; text-align: center; }

.map { margin-top: 3.5rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 380px; box-shadow: var(--shadow-sm); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }

/* ---------- Footer ---------- */
.footer { background: #071a2e; color: #8aa3bb; padding: 4.5rem 0 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand p { margin-top: 1rem; max-width: 18rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .55rem; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 15, 28, .92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 2rem; animation: fade .3s;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #fff; margin-top: 1rem; font-weight: 700; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav--prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 1.35rem; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; }

  .hero__inner, .about__grid, .leader__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__media { height: 420px; }
  .hero__badge { left: 1rem; }
  .about__stamp { right: 1rem; }
  .leader__photo { max-width: 440px; margin-inline: auto; width: 100%; }
  .leader__exp { left: 1rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .topbar__item, .topbar__links a:last-child { display: none; }
  .topbar__inner { justify-content: center; }
  .hero__media { height: 340px; }
  .hero__img--b { display: none; }
  .hero__img--main { inset: 0 12% 14% 0; }
  .hero__img--a { width: 48%; height: 46%; top: auto; bottom: 0; }
  .hero__trust { gap: 1.25rem; }
  .vm, .form__row { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g--tall { grid-row: span 2; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .team__lead { flex-direction: column; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .leader__photo::before { display: none; }
  .lightbox__nav { top: auto !important; bottom: 1.25rem; transform: none !important; }
}
