:root {
  --ink: #14211f;
  --muted: #52615d;
  --paper: #ffffff;
  --soft: #f4f7f4;
  --mint: #e5f2eb;
  --sky: #dceef8;
  --sun: #f4c542;
  --sun-strong: #e3a619;
  --green: #1f8a5f;
  --blue: #1e6f9f;
  --line: #d9e2de;
  --shadow: 0 22px 60px rgba(20, 33, 31, 0.16);
  --radius: 8px;
  --header-height: 76px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: var(--header-height);
  padding: 14px clamp(18px, 4vw, 56px);
  color: #ffffff;
  background: rgba(13, 29, 27, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(20, 33, 31, 0.12);
  border-bottom-color: rgba(20, 33, 31, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 134px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 7px;
}

.brand-logo {
  display: block;
  width: 118px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 24px);
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-nav a {
  opacity: 0.86;
  transition: opacity 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.text-link {
  font-size: 0.9rem;
  font-weight: 800;
  opacity: 0.9;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  color: #13201d;
  background: var(--sun);
  border: 1px solid rgba(20, 33, 31, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(227, 166, 25, 0.22);
  font-weight: 900;
  text-align: center;
  line-height: 1.15;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: #ffd45a;
  box-shadow: 0 18px 36px rgba(227, 166, 25, 0.28);
}

.button-small {
  min-height: 40px;
  padding-inline: 15px;
  font-size: 0.84rem;
}

.button-large {
  min-height: 54px;
  padding-inline: 24px;
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(20, 33, 31, 0.22);
}

.button-whatsapp {
  color: #ffffff;
  background: #128c4a;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 32px rgba(18, 140, 74, 0.28);
}

.button-whatsapp:hover,
.button-whatsapp:focus-visible {
  color: #ffffff;
  background: #0b6f42;
  box-shadow: 0 18px 38px rgba(18, 140, 74, 0.34);
}

.button-dark {
  color: #ffffff;
  background: var(--ink);
  box-shadow: none;
}

.button-dark:hover,
.button-dark:focus-visible {
  color: #ffffff;
  background: #24352f;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  color: currentColor;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 500px;
  height: calc(100svh - 220px);
  max-height: 700px;
  overflow: hidden;
  color: #ffffff;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(9, 29, 25, 0.74), rgba(9, 29, 25, 0.3) 52%, rgba(9, 29, 25, 0.08)),
    url("assets/hero-rooftop-solar-dubai.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(12, 25, 23, 0.28) 0%, rgba(12, 25, 23, 0.1) 46%, rgba(12, 25, 23, 0.52) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 82px);
  padding-top: var(--header-height);
}

.eyebrow,
.section-kicker,
.card-topline {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow.dark,
.section-kicker,
.card-topline {
  color: var(--green);
}

.hero-line {
  margin: 22px 0 0;
  max-width: 720px;
  font-size: clamp(1.55rem, 3.2vw, 3rem);
  font-weight: 850;
  line-height: 1.02;
}

.hero-copy {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust-line {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.6;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #13211e;
  color: #ffffff;
}

.trust-strip article {
  position: relative;
  min-height: 168px;
  padding: 30px clamp(18px, 2.4vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-strip article:last-child {
  border-right: 0;
}

.trust-strip span {
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 18px;
  background: var(--sun);
  border-radius: 999px;
}

.trust-strip h2 {
  margin: 0 0 10px;
  font-size: 1.06rem;
}

.trust-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.section {
  padding: clamp(70px, 9vw, 128px) clamp(18px, 5vw, 70px);
}

.section > h2,
.process-section > h2,
.projects-section > h2,
.faq-section > h2 {
  max-width: 760px;
  margin: 0 0 34px;
  font-size: clamp(2rem, 4.4vw, 4.1rem);
  line-height: 1.02;
}

.section p {
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(280px, 1fr);
  gap: clamp(26px, 5vw, 86px);
  align-items: start;
}

.intro-grid h2,
.split-copy h2,
.dubai-band h2,
.lead-copy h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  line-height: 0.98;
}

.intro-grid p,
.split-copy p,
.dubai-band p,
.lead-copy p,
.final-cta p {
  margin: 0 0 18px;
  font-size: 1.03rem;
  line-height: 1.75;
}

.split-copy h2 + p {
  margin-top: 24px;
}

#residential .split-copy h2 + p,
#commercial .split-copy h2 + p {
  margin-top: 30px;
}

.lead-copy h2 + p {
  margin-top: 30px;
}

.intro-grid.compact {
  align-items: end;
  margin-bottom: 34px;
}

.services-grid,
.why-grid,
.process-grid,
.project-grid {
  display: grid;
  gap: 18px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(34px, 5vw, 70px);
}

.service-card,
.why-grid article,
.process-grid article,
.project-grid article,
.split-panel,
.lead-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-card {
  padding: clamp(24px, 3.2vw, 36px);
  box-shadow: 0 16px 40px rgba(20, 33, 31, 0.07);
}

.featured-card {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-12px);
}

.featured-card p,
.featured-card li {
  color: rgba(255, 255, 255, 0.74);
}

.service-card h3,
.split-panel h3,
.why-grid h3,
.process-grid h3,
.project-grid h3 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.service-card p {
  margin: 0 0 22px;
  line-height: 1.65;
}

.service-card ul,
.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li,
.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.45;
}

.service-card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--sun);
  border-radius: 50%;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(70px, 9vw, 126px) clamp(18px, 5vw, 70px);
}

.section-tinted {
  background: var(--mint);
}

.split-section.reverse {
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.92fr);
  background: var(--soft);
}

.split-section.reverse .split-copy {
  order: 2;
}

.split-copy .button {
  margin-top: 12px;
}

.split-panel {
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.split-panel-strong {
  color: #ffffff;
  background: var(--blue);
  border-color: transparent;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-weight: 800;
}

.why-section {
  background: #ffffff;
}

.why-section .why-heading {
  font-size: 3.7rem;
  line-height: 1.04;
}

.why-section .why-heading span {
  display: block;
}

.why-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-grid article,
.process-grid article,
.project-grid article {
  padding: 26px;
}

.why-grid p,
.process-grid p,
.project-grid p {
  margin: 0;
  line-height: 1.65;
}

.process-section {
  background: #f6f8fb;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid article {
  min-height: 228px;
}

.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  color: var(--ink);
  background: var(--sun);
  border-radius: 50%;
  font-weight: 900;
}

.project-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.project-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 1)),
    var(--sky);
}

.dubai-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(54px, 7vw, 88px) clamp(18px, 5vw, 70px);
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(31, 138, 95, 0.94), rgba(30, 111, 159, 0.94)),
    var(--green);
}

.dubai-band p {
  color: rgba(255, 255, 255, 0.82);
}

.dubai-band h2 {
  max-width: 920px;
}

.dubai-band p {
  max-width: 720px;
  margin-top: 16px;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 80px);
  align-items: start;
  padding: clamp(70px, 9vw, 128px) clamp(18px, 5vw, 70px);
  background: var(--soft);
}

.lead-copy {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.lead-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3.5vw, 40px);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cdd8d3;
  border-radius: var(--radius);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 138, 95, 0.12);
}

.form-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  margin: -4px 0 0;
  color: var(--green);
  font-weight: 850;
}

.faq-section {
  background: #ffffff;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

summary {
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 24px 22px;
  line-height: 1.7;
}

.final-cta {
  display: grid;
  place-items: center;
  padding: clamp(70px, 9vw, 122px) 18px;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(19, 33, 30, 0.92), rgba(19, 33, 30, 0.78)),
    url("assets/hero-rooftop-solar-dubai.png") center 62% / cover no-repeat;
}

.final-cta h2 {
  max-width: 820px;
}

.final-cta p {
  max-width: 700px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 34px;
  padding: 48px clamp(18px, 5vw, 70px) 28px;
  color: rgba(255, 255, 255, 0.78);
  background: #0d1917;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
}

.footer-logo {
  display: block;
  width: 190px;
  max-width: min(190px, 70vw);
  height: auto;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 0.95rem;
}

.site-footer a,
.site-footer span {
  display: block;
  margin: 0 0 10px;
}

.site-footer p {
  max-width: 340px;
  margin: 18px 0 0;
  line-height: 1.65;
}

.footer-note {
  grid-column: 1 / -1;
  max-width: none;
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

@media (max-width: 1320px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .primary-nav,
  .header-actions {
    position: fixed;
    left: 18px;
    right: 18px;
    display: none;
    color: var(--ink);
    background: #ffffff;
  }

  .primary-nav {
    top: calc(var(--header-height) + 12px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .primary-nav a {
    padding: 14px;
    border-radius: 6px;
  }

  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    background: var(--soft);
  }

  .header-actions {
    top: calc(var(--header-height) + 418px);
    align-items: stretch;
    justify-content: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 30px rgba(20, 33, 31, 0.12);
  }

  .site-header.is-open .primary-nav,
  .site-header.is-open .header-actions {
    display: flex;
  }

  .text-link,
  .header-actions .button {
    width: 100%;
    justify-content: center;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip article:nth-child(2) {
    border-right: 0;
  }

  .services-grid,
  .why-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 96px;
  }

  .hero {
    min-height: 570px;
    height: calc(100svh - 48px);
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(9, 29, 25, 0.82), rgba(9, 29, 25, 0.44)),
      url("assets/hero-rooftop-solar-dubai.png") 60% center / cover no-repeat;
  }

  .hero-content {
    width: min(100% - 28px, 620px);
    margin-inline: 14px;
  }

  .hero-line {
    font-size: clamp(1.4rem, 7vw, 2.35rem);
  }

  .hero-actions,
  .final-cta .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 240px;
  }

  .trust-strip,
  .intro-grid,
  .split-section,
  .split-section.reverse,
  .lead-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .split-section.reverse .split-copy {
    order: 0;
  }

  .lead-copy {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .why-grid,
  .process-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    transform: none;
  }

  .dubai-band {
    grid-template-columns: 1fr;
  }

  .dubai-band .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 612px;
  }

  .why-section .why-heading {
    font-size: 2.35rem;
  }

  .hero-copy {
    line-height: 1.55;
  }

  .section,
  .split-section,
  .lead-section {
    padding-inline: 14px;
  }

  .trust-strip article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .trust-strip article:last-child {
    border-bottom: 0;
  }
}
