/* =========================================================
   Peacock Roof Planning Solutions
   Design system + layout + components
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --primary: #16324F;
  --primary-700: #0f2439;
  --primary-300: #33587e;
  --secondary: #2E86DE;
  --secondary-600: #1f6fc0;
  --accent: #27AE60;
  --accent-600: #1f9152;

  /* Surfaces / text (light) */
  --bg: #F5F7FA;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #222222;
  --muted: #5b6672;
  --border: #e2e8f0;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .06), 0 1px 3px rgba(16, 42, 67, .08);
  --shadow-md: 0 8px 24px rgba(16, 42, 67, .10);
  --shadow-lg: 0 20px 48px rgba(16, 42, 67, .16);
  --ring: 0 0 0 3px rgba(46, 134, 222, .35);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --container: 1160px;
  --header-h: 72px;

  --font-head: "Poppins", system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", Arial, sans-serif;

  --t-fast: .18s ease;
  --t: .3s cubic-bezier(.4, 0, .2, 1);
}

/* Dark theme */
:root[data-theme="dark"] {
  --bg: #0c1826;
  --surface: #12233a;
  --surface-2: #0f1d30;
  --text: #e8eef6;
  --muted: #9fb0c3;
  --border: #223a57;
  --primary: #1e4370;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, .5);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* Ensure the `hidden` attribute always wins, even on elements with a display rule */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--t), color var(--t);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--text); font-weight: 700; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* ---------- Icons ---------- */
.icon {
  width: 1.5rem; height: 1.5rem;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.icon--sm { width: 1.05rem; height: 1.05rem; }
.icon--solid { fill: currentColor; stroke: none; }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--sm { padding: .58rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--secondary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--secondary-600); box-shadow: var(--shadow-md); }

.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(39, 174, 96, .35); }
.btn--accent:hover { background: var(--accent-600); }

.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

.btn--ghost-dark { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost-dark:hover { background: var(--surface-2); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: transparent; border: 1px solid transparent; color: var(--text);
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--ring); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--secondary); font-weight: 600; font-family: var(--font-head);
}
.link-arrow .icon { transition: transform var(--t-fast); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: .75rem;
}
.eyebrow--light { color: #9fd0ff; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--surface-2); }
.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.25rem); text-align: center; }
.section__title { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: .85rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; gap: 1.25rem; height: 100%; }

.brand { display: flex; align-items: center; gap: .65rem; }
.brand__mark { display: grid; place-items: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-head); }
.brand__text strong { font-size: 1.08rem; font-weight: 700; color: var(--text); }
.brand__text small { font-size: .72rem; letter-spacing: .05em; color: var(--muted); }
.brand__text--light strong { color: #fff; }
.brand__text--light small { color: #9fb6d4; }

.nav__links { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__link {
  position: relative; padding: .55rem .85rem; border-radius: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link.is-active { color: var(--secondary); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
  background: var(--secondary); border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: .5rem; }

.theme-toggle .icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: block; }

.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(46, 134, 222, .55), transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgba(39, 174, 96, .35), transparent 55%),
    linear-gradient(160deg, #16324F 0%, #0f2439 60%, #0b1c30 100%);
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 40%, transparent 100%);
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero__title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -.025em;
  color: #fff; margin-bottom: 1.1rem;
}
.hero__subtitle { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: #c9dbf0; max-width: 34ch; margin-bottom: 1.9rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero__badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.hero__badges li { display: flex; align-items: center; gap: .5rem; color: #bcd3ec; font-size: .92rem; }
.hero__badges .icon { color: var(--accent); }

/* Hero mockup */
.hero__visual { perspective: 1400px; }
.mockup {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateY(-9deg) rotateX(4deg);
  transition: transform var(--t);
}
.hero__visual:hover .mockup { transform: rotateY(-3deg) rotateX(1deg); }
.mockup__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .8rem 1rem; background: rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.mockup__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.mockup__bar span:nth-child(1) { background: #ff6058; }
.mockup__bar span:nth-child(2) { background: #ffbd2e; }
.mockup__bar span:nth-child(3) { background: #28c840; }
.mockup__bar em { margin-left: .5rem; font-style: normal; font-size: .82rem; color: #cfe0f3; }
.mockup__body { padding: 1.25rem; display: grid; gap: 1.1rem; background: rgba(10, 24, 40, .35); }

.gantt { display: grid; gap: .55rem; }
.gantt__row { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: .6rem; }
.gantt__label { font-size: .74rem; color: #a9c2dc; }
.gantt__bar {
  position: relative; height: 16px; border-radius: 6px; display: block;
  margin-left: calc(var(--x) * 1%);
  width: calc(var(--w) * 1%);
  transform-origin: left; animation: growx .8s var(--t) both;
}
.gantt__bar.b1 { background: linear-gradient(90deg, #2E86DE, #56a5f0); }
.gantt__bar.b2 { background: linear-gradient(90deg, #27AE60, #4cd486); }
.gantt__bar.b3 { background: linear-gradient(90deg, #7c5cff, #a58bff); }
@keyframes growx { from { transform: scaleX(0); opacity: .2; } to { transform: scaleX(1); opacity: 1; } }

.mockup__stats { display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: 1rem; }
.mstat { display: grid; }
.mstat__k { font-size: .72rem; color: #a9c2dc; }
.mstat__v { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; }
.minibars { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.minibars i { width: 10px; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #56a5f0, #2E86DE); }

/* ---------- Stats / counters ---------- */
.stats { margin-top: -1px; background: var(--primary-700); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.25rem 0; text-align: center; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); color: #fff; line-height: 1; }
.stat__label { color: #9fc2e6; font-size: .95rem; margin-top: .35rem; display: block; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about p { color: var(--muted); margin-bottom: 1rem; font-size: 1.05rem; }
.about__list { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .65rem; }
.about__list li { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.minicard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.minicard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.minicard .icon { width: 2rem; height: 2rem; margin-bottom: .7rem; }
.minicard h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.minicard p { color: var(--muted); font-size: .92rem; }
.about__cards .minicard:nth-child(even) { transform: translateY(1.4rem); }
.about__cards .minicard:nth-child(even):hover { transform: translateY(calc(1.4rem - 4px)); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.grid--solutions { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid--benefits { grid-template-columns: repeat(4, 1fr); }

/* Service cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(145deg, rgba(46, 134, 222, .14), rgba(39, 174, 96, .14));
  color: var(--secondary); margin-bottom: 1.1rem;
}
.card:hover .card__icon { color: var(--accent); }
.card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* Solutions */
.sol {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.sol:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sol .icon {
  width: 2.4rem; height: 2.4rem; padding: .5rem; border-radius: 12px;
  color: var(--secondary); background: color-mix(in srgb, var(--secondary) 12%, transparent);
  box-sizing: content-box;
}
.sol h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.sol p { color: var(--muted); font-size: .94rem; }

/* Benefits */
.benefit {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.25rem; box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.benefit__icon {
  display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%;
  background: linear-gradient(145deg, var(--secondary), var(--accent)); color: #fff;
}
.benefit__icon .icon { width: 1.85rem; height: 1.85rem; }
.benefit h3 { font-size: 1.04rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .85rem; }
.faq__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 1.4rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; font-family: var(--font-head); font-weight: 600; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { color: var(--secondary); transition: transform var(--t); }
.faq__item[open] .faq__chev { transform: rotate(90deg); }
.faq__item p { color: var(--muted); padding: 0 0 1.2rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary), var(--secondary-600)); color: #fff; }
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.cta-band p { color: #d3e4f6; margin-top: .35rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__list { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: .9rem; font-weight: 500; }
.contact__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); color: var(--secondary); }
.contact__list a:hover { color: var(--secondary); }

.contact__form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-md);
}
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .9rem; }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .8rem .95rem; width: 100%; transition: border-color var(--t-fast), box-shadow var(--t-fast);
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--secondary); box-shadow: var(--ring); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e05353; }
.field__error { color: #e05353; font-size: .82rem; min-height: 1em; }
.form-status { margin-top: 1rem; font-weight: 600; font-family: var(--font-head); }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #e05353; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-700); color: #c6d6e8; padding-top: 3.25rem; }
:root[data-theme="dark"] .site-footer { background: #08131f; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand p { margin-top: .8rem; max-width: 32ch; color: #9fb6d4; font-size: .95rem; }
.footer__nav { display: flex; flex-direction: column; gap: .6rem; }
.footer__nav h4, .footer__social h4 { color: #fff; font-size: .95rem; margin-bottom: .3rem; }
.footer__nav a { color: #9fb6d4; font-size: .95rem; transition: color var(--t-fast); }
.footer__nav a:hover { color: #fff; }
.social { display: flex; gap: .6rem; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background var(--t-fast), transform var(--t-fast);
}
.social a:hover { background: var(--secondary); transform: translateY(-3px); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.4rem 0; }
.footer__bottom p { font-size: .88rem; color: #8ea6c4; }

/* ---------- Floating action buttons ---------- */
.fab {
  position: fixed; z-index: 90; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%; border: none; color: #fff;
  box-shadow: var(--shadow-lg); transition: transform var(--t-fast), opacity var(--t), background var(--t-fast);
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab--whatsapp { right: 20px; bottom: 20px; background: #25D366; }
.fab--top {
  right: 20px; bottom: 84px; background: var(--primary);
  opacity: 0; pointer-events: none; transform: translateY(10px);
}
.fab--top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.fab--top:hover { background: var(--secondary); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: 380px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.25rem;
  animation: slideup .4s var(--t) both;
}
.cookie p { font-size: .9rem; color: var(--muted); margin-bottom: .9rem; }
.cookie p a { color: var(--secondary); text-decoration: underline; }
.cookie__actions { display: flex; gap: .6rem; justify-content: flex-end; }

/* ---------- Privacy modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.25rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 16, 28, .42); backdrop-filter: blur(1.5px); animation: fade .25s ease both; }
.modal__panel {
  position: relative; background: var(--surface); color: var(--text); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.5rem); max-width: 560px; width: 100%; box-shadow: var(--shadow-lg);
  max-height: 85vh; overflow: auto; animation: slideup .3s var(--t) both;
}
.modal__panel h2 { margin-bottom: 1rem; }
.modal__panel p { color: var(--muted); margin-bottom: .9rem; }
.modal__panel a { color: var(--secondary); text-decoration: underline; }
.modal__close { position: absolute; top: 1rem; right: 1rem; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.4, 0, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes slideup { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { max-width: 460px; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .grid--benefits { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .5rem; box-shadow: var(--shadow-lg);
    transform: translateY(-140%); transition: transform var(--t); z-index: 90;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link { padding: .9rem 1rem; font-size: 1.05rem; }
  .nav__link.is-active::after { display: none; }
  .nav__toggle { display: inline-grid; }
  .nav__cta { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .about__cards { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .grid--benefits { grid-template-columns: 1fr 1fr; }
  .about__cards .minicard:nth-child(even) { transform: none; }
  .cookie { left: 12px; right: 12px; max-width: none; }
  .brand__text small { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .mockup { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .fab, .cookie, .hero__visual, .cta-band, .contact__form { display: none !important; }
  body { color: #000; background: #fff; }
}
