/* --------------------------------------------------
   Riddhi Biotech — premium minimal design system
   -------------------------------------------------- */

:root {
  --navy: #06364c;
  --navy-dark: #042836;
  --navy-deep: #021a25;
  --blue: #0d6f9c;
  --teal: #009d8f;
  --teal-dark: #007e73;
  --teal-glow: rgba(0, 157, 143, 0.45);
  --light-bg: #f2f8fa;
  --white: #ffffff;
  --text: #253d48;
  --muted: #607780;
  --border: #d9e7eb;
  --wa: #1fa855;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-1: 0 2px 6px rgba(5, 57, 75, 0.05);
  --shadow-2: 0 10px 30px rgba(5, 57, 75, 0.08);
  --shadow-3: 0 24px 60px rgba(5, 57, 75, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.55s;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1160px, 90%); margin: 0 auto; }

/* Prevent long scientific labels and form controls from widening grid columns on small screens. */
.hero-text, .hero-visual, .content-column, .workflow-card,
.contact-information, .quote-form, .profile > * { min-width: 0; }
input, select, textarea { max-width: 100%; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--navy-deep);
  color: #cfe6ea;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 8px 0;
}
.topbar-content { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.topbar a { transition: color 0.25s var(--ease); }
.topbar a:hover { color: #7fe3d4; }
.separator { margin: 0 8px; opacity: 0.55; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(217, 231, 235, 0.7);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(217, 231, 235, 0.9);
  box-shadow: 0 10px 30px rgba(5, 57, 75, 0.09);
}

.navbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }

.logo { display: flex; align-items: center; gap: 11px; }
.logo-icon {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  overflow: hidden;
  background: var(--white);
  font-weight: 800; font-size: 14px; letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(0, 157, 143, 0.32);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.logo:hover .logo-icon { transform: rotate(-6deg) scale(1.05); box-shadow: 0 10px 26px var(--teal-glow); }
.logo-main { display: block; color: var(--navy); font-size: 19px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.logo-sub { display: block; color: var(--teal-dark); font-size: 9.5px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  position: relative;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  color: var(--navy);
  font-size: 14px; font-weight: 600;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transform: scaleX(0); transform-origin: left; border-radius: 2px;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--teal-dark); background: rgba(0, 157, 143, 0.07); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--teal-dark); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 44px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--border); border-radius: 11px;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4.5px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-toggle span {
  display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle:hover { border-color: var(--teal); background: rgba(0, 157, 143, 0.07); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em;
  text-align: center; border: 1px solid transparent;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn svg { width: 17px; height: 17px; stroke-width: 1.9; }

/* sheen sweep */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.42) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  box-shadow: 0 8px 22px rgba(0, 157, 143, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px var(--teal-glow);
}

.btn-secondary {
  border-color: rgba(0, 157, 143, 0.5); color: var(--teal-dark); background: rgba(255, 255, 255, 0.7);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--teal); color: var(--white); border-color: var(--teal);
  box-shadow: 0 14px 30px var(--teal-glow);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  transform: translateY(-2px);
  background: var(--white); color: var(--navy); border-color: var(--white);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #23c164, var(--wa));
  color: var(--white);
  box-shadow: 0 8px 22px rgba(31, 168, 85, 0.3);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(31, 168, 85, 0.5); }

.btn:active { transform: translateY(0) scale(0.985); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-weight: 700; color: var(--teal-dark);
}
.text-link svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.text-link:hover svg { transform: translateX(6px); }
.text-link:hover { text-shadow: 0 0 18px rgba(0, 157, 143, 0.45); }

/* ---------- Glass ---------- */

.glass {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 60px rgba(2, 26, 37, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
}

/* ---------- Image placeholders ---------- */

.ph {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(0, 157, 143, 0.1), transparent 55%),
    repeating-linear-gradient(45deg, rgba(6, 54, 76, 0.035) 0 12px, transparent 12px 24px),
    #eef5f7;
  border: 1.5px dashed rgba(6, 54, 76, 0.22);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ph svg { width: 26px; height: 26px; color: rgba(0, 126, 115, 0.65); }
.ph span { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #5b747d; }
.ph small { font-size: 11px; opacity: 0.7; font-weight: 500; letter-spacing: 0.03em; }
.ph:hover { border-color: rgba(0, 157, 143, 0.55); box-shadow: var(--shadow-2); }

.ph-hero { aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); }
.ph-thumb { aspect-ratio: 16 / 9; margin-bottom: 16px; border-radius: var(--radius-sm); }
.ph-thumb svg { width: 20px; height: 20px; }
.ph-thumb span { font-size: 10.5px; }
.ph-wide { aspect-ratio: 16 / 9; margin: 22px 0 26px; }

/* ---------- Real image frames ---------- */

.photo-frame {
  position: relative;
  overflow: hidden;
  background: #dcecef;
  border: 1px solid rgba(6, 54, 76, 0.12);
  box-shadow: var(--shadow-2);
}
.photo-frame img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.photo-frame:hover img { transform: scale(1.035); filter: saturate(1.08); }
.photo-frame.ph-hero { border: 0; }
.photo-frame.ph-thumb { border-style: solid; }
.photo-frame.ph-wide { border-style: solid; }
.about-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(3, 43, 61, 0.985), rgba(9, 102, 138, 0.94)),
    var(--navy-dark);
  color: var(--white);
  padding: 96px 0 108px;
  overflow: hidden;
  isolation: isolate;
}

.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; z-index: -1;
  will-change: transform;
}
.hero-orb-a { width: 460px; height: 460px; top: -140px; right: -90px; background: radial-gradient(circle, rgba(0, 199, 178, 0.75), transparent 68%); }
.hero-orb-b { width: 380px; height: 380px; bottom: -160px; left: -110px; background: radial-gradient(circle, rgba(13, 111, 156, 0.8), transparent 68%); }

.hero-content { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 62px; align-items: center; }

.eyebrow {
  margin: 0 0 14px;
  color: #8ef0e0;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 2.2px; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: 0.85;
}
.eyebrow.dark { color: var(--teal-dark); }
.section-heading .eyebrow::before { display: none; }

.hero h1 {
  margin: 0;
  font-size: clamp(37px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #8ef0e0, #6fd0ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-description {
  max-width: 560px;
  margin: 22px 0 30px;
  color: #d7edf2;
  font-size: 17.5px;
  line-height: 1.6;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 13px; }

.hero-visual { position: relative; will-change: transform; }
.hero-visual .ph-hero {
  box-shadow: 0 32px 80px rgba(1, 17, 26, 0.5);
  background:
    radial-gradient(120% 120% at 25% 0%, rgba(0, 199, 178, 0.18), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 14px, transparent 14px 28px),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}
.hero-visual .ph-hero svg { color: rgba(255, 255, 255, 0.72); width: 34px; height: 34px; }
.hero-visual .ph-hero span { color: rgba(255, 255, 255, 0.85); }
.hero-visual .ph-hero small { color: rgba(255, 255, 255, 0.6); }
.hero-visual .photo-frame.ph-hero img { filter: saturate(0.88) contrast(1.04); }

.hero-card {
  position: relative;
  margin-top: -66px; margin-left: 26px;
  padding: 24px 26px;
  max-width: 400px;
}
.hero-card h3 { margin: 0 0 13px; font-size: 17.5px; letter-spacing: -0.01em; }
.hero-card ul { margin: 0; padding: 0; list-style: none; }
.hero-card li {
  position: relative;
  padding: 5px 0 5px 26px;
  color: #eafafc;
  font-size: 14.5px;
}
.hero-card li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(142, 240, 224, 0.16);
  border: 1.5px solid #8ef0e0;
  box-shadow: 0 0 12px rgba(142, 240, 224, 0.55);
}

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section-light { background: var(--light-bg); }

.section-heading { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}
.section-heading p:not(.eyebrow) { color: var(--muted); margin: 0; font-size: 17px; }

/* ---------- Product cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.product-card {
  position: relative;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.product-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 157, 143, 0.1), transparent 62%);
  transition: opacity 0.4s var(--ease);
}
.product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 157, 143, 0.45);
  box-shadow: 0 22px 46px rgba(5, 57, 75, 0.14), 0 0 0 1px rgba(0, 157, 143, 0.16);
}
.product-card:hover::before { opacity: 1; }
.product-card:hover .ph-thumb { border-color: rgba(0, 157, 143, 0.5); }

.card-tag {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--teal-dark);
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
}
.product-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 17.5px; letter-spacing: -0.015em; }
.product-card p { margin: 0; color: var(--muted); font-size: 13.8px; line-height: 1.55; }

.center-button { margin-top: 40px; text-align: center; }

/* ---------- Two-column ---------- */

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 66px; align-items: center; }
.content-column p { color: var(--muted); margin-top: 0; margin-bottom: 17px; font-size: 16.5px; }

.workflow-card, .about-card { padding: 34px; }
.workflow-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-2);
  position: relative;
}
.workflow-card::before {
  content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  box-shadow: 0 0 16px var(--teal-glow);
}

.workflow-card h3, .about-card h3 { margin-top: 0; color: var(--navy); font-size: 23px; letter-spacing: -0.02em; }

.workflow-item { display: flex; gap: 16px; margin-top: 20px; }
.workflow-item span {
  min-width: 38px; height: 38px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0, 157, 143, 0.14), rgba(13, 111, 156, 0.1));
  color: var(--teal-dark);
  border: 1px solid rgba(0, 157, 143, 0.28);
  border-radius: 12px;
  font-weight: 800; font-size: 13px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.workflow-item:hover span { transform: translateY(-3px); box-shadow: 0 8px 20px var(--teal-glow); }
.workflow-item h4 { margin: 0 0 3px; color: var(--navy); font-size: 16px; }
.workflow-item p { margin: 0; color: var(--muted); font-size: 14px; }

.check-list { padding: 0; margin: 22px 0 0; list-style: none; }
.check-list li {
  position: relative; padding: 8px 0 8px 30px; color: var(--text); font-size: 15.5px;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(0, 157, 143, 0.12);
  border: 1.5px solid var(--teal);
}
.check-list li::after {
  content: ""; position: absolute; left: 4.5px; top: 16px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--teal-dark); border-bottom: 2px solid var(--teal-dark);
  transform: rotate(-45deg);
}

.about-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(230, 247, 244, 0.75));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
}
.about-card p { color: #49636d; font-size: 15.5px; }
.about-card p:last-child { margin-bottom: 0; }

/* ---------- Brands marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 14px; width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-track span {
  padding: 12px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: #35555f;
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}
.marquee-track span:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 157, 143, 0.5);
  color: var(--teal-dark);
  box-shadow: 0 14px 30px rgba(5, 57, 75, 0.12);
}

.brand-note { max-width: 790px; margin: 26px auto 0; text-align: center; color: #72838a; font-size: 12.5px; }

/* ---------- Contact ---------- */

.contact-section {
  position: relative;
  background: linear-gradient(125deg, var(--navy-deep), var(--navy) 65%, #0a4d68);
  color: var(--white);
  overflow: hidden;
}
.contact-section::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  top: -180px; right: -140px; filter: blur(90px); opacity: 0.4;
  background: radial-gradient(circle, rgba(0, 199, 178, 0.6), transparent 70%);
}

.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; position: relative; }
.contact-information h2 { color: var(--white); }
.contact-information > p { color: #d5ecf0; font-size: 16.5px; }

.contact-detail { margin: 20px 0; }
.contact-detail strong {
  display: block; margin-bottom: 3px;
  color: #8ef0e0; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
}
.contact-detail a, .contact-detail p { margin: 0; color: var(--white); font-size: 16px; }
.contact-detail a { border-bottom: 1px solid rgba(255, 255, 255, 0.28); transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.contact-detail a:hover { color: #8ef0e0; border-color: #8ef0e0; }

.contact-cta-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

.quote-form {
  padding: 32px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 34px 80px rgba(1, 17, 26, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.quote-form h3 { margin: 0 0 20px; color: var(--navy); font-size: 24px; letter-spacing: -0.02em; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 6px; color: #39545f; font-size: 13px; font-weight: 700; }

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cbdde2;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  color: var(--text);
  font-family: inherit; font-size: 14.5px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color: #a9c8d0; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 157, 143, 0.14), 0 0 22px rgba(0, 157, 143, 0.14);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.form-button { width: 100%; border: none; margin-top: 4px; padding-top: 15px; padding-bottom: 15px; }
.form-note { margin: 14px 0 0; color: #6a7f86; font-size: 12.5px; text-align: center; }
.form-note a { color: var(--teal-dark); font-weight: 700; }

.form-success {
  display: none;
  padding: 14px 16px; margin-bottom: 16px;
  background: rgba(0, 157, 143, 0.1);
  border: 1px solid rgba(0, 157, 143, 0.4);
  border-radius: var(--radius-sm);
  color: var(--teal-dark); font-size: 14px; font-weight: 600;
}
.form-success.is-visible { display: block; }

/* ---------- Footer ---------- */

.footer { padding: 54px 0 22px; background: var(--navy-deep); color: #c9e1e6; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.8fr 1fr; gap: 50px; }
.footer h3, .footer h4 { margin-top: 0; color: var(--white); }
.footer h3 { font-size: 21px; letter-spacing: -0.02em; }
.footer h4 { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: #8ef0e0; }
.footer p, .footer li { color: #a9c7cf; font-size: 14px; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { transition: color 0.3s var(--ease), transform 0.3s var(--ease); display: inline-block; }
.footer a:hover { color: #8ef0e0; transform: translateX(3px); }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom p { margin: 0; color: #7f9ba4; font-size: 12.5px; }

/* ---------- Floating dock ---------- */

.dock {
  position: fixed; right: 22px; bottom: 22px; z-index: 1200;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.dock.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.dock-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  color: #fff; font-size: 14px; font-weight: 700;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 14px 34px rgba(2, 26, 37, 0.32);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
}
.dock-btn svg { width: 19px; height: 19px; }
.dock-btn:hover { transform: translateY(-3px) scale(1.03); }

.dock-wa { background: linear-gradient(135deg, #23c164, var(--wa)); box-shadow: 0 14px 34px rgba(31, 168, 85, 0.42); }
.dock-wa:hover { box-shadow: 0 20px 44px rgba(31, 168, 85, 0.6); }
.dock-contact { background: linear-gradient(135deg, rgba(6, 54, 76, 0.92), rgba(0, 126, 115, 0.92)); }

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.09s; }
[data-reveal-delay="2"] { transition-delay: 0.18s; }
[data-reveal-delay="3"] { transition-delay: 0.27s; }

/* ---------- About page ---------- */

.page-hero {
  position: relative;
  background: linear-gradient(115deg, rgba(3, 43, 61, 0.985), rgba(9, 102, 138, 0.94)), var(--navy-dark);
  color: #fff;
  padding: 78px 0 84px;
  overflow: hidden;
}
.page-hero h1 {
  margin: 0; max-width: 820px;
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.035em;
}
.page-hero h1 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, #8ef0e0, #6fd0ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.page-hero p:not(.eyebrow) { max-width: 640px; color: #d7edf2; font-size: 17.5px; margin-top: 18px; }

.prose-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-2);
}
.prose-card h3 { margin-top: 0; color: var(--navy); font-size: 22px; letter-spacing: -0.02em; }
.prose-card p { color: var(--muted); font-size: 16px; }
.prose-card p:last-child { margin-bottom: 0; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.stat {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: rgba(0, 157, 143, 0.4); }
.stat strong { display: block; color: var(--navy); font-size: 27px; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 14px; }

.profile { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 46px; align-items: center; }
.profile .ph { aspect-ratio: 4 / 5; }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content, .two-column, .contact-layout, .profile { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 84px; }
  .nav-toggle { display: flex; }
  .nav-button { display: none; }

  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 5%; right: 5%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 26px 60px rgba(5, 57, 75, 0.18);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    z-index: 1100;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 15px; border-radius: 10px; font-size: 15px; }
  .nav-links a::after { display: none; }

  .hero { padding: 68px 0 78px; }
  .section { padding: 62px 0; }
  .hero-card { margin: -40px 0 0; max-width: none; }
  .dock { right: 14px; bottom: 14px; }
  .dock-btn span { display: none; }
  .dock-btn { padding: 14px; border-radius: 50%; }
}

@media (max-width: 740px) {
  .topbar-content > span:first-child { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 520px) {
  .topbar-content { display: block; text-align: center; }
  .topbar-content > span { display: block; margin: 3px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 33px; }
  .hero-description { font-size: 16px; }
  .logo-main { font-size: 17px; }
  .quote-form, .workflow-card, .about-card, .prose-card { padding: 22px; }
  .hero-buttons .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- 3-up card grid (overrides .card-grid breakpoints) ---------- */

.card-grid.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1040px) { .card-grid.card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 740px) { .card-grid.card-grid-3 { grid-template-columns: 1fr; } }
