/* Jordan Physiotherapy Ayrshire - site styles */

:root {
  --blue-900: #0b2140;
  --blue-800: #102d54;
  --blue-700: #163f72;
  --blue-600: #1d5390;
  --blue-500: #2870b2;
  --blue-400: #5192cf;
  --blue-100: #d7e7f7;
  --blue-50: #eef5fc;

  --coral-600: #d9613f;
  --coral-500: #ec7a54;
  --coral-400: #f2916f;

  --amber-500: #eaa53a;
  --amber-600: #d18f22;

  --sand-50: #fbf7f1;
  --sand-100: #f4ede2;
  --sand-200: #ece0cf;

  --ink: #16212e;
  --ink-soft: #4b5a6b;
  --line: #e7ded0;
  --line-cool: #d6e3f0;
  --bg: #fbf7f1;

  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 30px;

  --shadow-sm: 0 2px 8px rgba(11, 33, 64, 0.07);
  --shadow: 0 18px 40px -22px rgba(11, 33, 64, 0.38);
  --shadow-lg: 0 40px 80px -40px rgba(11, 33, 64, 0.48);
  --shadow-blue: 0 22px 45px -22px rgba(29, 83, 144, 0.55);
  --shadow-amber: 0 16px 32px -16px rgba(217, 97, 63, 0.5);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--blue-900);
  margin: 0 0 0.55em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.28rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--coral-600); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.4rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue-900); color: #fff; padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.2;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
  color: #fff;
  box-shadow: var(--shadow-amber);
}
.button-primary:hover { color: #fff; box-shadow: 0 22px 40px -14px rgba(217, 97, 63, 0.65); }
.button-secondary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.button-secondary:hover { color: #fff; }
.button-outline { border-color: var(--blue-600); color: var(--blue-700); background: transparent; }
.button-outline:hover { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.button-light { background: #fff; color: var(--blue-900); box-shadow: var(--shadow); }
.button-light:hover { color: var(--coral-600); }
.button-outline-light { border-color: rgba(255,255,255,0.55); color: #fff; background: rgba(255,255,255,0.06); }
.button-outline-light:hover { background: #fff; color: var(--blue-900); border-color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-900); color: #bcd3ee; font-size: 0.86rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 1.4rem; }
.topbar a:hover { color: var(--coral-400); }
.topbar-note { opacity: 0.85; letter-spacing: 0.01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, 0.85);
  border-bottom: 1px solid rgba(231, 222, 208, 0.8);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }

.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--blue-900);
}
.brand-mark {
  display: block; width: 44px; height: 44px; flex-shrink: 0;
  color: var(--blue-700);
}
.brand-text {
  display: flex; flex-direction: column; justify-content: center;
  line-height: 1; gap: 0.28rem; min-width: 0;
}
.brand-text strong {
  font-family: var(--font-body); font-size: 1.36rem; font-weight: 700;
  letter-spacing: -0.025em; color: var(--blue-900);
}
.brand-text strong em {
  font-style: normal; font-weight: 600; color: var(--blue-600);
  margin-left: 0.28em;
}
.brand-text small {
  color: var(--ink-soft); font-size: 0.67rem; letter-spacing: 0.42em;
  text-transform: uppercase; font-weight: 600;
  padding-left: 2px;
}

/* ---------- Navigation ---------- */
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
.site-nav > ul > li > a {
  display: block; padding: 0.55rem 0.9rem; text-decoration: none;
  color: var(--ink); font-weight: 600; border-radius: 10px; font-size: 0.98rem;
  transition: background 0.2s, color 0.2s;
}
.site-nav > ul > li > a:hover { background: var(--blue-50); color: var(--blue-800); }
.nav-cta a.button { padding: 0.58rem 1.4rem; margin-left: 0.6rem; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 0.55rem !important;
  display: none !important; flex-direction: column; align-items: stretch;
}
.has-dropdown::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: flex !important; }
.dropdown li { width: 100%; }
.dropdown a {
  display: block; padding: 0.6rem 0.85rem; text-decoration: none;
  color: var(--ink); border-radius: 10px; font-weight: 500;
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
}
.dropdown a:hover { background: var(--blue-50); color: var(--blue-800); padding-left: 1.1rem; }

.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 940px) {
  .topbar-note { display: none; }
  .topbar a { margin-left: 0; margin-right: 1.2rem; }
  .nav-toggle-label { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem; }
  .nav-toggle-label span { width: 26px; height: 3px; background: var(--blue-900); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 0.75rem; }
  .dropdown { position: static; display: flex !important; box-shadow: none; border: none; padding-left: 1rem !important; min-width: 0; background: transparent; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(155deg, #0b2140 0%, #123a66 45%, #1d5390 100%);
  color: #eaf2fb;
  padding: 5.5rem 0 8rem;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; z-index: 0; inset: 0;
  background:
    radial-gradient(620px 620px at calc(100% + 120px) -180px, rgba(236, 122, 84, 0.45), transparent 60%),
    radial-gradient(520px 520px at -140px calc(100% + 60px), rgba(81, 146, 207, 0.42), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 2;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0,70 L0,32 C240,72 480,72 720,44 C960,16 1200,16 1440,40 L1440,70 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0,70 L0,32 C240,72 480,72 720,44 C960,16 1200,16 1440,40 L1440,70 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 2.8rem;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero h1 em { font-style: italic; color: var(--amber-500); }
.hero .lead { font-size: 1.22rem; max-width: 40rem; color: #cfe0f2; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-secondary-link { margin: 1rem 0 0; font-size: 0.95rem; }
.hero-secondary-link a { color: #cfe0f2; text-decoration: underline; text-underline-offset: 3px; }
.hero-secondary-link a:hover { color: #fff; }

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  max-height: 520px;
  justify-self: end;
  width: 100%;
  background: var(--blue-800);
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(11, 33, 64, 0.28) 0%, rgba(29, 83, 144, 0.45) 55%, rgba(11, 33, 64, 0.55) 100%),
    linear-gradient(0deg, rgba(236, 122, 84, 0.18), transparent 45%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media {
    max-width: 420px;
    max-height: 460px;
    justify-self: center;
    aspect-ratio: 4 / 5;
  }
}

.button-play { gap: 0.7rem; }
.play-icon {
  display: inline-grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: rgba(255,255,255,0.18); flex-shrink: 0;
}
.play-icon::before {
  content: "";
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  margin-left: 2px;
}
.button-outline:not(.button-outline-light) .play-icon { background: var(--blue-50); color: var(--blue-700); }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.4rem 1.05rem; border-radius: 999px; font-size: 0.85rem;
  letter-spacing: 0.02em; margin-bottom: 1.4rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral-400); box-shadow: 0 0 0 4px rgba(242, 145, 111, 0.3); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 3.4rem; }
.stat {
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); padding: 1.3rem 1rem; text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.stat:hover { transform: translateY(-4px); background: rgba(255,255,255,0.14); }
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: #fff; line-height: 1; margin-bottom: 0.35rem; }
.stat span { font-size: 0.85rem; color: #c2d7ee; }
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* Curved transition under dark heroes */
.hero::after, .page-hero { position: relative; }
.hero + section, .hero + main > section:first-child { position: relative; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(155deg, #0b2140 0%, #123f70 60%, #1d5390 100%);
  color: #eaf2fb; padding: 3.6rem 0 5rem; overflow: hidden; isolation: isolate;
  position: relative;
}
.page-hero::before {
  content: ""; position: absolute; z-index: 0; inset: 0;
  background:
    radial-gradient(480px 480px at calc(100% + 100px) -140px, rgba(236, 122, 84, 0.4), transparent 60%),
    radial-gradient(360px 360px at -100px calc(100% + 40px), rgba(81, 146, 207, 0.38), transparent 60%);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; z-index: 2;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0,56 L0,26 C240,58 480,58 720,36 C960,14 1200,14 1440,32 L1440,56 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0,56 L0,26 C240,58 480,58 720,36 C960,14 1200,14 1440,32 L1440,56 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .lead { font-size: 1.16rem; max-width: 47rem; color: #cfe0f2; margin-bottom: 0; }
.page-hero .hero-actions { margin-top: 1.6rem; }
.page-hero .hero-kicker { margin-bottom: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--sand-100), var(--sand-50)); }
.section-alt::before, .section-alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40px; pointer-events: none;
}
.section-header { max-width: 47rem; margin-bottom: 2.6rem; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--coral-600); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.78rem; margin-bottom: 0.9rem;
}
.section-kicker::before { content: ""; width: 26px; height: 2px; background: var(--coral-500); border-radius: 2px; }
.section-header.center .section-kicker { justify-content: center; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line-cool); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--coral-500));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-top: 0; }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--coral-600); display: inline-flex; align-items: center; gap: 0.35rem; }
.card .card-link:hover { color: var(--blue-700); }
.card-icon {
  width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue-100), #fff);
  border: 1px solid var(--line-cool);
  color: var(--blue-700); font-size: 1.5rem; margin-bottom: 1.1rem; font-weight: 700;
  box-shadow: inset 0 1px 0 #fff, var(--shadow-sm);
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid var(--line-cool); border-radius: var(--radius);
  padding: 1.7rem; position: relative; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-grid; place-items: center;
  min-width: 48px; height: 48px; padding: 0 0.4rem; border-radius: 14px;
  background: linear-gradient(140deg, var(--blue-600), var(--blue-800));
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 1rem;
  box-shadow: var(--shadow-blue);
}

/* ---------- Pills ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 0.65rem; padding: 0; list-style: none; margin: 0; }
.pill-list li {
  background: #fff; border: 1px solid var(--line-cool); border-radius: 999px;
  padding: 0.5rem 1.1rem; font-weight: 500; font-size: 0.95rem; color: var(--blue-800);
  box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), border-color 0.2s, color 0.2s;
}
.pill-list li:hover { transform: translateY(-2px); border-color: var(--blue-400); color: var(--blue-900); }

/* ---------- Checklists ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { padding-left: 2rem; position: relative; margin-bottom: 0.6rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5390' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--line-cool);
}
.warn-list li::before {
  background: #fdece7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9613f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='8' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12' y2='17'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: #f6d4c9;
}

/* ---------- FAQ ---------- */
details.faq-item {
  background: #fff; border: 1px solid var(--line-cool); border-radius: 16px;
  padding: 0; margin-bottom: 0.9rem; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, border-color 0.3s;
}
details.faq-item[open] { box-shadow: var(--shadow); border-color: var(--blue-100); }
details.faq-item summary {
  cursor: pointer; font-weight: 600; padding: 1.1rem 1.4rem;
  list-style: none; position: relative; padding-right: 3.2rem; color: var(--blue-900);
  font-family: var(--font-display); font-size: 1.05rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 1.25rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5390' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform 0.3s var(--ease);
}
details.faq-item[open] summary::after { transform: rotate(135deg); }
details.faq-item .faq-body { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }

/* ---------- Pricing ---------- */
.price-card { text-align: left; }
.price-card .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--blue-800); margin: 0.2rem 0 0.9rem; }
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.price-card.featured {
  border: 2px solid var(--coral-500); position: relative;
  background: linear-gradient(180deg, #fff, var(--sand-50));
}
.price-card.featured::after {
  content: "Most popular"; position: absolute; top: 1.2rem; right: 1.2rem;
  background: linear-gradient(135deg, var(--coral-500), var(--coral-600)); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.85rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em;
  box-shadow: var(--shadow-amber);
}
.price-card.featured::before { display: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #0b2140, #1d5390);
  color: #eaf2fb; padding: 4rem 0; position: relative; overflow: hidden; isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; right: -80px; top: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,122,84,0.4), transparent 62%);
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { margin: 0; max-width: 40rem; color: #cfe0f2; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.cta-band-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #a7c1de; padding: 4rem 0 1.4rem; font-size: 0.96rem; position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.4rem; }
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #c6dbf1; text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--coral-400); }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text strong em { color: #cfe0f2; }
.brand-footer .brand-text small { color: rgba(255,255,255,0.55); }
.brand-footer .brand-mark { color: #fff; }
.footer-about p { max-width: 30rem; }
.footer-about address { font-style: normal; margin-top: 0.9rem; line-height: 1.95; }
.footer-hours li { display: flex; justify-content: space-between; max-width: 250px; }
.footer-hours span { font-weight: 600; color: #fff; }
.footer-accreditations {
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.footer-accreditations h3 {
  color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 1rem; font-family: var(--font-body); font-weight: 700;
}
.accreditation-logos {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem;
}
.accreditation-logos a {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 12px; padding: 0.65rem 0.9rem;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.accreditation-logos a:hover { transform: translateY(-2px); opacity: 0.92; }
.accreditation-logos img {
  display: block; height: 48px; width: auto; max-width: 180px; object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 1.6rem; padding-top: 1.3rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem; opacity: 0.8;
}

/* ---------- Areas ---------- */
.areas-grid h3 { margin-bottom: 0.7rem; }
.areas-grid ul { list-style: none; padding: 0; margin: 0; }
.areas-grid li { padding: 0.2rem 0 0.2rem 1.5rem; color: var(--ink-soft); position: relative; }
.areas-grid li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-400); }

/* ---------- Blog ---------- */
.post-meta { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 1.8rem; }
.post-card time { color: var(--coral-600); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; display: block; margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--blue-900); text-decoration: none; }
.post-card h3 a:hover { color: var(--coral-600); }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.7rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.45rem; }
.prose blockquote {
  border-left: 4px solid var(--coral-500); margin: 1.7rem 0;
  padding: 0.8rem 0 0.8rem 1.4rem; color: var(--ink-soft); font-style: italic;
  font-family: var(--font-display); font-size: 1.15rem;
}

.author-box {
  background: linear-gradient(150deg, var(--blue-50), var(--sand-50));
  border: 1px solid var(--line-cool); border-radius: var(--radius);
  padding: 1.9rem; margin-top: 2.8rem; max-width: 46rem; position: relative; overflow: hidden;
}
.author-box::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(236,122,84,0.14), transparent 65%); }
.author-box h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.author-box p:last-child { margin-bottom: 0; }

/* ---------- Case study ---------- */
.quote-card {
  background: #fff; border-left: 4px solid var(--coral-500);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.6rem 1.8rem; margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm); position: relative;
}
.quote-card p { font-style: italic; margin-bottom: 0.6rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--blue-900); }
.quote-card cite { font-style: normal; font-weight: 600; color: var(--coral-600); font-size: 0.9rem; }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .before-after { grid-template-columns: 1fr; } }
.before-after .ba-item { border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; border: 1px solid var(--line); }
.ba-before { background: #fdf1ec; border-color: #f6d4c9; }
.ba-after { background: #eaf6ef; border-color: #cbe8d5; }
.ba-item strong { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.35rem; }
.ba-before strong { color: var(--coral-600); }
.ba-after strong { color: #1e7a43; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
@media (max-width: 840px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form {
  display: grid; gap: 1.1rem; background: #fff; padding: 2rem; border-radius: var(--radius);
  border: 1px solid var(--line-cool); box-shadow: var(--shadow-sm);
}
.contact-form label { font-weight: 600; display: block; margin-bottom: 0.35rem; color: var(--blue-900); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--line-cool); border-radius: 12px;
  font-family: inherit; font-size: 1rem; background: var(--sand-50); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(38, 138, 144, 0.12);
}
.contact-form .hp-field {
  position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;
}
.recaptcha-note {
  margin: 0.85rem 0 0; font-size: 0.8rem; line-height: 1.45; color: var(--ink-soft);
}
.recaptcha-note a { color: var(--blue-600); }
.form-alert {
  padding: 0.95rem 1.1rem; border-radius: 12px; margin-bottom: 1.1rem; font-size: 0.98rem;
}
.form-alert-success {
  background: #e8f6ee; color: #1c5c38; border: 1px solid #b7e0c6;
}
.form-alert-error {
  background: #fdece7; color: #8a2f1a; border: 1px solid #f6d4c9;
}
.grecaptcha-badge { visibility: hidden !important; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-info-item .card-icon { margin-bottom: 0; flex-shrink: 0; width: 48px; height: 48px; font-size: 1.25rem; }
.contact-info-item h3 { margin-bottom: 0.25rem; font-size: 1.08rem; }
.contact-info-item p { margin: 0; color: var(--ink-soft); }

/* ---------- Legal ---------- */
.legal-meta { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 2rem; padding: 0.9rem 1.2rem; background: var(--sand-100); border-radius: 12px; display: inline-block; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.16rem; color: inherit; }
.muted { color: var(--ink-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 840px) { .two-col { grid-template-columns: 1fr; } }

.founder-layout { align-items: center; gap: 3.2rem; }
.founder-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(150deg, var(--blue-800), var(--blue-500));
  aspect-ratio: 10 / 11;
}
.founder-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 33, 64, 0.28));
  pointer-events: none;
}
.founder-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media (max-width: 840px) {
  .founder-layout { gap: 2rem; }
  .founder-photo { max-width: 420px; margin: 0 auto; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ---------- Video modal ---------- */
body.modal-open { overflow: hidden; }
.video-modal[hidden] { display: none !important; }
.video-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 1.2rem;
}
.video-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 33, 64, 0.78);
  backdrop-filter: blur(6px);
}
.video-modal-dialog {
  position: relative; z-index: 1;
  width: min(920px, 100%);
  background: #0b2140; color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.video-modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.video-modal-header h2 {
  margin: 0; color: #fff; font-size: 1.1rem; font-family: var(--font-body); font-weight: 600;
}
.video-modal-close {
  appearance: none; border: 0; background: rgba(255,255,255,0.1);
  color: #fff; width: 2.2rem; height: 2.2rem; border-radius: 999px;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.video-modal-close:hover { background: rgba(255,255,255,0.2); }
.video-modal-body { background: #000; }
.video-modal-body video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: min(70vh, 520px); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
