/* ==========================================================================
   DGResonance — styles.css
   Design system: tokens → base → typography → components → sections → widgets
   (all responsive rules live in responsive.css, incl. reduced-motion)
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-400-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-500-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --color-primary: #B5121B;
  --color-primary-dark: #850D15;
  --color-orange: #F15A24;
  --color-gold: #F5A623;
  --color-dark: #171717;
  --color-dark-soft: #242424;
  --color-white: #FFFFFF;
  --color-neutral: #F7F7F5;
  --color-border: #E8E5E0;
  --color-coral-tint: #FBECE7;
  --color-text: #333333;
  --color-muted: #686868;

  --font-heading: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --grad-accent: linear-gradient(90deg, #B5121B 0%, #F15A24 100%);
  --grad-accent-wide: linear-gradient(90deg, #B5121B 0%, #F15A24 55%, #F5A623 100%);

  --container: 1180px;
  --gutter: 24px;
  --header-h: 78px;

  --space-1: 6px;
  --space-2: 12px;
  --space-3: 20px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(23, 23, 23, .05), 0 4px 14px rgba(23, 23, 23, .05);
  --shadow-md: 0 4px 10px rgba(23, 23, 23, .06), 0 18px 40px rgba(23, 23, 23, .09);
  --shadow-lg: 0 10px 30px rgba(23, 23, 23, .10), 0 40px 80px rgba(23, 23, 23, .14);

  --focus: #F15A24;
  --focus-dark: #F5A623;

  /* Floating widgets — positions & stacking (single source of truth) */
  --wa-fab-size: 60px;
  --chat-fab-size: 60px;
  --edge-r: calc(24px + env(safe-area-inset-right, 0px));
  --edge-b: calc(24px + env(safe-area-inset-bottom, 0px));
  --widget-gap: 12px;
  --chat-h: min(560px, calc(100dvh - 2 * var(--wa-fab-size) - 2 * var(--widget-gap) - 48px - env(safe-area-inset-bottom, 0px)));
  --z-header: 300;
  --z-widgets: 700;
  --z-chat: 750;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible, .chat-panel__head :focus-visible { outline-color: var(--focus-dark); }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 500;
  background: var(--color-dark); color: #fff; font-weight: 600;
  padding: 12px 18px; border-radius: 0 0 10px 10px; transition: top .18s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, .95rem + .7vw, 1.4rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
strong { color: var(--color-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark strong { color: #fff; }

.text-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1.02rem, .95rem + .3vw, 1.16rem);
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 62ch;
}
.on-dark .lead { color: rgba(255, 255, 255, .78); }

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section { padding-block: clamp(58px, 7vw, 104px); }
.section--tight { padding-block: clamp(44px, 5vw, 72px); }
.section--neutral { background: var(--color-neutral); }
.section--dark { background: var(--color-dark); color: rgba(255, 255, 255, .82); position: relative; overflow: hidden; }
.section--dark::before {
  content: ''; position: absolute; inset: 0;
  background: url('../images/decorative/dark-brand-texture-1600.webp') center/cover no-repeat;
  opacity: .35; pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 1; }

.section-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 14px; }
.section-head--center .lead { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--color-primary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-accent);
}
.on-dark .eyebrow { color: var(--color-gold); }
.on-dark .eyebrow::before { background: var(--grad-accent-wide); }
.section-index {
  font-family: var(--font-heading); font-weight: 700; font-size: .8rem;
  letter-spacing: .18em; color: var(--color-gold);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 700; font-size: .95rem;
  line-height: 1; padding: 16px 26px; border-radius: 10px;
  border: 1.5px solid transparent; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: 0 8px 20px rgba(181, 18, 27, .22); }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; box-shadow: 0 12px 26px rgba(181, 18, 27, .3); }
.btn--ghost { background: #fff; border-color: #D9D5CE; color: var(--color-dark); }
.btn--ghost:hover { border-color: var(--color-dark); color: var(--color-dark); }
.btn--dark { background: var(--color-dark); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--outline-light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.btn--sm { padding: 12px 20px; font-size: .88rem; border-radius: 9px; }
.btn--block { width: 100%; }
.btn svg { flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: .92rem;
  color: var(--color-primary);
}
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--color-gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(23, 23, 23, .08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: auto; height: 46px; }
.brand__tag {
  display: none; font-family: var(--font-heading); font-size: .68rem;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-muted); border-left: 1px solid var(--color-border);
  padding-left: 12px; line-height: 1.3; max-width: 90px;
}

.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; margin: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: .93rem;
  color: var(--color-dark); padding: 10px 14px; border-radius: 9px;
  text-decoration: none; transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover { color: var(--color-primary); background: var(--color-coral-tint); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--color-primary); }
.nav-link[aria-current="page"]::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-primary); margin-left: 2px;
}
.nav-item { position: relative; }
.nav-item__row { display: inline-flex; align-items: center; }
.submenu-toggle {
  padding: 8px; border-radius: 8px; color: var(--color-muted);
  display: inline-flex; transition: background-color .15s ease, color .15s ease;
}
.submenu-toggle:hover { background: var(--color-coral-tint); color: var(--color-primary); }
.nav-item .chev { display: inline-flex; transition: transform .18s ease; }
.nav-item.is-open .chev { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 300px; padding: 8px; list-style: none; margin: 0;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 10;
}
.nav-item.is-open > .submenu,
.nav-item:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: .88rem; font-weight: 500; color: var(--color-text);
  padding: 9px 12px; border-radius: 8px; text-decoration: none;
}
.submenu a:hover, .submenu a:focus-visible { background: var(--color-neutral); color: var(--color-primary); text-decoration: none; }
.submenu a[aria-current="page"] { color: var(--color-primary); font-weight: 700; }
.submenu a .arr { opacity: 0; transform: translateX(-4px); transition: .15s ease; color: var(--color-primary); }
.submenu a:hover .arr, .submenu a:focus-visible .arr { opacity: 1; transform: none; }
.submenu .submenu__all { border-top: 1px solid var(--color-border); margin-top: 6px; padding-top: 8px; font-weight: 700; }

.header-cta { display: inline-flex; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 10px;
  border: 1.5px solid var(--color-border); background: #fff;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--color-dark);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--color-neutral); border-bottom: 1px solid var(--color-border); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; list-style: none; margin: 0; font-size: .84rem; }
.breadcrumb a { color: var(--color-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; color: var(--color-muted); }
.breadcrumb li + li::before { content: '/'; color: #B9B4AC; }
.breadcrumb [aria-current="page"] { color: var(--color-dark); font-weight: 600; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 92px) clamp(40px, 5vw, 72px);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .68) 0%, rgba(255, 255, 255, .42) 46%, rgba(255, 255, 255, .12) 100%),
    url('../images/decorative/brand-gradient-1600.webp') center/cover no-repeat,
    #fff;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr;
  align-items: center;
}
.hero__body { max-width: 780px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--color-coral-tint); color: var(--color-primary-dark);
  font-family: var(--font-heading); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 16px; border-radius: var(--radius-pill); margin-bottom: 22px;
}
.hero__kicker svg { color: var(--color-primary); }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; color: #000; }
.hero__note { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: .88rem; color: var(--color-dark); }
.hero__note span { display: inline-flex; align-items: center; gap: 7px; }
.hero__note svg { color: var(--color-orange); flex: none; }

.service-strip { border-top: 1px solid var(--color-border); background: var(--color-white); }
.service-strip__inner {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px 18px;
  padding: 18px 0;
}
.service-strip__label {
  grid-column: 1 / -1;
  font-family: var(--font-heading); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted);
}
.service-strip a {
  font-size: .9rem; font-weight: 600; color: var(--color-text); text-align: center;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.service-strip a:hover { color: var(--color-primary); border-color: var(--color-orange); text-decoration: none; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4.5vw, 66px); align-items: center; }
.split--media-first .split__media { order: -1; }
.split__media { position: relative; }
.split__media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 11; object-fit: cover;
}
.split__media--portrait img { aspect-ratio: 4 / 4.4; }
.split__tag {
  position: absolute; bottom: -18px; right: 20px; background: var(--color-dark); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 12px 18px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}
.split__body > * + * { margin-top: 18px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.check-list svg { flex: none; margin-top: 4px; color: var(--color-orange); }
.on-dark .check-list svg { color: var(--color-gold); }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 28px 26px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #DCD7CF; }
.service-card__icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--color-coral-tint); color: var(--color-primary);
  transition: background-color .2s ease, color .2s ease;
}
.service-card:hover .service-card__icon { background: var(--grad-accent); color: #fff; }
.service-card h3 a { color: var(--color-dark); text-decoration: none; }
.service-card h3 a::after { content: ''; position: absolute; inset: 0; }
.service-card h3 a:hover { text-decoration: none; }
.service-card p { font-size: .94rem; color: var(--color-muted); line-height: 1.6; }
.service-card .link-arrow { margin-top: auto; padding-top: 6px; font-size: .86rem; }
.service-card .link-arrow svg { position: relative; z-index: 1; }
.service-card h3 { position: relative; z-index: 1; }

.featured-service {
  margin-top: 24px; display: grid; grid-template-columns: 1.2fr .8fr;
  gap: clamp(20px, 3vw, 44px); align-items: center;
  background: var(--color-dark); color: rgba(255, 255, 255, .8);
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  border: 1px solid #2C2C2C;
}
.featured-service::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--grad-accent-wide);
}
.featured-service__body { padding: clamp(28px, 3.4vw, 48px); position: relative; z-index: 1; }
.featured-service__body .eyebrow { color: var(--color-gold); }
.featured-service__body p { color: rgba(255, 255, 255, .76); margin: 14px 0 22px; max-width: 56ch; }
.featured-service__media { align-self: stretch; position: relative; min-height: 240px; }
.featured-service__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-service__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-dark) 0%, rgba(23, 23, 23, .25) 45%, rgba(23, 23, 23, 0) 100%); }

/* ---------- Why / dark feature list ---------- */
.why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.why-list li {
  display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.why-list li:last-child { border-bottom: 0; }
.why-list__num {
  font-family: var(--font-heading); font-weight: 800; font-size: .95rem;
  color: var(--color-gold); padding-top: 3px;
}
.why-list h3 { font-size: 1.06rem; margin-bottom: 5px; }
.why-list p { font-size: .93rem; color: rgba(255, 255, 255, .72); line-height: 1.6; }

/* ---------- Industries ---------- */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.industry-card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.industry-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.industry-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.industry-card__label {
  font-family: var(--font-heading); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--color-orange);
}
.industry-card p { font-size: .92rem; color: var(--color-muted); line-height: 1.6; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.process-grid::before {
  content: ''; position: absolute; top: 27px; left: 4%; right: 4%; height: 2px;
  background: linear-gradient(90deg, #B5121B, #F15A24 55%, #F5A623);
  opacity: .35;
}
.process-step { position: relative; padding-top: 0; }
.process-step__num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 1rem; color: #fff;
  background: var(--grad-accent); box-shadow: 0 8px 20px rgba(181, 18, 27, .25);
  position: relative; z-index: 1; margin-bottom: 18px;
  border: 4px solid var(--color-white);
}
.section--neutral .process-step__num { border-color: var(--color-neutral); }
.process-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.process-step p { font-size: .93rem; color: var(--color-muted); line-height: 1.62; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.faq-layout__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item[open] { border-color: #DCD7CF; box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  list-style: none; cursor: pointer;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  color: var(--color-dark); padding: 20px 22px; line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-primary); }
.faq-item summary .faq-icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--color-coral-tint);
  color: var(--color-primary); transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); background: var(--grad-accent); color: #fff; }
.faq-item__body { padding: 0 22px 22px; color: var(--color-muted); font-size: .96rem; }
.faq-item__body p + p { margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; background: var(--color-dark); color: #fff;
  padding-block: clamp(48px, 6vw, 84px);
}
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content: ''; position: absolute; inset: 0; background: rgba(17, 17, 17, .78); }
.cta-band .container { position: relative; z-index: 1; text-align: center; max-width: 820px; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 60ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }
.cta-band__contact { margin-top: 22px; font-size: .92rem; color: rgba(255, 255, 255, .72); }
.cta-band__contact a { color: var(--color-gold); font-weight: 600; }

/* ---------- Service page hero ---------- */
.page-hero { background: var(--color-neutral); border-bottom: 1px solid var(--color-border); padding-block: clamp(38px, 5vw, 72px); position: relative; overflow: hidden; }
.page-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.page-hero h1 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.2rem); margin-bottom: 16px; }
.page-hero .lead { margin-bottom: 26px; }
.page-hero__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tag-chip {
  font-family: var(--font-heading); font-size: .76rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--color-text);
  background: #fff; border: 1px solid var(--color-border);
  padding: 7px 13px; border-radius: var(--radius-pill);
}

/* ---------- Generic content blocks ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 44px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.prose h3 { margin-top: 30px; }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 9px; }
.prose li::marker { color: var(--color-primary); }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card {
  background: #fff; border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-orange);
  border-radius: 12px; padding: 22px 22px 24px;
}
.problem-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.problem-card p { font-size: .92rem; color: var(--color-muted); line-height: 1.6; }

.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.offer-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 22px;
  transition: border-color .18s ease, transform .18s ease;
}
.offer-item:hover { border-color: #DCD7CF; transform: translateY(-3px); }
.offer-item__icon {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; background: var(--color-coral-tint); color: var(--color-primary);
}
.offer-item h3 { font-size: 1rem; margin-bottom: 6px; }
.offer-item p { font-size: .92rem; color: var(--color-muted); line-height: 1.6; }

.benefit-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px);
  color: rgba(255, 255, 255, .8);
  background:
    linear-gradient(rgba(17, 17, 17, .84), rgba(17, 17, 17, .88)),
    url('../images/decorative/brand-gradient-800.webp') center/cover no-repeat,
    var(--color-dark);
}
.benefit-band > * { position: relative; z-index: 1; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.benefit-item h3 { font-size: 1rem; color: #fff; margin: 12px 0 6px; }
.benefit-item p { font-size: .9rem; color: rgba(255, 255, 255, .7); line-height: 1.6; }
.benefit-item__icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .09); color: var(--color-gold); }

.note-panel {
  background: var(--color-coral-tint); border: 1px solid #F3D9CF;
  border-radius: var(--radius-md); padding: 24px 26px;
}
.note-panel h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--color-primary-dark); }
.note-panel p { font-size: .95rem; color: #5A4238; }
.note-panel p + p { margin-top: 8px; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; }
.stat-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.stat-card p { font-size: .9rem; color: var(--color-muted); }

.related-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.related-links__label { font-family: var(--font-heading); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); }
.related-links a {
  font-size: .88rem; font-weight: 600; color: var(--color-text);
  background: var(--color-neutral); border: 1px solid var(--color-border);
  padding: 9px 16px; border-radius: var(--radius-pill); text-decoration: none;
  transition: .16s ease;
}
.related-links a:hover { background: var(--color-coral-tint); border-color: #EFC9BE; color: var(--color-primary); text-decoration: none; }

/* ---------- About extras ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mv-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px); position: relative; overflow: hidden;
}
.mv-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad-accent); }
.mv-card--vision::before { background: linear-gradient(180deg, #F15A24, #F5A623); }
.mv-card .eyebrow { margin-bottom: 10px; }
.mv-card p { color: var(--color-muted); font-size: .97rem; }

.quote-block {
  border-left: 4px solid var(--color-orange); padding: 6px 0 6px 24px;
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
  color: var(--color-dark); line-height: 1.5; letter-spacing: -0.01em;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 4vw, 56px); align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.contact-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 20px;
  color: inherit; text-decoration: none; transition: .18s ease;
}
a.contact-card:hover { text-decoration: none; border-color: var(--color-orange); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.contact-card__icon { flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--color-coral-tint); color: var(--color-primary); }
.contact-card h3 { font-size: .95rem; margin-bottom: 3px; }
.contact-card p { font-size: .92rem; color: var(--color-muted); word-break: break-word; }

.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-heading); font-size: .86rem; font-weight: 700; color: var(--color-dark); }
.form-field label .req { color: var(--color-primary); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: var(--color-neutral); border: 1.5px solid var(--color-border);
  border-radius: 10px; padding: 13px 15px; font-size: .96rem; color: var(--color-text);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--color-orange); background: #fff;
  box-shadow: 0 0 0 3px rgba(241, 90, 36, .18);
}
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: none; }
.form-field .field-error { font-size: .82rem; color: var(--color-primary-dark); font-weight: 600; min-height: 1em; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--color-primary); background: #FFF6F5; }
.form-hint { font-size: .85rem; color: var(--color-muted); }
.form-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--color-coral-tint); border: 1px solid #F1D6CC;
  border-radius: 12px; padding: 16px 18px; font-size: .88rem; color: #5A4238; margin-bottom: 22px;
}
.form-notice svg { flex: none; color: var(--color-primary); margin-top: 2px; }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 12px; font-size: .92rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: #EEF7EE; border: 1px solid #CDE5CE; color: #215025; }
.form-status--ok a { color: #1B6A21; font-weight: 700; }
.form-status--info { background: var(--color-neutral); border: 1px solid var(--color-border); color: var(--color-text); }

.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
.steps-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.steps-list li::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 800; font-size: .9rem; color: #fff;
  background: var(--grad-accent);
}
.steps-list h3 { font-size: 1rem; margin-bottom: 4px; }
.steps-list p { font-size: .92rem; color: var(--color-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: rgba(255, 255, 255, .72); position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-accent-wide); }
.footer-main {
  display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
  gap: clamp(28px, 3.5vw, 48px); padding-block: clamp(48px, 6vw, 72px) clamp(32px, 4vw, 48px);
}
.footer-brand__logo {
  display: inline-flex; background: #fff; border-radius: 14px; padding: 12px 16px;
  margin-bottom: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.footer-brand__logo img { height: 52px; width: auto; }
.footer-brand__tag {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; color: var(--color-gold);
  letter-spacing: .02em; margin-bottom: 12px;
}
.footer-brand p { font-size: .92rem; line-height: 1.65; color: rgba(255, 255, 255, .66); max-width: 42ch; }
.footer-col h2 {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .72); font-size: .93rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--color-gold); text-decoration: none; }
.footer-links .is-current { color: #fff; font-weight: 600; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; }
.footer-contact svg { flex: none; margin-top: 3px; color: var(--color-orange); }
.footer-contact .muted { color: rgba(255, 255, 255, .72); }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; transition: .18s ease;
}
.social-row a:hover { background: var(--grad-accent); border-color: transparent; transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: .85rem; color: rgba(255, 255, 255, .58);
}
.footer-bottom a { color: rgba(255, 255, 255, .72); }
.footer-bottom a:hover { color: var(--color-gold); }
.footer-credit { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .32); }
.footer-credit:hover { text-decoration-color: currentColor; }
.footer-bottom__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Floating WhatsApp widget ---------- */
.wa-fab {
  position: fixed; right: var(--edge-r); z-index: var(--z-widgets);
  bottom: calc(var(--edge-b) + var(--chat-fab-size) + var(--widget-gap));
  transition: bottom .28s cubic-bezier(.2, .7, .3, 1), transform .2s ease;
}
body.chat-open .wa-fab {
  bottom: calc(var(--edge-b) + var(--chat-fab-size) + var(--widget-gap) + var(--chat-h) + var(--widget-gap));
}
.wa-fab__link {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #0B3D21;
  font-family: var(--font-heading); font-weight: 800; font-size: .9rem;
  height: var(--wa-fab-size); padding: 0 20px; border-radius: var(--radius-pill);
  box-shadow: 0 10px 26px rgba(37, 211, 102, .38), 0 4px 10px rgba(0, 0, 0, .16);
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.wa-fab__link:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 14px 32px rgba(37, 211, 102, .45); }
.wa-fab__link svg { flex: none; }
.wa-fab__link .wa-fab__icon-wrap {
  width: calc(var(--wa-fab-size) - 12px); height: calc(var(--wa-fab-size) - 12px);
  margin-left: -8px; border-radius: 50%; background: #128C7E; display: grid; place-items: center; color: #fff;
}

/* ---------- Floating chatbot ---------- */
.chat-launcher {
  position: fixed; right: var(--edge-r); bottom: var(--edge-b); z-index: var(--z-widgets);
  width: var(--chat-fab-size); height: var(--chat-fab-size); border-radius: 50%;
  background: var(--grad-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(181, 18, 27, .4);
  transition: transform .18s ease, box-shadow .18s ease;
}
.chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(181, 18, 27, .48); }
.chat-launcher .icon-chat,
.chat-launcher .icon-close {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.chat-launcher svg { display: block; transition: opacity .18s ease, transform .18s ease; }
.chat-launcher .icon-close { opacity: 0; transform: scale(.6) rotate(-90deg); }
body.chat-open .chat-launcher .icon-chat { opacity: 0; transform: scale(.6) rotate(90deg); }
body.chat-open .chat-launcher .icon-close { opacity: 1; transform: none; }

.chat-panel {
  position: fixed; right: var(--edge-r); z-index: var(--z-chat);
  bottom: calc(var(--edge-b) + var(--chat-fab-size) + var(--widget-gap));
  width: min(380px, calc(100% - var(--edge-r) - 16px));
  height: var(--chat-h);
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  animation: chat-in .22s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-panel__head {
  background: var(--color-dark); color: #fff; padding: 15px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.chat-panel__head strong { display: block; font-family: var(--font-heading); font-size: .95rem; color: #fff; }
.chat-panel__head span { display: block; font-size: .72rem; color: rgba(255, 255, 255, .65); margin-top: 2px; }
.chat-close { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); }
.chat-close:hover { background: rgba(255, 255, 255, .2); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--color-neutral); overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 14px; font-size: .95rem; line-height: 1.6; }
.msg--bot { background: #fff; border: 1px solid var(--color-border); color: var(--color-dark); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg--user { background: var(--color-dark); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg p + p { margin-top: 7px; }
.msg-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.msg-links a {
  font-family: var(--font-heading); font-size: .78rem; font-weight: 700;
  background: var(--color-coral-tint); color: var(--color-primary-dark);
  border: 1px solid #F0CFC5; padding: 6px 11px; border-radius: var(--radius-pill);
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
}
.msg-links a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 12px 14px; background: #fff; border-top: 1px solid var(--color-border); }
.chat-form input {
  flex: 1; min-width: 0; background: var(--color-neutral); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill); padding: 11px 16px; font-size: .9rem;
}
.chat-form input:focus { outline: none; border-color: var(--color-orange); background: #fff; box-shadow: 0 0 0 3px rgba(241, 90, 36, .16); }
.chat-form button {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-accent); color: #fff; display: grid; place-items: center;
  transition: transform .15s ease;
}
.chat-form button:hover { transform: scale(1.06); }
.chat-note { font-size: .72rem; color: var(--color-muted); text-align: center; padding: 0 14px 10px; background: #fff; }

/* ---------- Reveal on scroll ---------- */
html.js-reveal [data-reveal] { opacity: 0; transform: translateY(20px); }
html.js-reveal [data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
