/* ============ DigiseedX design system — brand kit palette ============ */
:root {
  --green: #22C55E;        /* Primary Green — growth */
  --green-600: #16A34A;
  --green-50: #F0FDF4;
  --green-100: #DCFCE7;
  --forest: #14532D;       /* Dark Forest — trust */
  --navy: #0F172A;         /* Deep Navy — professional */
  --navy-800: #1E293B;
  --white: #FFFFFF;
  --bg: #F8FAFC;           /* Light Gray — background */
  --gold: #F59E0B;         /* Accent Gold — premium, use sparingly */
  --slate: #475569;
  --slate-300: #CBD5E1;
  --border: #E2E8F0;
  --danger: #DC2626;

  /* Legacy aliases (admin.css + inline styles) */
  --ink: var(--navy);
  --cream: var(--bg);
  --gray-600: var(--slate);
  --gray-300: var(--border);
  --red: var(--danger);
  --green-deep: var(--forest);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-num: 'Space Grotesk', monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px rgba(15, 23, 42, .07);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, .12);
  --gradient: linear-gradient(120deg, var(--green-600), var(--forest));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
/* Long unbroken strings (emails, invoice numbers, URLs) must never widen the page. */
body { overflow-wrap: break-word; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--green-600); margin-bottom: 12px; display: block;
}
.section-navy .eyebrow, .section-cta .eyebrow { color: var(--green); }
.muted { color: var(--slate); }
.accent { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  text-decoration: none; padding: 13px 26px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: all .16s ease;
}
.btn .arrow { transition: transform .16s ease; }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(34, 197, 94, .3); }
.btn-primary:hover { background: var(--green-600); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); }
.btn-outline { border-color: var(--slate-300); color: var(--navy); background: transparent; }
.btn-outline:hover { border-color: var(--green); color: var(--green-600); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(34, 197, 94, .5); outline-offset: 2px;
}

/* ---------- Skeletons & perceived performance ---------- */
/* A sweep of light across a placeholder. Used as an element's own background,
   so images need no wrapper: the shimmer shows through until pixels arrive. */
@keyframes skeleton-sweep {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
@keyframes skeleton-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.skeleton,
img.skel:not(.is-loaded) {
  background-color: rgba(148, 163, 184, .10);
  background-image: linear-gradient(90deg,
    rgba(148, 163, 184, .00) 20%,
    rgba(148, 163, 184, .22) 50%,
    rgba(148, 163, 184, .00) 80%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: skeleton-sweep 1.5s ease-in-out infinite;
}
/* On a dark band the light sweep needs less contrast to read. */
.section-navy .skeleton, .hero-modern img.skel:not(.is-loaded) {
  background-color: rgba(255, 255, 255, .05);
}
img.skel.is-loaded {
  background-image: none;
  background-color: transparent;
  animation: skeleton-fade-in .35s ease both;
}
/* An image that failed to load keeps its placeholder rather than showing a
   broken-image glyph — the origin may simply be briefly unreachable. */
img.skel.is-error { background-image: none; animation: none; }

.skeleton-block { border-radius: var(--radius-sm); display: block; }
.skeleton-slot { color: transparent; pointer-events: none; user-select: none; border-color: transparent; }

/* Navigation progress bar: the gap between a click and the next page's first
   paint is dead time, and on a cold instance that can be seconds. */
.route-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green), var(--gold));
  z-index: 200; opacity: 0; pointer-events: none;
  transition: width .25s ease, opacity .3s ease;
}
.route-progress.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .skeleton, img.skel:not(.is-loaded) { animation: none; }
  img.skel.is-loaded { animation: none; }
  .route-progress { transition: none; }
}

/* ---------- Nav ---------- */
.site-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.nav-logo img { height: 44px; width: auto; display: block; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--slate);
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--green-600); border-bottom-color: var(--green); }
.nav-links .nav-portal { color: var(--forest); font-weight: 600; }
.nav-cta { padding: 10px 20px; }
.nav-burger { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--navy); }

/* ---------- Flash ---------- */
.flash { padding: 13px 24px; text-align: center; font-weight: 600; font-size: .92rem; }
.flash-success { background: var(--green-100); color: var(--forest); }
.flash-error { background: #FEE2E2; color: var(--danger); }

/* ---------- Sections ---------- */
section.band { padding: 84px 0; }
.section-white { background: var(--white); color: var(--navy); }
.section-gray { background: var(--bg); color: var(--navy); }
.section-navy { background: var(--navy); color: #fff; }
.section-cta { background: var(--gradient); color: #fff; }
.band-head { max-width: 680px; margin-bottom: 48px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head p { color: var(--slate); margin-top: 12px; }
.section-navy .section-head p { color: var(--slate-300); }

/* ---------- Hero ---------- */
.hero-modern {
  position: relative; overflow: hidden;
  padding: 0; aspect-ratio: 21 / 9;
  display: flex; align-items: flex-end; justify-content: center;
  background: #0a0f1a;
}
/* The <picture> wrapper must not become a layout box, or the absolutely
   positioned image below (and its static mobile variant) would resolve against
   an inline element instead of .hero-modern. */
.hero-modern picture { display: contents; }
.hero-bg-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center; display: block;
}
.hero-modern .container {
  position: relative; z-index: 2; width: 100%; padding-bottom: 48px;
}
.hero-inner { text-align: center; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.icon { flex: none; display: block; }

/* ---------- Logo strip ---------- */
.logo-strip { background: var(--bg); border-bottom: 1px solid var(--border); padding: 26px 0; }
.logo-strip .container { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; justify-content: center; }
.logo-strip .strip-title { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.logo-strip .brand { font-family: var(--font-num); font-weight: 700; font-size: 1rem; color: #94A3B8; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 13px; background: var(--green-100); color: var(--forest);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px;
}
.svc-card h3 { margin-bottom: 8px; }
.svc-card .svc-sub { color: var(--slate); font-size: .95rem; margin-bottom: 18px; }
.svc-feats { list-style: none; margin-bottom: 22px; flex: 1; }
.svc-feats li { padding: 5px 0; font-size: .92rem; color: var(--slate); }
.svc-feats li::before { content: '✓  '; color: var(--green-600); font-weight: 700; }
.svc-link { font-weight: 600; color: var(--green-600); font-size: .95rem; }

/* ---------- Capability tiles ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
}
.cap-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.cap-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.cap-card p { font-size: .9rem; color: var(--slate); }

/* ---------- Growth journey ---------- */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.journey-step {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; position: relative;
}
.journey-step .j-icon {
  width: 58px; height: 58px; border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 14px;
  box-shadow: 0 8px 20px rgba(34,197,94,.35);
}
.journey-step h3 { font-size: 1.05rem; color: #fff; margin-bottom: 6px; }
.journey-step p { font-size: .84rem; color: var(--slate-300); }
.journey-step .j-num { position: absolute; top: 12px; right: 14px; font-family: var(--font-num); font-weight: 700; font-size: .8rem; color: rgba(255,255,255,.35); }
.journey-step:not(:last-child)::after {
  content: '→'; position: absolute; right: -15px; top: 42px; color: var(--green); font-size: 1.1rem; z-index: 2;
}

/* ---------- Value tiles (why us) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.section-navy .tile { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.tile .tile-icon { color: var(--green-600); margin-bottom: 12px; display: block; }
.tile h3 { font-size: 1.02rem; margin-bottom: 6px; }
.tile p { font-size: .9rem; color: var(--slate); }
.section-navy .tile p { color: var(--slate-300); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
/* Column-count modifiers. Declared here, above the breakpoints, so the
   responsive rules below win — an inline style on the element would not. */
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stat-block { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.section-navy .stat-block, .section-cta .stat-block { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.stat-value { font-family: var(--font-num); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; color: var(--green-600); line-height: 1.1; }
.section-navy .stat-value, .section-cta .stat-value { color: var(--green); }
.stat-label { font-weight: 600; margin-top: 6px; }
.stat-caption { font-size: .84rem; color: var(--slate); }
.section-navy .stat-caption, .section-cta .stat-caption { color: var(--slate-300); }

/* ---------- Service blocks (services page) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.service-block {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.service-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.service-green, .service-cream, .service-red { background: var(--white); color: var(--navy); }
.service-num { font-family: var(--font-num); font-size: 1.7rem; font-weight: 700; color: var(--green); background: var(--green-50); border-radius: 12px; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-block h3 { margin-bottom: 4px; font-size: 1.25rem; }
.service-block .service-sub { color: var(--slate); font-weight: 500; margin-bottom: 16px; }
.service-feats { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; flex: 1; }
.service-feats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 28px; }
.service-feats li { font-size: .92rem; font-weight: 500; color: var(--slate); }
.service-feats li::before { content: '✓ '; color: var(--green-600); font-weight: 700; }
.explore-link { font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--green-600); white-space: nowrap; margin-top: auto; }
.explore-link:hover { color: var(--forest); }
@media (max-width: 960px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.process-step { padding: 24px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); border-radius: var(--radius); }
.section-white .process-step, .section-gray .process-step { border-color: var(--border); background: var(--white); }
.process-step .p-num { font-family: var(--font-num); color: var(--green); font-weight: 700; font-size: 1.3rem; }
.process-step h3 { font-size: 1.05rem; margin-top: 6px; }

/* ---------- Case cards ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.case-card {
  background: var(--white); color: var(--navy); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-img { height: 180px; background: linear-gradient(135deg, var(--navy) 0%, var(--forest) 100%); position: relative; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-img .case-monogram { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: rgba(255,255,255,.35); }
.case-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.case-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--green-600); }
.case-metrics { background: var(--navy); color: #fff; display: flex; }
.case-metrics .m { flex: 1; padding: 14px 10px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.case-metrics .m:last-child { border-right: none; }
.case-metrics .m-value { font-family: var(--font-num); font-weight: 700; font-size: 1.2rem; display: block; color: var(--green); }
.case-metrics .m-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-300); }
.case-view { padding: 13px 24px; font-weight: 700; font-size: .82rem; color: var(--green-600); border-top: 1px solid var(--border); }

/* ---------- Filter tabs ---------- */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 40px; }
.filter-tabs a {
  text-decoration: none; font-size: .84rem; font-weight: 600;
  padding: 9px 18px; border-radius: 30px; border: 1px solid rgba(255,255,255,.25); color: #fff;
}
.section-white .filter-tabs a, .section-gray .filter-tabs a { border-color: var(--border); color: var(--slate); }
.filter-tabs a.active, .filter-tabs a:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Pricing ---------- */
.toggle-row { display: flex; align-items: center; gap: 14px; margin: 22px 0 46px; font-weight: 600; font-size: .92rem; }
.toggle-hint { color: var(--green-600); font-size: .8rem; font-weight: 700; background: var(--green-100); padding: 4px 12px; border-radius: 20px; }
.switch { position: relative; width: 54px; height: 28px; background: var(--slate-300); border-radius: 20px; border: none; cursor: pointer; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transition: left .15s; }
.switch.on { background: var(--green); }
.switch.on::after { left: 29px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
/* A service may publish any number of plans, so the grid follows the count. */
.pricing-grid-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.pricing-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pricing-grid-3 { grid-template-columns: repeat(3, 1fr); }
/* The pricing section is an in-page anchor; clear the sticky header. */
#pricing { scroll-margin-top: 90px; }
.price-sub { font-size: .85rem; font-weight: 600; color: var(--slate); margin-top: 6px; }
.price-card.popular .price-sub { color: var(--slate-300); }
.price-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 30px; display: flex; flex-direction: column; position: relative; }
.price-card.popular { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 16px; border-radius: 20px; white-space: nowrap; }
.price-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; color: var(--green-600); }
.price-card.popular .price-name { color: var(--green); }
.price-amount { font-family: var(--font-num); font-size: 2.3rem; font-weight: 700; }
.price-amount .per { font-size: .95rem; font-weight: 500; opacity: .65; font-family: var(--font-body); }
.price-desc { margin: 10px 0 20px; font-size: .93rem; color: var(--slate); }
.price-card.popular .price-desc { color: var(--slate-300); }
.price-feats { list-style: none; margin-bottom: 28px; flex: 1; }
.price-feats li { padding: 7px 0; font-size: .93rem; border-bottom: 1px dashed var(--border); }
.price-card.popular .price-feats li { border-bottom-color: rgba(255,255,255,.14); }
.price-feats li::before { content: '✓  '; color: var(--green-600); font-weight: 700; }
.price-card.popular .price-feats li::before { color: var(--green); }
/* ---------- Service FAQs ---------- */
.faq-list { margin-top: 12px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq-item summary { cursor: pointer; padding: 18px 34px 18px 0; font-weight: 600; font-size: 1rem; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--green-600); line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 34px 20px 0; color: var(--slate); font-size: .95rem; }

/* Plan carried over from a service page into the booking flow. */
.chosen-plan { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; background: var(--green-100); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.chosen-plan .eyebrow { margin: 0; }
.chosen-plan strong { font-size: 1.05rem; }

.custom-panel { margin-top: 56px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 42px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; margin-top: 56px; }
.trust-badge { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .9rem; color: var(--slate); }
.trust-badge .t-icon { color: var(--green-600); display: inline-flex; }

/* ---------- Testimonial ---------- */
.testimonial { max-width: 780px; margin: 0 auto; text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 44px; box-shadow: var(--shadow); }
.testimonial blockquote { font-size: clamp(1.1rem, 2.1vw, 1.4rem); font-weight: 500; line-height: 1.55; margin-bottom: 22px; color: var(--navy); }
.testimonial blockquote::before { content: '“'; color: var(--green); font-family: var(--font-display); font-size: 3rem; display: block; line-height: .5; margin-bottom: 16px; }
.testimonial .t-author { font-weight: 700; }
.testimonial .t-role { color: var(--slate); font-size: .9rem; }
.t-controls { margin-top: 24px; display: flex; gap: 12px; justify-content: center; }
.t-controls button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); font-size: 1rem; cursor: pointer; color: var(--navy); }
.t-controls button:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-family: var(--font-display);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--green-600); font-size: 1.4rem; font-weight: 400; flex: none; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-a { padding: 0 22px 18px; color: var(--slate); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 520px; margin: 0 auto 30px; opacity: .92; }
.cta-band .hero-ctas { justify-content: center; }
.section-white.cta-band p, .section-gray.cta-band p { color: var(--slate); opacity: 1; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); font-family: var(--font-body); font-size: .95rem; color: var(--navy);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.form-note { font-size: .82rem; color: var(--slate); }
.radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.radio-card { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 18px; cursor: pointer; display: block; background: var(--white); transition: border-color .12s; }
.radio-card input { margin-right: 10px; accent-color: var(--green-600); }
.radio-card.selected { border-color: var(--green); background: var(--green-50); }

/* ---------- Booking stepper ---------- */
.stepper { display: flex; margin: 38px 0; }
.step { flex: 1; text-align: center; position: relative; font-size: .78rem; font-weight: 600; color: var(--slate); }
.step .s-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--border); color: var(--navy); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-family: var(--font-num); font-weight: 700; }
.step.done .s-dot, .step.current .s-dot { background: var(--green); color: #fff; }
.step.current { color: var(--navy); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 17px; left: calc(50% + 24px); width: calc(100% - 48px); height: 2px; background: var(--border); }
.step.done:not(:last-child)::after { background: var(--green); }
.book-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 16px; }
.slot { padding: 12px 8px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; font-family: var(--font-num); font-weight: 500; min-height: 44px; }
.slot.selected, .slot:hover { background: var(--green); color: #fff; border-color: var(--green); }
.book-nav { display: flex; justify-content: space-between; margin-top: 28px; }
.confirm-box { text-align: center; padding: 26px 0; }
.confirm-box .big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 2.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 10px 26px rgba(34,197,94,.35); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-cover { height: 175px; background: linear-gradient(135deg, var(--navy), var(--forest)); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 24px; }
.post-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.post-meta { font-size: .8rem; color: var(--slate); margin-bottom: 8px; }
.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.article .prose { margin-top: 28px; }
.prose p { margin-bottom: 18px; color: #334155; }
.prose h2 { font-size: 1.45rem; margin: 30px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: #334155; }
.prose a { color: var(--green-600); }
.prose strong { color: var(--navy); }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 440px; margin: 64px auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 42px; }
.auth-wrap h1 { font-size: 1.6rem; margin-bottom: 22px; }
.auth-wrap .field { margin-bottom: 16px; }
.auth-alt { margin-top: 20px; font-size: .9rem; color: var(--slate); }
.auth-alt a { color: var(--green-600); }

/* ---------- Portal ---------- */
.portal { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 69px); }
.portal-side { background: var(--navy); color: #fff; padding: 28px 0; }
.portal-profile { padding: 0 24px 22px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 16px; }
.portal-profile .p-name { font-weight: 700; }
.portal-profile .p-company { font-size: .82rem; color: var(--slate-300); }
.portal-side nav a { display: flex; gap: 12px; align-items: center; padding: 11px 24px; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--slate-300); border-left: 3px solid transparent; }
.portal-side nav a:hover { color: #fff; }
.portal-side nav a.active { color: #fff; border-left-color: var(--green); background: rgba(34,197,94,.08); }
.portal-side .side-logout { margin-top: 24px; color: #FCA5A5; }
.portal-main { padding: 38px; background: var(--bg); }
.portal-main h1 { font-size: 1.7rem; margin-bottom: 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.stat-card .sc-value { font-family: var(--font-num); font-size: 1.7rem; font-weight: 700; color: var(--green-600); }
.stat-card .sc-label { font-size: .82rem; color: var(--slate); font-weight: 600; }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 26px; }
.panel h2 { font-size: 1.1rem; margin-bottom: 16px; }
.progress-row { margin-bottom: 18px; }
.progress-row .pr-head { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.progress-bar { height: 9px; background: var(--border); border-radius: 6px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--gradient); border-radius: 6px; }
/* Wide tables scroll inside their own box instead of widening the page. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > .data-table, .table-scroll > .line-items-table { min-width: 560px; }

.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate); padding: 10px 12px; border-bottom: 2px solid var(--border); }
.data-table td { padding: 12px; border-bottom: 1px solid #EEF2F6; }
.data-table tr:hover td { background: var(--bg); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pill-paid, .pill-completed, .pill-won, .pill-confirmed, .pill-qualified { background: var(--green-100); color: var(--forest); }
.pill-unpaid, .pill-lost, .pill-cancelled { background: #FEE2E2; color: var(--danger); }
.pill-draft, .pill-new, .pill-planned { background: #F1F5F9; color: var(--slate); }
.pill-in_progress, .pill-contacted, .pill-review { background: #FEF3C7; color: #92400E; }
.pill-partial { background: #FEF3C7; color: #92400E; }
.help-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------- Invoice detail ---------- */
.invoice-doc { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px; max-width: 780px; }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.invoice-total-row td { font-weight: 700; border-top: 2px solid var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 66px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; gap: 34px; padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { height: 42px; width: auto; border-radius: 8px; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; color: var(--slate-300); }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 14px; color: var(--green); font-family: var(--font-display); }
.site-footer a { display: block; text-decoration: none; font-size: .92rem; color: var(--slate-300); padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-address { font-size: .88rem; color: var(--slate-300); margin-top: 6px; }
.footer-social { display: flex; gap: 14px; margin-top: 10px; }
.footer-social a { display: inline; }
.footer-newsletter { margin-top: 18px; }
.footer-newsletter label { font-size: .8rem; font-weight: 600; display: block; margin-bottom: 8px; color: var(--slate-300); }
.footer-newsletter-row { display: flex; gap: 8px; }
.footer-newsletter input { flex: 1; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; min-width: 0; }
.footer-newsletter input::placeholder { color: #94A3B8; }
.footer-newsletter .btn { padding: 10px 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: .82rem; color: #94A3B8; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pricing-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .journey-step:not(:last-child)::after { display: none; }
  .tiles, .stats, .stats-3, .process { grid-template-columns: repeat(2, 1fr); }
  .case-grid, .post-grid { grid-template-columns: 1fr; }
  .pricing-grid, .pricing-grid-1, .pricing-grid-2, .pricing-grid-3 { grid-template-columns: 1fr; }
  .pricing-grid-1 { justify-content: stretch; }
  .price-card.popular { transform: none; }
  .service-block { grid-template-columns: 1fr; gap: 16px; padding: 30px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .portal { grid-template-columns: 1fr; }
  .portal-side { display: flex; overflow-x: auto; padding: 0; align-items: center; }
  .portal-profile { display: none; }
  .portal-side nav { display: flex; }
  .portal-side nav a { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .portal-side nav a.active { border-bottom-color: var(--green); }
  .portal-main { padding: 22px; }
  .testimonial { padding: 36px 26px; }
}
@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 18px 24px; gap: 14px;
    border-bottom: 1px solid var(--border); align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-inner { gap: 12px; }
  .tiles, .stats, .stats-3, .process, .form-grid, .radio-cards, .cap-grid, .journey, .hero-stats { grid-template-columns: 1fr; }
  .service-feats-grid { grid-template-columns: 1fr; }
  section.band { padding: 56px 0; }

  /* The hero art is a 21:9 image with its headline baked in. Cropping it would
     cut the words, and at phone widths a 21:9 band is too short to hold the
     CTAs — so the image sits in the flow and the buttons stack beneath it. */
  .hero-modern { aspect-ratio: auto; display: block; }
  .hero-bg-img { position: static; width: 100%; height: auto; object-fit: contain; }
  .hero-modern .container { padding-top: 26px; padding-bottom: 34px; }

  .book-panel { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .custom-panel { padding: 30px 24px; }
  .invoice-doc { padding: 26px 20px; }
  .auth-wrap { margin: 36px auto; padding: 30px 24px; }
  .article { max-width: 100%; }
  .section-head { margin-bottom: 36px; }
  .band-head { margin-bottom: 32px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  section.band { padding: 44px 0; }
  .price-card { padding: 30px 22px; }
  .testimonial { padding: 30px 20px; }
  /* Stack CTAs full-width: side-by-side buttons overflow below ~380px. */
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .footer-newsletter-row { flex-direction: column; align-items: stretch; }
  .stat-cards { grid-template-columns: 1fr; }
  .filter-tabs { gap: 8px; }
}
