/* Apex Resources FZ. Structure and visual language inspired by the client's reference site,
   rebuilt with its own tokens and a light and dark theme. */

:root,
[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --surface: #17171a;
  --surface-2: #1f1f23;
  --ink: #f4f1ec;
  --ink-2: #bdb7af;
  --ink-3: #8d8780;
  --line: #2b2b30;
  --accent: #e3872f;
  --accent-strong: #f09a44;
  --accent-ink: #120b05;
  --eyebrow: #f0a23b;
  --header: rgba(8, 8, 9, 0.92);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --glance: radial-gradient(ellipse 60% 120% at 50% 50%, #e3872f 0%, #a94e15 38%, rgba(10,10,11,0) 78%), var(--bg);
  --cta-bg: linear-gradient(rgba(10,10,11,0.82), rgba(10,10,11,0.9)), url('../img/opt/texture-1200.webp') center / cover;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f5f4;
  --bg-2: #ecebe9;
  --surface: #ffffff;
  --surface-2: #f1f0ee;
  --ink: #17171a;
  --ink-2: #4e4e55;
  --ink-3: #6e6e75;
  --line: #dddbd7;
  --accent: #b3561a;
  --accent-strong: #9a4914;
  --accent-ink: #ffffff;
  --eyebrow: #a8501a;
  --header: rgba(255, 255, 255, 0.94);
  --shadow: 0 18px 40px rgba(23, 23, 26, 0.12);
  --glance: linear-gradient(100deg, #9a4914 0%, #c9651f 50%, #9a4914 100%);
  --cta-bg: linear-gradient(100deg, #ecebe9, #f5f5f4);
  color-scheme: light;
}

:root {
  --display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 4px;
  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 18px; }
h3 { font-size: 1.15rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.center-text { text-align: center; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; }

.ico { width: 20px; height: 20px; flex: none; }
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin: 0 0 14px;
}
.section { padding-block: clamp(72px, 9vw, 120px); }
.tint { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--ink-2); }

.mask-icon {
  display: inline-block;
  width: 56px;
  height: 56px;
  background: var(--accent);
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
  flex: none;
}

/* Reveal: visible by default, animated only when JS confirms it can run. */
.js-anim [data-aos] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.js-anim [data-aos].aos-animate { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim [data-aos] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 19px; height: 19px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.center-row { justify-content: center; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: block; }
.brand img { height: 50px; width: auto; }
.logo-for-light { display: none !important; }
[data-theme="light"] .logo-for-light { display: block !important; }
[data-theme="light"] .logo-for-dark { display: none !important; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list > li { position: relative; }
.nav-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 10px;
  transition: color 0.2s;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--accent); }
.caret { width: 16px; height: 16px; color: var(--accent); transition: transform 0.2s; }
.sub {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 260px;
  padding: 10px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.sub-wide { min-width: 300px; }
.sub a { font-size: 0.8rem; letter-spacing: 0.05em; padding: 9px 20px; }
.sub a:hover { background: var(--surface-2); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle, .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.ico-moon { display: none; }
[data-theme="light"] .ico-sun { display: none; }
[data-theme="light"] .ico-moon { display: block; }
.btn-quote { padding: 13px 22px; }
.nav-toggle { display: none; }
.sub-toggle { display: none; }
.ico-close { display: none; }
.nav-open .ico-open { display: none; }
.nav-open .ico-close { display: block; }

/* HERO */
.hero { background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: min(820px, calc(100dvh - var(--header-h))); }
.hero-copy {
  align-self: center;
  padding: 64px clamp(20px, 4vw, 56px) 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero h1 { font-size: clamp(2rem, 3.1vw, 2.85rem); line-height: 1.06; font-weight: 800; margin-bottom: 24px; }
.hero .lead { color: var(--ink-2); font-size: 1.12rem; max-width: 34em; margin-bottom: 30px; }
.hero-media { position: relative; overflow: hidden; min-height: 460px; }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.94) 0%, rgba(10,10,11,0.55) 34%, rgba(10,10,11,0) 62%);
}
.hero-features {
  position: absolute;
  z-index: 1;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 clamp(20px, 3vw, 44px) 40px;
  text-align: center;
  color: #f4f1ec;
}
.hf .mask-icon { width: 46px; height: 46px; margin: 0 auto 12px; background: #f09a44; }
.hf h3 { font-size: 1.15rem; margin-bottom: 6px; }
.hf p { margin: 0; font-size: 0.95rem; color: rgba(244,241,236,0.82); line-height: 1.5; }

/* WHO WE ARE */
.who-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: 150px 150px 330px;
  gap: 8px;
}
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.c1 { grid-column: 1; grid-row: 1; }
.c2 { grid-column: 2; grid-row: 1 / 3; }
.c3 { grid-column: 1; grid-row: 2; }
.c4 { grid-column: 1 / 3; grid-row: 3; }
.badge {
  position: absolute;
  left: -14px;
  bottom: 36px;
  width: 170px;
  padding: 22px 16px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #3a1d08 0%, #b4561a 55%, #e3872f 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.badge .mask-icon { width: 44px; height: 44px; margin: 0 auto 10px; background: #fff; }
.badge strong { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 800; font-stretch: 115%; line-height: 1.1; }
.badge span:last-child { font-size: 0.9rem; opacity: 0.9; }
.who-copy > p:not(.eyebrow) { color: var(--ink-2); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 28px 0 32px; }
.vm h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vm h3 .ico { color: var(--accent); width: 22px; height: 22px; }
.vm p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }

/* GRADES */
.grade-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.grade-inner { display: flex; align-items: center; gap: 28px; padding-block: 26px; }
.grade-title { font-size: 1.2rem; margin: 0; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.92rem;
  color: var(--ink);
}
.chips + .btn, .chips + .sub-title { margin-top: 28px; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.services-copy p:not(.eyebrow) { color: var(--ink-2); margin-bottom: 30px; }
.scard, .pcard {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  color: #f4f1ec;
  background: #111;
  isolation: isolate;
}
.scard { aspect-ratio: 4 / 5; }
.scard img, .pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.scard::after, .pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8,8,9,0.95) 0%, rgba(8,8,9,0.55) 38%, rgba(8,8,9,0) 70%);
}
.scard:hover img, .pcard:hover img { transform: scale(1.05); }
.scard-body, .pcard-body { display: block; width: 100%; padding: 28px 30px; }
.scard-title, .pcard-title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0a23b;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(244,241,236,0.55);
}
.scard-desc, .pcard-desc { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 700; font-stretch: 108%; line-height: 1.25; letter-spacing: -0.01em; }

/* GLANCE */
.glance { background: var(--glance); color: #fff; }
.glance-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 20px; align-items: center; padding-block: 88px; }
.glance h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; font-weight: 800; font-stretch: 115%; }
.stat span { font-size: 0.95rem; font-weight: 600; }

/* PRODUCTS */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard { aspect-ratio: 4 / 3.3; }
.pcard-title { font-size: 0.8rem; }
.pcard-desc { font-size: 1.08rem; }

/* PROCESS */
.process-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.process-copy p:not(.eyebrow) { color: var(--ink-2); }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 26px 0 30px; }
.benefits li, .ticks li { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.benefits .ico, .ticks .ico { color: var(--accent); width: 20px; height: 20px; }
.recycle { width: 220px; margin: 0 auto; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 36px; }
.steps li { display: flex; gap: 20px; align-items: flex-start; }
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

/* WHY */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.why-copy { padding: 0 clamp(20px, 4vw, 64px) 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); align-self: center; }
.accordion { margin-top: 10px; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { color: var(--accent); width: 22px; height: 22px; transition: transform 0.2s; }
.acc[open] summary .ico { transform: rotate(90deg); }
.acc p { margin: 0; padding: 0 0 20px 36px; color: var(--ink-2); }
.why-media { position: relative; min-height: 560px; }
.why-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ceo-card {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 90%);
  padding: 30px 32px;
  color: #fff;
  background: linear-gradient(135deg, rgba(58,29,8,0.96) 0%, rgba(180,86,26,0.94) 100%);
}
.ceo-lead { font-family: var(--display); font-size: 1.25rem; line-height: 1.35; font-weight: 600; margin-bottom: 20px; }
.ceo-row { display: flex; gap: 14px; align-items: center; }
.ceo-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.14); align-items: center; justify-content: center; }
.ceo-icon .ico { width: 30px; height: 30px; }
.ceo-row strong { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
.ceo-row span, .ceo-row a { display: block; font-size: 0.95rem; color: rgba(255,255,255,0.88); }
.ceo-row a { text-decoration: none; font-weight: 600; color: #fff; }
.ceo-row .ceo-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; color: #fff; }

/* CTA */
.cta-band { background: var(--cta-bg); border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 80px; }
.cta-inner h2 { margin-bottom: 10px; }
.cta-inner p:not(.eyebrow) { color: var(--ink-2); margin: 0; max-width: 40em; }

/* BANNER (inner pages) */
.banner {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
  background: linear-gradient(90deg, rgba(8,8,9,0.92) 0%, rgba(8,8,9,0.72) 55%, rgba(8,8,9,0.45) 100%), var(--banner) center / cover no-repeat;
  color: #f4f1ec;
}
.banner h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); margin-bottom: 14px; }
.banner .eyebrow { color: #f0a23b; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.95rem; color: rgba(244,241,236,0.8); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #f0a23b; }
.crumbs [aria-current] { color: #f0a23b; }

/* PRODUCT DETAIL */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.detail > p:not(.eyebrow) { color: var(--ink-2); }
.gallery { margin-bottom: 40px; }
.gallery-main { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; background: none; cursor: pointer; aspect-ratio: 3 / 2; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity 0.2s; }
.thumb.is-active { border-color: var(--accent); }
.thumb.is-active img, .thumb:hover img { opacity: 1; }
.sub-title { font-size: 1.15rem; margin: 30px 0 14px; }
.ticks { display: grid; gap: 10px; margin-bottom: 30px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.side-box h3 { font-size: 1.1rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.side-list a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover, .side-list a[aria-current] { color: var(--accent); }
.side-list .ico { width: 16px; height: 16px; color: var(--accent); }
.side-quote p { color: var(--ink-2); }
.side-quote .btn { width: 100%; }
.side-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; text-decoration: none; font-weight: 600; }
.side-wa .ico { color: #25d366; }

/* SPLIT (category pages) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split p:not(.eyebrow) { color: var(--ink-2); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* SERVICES PAGE FLOW */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flow li { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 28px; }
.flow .num { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 800; font-stretch: 115%; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.flow h3 { margin-bottom: 8px; }
.flow p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info > p:not(.eyebrow) { color: var(--ink-2); }
.info-cards { display: grid; gap: 14px; margin-top: 26px; }
.info-cards li { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.info-cards .ic { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent); flex: none; }
.info-cards .ic .ico { width: 24px; height: 24px; }
.info-cards strong { display: block; font-family: var(--display); font-size: 1rem; font-weight: 700; }
.info-cards a, .info-cards span { color: var(--ink-2); text-decoration: none; }
.info-cards a:hover { color: var(--accent); }
.quote-form { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.quote-form .btn { justify-self: start; }
.form-success { margin-bottom: 18px; padding: 14px 18px; border-radius: var(--radius); background: #1d3b27; color: #d8f5e1; border: 1px solid #2f6b44; }
[data-theme="light"] .form-success { background: #e7f6ec; color: #14532d; border-color: #b7e2c4; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* GENERIC */
.entry { color: var(--ink-2); }
.entry h2 { color: var(--ink); font-size: 1.4rem; margin: 34px 0 12px; }

/* FOOTER */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 60px; }
.footer-logo { width: 180px; height: auto; margin-bottom: 24px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .ico { color: var(--accent); }
.contact-list a { text-decoration: none; color: var(--ink-2); }
.contact-list a:hover { color: var(--accent); }
.footer-title { font-size: 1.1rem; margin-bottom: 20px; }
.footer-links { display: grid; gap: 12px; }
.footer-links a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s;
}
.footer-links a::before { content: "\203A"; color: var(--accent); margin-right: 10px; }
.footer-links a:hover { color: var(--accent); }
.footer-note { color: var(--ink-2); margin-bottom: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 20px; row-gap: 6px; text-align: center; border-top: 1px solid var(--line); padding-block: 24px; color: var(--ink-3); font-size: 0.92rem; }
.footer-bottom p { margin: 0; }
.credit a { color: var(--accent); text-decoration: none; font-weight: 600; }
.credit a:hover { text-decoration: underline; }

/* WHATSAPP */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}
.wa-float .ico { width: 30px; height: 30px; }

/* TABLET */
@media (max-width: 1180px) {
  .nav-list { gap: 20px; }
  .nav-list a { font-size: 0.8rem; letter-spacing: 0.06em; }
  .btn-quote { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-copy { grid-column: 1 / -1; max-width: 640px; }
  .glance-grid { grid-template-columns: repeat(4, 1fr); }
  .glance h2 { grid-column: 1 / -1; text-align: center; margin-bottom: 16px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
}

@media (max-width: 1000px) {
  :root { --header-h: 72px; }
  .brand img { height: 42px; }
  .site-header { backdrop-filter: none; background: var(--bg); }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    left: 0; right: 0;
    top: var(--header-h);
    bottom: 0;
    margin: 0;
    background: var(--bg);
    overflow-y: auto;
    padding: 12px var(--gutter) 40px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    visibility: hidden;
  }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list a { padding-block: 16px; font-size: 0.95rem; }
  .caret { display: none; }
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .has-sub > a { flex: 1; }
  .sub-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
    background: transparent; color: var(--accent); cursor: pointer;
  }
  .sub-toggle .ico { transition: transform 0.2s; }
  .has-sub.open .sub-toggle .ico { transform: rotate(180deg); }
  .sub { display: none; flex-basis: 100%; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 12px 14px; min-width: 0; }
  .has-sub.open .sub { display: block; }
  .sub a { padding: 9px 0; color: var(--ink-2); }
  .sub a:hover { background: none; }
  body.nav-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 56px var(--gutter) 44px; }
  .hero-media { min-height: 520px; }
  .who-grid, .process-grid, .split, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-copy { padding: 0 var(--gutter) 48px; }
  .why-media { min-height: 460px; }
  .ceo-card { top: auto; bottom: 0; }
  .grade-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn { white-space: normal; text-align: center; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .nav { margin-left: 0; }
  .hero-media { min-height: 0; display: flex; flex-direction: column; }
  .hero-media > img { position: relative; height: 280px; }
  .hero-media::after { display: none; }
  .hero-features { position: static; grid-template-columns: 1fr; gap: 26px; padding: 34px var(--gutter) 44px; background: var(--bg-2); color: var(--ink); }
  .hf p { color: var(--ink-2); }
  .hf .mask-icon { background: var(--accent); }
  .collage { grid-template-rows: 110px 110px 220px; }
  .badge { left: 8px; bottom: 12px; width: 140px; padding: 16px 12px; }
  .badge strong { font-size: 1.9rem; }
  .vm, .benefits, .steps, .field-row { grid-template-columns: 1fr; }
  .services-grid, .pgrid, .flow { grid-template-columns: 1fr; }
  .scard { aspect-ratio: 4 / 3.4; }
  .glance-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; padding-block: 64px; }
  .glance { background: linear-gradient(160deg, #7a3a10 0%, #c9651f 55%, #9a4914 100%); }
  .why-media { min-height: 0; display: flex; flex-direction: column; }
  .why-media > img { position: relative; height: 300px; }
  .ceo-card { position: static; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: center; padding-bottom: 84px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
