/* =========================================================
   Arya Electricals — stylesheet (shared by all pages)
   Brand colours taken from the AE logo: royal blue + red.
   ========================================================= */

:root {
  --blue-950: #06112e;
  --blue-900: #0a1b4a;
  --blue-800: #0f2a6e;
  --blue-700: #1736a3;
  --blue: #1d3fe0;          /* logo blue */
  --blue-soft: #e8edff;
  --red: #e3202b;           /* logo red */
  --red-600: #c8151f;
  --amber: #ffb703;         /* solar accent */
  --ink: #0f172a;
  --text: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --success: #16a34a;
  --danger: #dc2626;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow: 0 12px 32px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(6, 17, 46, .25);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.grid-2 > *, .hero__inner > *, .contact__grid > *, .footer__grid > *, .pd__grid > * { min-width: 0; }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .95rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(227, 32, 43, .3); }
.btn--primary:hover { background: var(--red-600); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(29, 63, 224, .3); }
.btn--blue:hover { background: var(--blue-700); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--white { background: #fff; color: var(--blue-900); }
.btn--white:hover { background: var(--blue-soft); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--amber); }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section__head .eyebrow { justify-content: center; }
.section__head--split { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; text-align: left; max-width: none; flex-wrap: wrap; }
.section__title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; }
.section__title--light { color: #fff; }
.section__sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-950); color: #cbd5e1; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; }
.topbar__group { display: flex; gap: 1.5rem; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__item svg { width: 14px; height: 14px; fill: var(--amber); }
a.topbar__item:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo__mark { height: 46px; width: auto; }
.logo__text { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--blue-900); line-height: 1; letter-spacing: .03em; }
.logo__text small { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .32em; color: var(--red); margin-top: 4px; }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__mark { background: #fff; border-radius: 10px; padding: 6px 8px; height: 52px; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__link { position: relative; padding: .5rem .85rem; font-weight: 500; font-size: .95rem; color: var(--ink); transition: color .2s; }
.nav__link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--blue); }
.nav__cta { margin-left: .75rem; padding: .6rem 1.2rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--blue-900); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #cbd5e1; padding: 96px 0 128px;
  background: var(--blue-950) url("../assets/images/site/solar-plant.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,17,46,.96) 0%, rgba(10,27,74,.88) 45%, rgba(15,42,110,.55) 100%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -.02em; }
.hero__lead { font-size: 1.1rem; max-width: 580px; color: #c3cde0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.2rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__chips li { font-size: .8rem; font-weight: 500; padding: .35rem .85rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #e2e8f0; }

.hero__gallery { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero__shot { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.hero__shot img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero__shot--tall { grid-row: span 2; }
.hero__shot--tall img { aspect-ratio: auto; height: 100%; }
.hero__shot:nth-child(2) { animation-delay: -2s; }
.hero__shot:nth-child(3) { animation-delay: -4s; }
.hero__badge {
  position: absolute; left: -24px; bottom: 24px; z-index: 2;
  background: #fff; color: var(--ink); border-radius: 14px; padding: .8rem 1.1rem;
  display: flex; align-items: center; gap: .7rem; box-shadow: var(--shadow-lg); font-size: .85rem;
}
.hero__badge strong { display: block; font-family: var(--font-head); }
.hero__badge-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; }
.hero__badge-dot svg { width: 20px; height: 20px; fill: var(--blue); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: 88px 0 80px; color: #c3cde0; overflow: hidden;
  background-color: var(--blue-950); background-image: url("../assets/images/site/solar-plant.jpg");
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,17,46,.95), rgba(15,42,110,.75)); }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .4rem; }
.page-hero p { max-width: 620px; font-size: 1.05rem; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; margin-bottom: 1rem; color: #94a3b8; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: #64748b; }
.breadcrumb [aria-current] { color: var(--amber); }

/* ---------- Highlights ---------- */
.highlights { position: relative; z-index: 2; margin-top: -60px; }
.highlights__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.highlight { display: flex; gap: .9rem; align-items: flex-start; padding: 1.6rem 1.4rem; border-right: 1px solid var(--line); }
.highlight:last-child { border-right: 0; }
.highlight__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); }
.highlight__icon svg { width: 22px; height: 22px; fill: var(--blue); }
.highlight strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.highlight span { font-size: .85rem; color: var(--muted); }

/* ---------- Image frames ---------- */
.img-stack { position: relative; padding: 0 40px 40px 0; }
.img-stack__main { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.img-stack__main img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.img-stack__sub {
  position: absolute; right: 0; bottom: 0; width: 46%;
  border-radius: 16px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); background: #fff;
}
.img-stack__sub img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.img-stack__tag {
  position: absolute; left: 20px; top: 20px; background: var(--red); color: #fff;
  border-radius: 12px; padding: .8rem 1rem; font-family: var(--font-head); line-height: 1.2; box-shadow: var(--shadow);
}
.img-stack__tag strong { display: block; font-size: 1.6rem; }
.img-stack__tag span { font-size: .78rem; font-weight: 600; letter-spacing: .04em; }

.checklist { display: grid; gap: .6rem; margin: 1.4rem 0 2rem; }
.checklist--2 { grid-template-columns: 1fr 1fr; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231d3fe0' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__img { position: relative; height: 180px; overflow: hidden; background: var(--bg-alt); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service:hover .service__img img { transform: scale(1.06); }
.service__num {
  position: absolute; right: 12px; top: 12px; background: var(--blue); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; padding: .25rem .6rem; border-radius: 8px;
}
.service__body { padding: 1.4rem 1.4rem 1.6rem; }
.service h3 { font-size: 1.08rem; }
.service p { font-size: .92rem; margin: 0; }

/* Service rows (services page) */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 0; }
.svc-row:nth-child(even) .svc-row__img { order: 2; }
.svc-row > * { min-width: 0; }
.svc-row__img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-alt); }
.svc-row__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-row__num { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--blue-soft); line-height: 1; margin-bottom: .4rem; -webkit-text-stroke: 1px var(--blue); }
.svc-row h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- Products ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 20px; }
.filter {
  padding: .55rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 500; font-size: .92rem; transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--blue); }
.filter.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter__count { font-size: .75rem; opacity: .7; margin-left: .25rem; }
.products-toolbar { display: flex; justify-content: center; margin-bottom: 36px; }
.search { position: relative; width: min(420px, 100%); }
.search input {
  width: 100%; padding: .75rem 1rem .75rem 2.6rem; border: 1.5px solid var(--line); border-radius: 999px;
  font: inherit; font-size: .95rem; background: #fff;
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,63,224,.12); }
.search svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: var(--muted); }
.products__empty { text-align: center; color: var(--muted); padding: 2rem 0; display: none; }

.products__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 24px; }
.product {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product.is-hidden { display: none; }
.product__img { position: relative; aspect-ratio: 1 / .85; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.product__img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .5s; }
.product__img img.cover { object-fit: cover; padding: 0; }
.product:hover .product__img img { transform: scale(1.06); }
.product__img .tag { position: absolute; left: 12px; top: 12px; z-index: 1; }
.product__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.product__body h3 a:hover { color: var(--blue); }
.product__body p { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; flex: 1; }
.product__actions { display: flex; gap: .5rem; }
.product__actions .btn { flex: 1; padding: .55rem .8rem; font-size: .85rem; }

.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 6px; background: var(--blue-soft); color: var(--blue-700); }

/* ---------- Product detail ---------- */
.pd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pd__media { position: sticky; top: calc(var(--header-h) + 24px); }
.pd__main-img { border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.pd__main-img img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 24px; }
.pd__main-img img.cover { object-fit: cover; padding: 0; }
.pd__info h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: .8rem 0 .6rem; }
.pd__lead { font-size: 1.05rem; }
.pd__specs { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .93rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pd__specs th, .pd__specs td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.pd__specs tr:last-child th, .pd__specs tr:last-child td { border-bottom: 0; }
.pd__specs th { width: 40%; background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.pd__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.pd__note { margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 12px; background: var(--blue-soft); color: var(--blue-900); font-size: .9rem; }
.pd__missing { text-align: center; padding: 4rem 0; }

/* ---------- Quality / process ---------- */
.dark { background: var(--blue-900); color: #b6c2d4; position: relative; overflow: hidden; }
.dark::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -180px; top: -180px; background: radial-gradient(circle, rgba(29,63,224,.45), transparent 70%); }
.dark .container { position: relative; }
.tests { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2rem; }
.test { padding: 1.3rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .3s, border-color .3s; }
.test:hover { background: rgba(227,32,43,.1); border-color: rgba(227,32,43,.5); }
.test span { font-family: var(--font-head); font-weight: 700; color: var(--amber); font-size: .85rem; }
.test strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.1rem; margin: .2rem 0; }
.test small { color: #94a3b8; }

.process { background: #fff; border-radius: 20px; padding: 2.2rem; box-shadow: var(--shadow-lg); }
.process h3 { font-size: 1.3rem; margin-bottom: 1.4rem; }
.process__list { counter-reset: step; display: grid; }
.process__list li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.2rem; color: var(--muted); font-size: .92rem; }
.process__list li:last-child { padding-bottom: 0; }
.process__list li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .9rem;
}
.process__list li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.process__list li:last-child::after { display: none; }
.process__list strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1rem; }

/* Steps (horizontal) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.2rem; counter-increment: s; }
.step::before { content: "0" counter(s); font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--red); display: block; margin-bottom: .5rem; }
.step strong { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: .3rem; }
.step span { font-size: .88rem; }

/* Divisions / values */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue); margin-bottom: 1.1rem; }
.card__icon svg { width: 26px; height: 26px; fill: #fff; }
.card:nth-child(even) .card__icon { background: var(--red); }
.card h3 { font-size: 1.08rem; }
.card p { font-size: .92rem; margin: 0; }

/* ---------- Clients ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-card {
  display: grid; place-items: center; height: 110px; padding: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.logo-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.logo-card img { max-height: 72px; width: auto; object-fit: contain; transition: transform .3s; }
.logo-card:hover img { transform: scale(1.05); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: linear-gradient(110deg, var(--blue) 0%, var(--blue-800) 70%); padding: 64px 0; color: #dbe3ff; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(227,32,43,.35); }
.cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: #fff; margin-bottom: .3rem; }
.cta p { margin: 0; }
.cta__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px; }
.contact-card { text-align: center; padding: 1.8rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card .contact__icon { margin: 0 auto 1rem; }
.contact-card strong { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: .3rem; }
.contact-card a:hover { color: var(--blue); }
.contact__list { display: grid; gap: 1.2rem; margin: 1.6rem 0 2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--blue); }
.contact__icon svg { width: 22px; height: 22px; fill: #fff; }
.contact__list strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .95rem; }
.contact__list span, .contact__list a { font-size: .93rem; }
.contact__list a:hover { color: var(--blue); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 320px; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2.2rem; box-shadow: var(--shadow); }
.form h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.form > p { font-size: .92rem; margin-bottom: 1.4rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; min-width: 0; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink); padding: .75rem .9rem; width: 100%;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(29,63,224,.12); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: #fef2f2; }
.field__error { color: var(--danger); font-size: .78rem; min-height: 1em; margin-top: .25rem; }
.form__send { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.btn--whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn--whatsapp:hover { background: #1ebe5b; }
@media (max-width: 600px) { .form__send { grid-template-columns: 1fr; } }
.form__status {margin: 1rem 0 0; font-weight: 500; text-align: center; min-height: 1.5em; }
.form__status.success { color: var(--success); }
.form__status.error { color: var(--danger); }

/* ---------- Footer ---------- */
.footer { background: var(--blue-950); color: #94a3b8; padding-top: 72px; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin-top: 1.2rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--red); }
.footer ul { display: grid; gap: .55rem; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; line-height: 1.7; margin-bottom: .8rem; }
.footer__phone { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.1rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; font-size: .83rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Floating buttons ---------- */
.fab, .to-top {
  position: fixed; right: 20px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 0;
  display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s, opacity .3s, visibility .3s;
}
.fab { bottom: 20px; background: var(--red); animation: ring 2.5s ease-in-out infinite; }
.fab svg { width: 24px; height: 24px; fill: #fff; }
.to-top { bottom: 84px; background: var(--blue); opacity: 0; visibility: hidden; }
.to-top svg { width: 22px; height: 22px; fill: #fff; }
.to-top.show { opacity: 1; visibility: visible; }
.fab:hover, .to-top:hover { transform: translateY(-3px); }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(227,32,43,.5); } 60% { box-shadow: 0 0 0 14px rgba(227,32,43,0); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services__grid, .cards-4, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(2) { border-right: 0; }
  .highlight:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .section { padding: 72px 0; }
  .logo__mark { height: 38px; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 1rem 16px 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: .85rem .5rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .hero { padding: 64px 0 112px; }
  .hero__inner, .grid-2, .contact__grid, .pd__grid, .svc-row { grid-template-columns: 1fr; gap: 40px; }
  .svc-row:nth-child(even) .svc-row__img { order: 0; }
  .hero__gallery { max-width: 460px; }
  .hero__badge { left: 12px; }
  .pd__media { position: static; }
  .topbar__group--left .topbar__item:last-child { display: none; }
}

@media (max-width: 600px) {
  .topbar__group--left { display: none; }
  .topbar__inner { justify-content: center; }
  .highlights__grid, .services__grid, .cards-4 { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-card { padding: 1.2rem .8rem; font-size: .85rem; word-break: break-word; }
  .highlight { border-right: 0; border-bottom: 1px solid var(--line); }
  .highlight:last-child { border-bottom: 0; }
  .form__row, .tests, .checklist--2 { grid-template-columns: 1fr; }
  .form, .process { padding: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.1rem; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
  .cta__actions { width: 100%; }
  .img-stack { padding: 0 20px 20px 0; }
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product__body { padding: .9rem; }
  .product__body p { display: none; }
  .product__actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Email links */
.footer__email { display: inline-block; margin-top: .35rem; color: #cbd5e1; word-break: break-all; }
.contact-card a, .contact__list a { word-break: break-word; }
@media (max-width: 900px) { .topbar__email { display: none; } }
