/* ==========================================================================
   Daily Wealth Planner — site stylesheet
   Palette: deep navy, emerald and amber on a light canvas.
   Pure CSS, no external fonts or frameworks, so it loads the same everywhere.
   ========================================================================== */

:root {
  /* Brand colours */
  --navy-950: #061a2e;
  --navy-900: #0b2545;
  --navy-800: #15345c;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-300: #6ee7b7;
  --emerald-50: #ecfdf5;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-50: #fffbeb;
  --teal-700: #0f766e;
  --rose-700: #be123c;
  --rose-600: #e11d48;
  --rose-50: #fff1f2;

  /* Neutrals */
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;
  --subtle: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --focus: #0891b2;

  /* Shape and depth */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 6px 18px -10px rgba(11, 37, 69, 0.22);
  --shadow: 0 22px 44px -22px rgba(11, 37, 69, 0.34);
  --shadow-lg: 0 36px 70px -30px rgba(2, 12, 24, 0.7);

  /* Type */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

  --header-h: 76px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--emerald-700);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--emerald-800);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

::selection {
  background: var(--emerald-300);
  color: var(--navy-950);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 3000;
  background: var(--navy-900);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -18px rgba(11, 37, 69, 0.35);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--navy-900);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--emerald-600), var(--navy-800));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-light,
.brand-light:hover {
  color: #fff;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  position: relative;
  padding: 0.3rem 0;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.97rem;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--emerald-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-link[aria-current="true"] {
  color: var(--navy-900);
  text-decoration: none;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.nav-link[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.62rem 1.2rem;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover,
.nav-cta[aria-current="page"],
.nav-cta[aria-current="true"] {
  background: var(--navy-800);
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(11, 37, 69, 0.4);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.4s ease, visibility 0.4s ease;
}

.mobile-nav.is-open {
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  visibility: visible;
}

.mobile-nav-inner {
  display: grid;
  padding: 0.5rem 1.25rem 1.5rem;
}

.mobile-nav a {
  display: block;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy-900);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav a[aria-current="page"],
.mobile-nav a[aria-current="true"] {
  color: var(--emerald-700);
}

/* ---------- Eyebrow, titles, buttons ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-700);
}

.eyebrow span {
  color: var(--amber-600);
}

.title-rule {
  display: block;
  width: 72px;
  height: 4px;
  margin: 0 0 1.4rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--amber-400), var(--emerald-600));
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 700;
  margin: 0 0 0.9rem;
}

.section-desc {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-2);
}

.body-text {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, translate 0.25s ease;
}

.btn:hover {
  translate: 0 -2px;
  text-decoration: none;
}

.btn-primary {
  background: var(--emerald-700);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(4, 120, 87, 0.9);
}

.btn-primary:hover {
  background: var(--emerald-800);
  color: #fff;
  box-shadow: 0 16px 28px -14px rgba(4, 120, 87, 0.95);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}

.btn-outline:hover {
  background: var(--navy-900);
  color: #fff;
}

.btn-accent {
  background: var(--amber-400);
  color: var(--navy-950);
  box-shadow: 0 12px 24px -14px rgba(217, 119, 6, 0.9);
}

.btn-accent:hover {
  background: var(--amber-300);
  color: var(--navy-950);
}

.btn-light {
  background: #fff;
  color: var(--navy-900);
}

.btn-light:hover {
  background: var(--amber-50);
  color: var(--navy-900);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1.05rem 2.4rem;
  font-size: 1.05rem;
}

/* ---------- Hero (home) and page hero (inner pages) ---------- */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 58%, #0c3d3b 100%);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  width: 780px;
  height: 780px;
  right: -280px;
  top: -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(16, 185, 129, 0) 62%);
  pointer-events: none;
}

.hero > .container,
.page-hero > .container {
  position: relative;
  z-index: 1;
}

.hero {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(110, 231, 183, 0.35);
  color: #a7f3d0;
  font-size: 0.875rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-300);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.6);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(110, 231, 183, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(110, 231, 183, 0);
  }
}

.hero-title {
  margin: 1.4rem 0;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.07;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(90deg, var(--amber-300), var(--emerald-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 36rem;
  margin: 0 0 2.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: #cbd5e1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--amber-300);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

.hero-visual {
  position: relative;
}

.glass {
  width: 100%;
  padding: 1.5rem 1.6rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  color: #e2e8f0;
}

.glass-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.2);
  font-size: 1.6rem;
}

.glass-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 700;
  color: #fff;
}

.glass p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tags span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  font-size: 0.76rem;
  font-weight: 600;
}

.float-icon {
  position: absolute;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1.5rem;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(4deg);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(3.75rem, 7vw, 5.5rem) 0 clamp(3.5rem, 6vw, 4.75rem);
}

.page-hero h1 {
  max-width: 20em;
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.page-hero .eyebrow {
  color: var(--emerald-300);
}

.page-hero .eyebrow span {
  color: var(--amber-300);
}

.page-hero .lead {
  max-width: 44rem;
  margin: 0;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: #cbd5e1;
}

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.jump-nav a {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.jump-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--white {
  background: var(--surface);
}

.section--tint {
  background: var(--bg);
}

.section--navy {
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #cbd5e1;
}

.section--navy h2 {
  color: #fff;
}

.section--navy .section-desc {
  color: #cbd5e1;
}

.section--navy .eyebrow {
  color: var(--emerald-300);
}

.section--navy .eyebrow span {
  color: var(--amber-300);
}

.section-head {
  max-width: 46rem;
  margin: 0 0 3.25rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head.center .title-rule {
  margin-left: auto;
  margin-right: auto;
}

.section-cta {
  margin-top: 3rem;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.btn-row {
  margin-top: 2rem;
}

/* Tone classes: a per-block accent colour set through CSS variables */
.tone-1 {
  --accent: #047857;
  --accent-soft: #ecfdf5;
}

.tone-2 {
  --accent: #0b2545;
  --accent-soft: #e8eef6;
}

.tone-3 {
  --accent: #b45309;
  --accent-soft: #fef3c7;
}

.tone-4 {
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
}

/* ---------- About ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.bento-card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: translate 0.35s ease, box-shadow 0.35s ease;
}

.bento-card:hover {
  translate: 0 -4px;
  box-shadow: var(--shadow);
}

.bento-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

.bento-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

.bento-card--large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.4rem;
  border-color: transparent;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
}

.bento-card--large h3 {
  margin-bottom: 0.7rem;
  font-size: 1.7rem;
  color: #fff;
}

.bento-card--large p {
  font-size: 1rem;
  color: #cbd5e1;
}

.bento-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  background: var(--emerald-50);
  font-size: 1.55rem;
}

.bento-card--large .bento-icon {
  background: rgba(110, 231, 183, 0.16);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.split + .feature-grid {
  margin-top: 4.25rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: translate 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
  translate: 0 -4px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  border-radius: 18px;
  background: var(--accent-soft, #ecfdf5);
  font-size: 1.6rem;
}

.feature-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Services teaser (home) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: translate 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 56px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--accent, #047857);
}

.cat-card:hover {
  translate: 0 -6px;
  box-shadow: var(--shadow);
  border-color: var(--accent-soft, #ecfdf5);
}

.cat-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: var(--accent-soft, #ecfdf5);
  font-size: 1.6rem;
}

.cat-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.cat-card h3 a {
  color: var(--navy-900);
  text-decoration: none;
}

.cat-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.cat-card h3 a:hover {
  color: var(--accent, var(--emerald-700));
}

.cat-card > p {
  margin: 0 0 1rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft, #ecfdf5);
  color: var(--ink-2);
  font-size: 0.78rem;
  line-height: 1.3;
}

/* ---------- Why us (navy band) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.why-card {
  padding: 1.9rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.35s ease, translate 0.35s ease;
}

.why-card:hover {
  translate: 0 -4px;
  background: rgba(255, 255, 255, 0.09);
}

.why-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  background: rgba(110, 231, 183, 0.14);
  font-size: 1.55rem;
}

.why-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  color: #fff;
}

.why-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #cbd5e1;
}

/* ---------- Testimonials ---------- */
.carousel {
  max-width: 920px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0.5rem;
}

.testimonial-card {
  position: relative;
  height: 100%;
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.stars {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--amber-600);
}

.testimonial-text {
  margin: 0 0 1.75rem;
  font-family: var(--font-head);
  font-size: clamp(1.08rem, 1.9vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-2);
}

.author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

.avatar {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-700), var(--navy-800));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.av-2 {
  background: linear-gradient(135deg, var(--teal-700), #0e7490);
}

.av-3 {
  background: linear-gradient(135deg, var(--amber-700), var(--amber-600));
}

.av-4 {
  background: linear-gradient(135deg, var(--navy-800), #1e40af);
}

.av-5 {
  background: linear-gradient(135deg, #065f46, var(--teal-700));
}

.testimonial-name {
  display: block;
  font-weight: 700;
  color: var(--navy-900);
}

.testimonial-role {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--navy-900);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.carousel-btn:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.carousel-dots {
  display: flex;
  gap: 0.55rem;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: width 0.35s ease, background-color 0.35s ease;
}

.carousel-dot.is-active {
  width: 30px;
  background: var(--emerald-700);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.is-open {
  border-color: #a7f3d0;
  box-shadow: var(--shadow-sm);
}

.faq-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--emerald-700);
}

.faq-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.35s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.4s ease, visibility 0.4s ease;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
  visibility: visible;
}

.faq-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-panel-inner p {
  margin: 0;
  padding: 0 1.5rem 1.4rem;
  color: var(--muted);
}

/* ---------- Call to action band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.5rem, 6vw, 4.5rem) 0;
  background: linear-gradient(120deg, #064e3b 0%, #065f46 38%, var(--navy-900) 100%);
  color: #d1fae5;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25), rgba(251, 191, 36, 0) 65%);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
}

.cta-band h2 {
  max-width: 20em;
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: #fff;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Service category pages ---------- */
.svc-block + .svc-block {
  margin-top: 4.75rem;
}

.svc-head {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--line);
}

.svc-head-icon {
  width: 66px;
  height: 66px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--accent-soft, #ecfdf5);
  font-size: 1.85rem;
}

.svc-head h2 {
  margin: 0 0 0.2rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.svc-head p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--muted);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.8rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.35s ease, translate 0.35s ease;
}

.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.8rem;
  width: 56px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--accent, #047857);
}

.svc-card:hover {
  translate: 0 -3px;
  box-shadow: var(--shadow);
}

.svc-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 15px;
  background: var(--accent-soft, #ecfdf5);
  font-size: 1.45rem;
}

.svc-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

.svc-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}

.svc-num {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--line-strong);
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.info-stack {
  display: grid;
  gap: 1.1rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.info-icon {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft, #ecfdf5);
  font-size: 1.35rem;
}

.info-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
}

.info-text {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.info-text a {
  font-weight: 600;
  color: var(--emerald-700);
}

/* ---------- Forms ---------- */
.form-card {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin: 0 0 1.5rem;
  font-size: 1.6rem;
}

.form-card--narrow {
  max-width: 800px;
  margin: 0 auto;
}

.form-lead {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.3rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.field label,
.checkbox label {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-2);
}

.required {
  color: var(--rose-700);
}

.input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input::placeholder {
  color: #94a3b8;
}

.input:focus {
  outline: none;
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.18);
}

.input[aria-invalid="true"] {
  border-color: var(--rose-600);
  background: var(--rose-50);
}

.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15);
}

textarea.input {
  min-height: 150px;
  resize: vertical;
}

select.input {
  cursor: pointer;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.checkbox input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0.2rem 0 0;
  accent-color: var(--emerald-700);
  cursor: pointer;
}

.checkbox label {
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
}

.form-actions {
  text-align: center;
}

.form-note {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--subtle);
}

.form-foot {
  margin: 0.9rem 0 0;
  text-align: center;
}

.form-foot a {
  font-weight: 600;
}

/* Confirmation panel shown after a successful submission */
.form-success {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 1.5rem 0.5rem 0.5rem;
  text-align: center;
}

.form-success[hidden] {
  display: none;
}

.form-success h2 {
  margin: 0.25rem 0 0;
  font-size: 1.7rem;
}

.form-success p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
}

.success-checkmark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  box-shadow: 0 16px 30px -14px rgba(4, 120, 87, 0.7);
  color: #fff;
  font-size: 2.1rem;
  font-weight: 700;
}

.success-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.form-success .btn {
  margin-top: 0.6rem;
}

/* ---------- Legal pages ---------- */
.legal-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.legal-lead {
  margin: 0;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.12rem;
  color: var(--ink-2);
}

.legal-card h2 {
  margin: 2.1rem 0 0.7rem;
  font-size: 1.36rem;
}

.legal-card p {
  margin: 0;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 4.5rem 0 0;
  background: var(--navy-950);
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  max-width: 22rem;
  margin: 1.1rem 0 0;
  line-height: 1.75;
  color: #94a3b8;
}

.site-footer h2.footer-title {
  margin: 0 0 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.footer-col ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--emerald-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  padding: 1.6rem 0 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--emerald-700);
}

/* ---------- Toast notifications ---------- */
.toast-region {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  right: 18px;
  z-index: 3000;
  width: min(400px, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  --toast-color: #047857;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 2.75rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--toast-color);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 40px -18px rgba(11, 37, 69, 0.45);
  pointer-events: auto;
  animation: toast-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.toast.is-success {
  --toast-color: #047857;
}

.toast.is-error {
  --toast-color: #be123c;
}

.toast.is-info {
  --toast-color: #0b2545;
}

.toast.is-leaving {
  animation: toast-out 0.3s ease both;
}

.toast-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--toast-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  margin: 0 0 0.2rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
}

.toast-msg {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.toast-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--subtle);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.toast-close:hover {
  background: #f1f5f9;
  color: var(--ink);
}

.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--toast-color);
  transform-origin: left center;
  animation-name: toast-progress;
  animation-timing-function: linear;
  animation-fill-mode: both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(28px);
  }
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* ---------- Scroll reveal (only when JavaScript is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    translate 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (min-width: 961px) {
  .gc-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: min(300px, 80%);
    animation: bob 6s ease-in-out infinite;
  }

  .gc-2 {
    position: absolute;
    top: 210px;
    right: 0;
    width: min(290px, 78%);
    animation: bob 6s ease-in-out infinite -2s;
  }

  .gc-3 {
    position: absolute;
    bottom: 0;
    left: 12%;
    width: min(300px, 80%);
    animation: bob 6s ease-in-out infinite -4s;
  }

  .hero-visual {
    min-height: 560px;
  }

  .fi-1 {
    top: 0;
    right: 4%;
    animation-delay: 0s;
  }

  .fi-2 {
    top: 44%;
    left: 0;
    animation-delay: -2s;
  }

  .fi-3 {
    bottom: 4%;
    right: 2%;
    animation-delay: -4s;
  }

  .fi-4 {
    top: 37%;
    right: 2%;
    animation-delay: -1s;
  }
}

@media (max-width: 1180px) {
  .cat-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
  }

  .glass {
    position: relative;
  }

  .float-icon {
    display: none;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .cat-grid,
  .why-grid,
  .svc-grid,
  .form-grid,
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-card--large {
    grid-row: auto;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .svc-head {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toast-region {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .svc-card,
  .cat-card,
  .testimonial-card {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  .svc-card::before {
    left: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Decorative quotation mark on testimonial cards */
.quote-mark {
  position: absolute;
  top: 1.1rem;
  right: 1.9rem;
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 1;
  color: var(--emerald-300);
  pointer-events: none;
}
