/* ==========================================================================
   Medical TEACare — Design System
   ========================================================================== */

:root {
  /* Brand palette, drawn from the logo and folder */
  --blue-900: #0a2f5c;
  --blue-800: #0d3d74;
  --blue-700: #114f92;
  --blue-600: #1663b3;
  --blue-500: #2478cf;
  --blue-100: #e4eef9;
  --blue-50:  #f2f7fc;

  --red-600: #d1273d;
  --red-500: #e63950;

  --yellow-500: #f2b705;

  --ink-900: #101c2c;
  --ink-700: #2c3a4d;
  --ink-500: #5b6b80;
  --ink-300: #9aa8ba;

  --paper: #fdfdfc;
  --paper-alt: #eaf0f7;
  --paper-deep: #dfe9f3;
  --line: #e5e9ee;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Kaushan Script", cursive;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6.5rem;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 3px 14px rgba(10, 47, 92, 0.1), 0 1px 3px rgba(10, 47, 92, 0.06);
  --shadow-md: 0 16px 38px rgba(10, 47, 92, 0.16), 0 4px 10px rgba(10, 47, 92, 0.08);
  --shadow-lg: 0 30px 70px rgba(10, 47, 92, 0.22), 0 10px 20px rgba(10, 47, 92, 0.1);
  --shadow-red: 0 10px 26px rgba(209, 39, 61, 0.28);

  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 780px) {
  .container { padding-inline: var(--space-5); }
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red-500);
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--blue-900);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem); }

.section-head {
  max-width: 640px;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--ink-500);
  margin-top: var(--space-3);
  line-height: 1.65;
}

.section-head.centered {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .eyebrow::before { display: none; }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 19px; height: 19px; flex-shrink: 0; }

.btn-primary {
  background: var(--red-600);
  color: #fff;
  box-shadow: 0 10px 24px rgba(209, 39, 61, 0.32);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.35) 38%, transparent 55%);
  background-size: 220% 100%;
  background-position: 120% 0;
  animation: btn-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shine {
  0%, 55% { background-position: 120% 0; }
  85%, 100% { background-position: -20% 0; }
}

.btn-primary:hover {
  background: var(--red-500);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(209, 39, 61, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-800);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--blue-600);
  color: var(--blue-700);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--blue-800);
}

.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 253, 252, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(16, 28, 44, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: var(--space-3);
}

@media (max-width: 599px) {
  .site-header .container { height: auto; padding-block: 0.7rem; }
  .brand img { height: 46px; }
  .header-actions { gap: 0.6rem; }
  .header-actions .btn-primary { padding: 0.75em 0.9em; }
  .header-actions .btn-primary .btn-label { display: none; }
  .header-actions .btn-primary svg { width: 20px; height: 20px; }
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img { height: 60px; width: auto; }

.main-nav {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-700);
  position: relative;
  padding-block: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red-500);
  transition: width 0.25s var(--ease);
}

.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fff;
}

.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  padding: 0.85rem 0.3rem;
  font-weight: 600;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--paper-alt);
}

.mobile-nav .btn { margin-top: var(--space-2); }

@media (min-width: 960px) { .mobile-nav { display: none !important; } }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  padding-block: var(--space-7) var(--space-8);
  background:
    radial-gradient(ellipse 800px 500px at 82% -10%, var(--blue-100), transparent 60%),
    var(--paper);
  overflow: hidden;
}

.hero .container {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 940px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-7); }
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.4rem);
  margin-bottom: var(--space-4);
}

.hero-copy h1 em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  color: var(--red-600);
}

.hero-copy > p {
  font-size: 1.12rem;
  color: var(--ink-500);
  max-width: 46ch;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.trust-row {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 520px) {
  .trust-row { grid-template-columns: repeat(3, auto); }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
}

.trust-item .icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-item svg { width: 17px; height: 17px; }

.hero-visual { position: relative; }

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-blob {
  position: absolute;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  z-index: -1;
}

.hero-blob-1 {
  width: 320px;
  height: 320px;
  background: var(--blue-100);
  top: -60px;
  right: -60px;
  animation: blob-drift-1 9s ease-in-out infinite;
}

.hero-blob-2 {
  width: 160px;
  height: 160px;
  background: rgba(230, 57, 80, 0.14);
  bottom: -40px;
  left: -30px;
  animation: blob-drift-2 7s ease-in-out infinite;
}

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.08); }
}

@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -14px) scale(1.12); }
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-card {
  position: absolute;
  right: -8%;
  top: -6%;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-md);
  animation: card-float 4.5s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 240px;
}

.floating-card .icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-card svg { width: 20px; height: 20px; }

.floating-card strong {
  display: block;
  font-size: 0.86rem;
  color: var(--blue-900);
  line-height: 1.3;
}

.floating-card span {
  font-size: 0.74rem;
  color: var(--ink-500);
}

@media (max-width: 560px) {
  .floating-card { right: 4%; top: -18px; }
}

/* -------------------------------------------------------------------------
   Values strip
   ------------------------------------------------------------------------- */
.values-strip {
  background: var(--blue-900);
  padding-block: var(--space-5);
}

.values-strip .container {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .values-strip .container { grid-template-columns: repeat(4, 1fr); }
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
}

.value-item .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #cfe0f5;
}

.value-item svg { width: 21px; height: 21px; }

.value-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.value-item span {
  font-size: 0.78rem;
  color: #a9c1de;
}

/* -------------------------------------------------------------------------
   Empathy / quote section
   ------------------------------------------------------------------------- */
.empathy {
  padding-block: var(--space-8);
  text-align: center;
  background:
    radial-gradient(ellipse 700px 400px at 50% 0%, var(--blue-50), transparent 65%),
    var(--paper);
}

.empathy .eyebrow { justify-content: center; }
.empathy .eyebrow::before { display: none; }

.empathy h2 {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
}

.empathy p {
  max-width: 640px;
  margin: var(--space-4) auto 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-500);
}

/* -------------------------------------------------------------------------
   Services grid
   ------------------------------------------------------------------------- */
.services {
  padding-block: var(--space-8);
  background:
    radial-gradient(ellipse 900px 520px at 12% 0%, var(--blue-100), transparent 60%),
    var(--paper-alt);
}

.services-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

@media (min-width: 860px) {
  .services-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .services-head .btn { flex-shrink: 0; }
}

.service-grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-item {
  background: #fff;
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-md);
  display: flex;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 47, 92, 0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-item .icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--blue-600), var(--blue-800));
  color: #fff;
  box-shadow: 0 6px 14px rgba(17, 79, 146, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.service-item:hover .icon-badge { transform: scale(1.1) rotate(-4deg); }

.service-item svg { width: 18px; height: 18px; }

.service-item h3 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.25rem;
}

.service-item p {
  font-size: 0.88rem;
  color: var(--ink-500);
  line-height: 1.55;
}

/* -------------------------------------------------------------------------
   Split sections (TEA, Family CTA)
   ------------------------------------------------------------------------- */
.split {
  padding-block: var(--space-8);
}

#tea {
  background:
    radial-gradient(ellipse 800px 500px at 90% 100%, var(--blue-50), transparent 60%),
    var(--paper);
}

.split .container {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 940px) {
  .split .container { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
  .split.reverse .container > .split-visual { order: 2; }
}

.split-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 4;
}

.split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-copy p {
  font-size: 1.05rem;
  color: var(--ink-500);
  line-height: 1.75;
  margin-top: var(--space-3);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-5);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5em 1.05em;
  border-radius: var(--radius-pill);
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 700;
  font-size: 0.85rem;
}

.pill svg { width: 15px; height: 15px; }

/* -------------------------------------------------------------------------
   Differentiators
   ------------------------------------------------------------------------- */
.differentiators {
  padding-block: var(--space-8);
  background:
    radial-gradient(ellipse 900px 520px at 88% 0%, var(--blue-100), transparent 60%),
    var(--paper-alt);
}

.pillar-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 620px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .pillar-grid { grid-template-columns: repeat(4, 1fr); }
}

.pillar-card {
  background: #fff;
  border: 1px solid rgba(10, 47, 92, 0.05);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.pillar-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.pillar-card .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--blue-700), var(--blue-900));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  box-shadow: 0 8px 18px rgba(10, 47, 92, 0.3);
  transition: transform 0.4s var(--ease);
}

.pillar-card:hover .icon-badge { transform: scale(1.1) rotate(-5deg); }

.pillar-card svg { width: 24px; height: 24px; }

.pillar-card h3 { margin-bottom: 0.5rem; }

.pillar-card p {
  font-size: 0.92rem;
  color: var(--ink-500);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   About / mission
   ------------------------------------------------------------------------- */
.about { padding-block: var(--space-8); }

.about .container {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .about .container { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); align-items: center; }
}

.about-mission {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.7rem);
  color: var(--blue-900);
  line-height: 1.35;
  border-left: 3px solid var(--red-500);
  padding-left: var(--space-4);
}

.about-copy p {
  font-size: 1.05rem;
  color: var(--ink-500);
  line-height: 1.75;
}

/* -------------------------------------------------------------------------
   Family CTA split
   ------------------------------------------------------------------------- */
.family-cta { background: var(--blue-50); }

.family-cta .split-copy p { margin-bottom: var(--space-5); }

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */
.faq { padding-block: var(--space-8); background: var(--paper-alt); }

.faq-list {
  max-width: 760px;
  margin: var(--space-6) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid rgba(10, 47, 92, 0.05);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}

.faq-item.is-open { box-shadow: var(--shadow-md); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-900);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--red-600);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item.is-open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-answer-inner {
  padding: 0 var(--space-4) var(--space-4);
  font-size: 0.95rem;
  color: var(--ink-500);
  line-height: 1.65;
}

/* -------------------------------------------------------------------------
   Final CTA
   ------------------------------------------------------------------------- */
.final-cta {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-800) 60%, #0b3a6f);
  background-size: 180% 180%;
  animation: gradient-drift 12s ease-in-out infinite;
  padding-block: var(--space-8);
  position: relative;
  overflow: hidden;
}

@keyframes gradient-drift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08), transparent 45%);
}

.final-cta .container {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.final-cta h2 { color: #fff; margin-bottom: var(--space-3); }

.final-cta p {
  color: #c7d9ef;
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.final-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.final-meta-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #dbe7f6;
  font-size: 0.92rem;
  font-weight: 600;
}

.final-meta-item svg { width: 18px; height: 18px; color: var(--yellow-500); flex-shrink: 0; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: #071f3d;
  color: #9fb4cd;
  padding-block: var(--space-6) var(--space-5);
}

.footer-top {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-5);
}

@media (min-width: 780px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
}

.footer-brand { display: flex; align-items: center; margin-bottom: var(--space-3); }
.footer-brand img { height: 58px; }

.footer-col p { font-size: 0.9rem; line-height: 1.6; max-width: 30ch; }

.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.footer-contact-item svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--red-500); }

.footer-social { display: flex; gap: 0.6rem; margin-top: var(--space-3); }

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease);
}

.footer-social a:hover { background: var(--red-600); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.8rem;
}

/* -------------------------------------------------------------------------
   Floating WhatsApp button
   ------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease);
}

.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }

.wa-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2.4s infinite var(--ease);
}

@keyframes wa-pulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* -------------------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
  .hero-blob-1, .hero-blob-2, .floating-card, .btn-primary::after, .final-cta { animation: none; }
}

/* -------------------------------------------------------------------------
   Native View Transitions (state changes: accordion, mobile nav)
   ------------------------------------------------------------------------- */
:root {
  --duration-exit: 150ms;
  --duration-enter: 210ms;
  --duration-move: 320ms;
}

@keyframes vt-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vt-fade-out { from { opacity: 1; } to { opacity: 0; } }

::view-transition-old(.vt-fade) { animation: var(--duration-exit) ease-in vt-fade-out both; }
::view-transition-new(.vt-fade) { animation: var(--duration-enter) ease-out var(--duration-exit) vt-fade-in both; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(*),
  ::view-transition-new(*),
  ::view-transition-group(*) {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
  }
}

/* -------------------------------------------------------------------------
   Spotlight hover (cards react to cursor position)
   ------------------------------------------------------------------------- */
.pillar-card, .service-item {
  position: relative;
  isolation: isolate;
}

.pillar-card::before, .service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  background: radial-gradient(240px circle at var(--x, 50%) var(--y, 50%), rgba(17, 79, 146, 0.09), transparent 70%);
}

.pillar-card:hover::before, .service-item:hover::before { opacity: 1; }

/* -------------------------------------------------------------------------
   Tilt (hero photo responds to cursor)
   ------------------------------------------------------------------------- */
.hero-visual { perspective: 1200px; }

.hero-photo-frame {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

/* -------------------------------------------------------------------------
   Magnetic buttons
   ------------------------------------------------------------------------- */
.magnetic { transition: transform 0.25s var(--ease); }

/* -------------------------------------------------------------------------
   Scrollspy active state
   ------------------------------------------------------------------------- */
.main-nav a.is-active { color: var(--blue-800); }
.main-nav a.is-active::after { width: 100%; }

/* -------------------------------------------------------------------------
   Staggered reveal children
   ------------------------------------------------------------------------- */
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(30px) scale(0.94);
  transition: opacity 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}

[data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* -------------------------------------------------------------------------
   Image reveal wipe (cover panel, not clip-path, so the observed element
   itself never collapses to zero area for IntersectionObserver)
   ------------------------------------------------------------------------- */
.reveal-wipe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  transform-origin: top;
  transform: scaleY(1);
  transition: transform 0.85s var(--ease) 0.05s;
}

.reveal-wipe.is-visible::after {
  transform: scaleY(0);
}

.reveal-wipe img {
  transform: scale(1.08);
  transition: transform 1.1s var(--ease);
}

.reveal-wipe.is-visible img {
  transform: scale(1);
}

/* -------------------------------------------------------------------------
   Cursor-follow glow for final CTA
   ------------------------------------------------------------------------- */
.final-cta {
  --glow-x: 85%;
  --glow-y: 20%;
}

.final-cta::before {
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.1), transparent 45%);
  transition: background 0.6s var(--ease);
}
