/* ============================================================================
   LimitState Consult — "Carbon" design system
   A premium, architectural dark theme with the brand red (#BE0000) as accent.
   Authored as hand-crafted, dependency-free CSS.
   ----------------------------------------------------------------------------
   1. Design tokens         5. Header / navigation     9. Projects
   2. Base & typography     6. Hero                    10. Testimonials / CTA
   3. Layout primitives     7. Sections & cards        11. Footer / contact
   4. Buttons & links       8. Stats / about           12. Utilities / motion
   ========================================================================== */

/* 1. DESIGN TOKENS ---------------------------------------------------------- */
:root {
  /* Brand */
  --red:        #be0000;
  --red-600:    #d10b0b;
  --red-700:    #8f0000;
  --red-glow:   rgba(190, 0, 0, .35);

  /* Carbon neutrals */
  --ink-900:    #0c0d0f;   /* page background */
  --ink-850:    #111316;
  --ink-800:    #15181c;   /* surfaces */
  --ink-700:    #1c2025;   /* raised surfaces */
  --ink-600:    #262b31;   /* borders strong */
  --line:       rgba(255, 255, 255, .08);
  --line-soft:  rgba(255, 255, 255, .055);

  /* Text */
  --fg:         #f3f4f6;
  --fg-muted:   #aab1ba;
  --fg-dim:     #79818b;

  /* Light surfaces (for light sections / admin reuse if needed) */
  --paper:      #f6f7f8;

  /* Typography */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing / shape */
  --container: 1240px;
  --radius:    14px;
  --radius-sm: 9px;
  --gap:       clamp(1.25rem, 3vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  /* Effects */
  --shadow:     0 24px 60px -28px rgba(0, 0, 0, .85);
  --shadow-sm:  0 10px 30px -18px rgba(0, 0, 0, .8);
  --ease:       cubic-bezier(.22, .61, .36, 1);
}

/* 2. BASE & TYPOGRAPHY ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle blueprint grid behind the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
  opacity: .6;
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  color: var(--fg);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0 0 1.1rem; color: var(--fg-muted); }
a  { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
img { max-width: 100%; display: block; }
strong { color: var(--fg); }

::selection { background: var(--red); color: #fff; }

/* 3. LAYOUT PRIMITIVES ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background:
  linear-gradient(180deg, var(--ink-850), var(--ink-900)); }

.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
}
.section__head--center .eyebrow { justify-content: center; }

.section__intro { font-size: 1.08rem; color: var(--fg-muted); max-width: 60ch; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* 4. BUTTONS & LINKS -------------------------------------------------------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px var(--red-glow); background: var(--red-600); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border-color: var(--ink-600);
}
.btn--outline:hover { background: var(--ink-700); border-color: var(--fg-dim); box-shadow: none; }

.btn--ghost { --btn-bg: rgba(255,255,255,.06); --btn-fg: var(--fg); border-color: var(--line); }
.btn--ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }

.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--fg);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--red-600); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 5. HEADER / NAVIGATION ---------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(12, 13, 15, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 80px;
}
.nav__logo { display: inline-flex; align-items: center; gap: .7rem; }
.nav__logo img { height: 34px; width: auto; }
.nav__logo .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -.01em;
  color: var(--fg);
  line-height: 1;
}
.nav__logo .wordmark span { color: var(--red-600); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--fg-muted);
  position: relative;
  padding-block: .4rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--fg); }
.nav__links a.is-active::after,
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: .9rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--fg);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 80px 0 0 0;
  z-index: 99;
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  padding: 1.5rem clamp(1.15rem, 4vw, 2.5rem) 2.5rem;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line-soft); }
.mobile-menu a {
  display: block;
  padding: 1.05rem .25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--fg);
}
.mobile-menu a.is-active { color: var(--red-600); }

/* 6. HERO ------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,11,13,.94) 0%, rgba(10,11,13,.78) 45%, rgba(10,11,13,.42) 100%),
    linear-gradient(0deg, rgba(10,11,13,.95) 2%, transparent 45%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; padding-block: 4rem; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg);
  background: rgba(190,0,0,.14);
  border: 1px solid rgba(190,0,0,.4);
  padding: .5rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.6rem;
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-glow); }
.hero__title { margin-bottom: 1.3rem; }
.hero__title em { font-style: normal; color: var(--red-600); }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--fg-muted); max-width: 56ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__meta {
  position: absolute;
  z-index: 2;
  bottom: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.15rem, 4vw, 2.5rem);
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.hero__meta .stat__num { font-size: clamp(1.6rem, 3vw, 2.4rem); }
@media (max-width: 760px) { .hero__meta { display: none; } }

/* 7. SECTIONS & CARDS ------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card {
  position: relative;
  padding: 2.2rem 1.9rem;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--ink-600); box-shadow: var(--shadow); }
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(190,0,0,.12);
  border: 1px solid rgba(190,0,0,.28);
  color: var(--red-600);
  margin-bottom: 1.4rem;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: .6rem; }
.service-card p { font-size: .96rem; margin-bottom: 1.3rem; }
.service-card__index {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  font-family: var(--font-display);
  font-size: .85rem; font-weight: 600;
  color: var(--fg-dim);
  letter-spacing: .1em;
}

/* 8. STATS / ABOUT ---------------------------------------------------------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.stat { padding-right: 1rem; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--fg);
  letter-spacing: -.03em;
}
.stat__num .plus { color: var(--red-600); }
.stat__label { margin-top: .6rem; font-size: .92rem; color: var(--fg-dim); letter-spacing: .02em; }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

.split__media { position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.split__badge {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--red);
  color: #fff;
  padding: 1.3rem 1.6rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-width: 220px;
}
.split__badge .num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; }
.split__badge .txt { font-size: .85rem; opacity: .9; margin-top: .3rem; }

.feature-list { list-style: none; margin: 1.6rem 0 2rem; padding: 0; display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; color: var(--fg-muted); }
.feature-list .tick {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(190,0,0,.14);
  color: var(--red-600);
}
.feature-list .tick svg { width: 14px; height: 14px; }
.feature-list strong { display: block; color: var(--fg); font-weight: 600; }

/* 9. PROJECTS --------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.chip {
  font-family: var(--font-display);
  font-size: .85rem; font-weight: 500;
  padding: .55rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--ink-800);
  color: var(--fg-muted);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--fg); border-color: var(--ink-600); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.project-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-850);
  isolation: isolate;
}
.project-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.project-card:hover .project-card__media img { transform: scale(1.07); }
.project-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,11,13,.92) 0%, rgba(10,11,13,.15) 55%, transparent 100%);
}
.project-card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.6rem;
}
.project-card__cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: .32rem .7rem;
  border-radius: 5px;
  margin-bottom: .8rem;
}
.project-card__title { font-size: 1.2rem; margin-bottom: .4rem; }
.project-card__meta { font-size: .85rem; color: var(--fg-dim); display: flex; gap: 1rem; flex-wrap: wrap; }
.project-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.project-card__plus {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  z-index: 2;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(12,13,15,.6);
  border: 1px solid var(--line);
  color: #fff;
  opacity: 0;
  transform: translateY(-6px);
  transition: all .3s var(--ease);
}
.project-card:hover .project-card__plus { opacity: 1; transform: none; }

/* Project detail */
.project-hero__img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.spec-list .k { color: var(--fg-dim); font-size: .9rem; }
.spec-list .v { color: var(--fg); font-weight: 600; text-align: right; font-family: var(--font-display); }

/* 10. TESTIMONIALS / CTA ---------------------------------------------------- */
.testimonial {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2.1rem;
  position: relative;
}
.testimonial .mark { font-family: var(--font-display); font-size: 4rem; line-height: .6; color: var(--red); opacity: .35; }
.testimonial blockquote { margin: .4rem 0 1.6rem; font-size: 1.06rem; color: var(--fg); line-height: 1.6; }
.testimonial .who { display: flex; align-items: center; gap: .9rem; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
}
.testimonial .who b { display: block; color: var(--fg); }
.testimonial .who small { color: var(--fg-dim); }

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: clamp(16px, 3vw, 26px);
  padding: clamp(2.8rem, 6vw, 5rem);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(190,0,0,.5), transparent 60%),
    linear-gradient(120deg, var(--red-700), var(--red));
  color: #fff;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(120deg, #000, transparent 70%);
}
.cta-band__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 46ch; margin: 0; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: var(--ink-900); }
.cta-band .btn:hover { --btn-bg: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0,0,0,.5); }

/* 11. FOOTER / CONTACT ------------------------------------------------------ */
.page-hero {
  position: relative;
  padding: calc(80px + clamp(3.5rem, 8vw, 6.5rem)) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,15,.6), var(--ink-900)); }
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { margin-bottom: .8rem; }
.page-hero p { font-size: 1.1rem; max-width: 56ch; }

.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--fg-dim); margin-bottom: 1.4rem; font-family: var(--font-display); letter-spacing: .03em; }
.breadcrumb a:hover { color: var(--red-600); }
.breadcrumb .sep { opacity: .5; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-850); }
.contact-item .ic { flex: none; width: 46px; height: 46px; border-radius: 11px; background: rgba(190,0,0,.12); border: 1px solid rgba(190,0,0,.28); color: var(--red-600); display: grid; place-items: center; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item h4 { margin: 0 0 .25rem; font-size: 1rem; }
.contact-item p, .contact-item a { margin: 0; font-size: .96rem; color: var(--fg-muted); }
.contact-item a:hover { color: var(--red-600); }

/* Forms */
.form { display: grid; gap: 1.2rem; padding: clamp(1.6rem, 3vw, 2.4rem); background: linear-gradient(180deg, var(--ink-800), var(--ink-850)); border: 1px solid var(--line); border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: .5rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--fg); font-family: var(--font-display); letter-spacing: .02em; }
.field label .req { color: var(--red-600); }
.input, .textarea, select.input {
  width: 100%;
  padding: .9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg);
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--fg-dim); }
.input:focus, .textarea:focus, select.input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.textarea { resize: vertical; min-height: 140px; }
.field__error { color: #ff6b6b; font-size: .82rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: .95rem; border: 1px solid; display: flex; gap: .7rem; align-items: flex-start; }
.alert svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.alert--success { background: rgba(34,160,90,.12); border-color: rgba(34,160,90,.4); color: #7ee2a8; }
.alert--error   { background: rgba(190,0,0,.12); border-color: rgba(190,0,0,.4); color: #ff8a8a; }

/* Footer */
.site-footer { background: var(--ink-850); border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { height: 38px; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg-muted); background: var(--ink-800); transition: all .2s var(--ease); }
.footer-social a:hover { color: #fff; background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; color: var(--fg-dim); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-col a { color: var(--fg-muted); font-size: .95rem; }
.footer-col a:hover { color: var(--red-600); }
.footer-contact li { display: flex; gap: .7rem; color: var(--fg-muted); font-size: .95rem; margin-bottom: .8rem; }
.footer-contact svg { flex: none; width: 18px; height: 18px; color: var(--red-600); margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--fg-dim); }
.footer-bottom a:hover { color: var(--red-600); }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.5);
  transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* 12. UTILITIES / MOTION ---------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--fg-muted); }
.flow > * + * { margin-top: 1.1rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.prose p { font-size: 1.05rem; }
.prose h3 { margin-top: 2rem; }

/* Reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__badge { left: auto; right: 16px; bottom: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

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