/* =========================================================
   ADISCO ENERGY — Main stylesheet
   ---------------------------------------------------------
   1.  Design tokens
   2.  Base & typography
   3.  Layout & utilities
   4.  Buttons
   5.  Header & navigation
   6.  Media / image placeholders
   7.  Hero, page hero & pulse-line motif
   8.  Section headings
   9.  Home: introduction & service cards
   10. Home: why choose us
   11. About page
   12. Services page
   13. Contact page
   14. CTA band
   15. Footer
   16. Floating WhatsApp button
   17. Animations
   18. Responsive
   19. Reduced motion
   ========================================================= */

/* 1. DESIGN TOKENS ----------------------------------------- */
:root {
  /* Grey = primary industrial tone */
  --grey-950: #14181C;
  --grey-900: #1D2329;
  --grey-800: #2A3138;
  --grey-700: #3C444C;
  --grey-600: #59626B;
  --grey-500: #7A848D;
  --grey-300: #C9CFD4;
  --grey-200: #E1E5E8;
  --grey-100: #EEF0F2;
  --grey-50: #F6F7F8;
  --white: #FFFFFF;

  /* Green = energy & sustainability accent */
  --green: #2FB866;          /* fills, buttons (dark text on top) */
  --green-300: #58D88A;      /* accents on dark surfaces */
  --green-700: #147A40;      /* text and links on light surfaces */
  --green-800: #0F6333;
  --green-900: #0B4A26;
  --green-50: #EAF7EF;
  --green-100: #D3EFDE;

  --ink: #1D2329;
  --muted: #59626B;
  --line: #E1E5E8;

  --font-display: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 76px;
  --gutter: clamp(20px, 4vw, 32px);

  --shadow-sm: 0 2px 10px rgba(29, 35, 41, .07);
  --shadow-md: 0 16px 36px -16px rgba(29, 35, 41, .28);
  --shadow-lg: 0 28px 54px -20px rgba(29, 35, 41, .4);

  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Fine dot grid used on dark surfaces */
  --dots: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px) 0 0 / 26px 26px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  animation: pageIn .5s ease backwards;
}

main { display: block; }
main:focus { outline: none; }

img, svg { max-width: 100%; }
img { display: block; height: auto; }

[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--grey-900);
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.5rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--green-700); }

:focus-visible {
  outline: 3px solid var(--focus, var(--green-700));
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--green); color: var(--grey-950); }

/* 3. LAYOUT & UTILITIES ------------------------------------ */
.container {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--grey-50); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -64px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--green);
  color: var(--grey-950);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.5em; height: 1.5em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* 4. BUTTONS ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s,
              border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.3em; height: 1.3em; }
.btn--sm { padding: .68rem 1.15rem; font-size: .95rem; }

.btn--green { background: var(--green); color: var(--grey-950); }
.btn--green:hover { background: var(--green-300); box-shadow: 0 12px 24px -12px rgba(47, 184, 102, .9); }

.btn--dark { background: var(--grey-900); color: var(--white); }
.btn--dark:hover { background: var(--grey-700); box-shadow: 0 12px 24px -12px rgba(29, 35, 41, .7); }

.btn--outline { border-color: var(--grey-900); color: var(--grey-900); background: transparent; }
.btn--outline:hover { background: var(--grey-900); color: var(--white); }

.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--grey-900); border-color: var(--white); }

.btn--white { background: var(--white); color: var(--green-800); }
.btn--white:hover { background: var(--green-50); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }

.btn--whatsapp { background: #25D366; color: #05361a; }
.btn--whatsapp:hover { background: #1EBE5A; box-shadow: 0 12px 24px -12px rgba(30, 190, 90, .9); }

/* 5. HEADER & NAVIGATION ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background-color .3s;
}
.site-header.is-scrolled {
  box-shadow: 0 10px 26px -18px rgba(29, 35, 41, .55);
}
.site-header.is-scrolled .nav-bar { min-height: 64px; }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
  transition: min-height .3s var(--ease);
}

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-logo { height: 46px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: .06em;
  color: var(--grey-900);
}
.brand-name-sub {
  margin-top: .28rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .5em;
  color: var(--green-700);
}

.nav-list { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative;
  display: block;
  padding: .65rem 1rem;
  color: var(--grey-800);
  font-weight: 500;
  text-decoration: none;
  transition: color .25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: .2rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.nav-link:hover { color: var(--green-700); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--grey-950); font-weight: 600; }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grey-900);
  transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* 6. MEDIA / IMAGE PLACEHOLDERS ---------------------------- */
/* Every image sits in a .media box. If the file in images/ is missing,
   script.js adds .is-missing and the box shows the expected file path. */
.media {
  position: relative;
  overflow: hidden;
  background: var(--dots), linear-gradient(135deg, var(--grey-800), var(--grey-600));
}
.media img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { visibility: hidden; }
.media.is-missing::after {
  content: attr(data-placeholder);
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(20, 24, 28, .5);
  color: rgba(255, 255, 255, .85);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.3;
}

/* 7. HERO, PAGE HERO & PULSE-LINE MOTIF -------------------- */
.hero {
  --focus: var(--green-300);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 90vh, 820px);
  overflow: hidden;
  color: var(--white);
  background: var(--grey-900);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(20, 24, 28, .95) 0%, rgba(29, 35, 41, .84) 46%, rgba(42, 49, 56, .5) 100%);
}
.hero-inner {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: 96px 0 136px;
}
.hero-copy { max-width: 980px; }
.hero h1 {
  margin-bottom: 1.3rem;
  color: var(--white);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.01em;
}
.hero-line { display: block; animation: heroRise .9s var(--ease) backwards; }
.hero-line:nth-child(2) { animation-delay: .12s; }
.hero-line:nth-child(3) { animation-delay: .28s; }
.hero-text {
  max-width: 54ch;
  margin-bottom: 2rem;
  color: #D6DCE1;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  animation: heroRise .9s var(--ease) .55s backwards;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: heroRise .9s var(--ease) .75s backwards; }

/* The pulse-line: a green energy waveform drawn across the foot of dark banners */
.pulse {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 44px;
  color: var(--green-300);
  animation: drawPulse 1.6s var(--ease) .9s backwards;
  pointer-events: none;
}
.pulse svg { display: block; width: 100%; height: 100%; }
.pulse path { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pulse--top { top: 0; bottom: auto; transform: scaleY(-1); }

.page-hero {
  --focus: var(--green-300);
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(88px, 11vw, 128px);
  color: var(--white);
  background: var(--dots), linear-gradient(135deg, var(--grey-950), var(--grey-700));
}
.page-hero h1 { margin-bottom: .4em; color: var(--white); animation: heroRise .8s var(--ease) backwards; }
.page-hero p {
  max-width: 60ch;
  margin: 0;
  color: #D6DCE1;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  animation: heroRise .8s var(--ease) .15s backwards;
}

/* 8. SECTION HEADINGS -------------------------------------- */
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-foot { margin-top: clamp(32px, 5vw, 48px); text-align: center; }

/* 9. HOME: INTRODUCTION & SERVICE CARDS -------------------- */
.intro { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.intro h2 { margin: 0; }
.intro-text { padding-left: clamp(20px, 3vw, 36px); border-left: 3px solid var(--green); }
.intro-text p { color: var(--muted); font-size: 1.12rem; }
.intro-text .btn { margin-top: .6rem; }

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--grey-300);
  box-shadow: var(--shadow-lg);
}
.card-media { aspect-ratio: 16 / 10; }
.card-media img { transition: transform .9s var(--ease); }
.service-card:hover .card-media img { transform: scale(1.07); }

.card-body { display: flex; flex: 1; flex-direction: column; padding: 26px 26px 28px; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: .7rem; }
.card-head h3 { margin: 0; line-height: 1.1; }
.card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  transition: background-color .3s, color .3s;
}
.service-card:hover .card-icon { background: var(--green); color: var(--grey-950); }
.card-body p { color: var(--muted); }

.link-more {
  align-self: flex-start;
  margin-top: auto;
  padding-top: .3rem;
  color: var(--green-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-thickness .25s, color .25s;
}
.link-more::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.service-card:hover .link-more { color: var(--green-800); text-decoration-thickness: 4px; }

/* 10. HOME: WHY CHOOSE US ---------------------------------- */
.why {
  --focus: var(--green-300);
  background: var(--dots), var(--grey-900);
  color: #C7CED4;
}
.why h2 { color: var(--white); }
.why .section-head p { color: #AEB7BF; }
.why-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item {
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  transition: transform .3s var(--ease), border-color .3s, background-color .3s;
}
.why-item:hover { transform: translateY(-4px); border-color: rgba(88, 216, 138, .55); background: rgba(255, 255, 255, .06); }
.why-item h3 { margin-bottom: .35em; color: var(--white); font-size: 1.4rem; }
.why-item p { margin: 0; color: #AEB7BF; }
.icon-box {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  background: rgba(47, 184, 102, .14);
  color: var(--green-300);
}

/* 11. ABOUT PAGE ------------------------------------------- */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split > div > p { color: var(--muted); font-size: 1.08rem; }

.focus-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--grey-50);
}
.focus-card h3 { margin-bottom: .8rem; }
.focus-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.focus-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--grey-900);
  font-weight: 500;
  text-decoration: none;
  transition: color .25s, padding-left .3s var(--ease);
}
.focus-list li:last-child a { border-bottom: 0; }
.focus-list a:hover { color: var(--green-700); padding-left: 14px; }
.focus-list .icon { width: 1.4em; height: 1.4em; color: var(--green-700); }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { padding: clamp(28px, 4vw, 48px); border-radius: 16px; }
.mv-card h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.mv-card p { margin: 0; font-size: 1.15rem; }
.mv-card--mission { background: var(--grey-900); color: #D6DCE1; }
.mv-card--mission h2 { color: var(--white); }
.mv-card--vision { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); box-shadow: var(--shadow-sm); color: var(--muted); }
.mv-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.2rem; border-radius: 12px; }
.mv-card--mission .mv-icon { background: rgba(47, 184, 102, .16); color: var(--green-300); }
.mv-card--vision .mv-icon { background: var(--green-50); color: var(--green-700); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.value {
  display: flex;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.value:hover { transform: translateY(-4px); border-color: var(--grey-300); box-shadow: var(--shadow-md); }
.value .card-icon { width: 50px; height: 50px; }
.value h3 { margin-bottom: .2em; font-size: 1.35rem; }
.value p { margin: 0; color: var(--muted); font-size: .98rem; }

.ceo { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.ceo-frame { position: relative; margin: 0 0 18px 18px; }
.ceo-frame::before {
  content: "";
  position: absolute;
  inset: 18px 18px -18px -18px;
  border-radius: 16px;
  border: 3px solid var(--green);
}
.ceo-photo { z-index: 1; aspect-ratio: 4 / 5; border-radius: 16px; box-shadow: var(--shadow-md); }
.ceo-role { margin-bottom: 1.4rem; color: var(--green-700); font-weight: 600; font-size: 1.05rem; }
.ceo-copy p { color: var(--muted); font-size: 1.08rem; }
.placeholder-note {
  padding: 16px 20px;
  border: 2px dashed var(--grey-300);
  border-radius: 12px;
  background: var(--grey-50);
  color: var(--muted);
}

/* 12. SERVICES PAGE ---------------------------------------- */
.chip-nav ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip-bar { padding: 28px 0; background: var(--grey-50); border-bottom: 1px solid var(--line); }
.chip {
  display: inline-block;
  padding: .5rem 1rem;
  border: 1px solid var(--grey-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--grey-800);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.chip:hover { background: var(--green); border-color: var(--green); color: var(--grey-950); transform: translateY(-2px); }

.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.service-row--reverse .service-visual { order: 2; }
.service-visual { position: relative; }
.service-visual .media { aspect-ratio: 4 / 3; border-radius: 16px; box-shadow: var(--shadow-md); }
.service-visual img { transition: transform 1s var(--ease); }
.service-visual:hover img { transform: scale(1.05); }
.service-tag {
  position: absolute;
  left: 20px; bottom: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--green);
  color: var(--grey-950);
  box-shadow: 0 12px 24px -10px rgba(20, 24, 28, .6);
}
.service-tag .icon { width: 1.8em; height: 1.8em; }
.service-copy h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.service-copy > p { color: var(--muted); font-size: 1.08rem; }

.offer-title { margin: 1.6rem 0 .7rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--grey-900); }
.offer-list { display: grid; gap: .55rem; margin: 0 0 1.8rem; padding: 0; list-style: none; }
.offer-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--grey-800); }
.offer-list .icon { width: 1.3em; height: 1.3em; margin-top: .18em; color: var(--green-700); stroke-width: 2.2; }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.section:target .service-copy h2 { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 4px; text-underline-offset: 8px; }

/* 13. CONTACT PAGE ----------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info h2, .form-card h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.contact-info > p { color: var(--muted); }

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.info-item .card-icon { width: 52px; height: 52px; }
.info-label { display: block; color: var(--muted); font-size: .88rem; }
.info-value { color: var(--grey-900); font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.2; text-decoration: none; }
a.info-value:hover { color: var(--green-700); }

.wa-card { padding: 24px; border: 1px solid var(--green-100); border-radius: 14px; background: var(--green-50); }
.wa-card p { color: var(--grey-700); }
.wa-card .btn { width: 100%; }

.form-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: .4rem; color: var(--grey-900); font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--grey-300);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; padding-right: 2.6rem; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%2359626B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(47, 184, 102, .22); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #B3261E; }
.field-error { margin: .35rem 0 0; color: #B3261E; font-size: .9rem; font-weight: 500; }
.field-error:empty { display: none; }

.form-note { margin: 1rem 0 0; color: var(--muted); font-size: .92rem; }
.form-status { margin-top: 1.2rem; padding: 16px 18px; border: 1px solid var(--green-100); border-radius: 12px; background: var(--green-50); color: var(--green-900); }
.form-status a { color: inherit; font-weight: 600; }

.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.help-card { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.help-card .card-icon { margin-bottom: 1.1rem; }
.help-card h3 { font-size: 1.35rem; }
.help-card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* 14. CTA BAND --------------------------------------------- */
.cta-band {
  --focus: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 11vw, 128px) 0 clamp(64px, 8vw, 96px);
  color: var(--white);
  background: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.5px) 0 0 / 26px 26px, linear-gradient(120deg, var(--green-900), var(--green-700));
}
.cta-band .pulse { color: rgba(255, 255, 255, .75); }
.cta-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.cta-band h2 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.8rem); }
.cta-copy p { max-width: 52ch; margin-bottom: 0; color: #DDF3E6; font-size: 1.15rem; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-phone { color: #DDF3E6; font-size: 1rem; }
.cta-phone a { color: var(--white); font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; text-decoration: none; letter-spacing: .01em; }
.cta-phone a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* 15. FOOTER ----------------------------------------------- */
.site-footer { --focus: var(--green-300); background: var(--grey-950); color: #AEB7BF; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); padding: clamp(56px, 7vw, 80px) 0 clamp(40px, 5vw, 56px); }
.footer-logo { display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; text-decoration: none; }
.footer-logo-img { display: grid; place-items: center; padding: 6px; border-radius: 10px; background: var(--white); }
.footer-logo-img img { height: 38px; width: auto; }
.footer-logo .brand-name-main { color: var(--white); }
.footer-logo .brand-name-sub { color: var(--green-300); }
.footer-tagline { margin: 0; color: #D6DCE1; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; letter-spacing: .02em; }
.footer-title { margin: 0 0 1rem; color: var(--white); font-size: 1.25rem; font-weight: 600; }
.footer-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #D6DCE1; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--green-300); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }
.footer-bottom p { margin: 0; }

/* 16. FLOATING WHATSAPP BUTTON ----------------------------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 150;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
}
.wa-btn {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 14px 28px -10px rgba(18, 140, 74, .75);
  transition: transform .3s var(--ease), background-color .3s;
}
.wa-btn .icon { width: 32px; height: 32px; }
.wa-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #25D366;
  animation: waPulse 2.8s ease-out infinite;
}
.wa-btn:hover { background: #1EBE5A; transform: scale(1.08); }
.wa-btn:focus-visible { outline-color: var(--grey-900); }
.wa-tip {
  padding: .5rem .9rem;
  border-radius: 8px;
  background: var(--grey-900);
  color: var(--white);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.wa-btn:hover + .wa-tip,
.wa-btn:focus-visible + .wa-tip,
.wa-float.show-tip .wa-tip { opacity: 1; transform: none; }

/* 17. ANIMATIONS ------------------------------------------- */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes drawPulse { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.65); opacity: 0; } }

/* Scroll reveal: content stays visible if JavaScript is unavailable */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { opacity: 1; animation: rise .75s var(--ease) var(--delay, 0ms) backwards; }

/* Page-leave fade used by script.js when moving between pages */
.is-leaving body { opacity: 0; transition: opacity .2s ease; }

/* 18. RESPONSIVE ------------------------------------------- */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .why-list { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .site-header.is-scrolled .nav-bar { min-height: var(--header-h); }

  .brand-logo { height: 40px; }
  .brand-name-main { font-size: 1.5rem; }

  .nav-toggle { display: block; }
  .nav-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(29, 35, 41, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s ease, transform .35s var(--ease), visibility .3s;
  }
  .nav-list.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: .95rem 0 .95rem 1rem; border-left: 4px solid transparent; font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-link:hover,
  .nav-link[aria-current="page"] { border-left-color: var(--green); background: var(--grey-50); }

  .intro,
  .split,
  .ceo,
  .cta-inner,
  .contact-grid,
  .service-row { grid-template-columns: 1fr; }
  .service-row--reverse .service-visual { order: 0; }
  .ceo-frame { max-width: 380px; }
  .intro-text { padding-left: 20px; }
}

@media (max-width: 760px) {
  .mv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .grid-3,
  .why-list,
  .values,
  .help-grid,
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 72px 0 112px; }
}

@media (max-width: 560px) {
  .btn { width: 100%; }
  .btn--sm { width: auto; }
  .hero-actions .btn,
  .service-actions .btn { width: 100%; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-btn { width: 54px; height: 54px; }
  .wa-btn .icon { width: 29px; height: 29px; }
  /* keep the copyright line clear of the floating button */
  .footer-bottom { padding-bottom: 88px; }
}

/* 19. REDUCED MOTION --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; }
  .wa-btn::before { display: none; }
}
