/* ============================================================
   Northern Lighting — styles
   Fonts: Abadi MT Condensed (display), Poppins (body/nav)
   ============================================================ */

@font-face {
  font-family: "Abadi Condensed";
  src: url("fonts/AbadiMT-Condensed.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Abadi Condensed";
  src: url("fonts/AbadiMT-CondensedBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #1e3b1b;
  --dark: #0d1b0d;
  --cream: #f7f2e6;
  --cream-2: #fffaf0;
  --yellow: #fff27b;
  --ink: #161d14;
  --line: rgba(30, 59, 27, 0.28);
  --shadow: 0 24px 80px rgba(10, 20, 9, 0.18);
  --hover-shadow: 0 28px 70px rgba(10, 20, 9, 0.18);
  --max: 1180px;
  --header-h: 84px;
  --section-pad: clamp(80px, 10vw, 136px);
  --display: "Abadi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Poppins", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

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

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

section[id],
#top {
  scroll-margin-top: 100px;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

p {
  margin: 0;
}

h1 {
  max-width: 610px;
  color: var(--yellow);
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 0.875;
  letter-spacing: -0.02em;
}

h2 {
  color: var(--green);
  font-size: clamp(2.375rem, 4.45vw, 4rem);
  line-height: 0.875;
}

h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  line-height: 1;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* ---------- Layout ---------- */

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section-light {
  background: var(--cream);
  color: var(--ink);
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--cream-2);
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(13, 27, 13, 0.82), rgba(9, 17, 10, 0.9)),
    url("assets/section-photo.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  pointer-events: none;
}

.section-dark > .container,
.section-dark > * {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  z-index: 2000;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
  padding: 10px max(24px, calc((100vw - var(--max)) / 2)) 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: height 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: var(--green);
  border-bottom-color: rgba(255, 250, 240, 0.08);
}

.site-header.is-scrolled {
  height: 70px;
  padding-top: 6px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.brand {
  justify-self: start;
  display: inline-flex;
  width: 134px;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  color: var(--cream-2);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.quote-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--green);
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.quote-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 242, 123, 0.3);
}

.nav-toggle {
  display: none;
}

.nav-quote {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.btn-fill {
  background: var(--yellow);
  color: var(--green);
}

.btn-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 242, 123, 0.32);
}

.btn-outline {
  background: transparent;
  color: var(--yellow);
  outline: 1px solid var(--yellow);
  outline-offset: -1px;
}

.btn-outline:hover {
  background: var(--yellow);
  color: var(--green);
}

/* ---------- Hero ---------- */

.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 56px;
  background: var(--dark);
  color: var(--cream-2);
}

/* Hero is fixed; the rest of the page scrolls up and over it. */
main {
  padding-top: 100svh;
}

.section,
.footer {
  z-index: 1;
}

.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("assets/hero-photo.jpg");
  background-size: cover;
  background-position: top center;
  filter: contrast(1.08) saturate(1.06);
  transform-origin: 68% 0;
  animation: bulbSway 9s ease-in-out infinite alternate;
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 13, 8, 0.94) 0%,
    rgba(15, 34, 15, 0.78) 42%,
    rgba(13, 27, 13, 0.36) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero h1 {
  margin-top: 20px;
}

.hero p:not(.eyebrow) {
  max-width: 420px;
  margin-top: 22px;
  color: rgba(255, 250, 240, 0.94);
  font-size: 16px;
  line-height: 1.375;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

/* ---------- Categories ---------- */

.categories h2 {
  max-width: 940px;
}

.categories .intro {
  max-width: 650px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.375;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  margin-top: 54px;
}

.category-grid button,
.feature-list li {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.42);
  color: var(--green);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
  will-change: transform;
}

.category-grid button:hover,
.feature-list li:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 59, 27, 0.4);
  box-shadow: var(--hover-shadow);
}

.dot,
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-right: 22px;
  border: 5px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(255, 242, 123, 0.86);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

/* ---------- Promise (split) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: center;
}

.promise h2 {
  color: var(--cream-2);
}

.promise .lead {
  max-width: 431px;
  margin-top: 30px;
  color: rgba(255, 250, 240, 0.98);
  font-size: 16px;
  line-height: 1.375;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  min-height: 64px;
  border-color: rgba(255, 242, 123, 0.16);
  background: rgba(255, 250, 240, 0.06);
  color: var(--cream-2);
  cursor: default;
}

.feature-list li:hover {
  border-color: rgba(255, 242, 123, 0.28);
  background: rgba(255, 250, 240, 0.09);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

/* ---------- About ---------- */

.about .split {
  gap: clamp(48px, 8vw, 115px);
}

.copy-block {
  max-width: 500px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about h2 {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 0.8;
}

.copy-block .body {
  margin-top: 24px;
  max-width: 340px;
  font-size: 16px;
  line-height: 1.375;
}

.copy-block .reliable {
  margin-top: 16px;
  max-width: 340px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
}

.light-the-way {
  margin-top: 32px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 2.9vw, 2.625rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--green);
}

.image-card {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
  object-position: center 52%;
}

/* ---------- Services grid ---------- */

.services .services-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 60px;
  text-align: center;
}

.services h2 {
  color: var(--cream-2);
}

.services .intro {
  max-width: 720px;
  color: rgba(255, 250, 240, 0.9);
  font-size: 16px;
  line-height: 1.375;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 43px 48px;
}

.product-grid article {
  position: relative;
  min-height: 185px;
  padding: 52px 34px 32px;
  border: 1px solid rgba(255, 242, 123, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
  will-change: transform;
}

.product-grid article::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 48px;
  width: 25px;
  height: 25px;
  border: 6px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(255, 242, 123, 0.86);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-grid article:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 242, 123, 0.28);
  background: rgba(255, 250, 240, 0.09);
  box-shadow: 0 32px 82px rgba(0, 0, 0, 0.2);
}

.product-grid article:hover::before {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(255, 242, 123, 0.96), 0 0 58px rgba(255, 242, 123, 0.3);
}

.product-grid h3 {
  color: var(--cream-2);
  margin-bottom: 20px;
  transition: color 220ms ease;
}

.product-grid p {
  color: rgba(255, 250, 240, 0.78);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.product-grid article:hover h3 {
  color: var(--yellow);
}

.product-grid article:hover p {
  color: rgba(255, 250, 240, 0.92);
}

/* ---------- Builders ---------- */

.builders h2 {
  font-size: clamp(3rem, 6vw, 5.375rem);
  line-height: 0.88;
}

.builders p {
  max-width: 1009px;
  margin-top: 36px;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.3;
}

/* ---------- Quote ---------- */

.quote-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(48px, 7vw, 100px);
}

.quote-copy {
  flex-shrink: 0;
  width: 520px;
  max-width: 100%;
}

.quote-copy h2 {
  font-weight: 800;
}

.quote-copy .intro {
  max-width: 420px;
  margin-top: 26px;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.2;
}

.quote-copy .label {
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.75;
}

.quote-copy .value {
  display: inline-block;
  color: var(--green);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.2;
}

.phone-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  color: #25d366;
  transition: transform 160ms ease, filter 160ms ease;
}

.whatsapp-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.quote-form {
  flex-shrink: 0;
  width: 560px;
  max-width: 100%;
  display: grid;
  gap: 14px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.quote-form label {
  display: block;
}

.quote-form span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(52, 54, 48, 0.25);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 15px;
  outline: none;
  padding: 15px 22px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.quote-form textarea {
  min-height: 138px;
  resize: vertical;
  border-radius: 20px;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #9a9a92;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 59, 27, 0.12);
}

.file-field {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(52, 54, 48, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #2f8f4f;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.file-field:hover {
  border-color: #2f8f4f;
}

.file-field span {
  position: static;
  width: 100%;
  height: auto;
  overflow: visible;
  clip: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  color: #2f8f4f;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.file-field input {
  display: none;
}

.button-submit {
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: var(--body);
  font-weight: 300;
  font-size: 15px;
  text-transform: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(30, 59, 27, 0.28);
}

.button-submit[disabled] {
  opacity: 0.7;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.form-success,
.form-error {
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-success {
  color: var(--green);
}

.form-error {
  margin-top: 12px;
  color: #b3261e;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  overflow: hidden;
  padding: 190px 0 54px;
  background: var(--cream);
}

.footer-ghost-logo {
  position: absolute;
  left: 0;
  bottom: -29px;
  width: 100%;
  height: auto;
  opacity: 1;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  width: 150px;
}

.footer-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 4px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-text a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Animations ---------- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bulbSway {
  0% {
    transform: translate3d(0, 0, 0) rotate(-0.28deg) scale(1.002);
  }
  100% {
    transform: translate3d(4px, -5px, 0) rotate(0.32deg) scale(1.006);
  }
}

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

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    height: 70px;
  }

  .nav-toggle {
    position: relative;
    z-index: 22;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 250, 240, 0.35);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--cream-2);
    transition: transform 160ms ease;
  }

  .nav-toggle span:first-child {
    transform: translateY(-4px);
  }

  .nav-toggle span:last-child {
    transform: translateY(4px);
  }

  .site-header.is-open .nav-toggle span:first-child {
    transform: rotate(45deg);
  }

  .site-header.is-open .nav-toggle span:last-child {
    transform: rotate(-45deg);
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 5% 28px;
    background: var(--green);
    border-bottom: 1px solid rgba(255, 250, 240, 0.16);
    text-align: center;
  }

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

  .nav a {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 250, 240, 0.14);
    font-size: 1.6rem;
    text-align: center;
  }

  .nav a::after {
    display: none;
  }

  .nav .nav-quote {
    display: block;
    margin-top: 18px;
    padding: 15px 0;
    border-bottom: none;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--green);
    font-size: 1.15rem;
  }

  .quote-pill {
    display: none;
  }

  .split,
  .quote-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .quote-copy,
  .quote-form {
    width: 100%;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .copy-block .body {
    max-width: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .container {
    width: 90%;
  }

  .site-header {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero {
    padding-top: calc(var(--header-h) + 24px);
  }

  /* Mobile: text in a dark left column, bulbs image on the right side. */
  .hero .hero-inner {
    justify-content: flex-start;
    align-items: flex-start;
    width: 54%;
    max-width: 54%;
    margin-left: 5%;
    margin-right: auto;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: 2rem;
    line-height: 0.92;
  }

  .hero p:not(.eyebrow) {
    margin-top: 12px;
    max-width: none;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero::before {
    background: linear-gradient(90deg, var(--dark) 0%, var(--dark) 50%, transparent 60%);
  }

  .hero-art {
    inset: 0 0 0 55%;
    background-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%);
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 48px;
  }

  .footer {
    padding-top: 120px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
