/* ==========================================================================
   JedanSoft — Corporate UI system
   Paper neutral · charcoal · oxidized copper · editorial · restrained
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* LIGHT THEME — soft paper with a charcoal editorial contrast. */
  --bg:        #f6f3ee;
  --bg-2:      #ece7df;
  --surface:   #fffdf9;
  --surface-2: #f2ede6;
  --border:    rgba(31, 36, 58, 0.12);
  --border-2:  rgba(31, 36, 58, 0.23);

  --text:      #4d5261;
  --heading:   #202536;
  --muted:     #737887;
  --muted-2:   #9a9eaa;

  --accent:      #30333a;   /* charcoal */
  --accent-2:    #17191d;   /* pressed charcoal */
  --accent-soft: rgba(32, 37, 54, 0.10);
  --accent-line: rgba(32, 37, 54, 0.34);
  --accent-warm: #bd6845;   /* oxidized copper — used sparingly */
  --accent-warm-soft: rgba(189, 104, 69, 0.13);
  --on-accent:   #ffffff;
  --button:      #202536;
  --button-hover:#0f1423;
  --on-button:   #fffdf9;

  --success:   #2f7d62;
  --danger:    #bd4a4a;

  --nav-scrolled-bg: rgba(246, 243, 238, 0.82);
  --nav-mobile-bg:   rgba(246, 243, 238, 0.98);
  --chip-overlay-bg: rgba(255, 253, 249, 0.86);
  --scrollbar-thumb: #c8c3ba;
  --shadow:    0 24px 60px -34px rgba(28, 32, 50, 0.30);
  --shadow-sm: 0 10px 30px -18px rgba(28, 32, 50, 0.18);
  --grain-opacity: 0.025;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23202536' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;

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

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", var(--font-body);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* DARK THEME */
:root[data-theme="dark"] {
  --bg:        #171a28;
  --bg-2:      #1d2030;
  --surface:   #222638;
  --surface-2: #292e43;
  --border:    rgba(233, 235, 247, 0.10);
  --border-2:  rgba(233, 235, 247, 0.20);

  --text:      #d8dbe8;
  --heading:   #f4f2ee;
  --muted:     #afb5c8;
  --muted-2:   #7f879f;

  --accent:      #f4f2ee;
  --accent-2:    #ffffff;
  --accent-soft: rgba(244, 242, 238, 0.14);
  --accent-line: rgba(244, 242, 238, 0.36);
  --accent-warm: #f0a37b;
  --accent-warm-soft: rgba(240, 163, 123, 0.16);
  --on-accent:   #171a28;
  --button:      #f4f2ee;
  --button-hover:#ffffff;
  --on-button:   #171a28;

  --success:   #76c6a7;
  --danger:    #f18b8b;

  --nav-scrolled-bg: rgba(23, 26, 40, 0.78);
  --nav-mobile-bg:   rgba(23, 26, 40, 0.98);
  --chip-overlay-bg: rgba(34, 38, 56, 0.78);
  --scrollbar-thumb: #434961;
  --shadow:    0 24px 60px -30px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, 0.7);
  --grain-opacity: 0.022;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f2ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
/* subtle film grain for a designed, non-flat feel */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--heading); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; }

::selection { background: var(--accent); color: var(--on-accent); }
* { scrollbar-color: var(--muted-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 7vw, 104px) 0; position: relative; }
.section-sm { padding: clamp(40px, 5vw, 60px) 0; }
/* Kill the double gap when a full section follows a page hero */
.page-hero + .section { padding-top: clamp(40px, 5vw, 64px); }
.bg-alt { background: var(--bg-2); }
.text-center { text-align: center; }
/* highlighted words: solid warm accent (no gradient) */
.gradient-text { color: var(--accent); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ---------- Section header ---------- */
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 4.5vw, 56px); }
.section-head:not(.left) { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent-line); }
.section-head:not(.left) .eyebrow::before { display: none; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
.section-sub { color: var(--muted); font-size: 1.06rem; margin-top: 18px; line-height: 1.75; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap; border: 1px solid transparent; letter-spacing: -0.01em;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-primary { background: var(--button); color: var(--on-button); }
.btn-primary:hover { background: var(--button-hover); transform: translateY(-2px); }
.btn-outline { border-color: var(--border-2); color: var(--heading); }
.btn-outline:hover { background: var(--button); border-color: var(--button); color: var(--on-button); }
.btn-ghost { color: var(--heading); padding-inline: 6px; }
.btn-ghost:hover { color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; }
.brand-logo { object-fit: contain; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
}
.brand-mark { box-shadow: 4px 4px 0 var(--accent-warm-soft); }
.brand-name { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: -.03em; color: var(--heading); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { padding: 9px 15px; border-radius: 8px; font-size: .93rem; font-weight: 500; color: var(--muted); }
.main-nav a:hover { color: var(--heading); }
.main-nav a.active { color: var(--heading); }
.main-nav a.active { position: relative; }
.main-nav a.active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(64px, 10vw, 120px)) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .orb { display: none; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 80%);
  opacity: .6;
}
.hero::after { /* off-centre ink / copper wash keeps the hero from feeling boxed in */
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 520px; background: radial-gradient(ellipse at 36% 48%, var(--accent-soft), transparent 60%), radial-gradient(ellipse at 68% 30%, var(--accent-warm-soft), transparent 52%);
  z-index: 0; pointer-events: none; filter: blur(20px);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero-inner:not(.left) { margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .85rem; font-weight: 500;
  margin-bottom: 30px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); margin: 26px auto 0; max-width: 600px; line-height: 1.7; }
.hero-inner.left p.lead { margin-inline: 0; }
.hero-cta { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero-inner:not(.left) .hero-cta { justify-content: center; }

/* Stat strip */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(56px, 8vw, 96px); position: relative; z-index: 1; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hero-stats .stat { text-align: center; padding: 30px 18px; border-right: 1px solid var(--border); }
.hero-stats .stat:last-child { border-right: 0; }
.stat-value { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; color: var(--heading); letter-spacing: -.03em; }
.hero-stats .stat-value, .stats-band .stat-value { color: var(--accent); }
.stat-label { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 68px; width: max-content; animation: marquee 36s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 34px; width: auto; object-fit: contain; opacity: .5; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.marquee img:hover { opacity: .95; filter: grayscale(0); }
[data-theme="dark"] .marquee img { opacity: .45; filter: grayscale(1) brightness(1.8); }
[data-theme="dark"] .marquee img:hover { opacity: .9; filter: grayscale(1) brightness(2.2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Card base ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s;
}
.card::after { /* top accent line reveal on hover */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); box-shadow: var(--shadow); }
.card:hover::after { transform: scaleX(1); }

/* Service card */
.service-card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border); margin-bottom: 24px;
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card:nth-child(3n + 2) .icon { background: var(--accent-warm-soft); color: var(--accent-warm); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: .96rem; }
.service-card .card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; color: var(--heading); font-weight: 600; font-size: .9rem; }
.service-card .card-link svg { width: 15px; height: 15px; transition: transform .25s; }
.service-card:hover .card-link { color: var(--accent); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* Feature (checklist) */
.feature-list { display: grid; gap: 11px; margin-top: 20px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: .93rem; }
.feature-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background-color: var(--accent-soft); background-image: var(--check); background-size: 12px; background-repeat: no-repeat; background-position: center; }

/* Project / blog card — refined */
.project-card { padding: 0; }
.project-card::after { display: none; }
.project-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.4)); opacity: 0; transition: opacity .4s var(--ease); }
.project-card:hover .project-media::after { opacity: 1; }
/* circular "open" badge that reveals on hover */
.project-badge { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); opacity: 0; transform: translateY(-8px) scale(.82); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.project-badge svg { width: 18px; height: 18px; }
.project-card:hover .project-badge { opacity: 1; transform: none; }
.project-body { padding: 24px 26px 26px; }
.project-cat { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.project-body h3 { font-size: 1.22rem; margin-bottom: 9px; transition: color .25s var(--ease); }
.project-card:hover .project-body h3 { color: var(--accent); }
.project-body p { color: var(--muted); font-size: .93rem; }
.project-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.project-more { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted-2); transition: color .2s; white-space: nowrap; }
.project-more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.project-card:hover .project-more { color: var(--accent); }
.project-card:hover .project-more svg { transform: translate(3px, -3px); }
.project-date { font-size: .82rem; color: var(--muted-2); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: .74rem; padding: 5px 11px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); }

/* ---------- Split / why-us ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.feature-box { padding: 30px; background: var(--bg); transition: background .3s; }
.feature-box:hover { background: var(--surface); }
.feature-box .fi { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.feature-box .fi svg { width: 22px; height: 22px; }
.feature-box:nth-child(2) .fi, .feature-box:nth-child(3) .fi { background: var(--accent-warm-soft); color: var(--accent-warm); }
.feature-box h4 { font-size: 1.05rem; margin-bottom: 9px; }
.feature-box p { color: var(--muted); font-size: .9rem; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.step { position: relative; padding: 36px 30px; border-right: 1px solid var(--border); background: var(--surface); }
.step:last-child { border-right: 0; }
.step .num { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 10px; }
.step .num::after { content: ""; width: 30px; height: 1px; background: var(--accent-line); }
.step h4 { font-size: 1.12rem; margin-bottom: 11px; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats-band .stat { text-align: center; padding: 20px; }

/* ---------- Testimonials ---------- */
.testi-card { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.testi-card::after { display: none; }
.testi-quote-mark { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: var(--accent); font-weight: 800; }
.testi-stars { color: #eab308; letter-spacing: 3px; font-size: .95rem; }
.testi-quote { font-size: 1.02rem; color: var(--text); flex: 1; line-height: 1.7; }
.testi-author { display: flex; align-items: center; gap: 13px; padding-top: 6px; }
.testi-author img, .avatar-fallback { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-family: var(--font-head); border: 1px solid var(--border); }
.testi-author .name { font-weight: 600; color: var(--heading); }
.testi-author .role { font-size: .84rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; padding: 26px 4px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--heading); transition: color .2s; }
.faq-q:hover { color: var(--accent); }
.faq-q .ic { flex: none; width: 22px; height: 22px; position: relative; transition: transform .3s var(--ease); color: var(--accent); font-size: 0; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: currentColor; }
.faq-q .ic::before { width: 14px; height: 2px; }
.faq-q .ic::after { width: 2px; height: 14px; transition: transform .3s var(--ease); }
.faq-item.open .faq-q .ic::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 4px 26px; color: var(--muted); max-width: 92%; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 90px); text-align: center; background: var(--surface); border: 1px solid var(--border); }
.cta-band::before { content: ""; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 700px; height: 400px; background: radial-gradient(ellipse at 35% 55%, var(--accent-soft), transparent 60%), radial-gradient(ellipse at 70% 35%, var(--accent-warm-soft), transparent 48%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-band p { color: var(--muted); max-width: 540px; margin: 18px auto 34px; font-size: 1.06rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: .86rem; font-weight: 500; color: var(--muted); }
.form-control {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border); color: var(--heading);
  transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: var(--muted-2); }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.form-control { resize: vertical; min-height: 130px; }
.errorlist { color: var(--danger); font-size: .84rem; list-style: none; }
.form-note { color: var(--muted); font-size: .85rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: start; }
.info-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.info-item:last-of-type { border-bottom: 0; }
.info-item .ii-ic { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.info-item .ii-ic svg { width: 21px; height: 21px; }
.info-item .label { font-size: .8rem; color: var(--muted); }
.info-item .value { font-weight: 600; color: var(--heading); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: 28px; }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; filter: grayscale(.3); }
[data-theme="dark"] .map-embed iframe { filter: grayscale(1) invert(.92) contrast(.9); }

/* ---------- Alerts ---------- */
.messages { position: fixed; top: calc(var(--header-h) + 14px); left: 50%; transform: translateX(-50%); z-index: 120; width: min(92%, 540px); display: grid; gap: 10px; }
.alert { padding: 14px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); animation: slideDown .4s var(--ease); }
.alert-success { border-color: rgba(22,163,74,.4); background: #f0fdf4; color: #166534; }
.alert-error { border-color: rgba(220,38,38,.4); background: #fef2f2; color: #991b1b; }
[data-theme="dark"] .alert-success { background: var(--surface); color: #bbf7d0; border-color: rgba(74,222,128,.4); }
[data-theme="dark"] .alert-error { background: var(--surface); color: #fecaca; border-color: rgba(248,113,113,.4); }
@keyframes slideDown { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Page hero ---------- */
.page-hero { padding: calc(var(--header-h) + 52px) 0 48px; position: relative; overflow: hidden; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero::after { content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 700px; height: 400px; background: radial-gradient(ellipse, var(--accent-soft), transparent 70%); }
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.breadcrumbs { display: flex; gap: 8px; justify-content: center; color: var(--muted-2); font-size: .88rem; margin-top: 18px; }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 60px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); font-weight: 500; }
.pagination a:hover { color: var(--heading); border-color: var(--border-2); }
.pagination .current { background: var(--button); color: var(--on-button); border-color: transparent; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; border: 1px solid var(--border); }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .89rem; margin-bottom: 24px; align-items: center; }
.article-meta .am { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 15px; height: 15px; color: var(--accent); }
.prose { color: var(--text); font-size: 1.07rem; line-height: 1.85; }
.prose h2, .prose h3 { margin: 1.7em 0 .6em; color: var(--heading); }
.prose p { margin-bottom: 1.2em; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; }
.prose blockquote { border-left: 2px solid var(--accent); padding: 4px 22px; margin: 1.6em 0; color: var(--muted); font-style: italic; }

/* ---------- Detail two-column ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.side-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 30px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card h4 { margin-bottom: 18px; }
.side-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; border: 1px solid var(--border); }
.side-icon svg { width: 26px; height: 26px; }
.meta-line { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.meta-line:last-of-type { border-bottom: 0; }
.meta-line .k { color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.gallery-grid img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: 22px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; z-index: 90; box-shadow: var(--shadow); transition: transform .3s var(--ease), opacity .3s; }
.fab-whatsapp { bottom: 22px; background: #25d366; color: #fff; }
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-top { bottom: 82px; background: var(--surface); color: var(--heading); border: 1px solid var(--border-2); opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-top:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: clamp(60px, 8vw, 96px); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: 44px; padding-bottom: 60px; }
.footer-desc { color: var(--muted); margin-top: 20px; font-size: .94rem; max-width: 300px; }
.footer-col h4 { font-size: .8rem; margin-bottom: 22px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); font-weight: 600; }
.footer-col ul { display: grid; gap: 13px; }
.footer-col a { color: var(--muted); font-size: .94rem; }
.footer-col a:hover { color: var(--accent); }
.contact-list li { display: flex; gap: 10px; color: var(--muted); font-size: .92rem; margin-bottom: 13px; }
.contact-list li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.social-row { display: flex; gap: 9px; margin-top: 24px; }
.social-row a { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.social-row a svg { width: 17px; height: 17px; }
.social-row a:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 26px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted-2); font-size: .87rem; }

/* ---------- Error pages ---------- */
.error-page { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 120px 0; }
.error-code { font-family: var(--font-head); font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; color: var(--accent); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--border); }
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--nav-mobile-bg); backdrop-filter: blur(20px); padding: 18px var(--gutter) 28px;
    border-bottom: 1px solid var(--border); gap: 2px;
    transform: translateY(-120%); transition: transform .4s var(--ease); box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 12px; font-size: 1rem; }
  .main-nav a.active::after { display: none; }
  .header-actions .btn { display: none; }
  .grid-3, .grid-2, .split, .contact-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat:nth-child(2) { border-right: 0; }
  .hero-stats .stat:nth-child(1), .hero-stats .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  :root { --gutter: 18px; }
  .grid-4, .hero-stats, .stats-band, .footer-grid, .gallery-grid, .steps { grid-template-columns: 1fr; }
  .steps .step, .hero-stats .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .card { padding: 26px; }
  .hero-cta .btn { width: 100%; }
}
