/* ============================================================
   SunEngy Solutions — stylesheet
   Palette sampled from the company logo and the site header:
   teal #216A8A, brand blue #0C60A8, brand orange #EF7A22,
   leaf green #4FAE46, page mist #F1EFEC.
   ============================================================ */

:root {
  --teal:        #216A8A;
  --teal-deep:   #17506A;
  --teal-dark:   #10394D;
  --blue:        #0C60A8;
  --blue-soft:   #E8F1F8;
  --orange:      #EF7A22;
  --orange-dark: #D86411;
  --green:       #4FAE46;
  --ink:         #14303D;
  --body:        #465B66;
  --muted:       #6C7F89;
  --mist:        #F1EFEC;
  --surface:     #FFFFFF;
  --line:        #E3E1DE;
  --line-soft:   #EFEDEA;

  --wrap:   1200px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(20, 48, 61, .06), 0 2px 8px rgba(20, 48, 61, .05);
  --shadow-md: 0 4px 12px rgba(20, 48, 61, .08), 0 12px 32px rgba(20, 48, 61, .07);
  --shadow-lg: 0 18px 48px rgba(20, 48, 61, .16);

  --display: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --text:    'Inter', 'Segoe UI', system-ui, sans-serif;

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

  /* Signature: the logo swoosh, reused as a section rule. */
  --swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 18'%3E%3Cpath d='M3 13C62 2 158 2 217 13' fill='none' stroke='%230C60A8' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M3 6c59 11 155 11 214 0' fill='none' stroke='%23EF7A22' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--mist);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--orange); color: #fff; padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 500; }

.topbar {
  background: var(--teal-dark);
  color: #CFE2EB;
  font-size: .82rem;
}
.topbar-inner {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  align-items: center; justify-content: flex-end;
  min-height: 38px; padding-block: 6px;
}
.topbar-item {
  display: inline-flex; align-items: center; gap: 7px;
  color: #CFE2EB; font-weight: 500;
}
.topbar-item:hover { color: #fff; }
.topbar-item svg { width: 15px; height: 15px; flex: none; fill: var(--orange); }
.topbar-badge { color: #90AFBE; letter-spacing: .02em; }

.navbar {
  background: var(--teal);
  box-shadow: 0 2px 14px rgba(16, 57, 77, .18);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 74px;
  width: min(100% - 40px, 1360px);
}

.brand { display: flex; align-items: center; gap: 11px; padding-block: 8px; }
.brand img { width: 50px; height: auto; filter: brightness(0) invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  color: #fff; letter-spacing: -.02em;
}
.brand-name em { color: var(--orange); font-style: normal; }
.brand-sub {
  font-family: var(--display); font-weight: 500; font-size: .82rem;
  color: #B7D3E0; letter-spacing: .18em; text-transform: uppercase; margin-top: 4px;
}

.nav-toggle {
  display: none; width: 46px; height: 40px; border: 0; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .12); cursor: pointer; padding: 10px 11px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2.5px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 12px; }
.nav-list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }

.nav-link {
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: .84rem;
  text-transform: uppercase; letter-spacing: .02em;
  color: #EAF3F7; padding: 26px 10px; position: relative;
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 20px; height: 2.5px;
  background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link .caret { width: 16px; height: 16px; opacity: .8; }
.nav-link .ext { width: 12px; height: 12px; opacity: .65; }

.sub-toggle { display: none; }

.sub-nav {
  position: absolute; top: 100%; left: 0; min-width: 290px;
  background: #fff; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: 8px;
  border-top: 3px solid var(--orange);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-sub:hover > .sub-nav,
.has-sub:focus-within > .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }

.sub-nav a {
  display: block; padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--ink); font-size: .92rem; font-weight: 500; line-height: 1.4;
}
.sub-nav a:hover { background: var(--blue-soft); color: var(--blue); }

.nav-cta {
  background: var(--orange); color: #fff; font-family: var(--display);
  font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: .03em;
  padding: 11px 18px; border-radius: 40px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(239, 122, 34, .35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { background: #DA6511; color: #fff; transform: translateY(-2px); box-shadow: 0 7px 20px rgba(239, 122, 34, .45); }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: #0F3A4D; overflow: hidden; }
.slider { position: relative; }
.slides { position: relative; }

.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .8s var(--ease), visibility .8s;
}
.slide.is-current { position: relative; opacity: 1; visibility: visible; }
.slide img { width: 100%; height: auto; }

.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 90px 5% 26px;
  background: linear-gradient(to top, rgba(12, 42, 56, .92), rgba(12, 42, 56, .55) 45%, transparent);
  color: #fff;
}
.slide-caption h2 {
  color: #fff; font-size: clamp(1.05rem, 2.4vw, 1.9rem); margin: 0 0 .25em; font-weight: 700;
}
.slide-caption p { color: #D5E5EC; margin: 0; font-size: clamp(.82rem, 1.4vw, 1rem); }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .82); color: var(--teal-dark);
  cursor: pointer; display: grid; place-items: center; z-index: 3;
  box-shadow: var(--shadow-md); transition: background .2s var(--ease);
}
.slider-btn:hover { background: #fff; }
.slider-btn svg { width: 24px; height: 24px; }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }

.slider-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 3;
}
.slider-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; cursor: pointer; padding: 0;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.slider-dots button.is-current { background: var(--orange); border-color: var(--orange); transform: scale(1.2); }

/* ---------- Intro band under slider ---------- */
.intro { background: var(--surface); padding: clamp(48px, 6vw, 80px) 0; }
.intro-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 64px); align-items: center;
}
.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px;
}
.lead { font-size: 1.08rem; color: var(--body); }
.intro-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  background: var(--blue-soft); color: var(--teal-deep); border-radius: 40px;
  padding: 7px 16px; font-size: .85rem; font-weight: 600;
}
.intro-figure img { border-radius: var(--radius); box-shadow: var(--shadow-md); background: #fff; padding: 18px; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(52px, 6.5vw, 92px) 0; }
.section-alt { background: var(--surface); }
.section-mist { background: var(--mist); }
.section-deep { background: var(--teal-dark); color: #C9DCE5; }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep .card { color: var(--body); }
.section-deep .card h3 { color: var(--ink); }

.section-head { max-width: 780px; margin-bottom: clamp(30px, 4vw, 50px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { position: relative; padding-bottom: 20px; }
.section-head h2::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 132px; height: 12px;
  background: var(--swoosh) no-repeat left bottom / contain;
}
.section-head.center h2::after { left: 50%; transform: translateX(-50%); }
.section-head p { font-size: 1.05rem; margin-bottom: 0; }

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

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #CBDDE7; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { background: var(--orange); color: #fff; }

/* Numbered service cards — the numbering reflects the delivery sequence. */
.step-card { position: relative; padding-top: 34px; }
.step-num {
  font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px #BFD4DF; display: block; margin-bottom: 10px;
}
.step-card:hover .step-num { -webkit-text-stroke-color: var(--orange); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm); padding: 24px 22px;
}
.stat b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--teal); line-height: 1;
}
.stat span { display: block; margin-top: 8px; font-size: .92rem; color: var(--muted); }

/* ---------- Tick lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticks.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 11px 28px; }
.ticks.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 11px 28px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .45em;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section-deep .ticks li::before { background-color: var(--orange); }

/* ---------- Projects gallery ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-soft); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project:hover .project-img img { transform: scale(1.06); }
.project-body { padding: 18px 20px 22px; }
.project-body h3 { font-size: 1.05rem; margin-bottom: .3em; color: var(--teal-deep); }
.project-body p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--teal-dark) 0%, var(--teal) 58%, var(--blue) 130%);
  color: #fff; padding: clamp(46px, 6vw, 78px) 0; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -80px; top: -60px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(239, 122, 34, .3), transparent 68%);
}
.page-hero h1 { color: #fff; margin-bottom: .35em; position: relative; z-index: 1; }
.page-hero p { color: #CFE3EC; font-size: 1.08rem; max-width: 720px; margin: 0; position: relative; z-index: 1; }
.crumbs {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0;
  margin: 0 0 16px; font-size: .85rem; color: #A9C8D6; position: relative; z-index: 1;
}
.crumbs a { color: #A9C8D6; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: #6E96A8; }

/* ---------- Prose blocks ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; color: var(--teal-deep); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
}
.panel-accent { border-top: 4px solid var(--orange); }

.quote {
  border-left: 4px solid var(--orange); background: var(--blue-soft);
  padding: 22px 26px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem; color: var(--teal-deep); margin: 0 0 1.4em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 14px 28px; border-radius: 40px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-solid { background: var(--orange); color: #fff; box-shadow: 0 5px 16px rgba(239, 122, 34, .35); }
.btn-solid:hover { background: #DA6511; color: #fff; transform: translateY(-2px); box-shadow: 0 9px 24px rgba(239, 122, 34, .45); }
.btn-blue { background: var(--teal); color: #fff; }
.btn-blue:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: #fff; color: var(--teal-dark); border-color: #fff; }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1EB855; color: #fff; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--orange);
  border-radius: var(--radius); padding: clamp(24px, 3.4vw, 38px); box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field .req { color: var(--orange); }

.field input, .field select, .field textarea {
  font-family: var(--text); font-size: .97rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #FCFCFB; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 4px rgba(33, 106, 138, .13);
}
.field input.has-error, .field select.has-error, .field textarea.has-error { border-color: #D14343; }
.field .error-text { color: #C33; font-size: .82rem; }
.field-hint { font-size: .82rem; color: var(--muted); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--teal); }

.alert {
  border-radius: var(--radius-sm); padding: 15px 18px; margin-bottom: 22px;
  font-size: .95rem; border-left: 4px solid;
}
.alert-success { background: #EAF7EE; border-color: var(--green); color: #1F6B33; }
.alert-error   { background: #FCECEC; border-color: #D14343; color: #97292A; }

/* ---------- Contact details ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-ico {
  width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--teal);
}
.contact-ico svg { width: 20px; height: 20px; }
.contact-list b { display: block; color: var(--ink); font-family: var(--display); font-size: 1rem; }
.contact-list span, .contact-list a { font-size: .94rem; color: var(--body); }
.contact-list a:hover { color: var(--orange); }

.map-embed {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); line-height: 0; background: var(--blue-soft);
}
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--teal-deep), var(--teal) 62%, var(--blue));
  color: #fff; padding: clamp(38px, 4.6vw, 60px) 0;
}
.cta-band-inner {
  display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #D2E5EE; margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: #A9C3CF; font-size: .93rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px; padding: clamp(46px, 5.5vw, 72px) 0 46px;
}
.footer-logo { filter: brightness(0) invert(1); opacity: .95; margin-bottom: 14px; }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff; margin: 0 0 2px; }
.footer-tag { color: var(--orange); font-weight: 600; font-size: .88rem; margin-bottom: 1em; }
.footer-cert { font-size: .84rem; color: #8CA9B7; }

.footer-col h3 {
  color: #fff; font-size: 1.02rem; margin-bottom: 18px; padding-bottom: 12px;
  position: relative; text-transform: uppercase; letter-spacing: .06em;
}
.footer-col h3::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px;
  background: var(--orange); border-radius: 2px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #A9C3CF; }
.footer-col a:hover { color: var(--orange); }

.footer-contact address { font-style: normal; }
.footer-contact address p { margin-bottom: 14px; line-height: 1.55; font-size: .88rem; }
.footer-contact strong { color: #fff; font-weight: 600; }

.footer-wa {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 6px;
  background: #25D366; color: #fff; font-weight: 600; font-size: .88rem;
  padding: 10px 18px; border-radius: 40px;
}
.footer-wa:hover { background: #1EB855; color: #fff; }
.footer-wa svg { width: 17px; height: 17px; }

.footer-bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bar-inner {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  padding: 18px 0; font-size: .84rem; color: #8CA9B7;
}
.footer-bar p { margin: 0; }

/* ---------- Floating actions ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 22px; z-index: 600;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; border-radius: 40px;
  padding: 14px 18px; box-shadow: 0 6px 22px rgba(37, 211, 102, .45);
  font-weight: 600; font-size: .92rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37, 211, 102, .55); }
.wa-float svg { width: 24px; height: 24px; flex: none; }

.call-float {
  position: fixed; left: 20px; bottom: 22px; z-index: 600;
  width: 54px; height: 54px; border-radius: 50%; display: none; place-items: center;
  background: var(--orange); color: #fff; box-shadow: 0 6px 22px rgba(239, 122, 34, .45);
}
.call-float:hover { color: #fff; }
.call-float svg { width: 24px; height: 24px; }

.to-top {
  position: fixed; right: 22px; bottom: 92px; z-index: 590;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s, transform .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--teal-deep); transform: translateY(-3px); }
.to-top svg { width: 24px; height: 24px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
  .nav-link { padding: 24px 7px; font-size: .78rem; }
  .nav-cta { padding: 10px 14px; font-size: .78rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .intro-grid, .split { grid-template-columns: 1fr; }
  .intro-figure { order: -1; }
  .ticks.cols-3 { grid-template-columns: repeat(2, 1fr); }

  /* Mobile navigation */
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw);
    background: var(--teal-deep); flex-direction: column; align-items: stretch;
    gap: 0; padding: 84px 0 30px; overflow-y: auto;
    transform: translateX(100%); transition: transform .34s var(--ease);
    box-shadow: -14px 0 40px rgba(0, 0, 0, .3); z-index: 520;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .nav-link { padding: 15px 24px; font-size: .95rem; }
  .nav-link::after { display: none; }
  .nav-link .caret { display: none; }

  .has-sub { position: relative; }
  .sub-toggle {
    display: block; position: absolute; right: 8px; top: 4px;
    width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  }
  .sub-toggle::before, .sub-toggle::after {
    content: ''; position: absolute; left: 50%; top: 50%; background: #EAF3F7;
    transform: translate(-50%, -50%); transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .sub-toggle::before { width: 14px; height: 2.5px; }
  .sub-toggle::after  { width: 2.5px; height: 14px; }
  .sub-toggle[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

  .sub-nav {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-radius: 0; border-top: 0; background: rgba(0, 0, 0, .18);
    padding: 0; max-height: 0; overflow: hidden; transition: max-height .32s var(--ease);
  }
  .sub-nav.is-open { max-height: 340px; }
  .sub-nav a { color: #C6DCE6; padding: 12px 24px 12px 38px; border-radius: 0; font-size: .88rem; }
  .sub-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }

  .nav-cta { margin: 22px 24px 0; text-align: center; justify-content: center; display: block; }

  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(9, 32, 43, .55); z-index: 510;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  .topbar-badge { display: none; }
  .topbar-inner { justify-content: center; gap: 6px 18px; font-size: .78rem; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .slide-caption { padding: 60px 20px 20px; }
  .slider-btn { width: 38px; height: 38px; }
  .slider-btn svg { width: 20px; height: 20px; }
}

@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .ticks.cols-2, .ticks.cols-3 { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: .7rem; letter-spacing: .14em; }
  .brand img { width: 40px; }

  .call-float { display: grid; }
  .wa-float { padding: 14px; }
  .wa-float-label { display: none; }
  .to-top { bottom: 88px; right: 20px; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
}

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

/* ---------- Motion & print ---------- */
@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; }
}

@media print {
  .site-header, .wa-float, .call-float, .to-top, .cta-band, .slider-btn, .slider-dots { display: none !important; }
  body { background: #fff; color: #000; }
}
