/* ============================================================
   SIMPLIFI LAW — Design System
   Palette from brand: #0B465B (deep teal-navy), #2D93BA (steel
   blue), #7EBEC5 (light teal), white.
   ============================================================ */

:root {
  --navy: #0B465B;
  --navy-deep: #072F3E;
  --navy-ink: #062633;
  --blue: #2D93BA;
  --blue-bright: #3FAAD2;
  --teal: #7EBEC5;
  --mist: #EAF3F5;
  --paper: #F7FAFB;
  --white: #FFFFFF;
  --ink: #12303C;
  --grey: #5B7480;
  --line: rgba(11, 70, 91, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow-lg: 0 24px 64px -16px rgba(7, 47, 62, 0.35);
  --shadow-md: 0 12px 36px -8px rgba(7, 47, 62, 0.18);
  --shadow-sm: 0 4px 16px rgba(7, 47, 62, 0.10);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--blue); }
.on-dark .eyebrow { color: var(--teal); }
.on-dark .eyebrow::before { background: var(--teal); }

/* ---------- Brand shape glyphs (from the logo) ---------- */
.glyph { display: inline-block; width: 34px; height: 34px; flex: none; }
.glyph svg { width: 100%; height: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px;
  font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 24px -6px rgba(45, 147, 186, 0.55); }
.btn-primary:hover { background: var(--blue-bright); box-shadow: 0 14px 32px -6px rgba(45, 147, 186, 0.65); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(6, 38, 51, 0.72), rgba(6, 38, 51, 0));
}
.site-header.scrolled {
  background: rgba(7, 47, 62, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { height: 46px; width: auto; transition: height 0.35s; }
.scrolled .brand img { height: 40px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .nav .drop > button {
  color: rgba(255, 255, 255, 0.85); font-size: 15px; font-weight: 500;
  padding: 10px 15px; border-radius: 8px; background: none; border: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.25s, background 0.25s;
}
.nav > a:hover, .nav .drop > button:hover,
.nav > a.active, .nav .drop.active > button { color: var(--white); background: rgba(255, 255, 255, 0.09); }
.nav .drop { position: relative; }
.nav .drop > button .chev { transition: transform 0.25s; font-size: 10px; }
.nav .drop.open > button .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 340px; background: var(--white); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.drop.open .dropdown, .drop:hover .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; border-radius: 12px; transition: background 0.2s;
}
.dropdown a:hover { background: var(--mist); }
.dropdown .glyph { width: 38px; height: 38px; margin-top: 2px; }
.dropdown strong { display: block; color: var(--navy); font-size: 15px; font-weight: 650; }
.dropdown span { display: block; color: var(--grey); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.dropdown .all-link {
  border-top: 1px solid var(--line); margin-top: 8px; padding: 12px 14px;
  color: var(--blue); font-weight: 600; font-size: 14px; display: block;
}

.nav-cta { margin-left: 10px; }

/* Mobile nav */
.burger { display: none; background: none; border: none; width: 44px; height: 44px; position: relative; z-index: 1001; }
.burger span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px auto; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s;
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--navy-deep);
    flex-direction: column; justify-content: center; gap: 8px;
    opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
    z-index: 1000;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  .nav > a, .nav .drop > button { font-size: 22px; font-family: var(--serif); }
  .nav .drop { text-align: center; }
  .dropdown {
    position: static; transform: none; min-width: 0; background: transparent;
    box-shadow: none; opacity: 1; visibility: hidden; pointer-events: none;
    max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), visibility 0.3s;
    padding: 0;
  }
  .drop.open .dropdown { visibility: visible; pointer-events: auto; max-height: 420px; transform: none; }
  .dropdown a { justify-content: center; padding: 10px; background: none; }
  .dropdown a:hover { background: none; }
  .dropdown .glyph { display: none; }
  .dropdown a > span:last-child { display: block; }
  .dropdown a > span:last-child > span { display: none; }
  .dropdown strong { color: var(--teal); font-size: 17px; font-weight: 500; }
  .dropdown .all-link { border: none; text-align: center; color: var(--teal); }
  .nav-cta { margin: 18px 0 0; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: var(--navy-deep); color: var(--white); overflow: hidden;
  padding: 160px 0 110px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.28;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(112deg, var(--navy-deep) 20%, rgba(7, 47, 62, 0.55) 60%, rgba(7, 47, 62, 0.85));
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(42px, 6.2vw, 78px); max-width: 15ch; margin: 26px 0 24px;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero p.lede { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, 0.82); max-width: 56ch; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Floating brand shapes in hero */
.hero-shapes { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: 44vw; max-width: 620px; opacity: 0.9; z-index: 1; pointer-events: none; }
.hero-shapes svg { width: 100%; height: auto; }
.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 9s ease-in-out 1.2s infinite; }
.float-c { animation: floaty 8s ease-in-out 2.4s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (max-width: 900px) { .hero-shapes { display: none; } }

/* Page hero (inner pages) */
.page-hero {
  position: relative; background: var(--navy-deep); color: var(--white);
  padding: 190px 0 90px; overflow: hidden;
}
.page-hero h1 { font-size: clamp(38px, 5vw, 62px); margin: 24px 0 18px; max-width: 18ch; }
.page-hero p { color: rgba(255, 255, 255, 0.8); max-width: 62ch; font-size: 18px; }
.page-hero .hero-bg { opacity: 0.22; }
.crumbs { position: relative; z-index: 2; font-size: 13.5px; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.04em; }
.crumbs a { color: rgba(255, 255, 255, 0.75); }
.crumbs a:hover { color: var(--teal); }
.page-hero .wrap { position: relative; z-index: 2; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); color: var(--navy); margin: 18px 0 16px; }
.section-head p { color: var(--grey); font-size: 17.5px; }
.on-dark .section-head h2 { color: var(--white); }
.on-dark .section-head p { color: rgba(255, 255, 255, 0.78); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow::before { display: none; }

.bg-navy { background: var(--navy); color: var(--white); }
.bg-deep { background: var(--navy-deep); color: var(--white); }
.bg-paper { background: var(--paper); }
.bg-mist { background: var(--mist); }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: 40px 34px; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(45, 147, 186, 0.4); }
.svc-card .glyph { width: 52px; height: 52px; margin-bottom: 26px; }
.svc-card h3 { color: var(--navy); font-size: 25px; margin-bottom: 6px; }
.svc-card .sub { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.svc-card p { color: var(--grey); font-size: 15.5px; flex: 1; }
.svc-card ul { list-style: none; margin: 18px 0 26px; }
.svc-card li { padding: 7px 0 7px 26px; position: relative; color: var(--ink); font-size: 15px; }
.svc-card li::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 2px; background: var(--blue); }
.svc-card .link { font-weight: 650; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; margin-top: auto; }
.svc-card .link .arr { transition: transform 0.3s var(--ease); color: var(--blue); }
.svc-card:hover .link .arr { transform: translateX(5px); }
.svc-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.svc-card:hover::after { transform: scaleX(1); }

/* Dark variant on navy sections */
.on-dark .svc-card { background: rgba(255, 255, 255, 0.05); border-color: var(--line-light); }
.on-dark .svc-card h3 { color: var(--white); }
.on-dark .svc-card p, .on-dark .svc-card li { color: rgba(255, 255, 255, 0.75); }
.on-dark .svc-card .link { color: var(--teal); }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split h2 { font-size: clamp(30px, 3.4vw, 44px); color: var(--navy); margin: 18px 0 20px; }
.split p { color: var(--grey); margin-bottom: 16px; }
.on-dark .split h2 { color: var(--white); }
.on-dark .split p { color: rgba(255, 255, 255, 0.78); }
.split-img { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; transition: transform 0.8s var(--ease); }
.split-img:hover img { transform: scale(1.045); }
.split-img .shape-tag {
  position: absolute; bottom: 20px; left: 20px; background: rgba(7, 47, 62, 0.85);
  backdrop-filter: blur(8px); border-radius: 14px; padding: 14px 20px;
  display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 600; font-size: 14px;
}

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }
.stat .num { font-family: var(--serif); font-size: clamp(40px, 4.6vw, 62px); color: var(--teal); line-height: 1; }
.stat .lbl { margin-top: 10px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }

/* ---------- Values / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--white); border-radius: 18px; padding: 36px 30px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pillar .num { font-family: var(--serif); font-size: 15px; color: var(--blue); letter-spacing: 0.1em; }
.pillar h3 { color: var(--navy); font-size: 22px; margin: 12px 0 10px; }
.pillar p { color: var(--grey); font-size: 15px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 26px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-light); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 42px; color: var(--teal); opacity: 0.85; display: block; margin-bottom: 12px;
}
.step h4 { color: var(--white); font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.step p { color: rgba(255, 255, 255, 0.68); font-size: 14.5px; }

/* Light steps variant */
.steps.light .step { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-sm); }
.steps.light .step::before { color: var(--blue); }
.steps.light .step h4 { color: var(--navy); }
.steps.light .step p { color: var(--grey); }

/* ---------- Detail list (service pages) ---------- */
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .detail-list { grid-template-columns: 1fr; } }
.detail {
  display: flex; gap: 18px; padding: 26px; background: var(--white);
  border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.detail:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.detail .glyph { width: 40px; height: 40px; margin-top: 3px; }
.detail h4 { color: var(--navy); font-size: 17.5px; font-weight: 650; margin-bottom: 6px; }
.detail p { color: var(--grey); font-size: 14.5px; }

/* ---------- Quote / philosophy ---------- */
.bigquote {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.3;
  color: var(--white); max-width: 26ch; margin: 0 auto; text-align: center;
}
.bigquote em { color: var(--teal); font-style: italic; }
.quote-attr { text-align: center; margin-top: 28px; color: rgba(255, 255, 255, 0.6); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--white); border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-card .photo { background: linear-gradient(160deg, var(--mist), #d3e6ea); position: relative; padding: 34px 34px 0; }
.team-card .photo img { margin: 0 auto; max-height: 300px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(7, 47, 62, 0.25)); }
.team-card .photo .glyph { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; opacity: 0.9; }
.team-body { padding: 30px 34px 34px; }
.team-body h3 { color: var(--navy); font-size: 26px; }
.team-body .role { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 6px 0 14px; }
.team-body p { color: var(--grey); font-size: 15px; margin-bottom: 20px; }
.team-body .creds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.team-body .creds span {
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  background: var(--mist); border-radius: 100px; padding: 5px 13px;
}

/* ---------- CV Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(6, 38, 51, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: 22px; max-width: 760px; width: 100%;
  max-height: 86vh; overflow: hidden; display: flex; flex-direction: column;
  transform: translateY(24px) scale(0.98); transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal-head {
  background: var(--navy); color: var(--white); padding: 28px 34px;
  display: flex; align-items: center; gap: 20px; flex: none;
}
.modal-head img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--mist); border: 3px solid var(--blue); }
.modal-head h3 { font-size: 24px; }
.modal-head .role { color: var(--teal); font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }
.modal-close {
  margin-left: auto; background: rgba(255, 255, 255, 0.1); border: none; color: var(--white);
  width: 40px; height: 40px; border-radius: 50%; font-size: 18px; flex: none;
  transition: background 0.25s, transform 0.25s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.22); transform: rotate(90deg); }
.modal-body { padding: 30px 34px; overflow-y: auto; }
.modal-body h4 {
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue);
  margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.modal-body h4:first-child { margin-top: 0; }
.cv-item { margin-bottom: 16px; }
.cv-item strong { color: var(--navy); font-size: 15.5px; display: block; }
.cv-item .when { color: var(--blue); font-size: 13px; font-weight: 600; }
.cv-item p { color: var(--grey); font-size: 14.5px; margin-top: 3px; }
.modal-foot { padding: 18px 34px; border-top: 1px solid var(--line); display: flex; gap: 14px; justify-content: flex-end; flex: none; background: var(--paper); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.c-info h2 { font-size: clamp(30px, 3.4vw, 44px); color: var(--navy); margin: 18px 0 20px; }
.c-line { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.c-line .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; color: var(--blue); flex: none; font-size: 18px; }
.c-line strong { display: block; color: var(--navy); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 3px; }
.c-line a, .c-line span.val { color: var(--grey); font-size: 15.5px; }
.c-line a:hover { color: var(--blue); }

.form-card { background: var(--white); border-radius: 22px; padding: 42px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.form-card h3 { color: var(--navy); font-size: 24px; margin-bottom: 8px; }
.form-card > p { color: var(--grey); font-size: 15px; margin-bottom: 26px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; } }
.f-group { margin-bottom: 16px; }
.f-group label { display: block; font-size: 13px; font-weight: 650; color: var(--navy); letter-spacing: 0.04em; margin-bottom: 7px; }
.f-group input, .f-group select, .f-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: var(--paper);
  transition: border-color 0.25s, box-shadow 0.25s; outline: none;
}
.f-group input:focus, .f-group select:focus, .f-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(45, 147, 186, 0.14); background: var(--white);
}
.f-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: var(--grey); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 14.5px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #1d7a4f; }
.form-status.err { display: block; color: #b3372f; }

.map-frame { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); margin-top: 72px; }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; filter: saturate(0.85); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 2; text-align: center; }
.cta-band h2 { font-size: clamp(32px, 4.2vw, 54px); color: var(--white); max-width: 22ch; margin: 18px auto 20px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 54ch; margin: 0 auto 36px; }
.cta-shapes { position: absolute; inset: 0; z-index: 1; opacity: 0.12; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255, 255, 255, 0.7); padding: 72px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img.f-logo { height: 44px; margin-bottom: 20px; }
.site-footer h5 { color: var(--white); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: rgba(255, 255, 255, 0.7); display: block; padding: 5px 0; transition: color 0.25s; }
.site-footer a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, 0.45);
}

/* ---------- Chatbot ---------- */
.chat-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 1100;
  width: 62px; height: 62px; border-radius: 50%; border: none;
  background: var(--blue); color: var(--white); box-shadow: 0 10px 30px -4px rgba(45, 147, 186, 0.6);
  display: grid; place-items: center; transition: transform 0.3s var(--ease), background 0.3s;
}
.chat-fab:hover { transform: scale(1.08); background: var(--blue-bright); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab .chat-badge {
  position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%;
  background: #e0564a; color: var(--white); font-size: 11.5px; font-weight: 700;
  display: none; place-items: center; border: 2px solid var(--white);
}
.chat-panel {
  position: fixed; right: 26px; bottom: 102px; z-index: 1100;
  width: 384px; max-width: calc(100vw - 40px); height: 560px; max-height: calc(100vh - 140px);
  background: var(--white); border-radius: 22px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(0.97);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}
body.chat-open .chat-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-head { background: var(--navy); padding: 18px 20px; display: flex; align-items: center; gap: 13px; flex: none; }
.chat-head .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue);
  display: grid; place-items: center; flex: none;
}
.chat-head .avatar svg { width: 24px; height: 24px; }
.chat-head strong { color: var(--white); font-size: 15.5px; display: block; }
.chat-head .status { color: var(--teal); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.chat-head .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4fd08c; }
.chat-head button { margin-left: auto; background: none; border: none; color: rgba(255, 255, 255, 0.7); font-size: 20px; transition: color 0.2s; }
.chat-head button:hover { color: var(--white); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px 16px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 14.2px; line-height: 1.5; animation: msgin 0.35s var(--ease); }
@keyframes msgin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg.bot { background: var(--white); border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.msg.user { background: var(--blue); color: var(--white); align-self: flex-end; border-bottom-right-radius: 5px; }
.msg.typing { display: inline-flex; gap: 5px; align-items: center; padding: 15px 17px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: blink 1.1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.18s; }
.msg.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 70%, 100% { opacity: 0.25; } 35% { opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: var(--paper); }
.chat-quick button {
  border: 1.5px solid var(--blue); color: var(--blue); background: var(--white);
  border-radius: 100px; padding: 8px 15px; font-size: 13px; font-weight: 600;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.chat-quick button:hover { background: var(--blue); color: var(--white); transform: translateY(-1px); }
.chat-form { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--white); flex: none; }
.chat-form input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 100px; padding: 11px 18px;
  font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.25s;
}
.chat-form input:focus { border-color: var(--blue); }
.chat-form button {
  width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--blue);
  color: var(--white); display: grid; place-items: center; flex: none; transition: background 0.25s, transform 0.2s;
}
.chat-form button:hover { background: var(--blue-bright); transform: scale(1.06); }
@media (max-width: 480px) {
  .chat-panel { right: 12px; bottom: 92px; height: 66vh; }
  .chat-fab { right: 16px; bottom: 16px; }
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.12s; }
.reveal[data-d="2"] { transition-delay: 0.24s; }
.reveal[data-d="3"] { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-a, .float-b, .float-c { animation: none; }
}
