/* =====================================================================
   ARCS Consulting — public stylesheet
   Palette : deep navy, signal blue, emerald finance green, gold accent
   Type    : Fraunces (display) · Inter (text) · IBM Plex Mono (figures)
   ===================================================================== */

:root {
  --paper:      #ffffff;
  --wash:       #f5f8fc;
  --wash-2:     #e9f0fb;
  --line:       #dce5f2;
  --line-2:     #edf2fa;

  --ink:        #0a1628;
  --ink-2:      #3a4b66;
  --ink-3:      #6b7c97;

  /* Finance palette — navy anchor, gold accent, emerald action */
  --navy:       #0a2540;
  --navy-2:     #103464;
  --blue:       #1657c4;
  --blue-2:     #2f7be8;
  --blue-tint:  #e8f0fd;
  --gold:       #c9a24a;
  --gold-2:     #e2c47a;
  --emerald:    #0f9d58;
  --emerald-2:  #0b7d45;
  --emerald-3:  #12b06a;

  --ok:         #10714a;
  --warn:       #b3261e;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text:    'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius:    10px;
  --radius-sm: 6px;
  --wrap:      1180px;
  --shadow-1:  0 1px 2px rgba(11, 35, 64, .06);
  --shadow-2:  0 10px 30px rgba(11, 35, 64, .08);
  --shadow-3:  0 18px 50px rgba(11, 35, 64, .14);
  --ease:      cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; color: var(--navy); margin: 0 0 .5em; line-height: 1.18; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-mid { max-width: 900px; }
.wrap-narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; flex: none;
}
.link-strong {
  font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.link-strong svg { transition: transform .25s var(--ease); }
.link-strong:hover svg { transform: translateX(3px); }
.empty { color: var(--ink-3); font-style: italic; }
.ic { flex: none; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--text); font-size: .93rem; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  text-align: center; white-space: nowrap; letter-spacing: -.005em;
}
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-sm { padding: 10px 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-solid { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(22, 87, 196, .22); }
.btn-solid:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 35, 64, .2); }
.btn-line { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-line:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }
.btn-quiet { color: var(--navy); background: transparent; padding-left: 10px; padding-right: 10px; }
.btn-quiet:hover { color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--blue-tint); color: var(--navy-2); }
.btn-ghost-white { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Green call button — the highlighted CTA in the header (per requirement 6) */
.btn-call-green {
  background: var(--emerald); color: #fff;
  box-shadow: 0 6px 18px rgba(15, 157, 88, .28);
  border-radius: 999px;
  padding: 12px 28px;                 /* generous, equal horizontal padding */
  display: inline-flex;
  align-items: center;
  justify-content: center;            /* icon + label centered as one group */
  gap: 12px;                          /* consistent icon-to-text spacing */
  white-space: nowrap;
  line-height: 1;
  overflow: visible;                  /* never clip the last digit */
}
.btn-call-green:hover {
  background: var(--emerald-2); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 157, 88, .32);
}
.btn-call-green svg { color: #fff; flex: none; }
.btn-call-green span { display: inline-block; padding-right: 2px; }

/* ---------- Utility strip ---------- */
.utility {
  background: var(--navy);
  color: #cfe0f7;
  font-size: .8rem;
}
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.utility-left { display: flex; gap: 22px; flex-wrap: wrap; }
.utility-item { display: inline-flex; align-items: center; gap: 7px; color: #cfe0f7; }
.utility-item:hover { color: #fff; }
.utility-item svg { opacity: .7; }
.utility-hours { color: #9fb8d9; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.masthead.is-stuck { box-shadow: var(--shadow-2); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--navy); }

/* ARCS logo mark — finance palette: navy base with gold accent */
.brand-mark {
  width: 46px; height: 46px; flex: none; border-radius: 8px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 60%, #163e73 100%);
  color: var(--gold-2);
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  display: grid; place-items: center; letter-spacing: .06em;
  box-shadow: 0 6px 16px rgba(10, 37, 64, .32),
              inset 0 0 0 1px rgba(201, 162, 74, .35);
  position: relative;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.brand-mark::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px; opacity: .85;
}
.brand-mark-lg { width: 54px; height: 54px; font-size: 1.05rem; margin-bottom: 16px; }

/* SVG-based ARCS logo mark — replaces text-only badge */
.brand-mark-arcs { padding: 0; overflow: hidden; }
.brand-mark-arcs svg { width: 100%; height: 100%; display: block; }
.brand-mark-arcs::after { display: none; } /* SVG carries its own wordmark */
.brand-words { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--navy); }
.brand-tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav-drawer-head, .nav-backdrop, .drawer-close { display: none; }
.nav > a {
  font-size: .93rem; font-weight: 500; color: var(--ink-2); position: relative; padding: 6px 0;
}
.nav > a:hover { color: var(--navy); }
.nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--blue); transition: right .28s var(--ease);
}
.nav > a:hover::after { right: 0; }
.nav > a.is-current { color: var(--navy); font-weight: 600; }
.nav > a.is-current::after { right: 0; }
.nav-call { margin-left: 6px; }
.nav-call::after { display: none; }

.nav-toggle {
  display: none; width: 46px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius-sm); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 19px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 20px; }
.flash {
  border-radius: var(--radius-sm); padding: 13px 18px; margin-bottom: 10px;
  font-size: .92rem; border: 1px solid;
}
.flash-success { background: #edf8f2; border-color: #bfe3d1; color: var(--ok); }
.flash-error   { background: #fdf0ef; border-color: #f2c8c4; color: var(--warn); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 104px) 0 clamp(44px, 7vw, 92px);
  background:
    radial-gradient(120% 90% at 88% 0%, var(--blue-tint) 0%, rgba(232,240,253,0) 58%),
    linear-gradient(180deg, #fff 0%, var(--wash) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(22,87,196,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22,87,196,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 78%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 68px); align-items: center;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600; letter-spacing: -.025em; margin-bottom: .35em;
  max-width: 16ch;
}
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.16rem); color: var(--ink-2); max-width: 54ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: .9rem; color: var(--ink-3); }

/* Figures panel */
.figures {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.figures-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--navy); color: #fff; padding: 15px 20px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.figures-stamp { color: var(--gold-2); }
.figures-list { margin: 0; padding: 8px 20px 14px; }
.figure-row {
  display: flex; align-items: baseline; gap: 10px; padding: 14px 0;
  border-bottom: 1px dotted var(--line);
}
.figure-row:last-child { border-bottom: 0; }
.figure-row dt { color: var(--ink-2); font-size: .9rem; flex: 1 1 auto; }
.figure-row dd {
  margin: 0; font-family: var(--mono); font-weight: 600; font-size: 1.55rem;
  color: var(--blue); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.figures-foot {
  display: flex; align-items: center; gap: 8px; padding: 13px 20px;
  background: var(--wash); border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-2);
}
.figures-foot svg { color: var(--blue); }

/* ---------- Bands ---------- */
.band { padding: clamp(48px, 7vw, 96px) 0; }
.band-wash { background: var(--wash); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.band-invert { background: var(--navy); color: #cfe0f7; }
.band-invert h2 { color: #fff; }
.band-head { max-width: 640px; margin-bottom: 42px; }
.band-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.band-title { margin-bottom: .35em; }
.band-sub { color: var(--ink-2); margin: 0; }
.prose { color: var(--ink-2); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 18px; }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 26px; cursor: pointer;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; left: 26px; right: 100%; top: 0; height: 3px;
  background: var(--gold); border-radius: 0 0 3px 3px; transition: right .35s var(--ease);
}
.service-card:hover, .service-card:focus-visible {
  transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: #c9daf3;
}
.service-card:hover::before, .service-card:focus-visible::before { right: 26px; }
.service-card h3 { margin-bottom: .5em; }
.service-card p { color: var(--ink-2); font-size: .94rem; margin-bottom: 18px; }
.service-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600; color: var(--blue);
  font-family: var(--mono); letter-spacing: .04em;
}
.service-card:hover .service-more svg { transform: translateX(3px); }
.service-more svg { transition: transform .25s var(--ease); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(10, 22, 40, .55); backdrop-filter: blur(3px); padding: 20px;
  animation: fade .2s var(--ease);
}
.modal[hidden] { display: none; }
.modal-panel {
  position: relative; background: #fff; border-radius: var(--radius);
  max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 40px 40px 34px; box-shadow: var(--shadow-3);
  border-top: 4px solid var(--gold);
  animation: rise .28s var(--ease);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border: 0; background: var(--wash); border-radius: 50%; color: var(--ink-2);
  cursor: pointer; display: grid; place-items: center;
}
.modal-close:hover { background: var(--blue-tint); color: var(--blue); }
.modal-summary { font-size: 1.04rem; color: var(--navy); font-weight: 500; }
.modal-detail { color: var(--ink-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- About + reasons ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.reasons { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 26px 18px; box-shadow: var(--shadow-1); }
.reasons-head {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); padding: 18px 0 6px; margin: 0; border-bottom: 1px solid var(--line);
}
.reason { padding: 18px 0; border-bottom: 1px dotted var(--line); }
.reason:last-child { border-bottom: 0; }
.reason-title { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.reason-title svg { color: var(--emerald); }
.reason p { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* ---------- Slider / quotes ---------- */
.slider { position: relative; }
.slider-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.quote-card {
  flex: 0 0 min(420px, 84%); scroll-snap-align: start; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; position: relative;
}
.quote-mark { color: var(--blue-tint); display: block; margin-bottom: 10px; }
.quote-mark svg { color: #bcd4f5; }
.quote-card blockquote { margin: 0 0 20px; font-family: var(--display); font-size: 1.12rem; line-height: 1.55; color: var(--navy); }
.quote-card figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 14px; }
.quote-name { font-weight: 600; color: var(--ink); font-size: .93rem; }
.quote-role { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }

/* ---------- Team member cards (share slider mechanics with testimonials) ---------- */
.team-card {
  flex: 0 0 min(300px, 82%); scroll-snap-align: start; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; display: flex; flex-direction: column; align-items: center;
}
.team-photo {
  width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
  background: var(--blue-tint); border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(10, 37, 64, .12);
  display: grid; place-items: center; margin-bottom: 16px; flex: none;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo-fallback {
  font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--navy);
}
.team-card figcaption { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.team-name { font-weight: 600; color: var(--navy); font-size: 1.05rem; font-family: var(--display); }
.team-role { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }
.team-bio { margin: 10px 0 0; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-1); transition: background .2s, color .2s, opacity .2s;
}
.slider-arrow:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.slider-arrow[disabled] { opacity: 0; pointer-events: none; }
.slider-prev { left: -18px; }
.slider-prev svg { transform: rotate(180deg); }
.slider-next { right: -18px; }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wash-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.post-body h2, .post-body h3 { font-size: 1.14rem; margin: 0 0 4px; }
.post-body h2 a, .post-body h3 a { color: var(--navy); }
.post-body h2 a:hover, .post-body h3 a:hover { color: var(--blue); }
.post-body p { color: var(--ink-2); font-size: .92rem; margin: 0 0 10px; }
.post-body .link-strong { margin-top: auto; font-size: .85rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 42px); align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; box-shadow: var(--shadow-1); }
.info-row { display: flex; gap: 15px; padding: 20px 0; border-bottom: 1px dotted var(--line); color: var(--ink); align-items: flex-start; }
.info-row:last-child { border-bottom: 0; }
.info-ic {
  width: 40px; height: 40px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue);
}
.info-label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.info-value { display: block; font-weight: 600; color: var(--navy); font-size: 1.02rem; }
a.info-row:hover .info-value { color: var(--blue); }
.info-value-sub { font-weight: 500; color: var(--ink-2); font-size: .94rem; }
.info-value-plain { font-weight: 500; font-size: .94rem; color: var(--ink-2); line-height: 1.5; }
.info-card-head { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding: 18px 0 12px; margin: 0; border-bottom: 1px solid var(--line); }
.info-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.hours { list-style: none; padding: 6px 0 16px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--line); font-size: .9rem; }
.hours li:last-child { border-bottom: 0; }
.hours li span:first-child { color: var(--ink-2); }
.hours li span:last-child { font-family: var(--mono); color: var(--navy); font-size: .84rem; }

.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 240px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.25); }

.enquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 38px); box-shadow: var(--shadow-2); }
.enquiry-head { margin-bottom: 22px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field > span b { color: var(--blue); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--text); font-size: .96rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fdfefe; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 123, 232, .14);
}
.field textarea { resize: vertical; min-height: 120px; }
.enquiry-note { margin: 14px 0 0; font-size: .8rem; color: var(--ink-3); text-align: center; }

/* ---------- Page head ---------- */
.page-head {
  padding: clamp(40px, 6vw, 78px) 0 clamp(30px, 4vw, 52px);
  background: linear-gradient(180deg, var(--wash) 0%, #fff 100%);
  border-bottom: 1px solid var(--line-2);
}
.page-head h1 { max-width: 20ch; }
.page-head-sub { color: var(--ink-2); max-width: 60ch; margin: 0; font-size: 1.03rem; }

/* ---------- Services page ---------- */
.service-list { display: flex; flex-direction: column; }
.service-entry {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(18px, 4vw, 56px);
  padding: 34px 0; border-top: 1px solid var(--line);
}
.service-entry:last-child { border-bottom: 1px solid var(--line); }
.service-entry-side { display: flex; flex-direction: column; gap: 12px; }
.service-tick { width: 34px; height: 3px; background: var(--gold); border-radius: 3px; }
.service-entry-side h2 { font-size: 1.5rem; margin: 0; }
.service-entry-lead { font-size: 1.05rem; color: var(--navy); font-weight: 500; }
.service-entry-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band p { margin: 0; max-width: 52ch; color: #b9d0ee; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; align-items: start; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px 28px; display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.plan-lead { border-color: var(--gold); box-shadow: var(--shadow-2); }
.plan-badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--gold); color: #fff; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px;
}
.plan-title { font-size: 1.2rem; margin-bottom: .3em; }
.plan-price {
  font-family: var(--mono); font-size: 1.32rem; font-weight: 600; color: var(--blue);
  letter-spacing: -.02em; margin: 0 0 12px; font-variant-numeric: tabular-nums;
}
.plan-desc { color: var(--ink-2); font-size: .9rem; }
.plan-features { list-style: none; margin: 6px 0 24px; border-top: 1px solid var(--line-2); }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dotted var(--line); font-size: .9rem; color: var(--ink-2); }
.plan-features svg { color: var(--emerald); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.note-card {
  margin-top: 38px; background: var(--wash); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 24px 26px;
  color: var(--ink-2); font-size: .94rem;
}
.note-card p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 40px; }
.faq-cat { font-size: 1.15rem; padding-bottom: 12px; border-bottom: 2px solid var(--gold); display: inline-block; margin-bottom: 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; font-weight: 600; color: var(--navy); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { color: var(--blue); transform: rotate(90deg); transition: transform .25s var(--ease); flex: none; }
.faq-item[open] summary svg { transform: rotate(-90deg); }
.faq-item summary:hover { color: var(--blue); }
.faq-answer { padding: 0 0 22px; color: var(--ink-2); max-width: 72ch; }

/* ---------- Article ---------- */
.article { padding: clamp(36px, 5vw, 70px) 0 clamp(48px, 7vw, 90px); }
.back-link { color: var(--ink-3); font-size: .85rem; display: inline-block; margin-bottom: 20px; }
.back-link:hover { color: var(--blue); }
.article-title { margin-bottom: .2em; }
.article-byline { color: var(--ink-3); font-size: .9rem; margin-bottom: 24px; }
.article-image { margin: 26px 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article-image img { width: 100%; height: auto; display: block; }
.article-body { font-size: 1.02rem; line-height: 1.75; color: var(--ink); }
.article-body h2 { font-size: 1.55rem; margin-top: 1.6em; }
.article-body h3 { margin-top: 1.4em; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1em 0; }
.article-body blockquote { border-left: 3px solid var(--gold); background: var(--wash); margin: 1.4em 0; padding: 14px 22px; color: var(--navy); font-style: italic; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 1em 0; }
.article-body li { margin: .3em 0; }
.article-body code { background: var(--wash-2); padding: 2px 6px; border-radius: 4px; font-family: var(--mono); font-size: .9em; }
.article-tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags span { background: var(--wash-2); color: var(--navy-2); font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; padding: 5px 12px; border-radius: 100px; text-transform: uppercase; }
.article-cta { margin-top: 44px; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.article-cta h3 { margin: 0 0 6px; }
.article-cta p { color: var(--ink-2); margin: 0 0 14px; }
.related { margin-top: 46px; border-top: 1px solid var(--line); padding-top: 24px; }
.related h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.related-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dotted var(--line); color: var(--navy); font-weight: 500; }
.related-item:hover { color: var(--blue); }
.error-page { text-align: center; }
.error-page .hero-actions { justify-content: center; }
.error-page .eyebrow { justify-content: center; }

/* ---------- Social chips ---------- */
.soc {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  background: var(--wash-2); color: var(--navy-2); border: 1px solid transparent;
  transition: transform .22s var(--ease), background .22s, color .22s;
}
.soc:hover { transform: translateY(-2px); color: #fff; background: var(--blue); }
.soc-whatsapp:hover  { background: #25d366; }
.soc-facebook:hover  { background: #1877f2; }
.soc-instagram:hover { background: #d62976; }
.soc-linkedin:hover  { background: #0a66c2; }
.soc-twitter:hover   { background: #0f1419; }
.soc-youtube:hover   { background: #ff0000; }
.soc-telegram:hover  { background: #229ed9; }
.soc-threads:hover   { background: #0f1419; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9cee9; padding: clamp(40px, 6vw, 74px) 0 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1.4fr); gap: 40px; padding-bottom: 46px; }
.footer h4 { color: #fff; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-name { font-family: var(--display); font-size: 1.24rem; color: #fff; }
.footer-tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-top: 4px; }
.footer-reg { font-size: .82rem; color: #7fa3cf; margin-top: 10px; }
.footer-social { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.footer-social .soc { background: rgba(255,255,255,.08); color: #cfe0f7; }
.footer-col { display: flex; flex-direction: column; }
.footer-col > a { color: #b9cee9; padding: 6px 0; font-size: .92rem; }
.footer-col > a:hover { color: #fff; }
.office { margin-bottom: 20px; }
.office-label { color: #fff; font-weight: 600; font-size: .92rem; margin-bottom: 5px; display: block; }
.office-line { display: block; font-size: .86rem; color: #93b2d8; line-height: 1.55; }
a.office-line { display: inline-flex; align-items: center; gap: 7px; color: #b9cee9; margin-top: 3px; }
a.office-line:hover { color: #fff; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px; padding-bottom: 22px;
  font-size: .82rem; color: #7fa3cf;
}
.footer-copy { flex: 1 1 auto; }
.footer-dev {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: #7fa3cf; opacity: .75;
  transition: opacity .2s var(--ease);
}
.footer-dev strong { color: var(--gold-2); font-weight: 700; letter-spacing: .06em; }
.footer-dev:hover { opacity: 1; }
@media (max-width: 620px) {
  .footer-base { justify-content: center; text-align: center; }
  .footer-copy, .footer-dev { flex: 0 0 100%; }
}

/* ---------- Floating rail ---------- */
.rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 2px;
  border-radius: 10px 0 0 10px; overflow: hidden;
  box-shadow: -6px 8px 26px rgba(11, 35, 64, .16);
}
.rail-item {
  position: relative; display: flex; align-items: center;
  background: #fff; color: var(--navy); height: 46px;
  border-left: 3px solid var(--blue);
  transition: background .22s var(--ease), color .22s var(--ease);
}
.rail-call { border-left-color: var(--emerald); }
.rail-call:hover { background: var(--emerald); color: #fff; }
.rail-ic { width: 46px; height: 46px; display: grid; place-items: center; flex: none; }
.rail-label {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-size: .84rem; font-weight: 600;
  transition: max-width .32s var(--ease), opacity .22s var(--ease), padding .32s var(--ease);
  padding-right: 0;
}
.rail-item:hover { background: var(--blue); color: #fff; }
.rail-item:hover .rail-label, .rail-item:focus-visible .rail-label { max-width: 220px; opacity: 1; padding-right: 18px; }
.rail-wa:hover        { background: #25d366; border-left-color: #1da851; }
.rail-facebook:hover  { background: #1877f2; border-left-color: #0f5bc4; }
.rail-instagram:hover { background: #d62976; border-left-color: #a81f5c; }
.rail-linkedin:hover  { background: #0a66c2; border-left-color: #084d92; }
.rail-twitter:hover   { background: #0f1419; border-left-color: #000; }
.rail-youtube:hover   { background: #ff0000; border-left-color: #c00; }
.rail-telegram:hover  { background: #229ed9; border-left-color: #1b7ead; }
.rail-threads:hover   { background: #0f1419; border-left-color: #000; }

/* ---------- Mobile action bar ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: none;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(11, 35, 64, .1);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
.actionbar-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; border-radius: 8px; font-size: .72rem; font-weight: 600; color: var(--navy);
}
.actionbar-btn span { letter-spacing: .02em; }
.actionbar-primary { background: var(--emerald); color: #fff; }
.actionbar-primary:hover { background: var(--emerald-2); color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive breakpoints ---------- */
/* Large desktop / small desktop is default. */

/* Small desktop / large tablet */
@media (max-width: 1180px) {
  .wrap { padding: 0 20px; }
}

/* Tablet landscape */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .figures { max-width: 520px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .slider-prev { left: 2px; }
  .slider-next { right: 2px; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .rail { display: none; }
  .actionbar { display: flex; }
  body { padding-bottom: 68px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-entry { grid-template-columns: 1fr; gap: 14px; }

  /* Burger stays above the drawer so it can be tapped to close */
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 75;
  }

  /* Semi-transparent backdrop when the drawer is open */
  .nav-backdrop {
    display: block;
    position: fixed; inset: 0; background: rgba(10, 22, 40, .52);
    z-index: 65; opacity: 0; pointer-events: none;
    transition: opacity .28s var(--ease);
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: clamp(280px, 84vw, 340px);
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px clamp(18px, 5vw, 24px) calc(24px + env(safe-area-inset-bottom));
    box-shadow: -14px 0 44px rgba(11, 35, 64, .22);
    transform: translateX(100%);
    transition: transform .34s cubic-bezier(.22, 1, .36, 1);
    overflow-y: auto; overscroll-behavior: contain;
    z-index: 70;
    padding-right: max(clamp(18px, 5vw, 24px), env(safe-area-inset-right));
  }
  .nav.is-open { transform: none; }

  /* Drawer header — brand line + close X */
  .nav-drawer-head {
    display: flex; align-items: center; gap: 12px;
    padding: 2px 0 14px; margin: 0 0 8px;
    border-bottom: 1px solid var(--line-2);
  }
  .drawer-mark {
    width: 40px; height: 40px; border-radius: 8px; flex: none;
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 60%, #163e73 100%);
    display: grid; place-items: center;
    box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .38),
                0 4px 12px rgba(10, 37, 64, .25);
  }
  .drawer-mark svg { width: 32px; height: 32px; }
  .drawer-words {
    display: flex; flex-direction: column; min-width: 0; flex: 1;
  }
  .drawer-title {
    font-family: var(--display); font-weight: 600; font-size: 1rem;
    color: var(--navy); line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .drawer-sub {
    font-family: var(--mono); font-size: .6rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-3); margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .drawer-close {
    display: grid;
    flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: var(--wash); color: var(--ink-2); cursor: pointer;
    place-items: center;
    transition: background .18s var(--ease), color .18s var(--ease);
  }
  .drawer-close:hover, .drawer-close:focus-visible {
    background: var(--blue-tint); color: var(--blue);
  }

  .nav > a {
    padding: 14px 2px; border-bottom: 1px solid var(--line-2);
    font-size: 1rem; color: var(--ink);
  }
  .nav > a:hover, .nav > a.is-current {
    color: var(--blue); background: linear-gradient(90deg, rgba(232, 240, 253, .6), transparent);
    padding-left: 10px; border-radius: 6px 0 0 6px;
  }
  .nav > a::after { display: none; }
  .nav-call {
    margin: 22px 0 0; justify-content: center;
    padding: 14px 22px !important; background: linear-gradient(90deg, transparent, transparent);
  }

  .utility-hours { display: none; }
  .service-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .plan-grid    { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* Landscape phones — drawer stays right, but height budget is short */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .nav { padding-top: 14px; padding-bottom: 14px; }
  .nav-drawer-head { padding-bottom: 10px; margin-bottom: 4px; }
  .nav > a { padding: 11px 2px; }
  .nav-call { margin-top: 14px; }
}

/* Very small phones — shrink drawer mark and typography */
@media (max-width: 380px) {
  .drawer-mark { width: 36px; height: 36px; }
  .drawer-mark svg { width: 28px; height: 28px; }
  .drawer-title { font-size: .95rem; }
  .drawer-sub { font-size: .56rem; letter-spacing: .12em; }
  .nav > a { padding: 12px 2px; font-size: .96rem; }
}

/* Small tablet / large phone */
@media (max-width: 720px) {
  .band { padding: 44px 0; }
  .hero { padding: 40px 0 40px; }
  .hero-title { font-size: clamp(1.85rem, 7vw, 2.4rem); max-width: 100%; }
  .band-title { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
  .band-head { margin-bottom: 28px; }
  .modal-panel { padding: 30px 20px 24px; }
}

/* Phone */
@media (max-width: 620px) {
  .utility-left { gap: 14px; font-size: .76rem; }
  .utility-item span { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .band-head-row { flex-direction: column; align-items: flex-start; }
  .modal-panel { padding: 30px 18px 22px; }
  .figure-row dd { font-size: 1.3rem; }
  .brand-name { font-size: .98rem; }
  .brand-mark { width: 42px; height: 42px; font-size: .85rem; }
  .brand-tag { font-size: .58rem; letter-spacing: .12em; }
  .masthead-inner { min-height: 66px; }
  .wrap { padding: 0 16px; }
  .info-card { padding: 4px 18px; }
  .info-value { font-size: .95rem; }
  .nav-call span { font-size: .85rem; }
}

/* Very small phone */
@media (max-width: 380px) {
  .btn-lg { padding: 14px 22px; font-size: .95rem; }
  .hero-actions .btn { flex: 1; }
  .brand-words { display: none; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .utility, .masthead, .rail, .actionbar, .footer, .enquiry, .map { display: none !important; }
  body { color: #000; }
}

/* ---------- Anti-inspect hints (light deterrent, cosmetic) ---------- */
body { -webkit-user-select: text; user-select: text; }
img, .brand-mark { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }

/* =====================================================================
   ADDITIONS — consult CTA band, floating message bubble, mobile polish
   ===================================================================== */

/* ---------- Consult CTA band (services page, before footer) ---------- */
.band-consult {
  position: relative;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(201, 162, 74, .18) 0%, rgba(201, 162, 74, 0) 55%),
    linear-gradient(180deg, #fdf7ea 0%, #fbf1d8 100%);
  border-top: 1px solid #ecdcb1;
  border-bottom: 1px solid #ecdcb1;
}
.band-consult::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
}
.band-consult .eyebrow { color: var(--emerald-2); }
.band-consult .eyebrow::before { background: var(--emerald-2); }
.band-consult h2 { color: var(--navy); }
.band-consult .cta-band p { color: var(--ink-2); }

/* ---------- Floating message bubble (site-wide) ---------- */
.fab-wrap {
  position: fixed; right: 20px; bottom: 20px; z-index: 110;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.fab {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--emerald); color: #fff;
  box-shadow: 0 12px 28px rgba(15, 157, 88, .38), 0 2px 6px rgba(11, 35, 64, .12);
  display: grid; place-items: center; position: relative;
  transition: transform .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
}
.fab:hover { background: var(--emerald-2); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15, 157, 88, .44); }
.fab:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.fab .fab-ic-close { display: none; }
.fab.is-open { background: var(--navy); box-shadow: 0 12px 28px rgba(10, 37, 64, .35); }
.fab.is-open .fab-ic-open { display: none; }
.fab.is-open .fab-ic-close { display: inline-flex; }
.fab-dot {
  position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid #fff;
  animation: fab-pulse 2.2s var(--ease) infinite;
}
.fab.is-open .fab-dot { display: none; }
@keyframes fab-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: .75; }
}

.fab-panel {
  width: min(360px, calc(100vw - 40px));
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(11, 35, 64, .22); overflow: hidden;
  animation: fab-rise .24s var(--ease);
}
.fab-panel[hidden] { display: none; }
@keyframes fab-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.fab-panel-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 18px 20px;
}
.fab-panel-title { font-family: var(--display); font-size: 1.08rem; font-weight: 600; color: #fff; line-height: 1.25; }
.fab-panel-sub   { font-size: .82rem; color: #b9d0ee; margin-top: 3px; }
.fab-panel-close {
  border: 0; background: rgba(255,255,255,.14); color: #fff; width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none;
}
.fab-panel-close:hover { background: rgba(255,255,255,.28); }
.fab-form { padding: 18px 20px 20px; }
.fab-field { display: block; margin-bottom: 12px; }
.fab-field > span {
  display: block; font-size: .78rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px;
}
.fab-field > span em { color: var(--ink-3); font-style: normal; font-weight: 500; }
.fab-field input, .fab-field textarea {
  width: 100%; font-family: var(--text); font-size: .92rem; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fdfefe; transition: border-color .2s, box-shadow .2s;
}
.fab-field input:focus, .fab-field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 123, 232, .14);
}
.fab-field textarea { resize: vertical; min-height: 76px; }
.fab-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; padding: 10px; border-radius: 8px;
  background: #eafaf1; color: #0b7d45; font-size: .84rem; font-weight: 600;
  border: 1px solid #c8ecd7;
}
.fab-wa:hover { background: #d9f4e6; color: #0b7d45; }

/* Bubble adjustments across breakpoints */
@media (max-width: 900px) {
  .fab-wrap { bottom: calc(78px + env(safe-area-inset-bottom)); right: 14px; }
  .fab      { width: 54px; height: 54px; }
}
@media (max-width: 620px) {
  .fab-panel { width: calc(100vw - 28px); }
}

/* ---------- Testimonial slider polish ---------- */
.slider.is-autoplay .slider-track { scroll-behavior: smooth; }

/* ---------- Mobile & general polish ---------- */
html, body { overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }

/* Prevent iOS zoom by keeping inputs >=16px */
@media (max-width: 720px) {
  .field input, .field textarea, .field select,
  .fab-field input, .fab-field textarea {
    font-size: 16px;
  }
}

/* Utility strip better stacking on narrow screens */
@media (max-width: 620px) {
  .utility-inner { flex-wrap: wrap; row-gap: 4px; padding: 6px 0; }
  .utility-left  { gap: 12px; }
  .utility-right { display: none; }
}

/* Header tap targets */
@media (max-width: 900px) {
  .masthead-inner { min-height: 62px; }
  .nav-call { padding: 14px 22px; }
}

/* Hero actions equal width on tiny screens */
@media (max-width: 480px) {
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .band-consult { text-align: left; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { flex: 1; }
}

/* Bigger, thumb-friendly action bar buttons */
@media (max-width: 900px) {
  .actionbar-btn { padding: 10px 4px; font-size: .78rem; }
  .actionbar-btn svg { width: 18px; height: 18px; }
}

/* Slider arrows should not overlap on mobile */
@media (max-width: 720px) {
  .slider-arrow { width: 36px; height: 36px; }
  .slider-prev  { left: 0; }
  .slider-next  { right: 0; }
}

/* Footer nicer on very small */
@media (max-width: 620px) {
  .footer { padding-top: 44px; }
  .footer-social { justify-content: flex-start; }
}

/* Avoid overly narrow modal on phones */
@media (max-width: 480px) {
  .modal { padding: 12px; }
  .modal-panel { padding: 26px 18px 20px; max-height: 92vh; }
  .modal-close { top: 10px; right: 10px; }
}

/* Extra breathing room under content so FAB never covers text */
body { padding-bottom: 12px; }
@media (max-width: 900px) {
  body { padding-bottom: 82px; } /* clear the action bar */
}
