:root {
  --bg: #0d0d0d;
  --panel: #171717;
  --text: #f5f2ea;
  --muted: #bdbdbd;
  --gold: #c89b3c;
  --gold-dark: #9f7429;
  --line: rgba(255,255,255,.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================
   HEADER
========================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 6vw;

  background: rgba(10,10,10,.86);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--line);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 7px;

  background: transparent;
  border: 1px solid rgba(200, 155, 60, .45);
  border-radius: 4px;

  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;

  margin: 4px 0;

  background: var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 115px;
  height: auto;
  display: block;
}

.brand span {
  color: var(--gold);
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;

  font-size: .9rem;
}

.nav-cta {
  border: 1px solid var(--gold);

  padding: 10px 16px;

  border-radius: 999px;
}


/* =========================================
   HERO
========================================= */

.hero {
  min-height: 92vh;

  display: flex;
  align-items: center;

  position: relative;

  padding: 140px 8vw 80px;

   background:
    url("images/home/BER_home.png")
    center/contain no-repeat;
}
/* add gradient to hero image for popup */
/* .overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.85),
      rgba(0,0,0,.2)
    ); */
/* } */

.hero-content {
  position: relative;

  max-width: 780px;

  z-index: 2;
}

.eyebrow {
  color: var(--gold);

  text-transform: uppercase;

  letter-spacing: .14em;

  font-weight: 700;

  font-size: .78rem;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);

  line-height: .94;

  margin-bottom: 24px;

  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);

  line-height: 1;
}

.hero-copy {
  max-width: 650px;

  font-size: 1.15rem;

  line-height: 1.7;

  color: var(--muted);
}

.hero-actions {
  display: flex;

  gap: 14px;

  flex-wrap: wrap;

  margin-top: 30px;
}

.btn {
  display: inline-block;

  padding: 15px 24px;

  border-radius: 999px;

  text-transform: uppercase;

  letter-spacing: .07em;

  font-weight: 800;
}

.btn-gold {
  background: var(--gold);

  color: #111;
}

.btn-gold:hover {
  background: var(--gold-dark);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,.4);
}

.credential {
  margin-top: 18px;

  color: #ddd;

  font-size: .9rem;
}


/* =========================================
   PROFESSIONAL PARTNERS
========================================= */

.partners-section {
  background: #faf9f6;

  color: #111;

  width: 100%;

  min-height: 70vh;

  padding: 5vh 6vw;

  display: flex;

  flex-direction: column;

  justify-content: center;
}


/* ---------- HEADING ---------- */

.partners-heading {
  width: 88%;

  max-width: 1200px;

  margin: 0 auto 6vh;

  display: flex;

  align-items: center;

  gap: 3%;
}

.partners-heading h2 {
  margin: 0;

  color: #111;

  font-size: clamp(14px, 1.4vw, 21px);

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: .2em;

  white-space: nowrap;
}

.heading-line {
  flex: 1;

  height: 1px;

  background: var(--gold);
}


/* ---------- PARTNER GRID ---------- */

.partners-grid {
  width: 85%;

  max-width: 1250px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    1px
    minmax(0, 1fr);

  align-items: center;

  column-gap: 5%;
}


/* ---------- EACH PARTNER COLUMN ---------- */

.partner-card {
  min-width: 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;
}


/* Remove global image effects inside partner section */

.partners-section img {
  display: block;

  height: auto;

  border-radius: 0;

  box-shadow: none;

  object-fit: contain;
}


/* =========================================
   LUMENARY PRO
========================================= */

.lumenary-brand-row {
  position: relative;

  width: 100%;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;
}

.lumenary-logo {
  width: 70%;

  height: auto;
}


/* ---------- CERTIFIED INSTALLER ---------- */

.certified-badge {
  margin-bottom: 2vh;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: .6em;

  padding: .6em 1em;

  background: #faf9f6;

  border: 1.5px solid var(--gold);

  border-radius: 8px;

  color: #a87835;

  font-size: clamp(9px, .8vw, 12px);

  font-weight: 800;

  line-height: 1.05;

  text-transform: uppercase;

  letter-spacing: .06em;
}

.certified-check {
  display: flex;

  align-items: center;

  justify-content: center;

  width: 2em;

  height: 2em;

  border: 1.5px solid var(--gold);

  border-radius: 50%;

  font-size: 1em;
}


/* =========================================
   ENDURANCE CONTRACTING
========================================= */

.endurance-logo {
  width: 78%;

  height: auto;
}


/* =========================================
   PARTNER LABELS
========================================= */

.partner-role {
  width: 100%;

  margin: 2.5vh 0 0;

  color: #111;

  font-size: clamp(11px, 1vw, 15px);

  font-weight: 600;

  text-align: center;

  text-transform: uppercase;

  letter-spacing: .1em;
}


/*
  Endurance does not have the Certified Installer
  badge above it, so this drops Roofing Partner
  to visually align with Architectural Lighting Partner.
*/

.endurance-partner .partner-role {
  transform: translateY(9.5vh);
}


/* =========================================
   CENTER DIVIDER
========================================= */

.partner-divider {
  width: 1px;

  height: 24vh;

  min-height: 120px;

  max-height: 230px;

  background: var(--gold);
}


/* =========================================
   SERVICES
========================================= */

.services {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 22px;

  padding: 90px 6vw;
}

.service-card {
  background: var(--panel);

  border: 1px solid var(--line);

  border-radius: 20px;

  overflow: hidden;
}

.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-image {
  min-height: 360px;

  background-size: cover;

  background-position: center;
}

.roofing-img {
  background-image:
    linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.2)),
    url("images/home/roofing-mansion.png");
}

.lighting-img {
  background-image:
    linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.15)),
    url("images/home/Lumenary_home.png");
}

.service-content {
  padding: 34px;
}

.service-content p {
  color: var(--muted);

  line-height: 1.7;
}

.text-link {
  color: var(--gold);

  font-weight: 700;
}

.cert-badge {
  display: inline-block;

  margin-top: 12px;

  border: 1px solid var(--gold);

  color: var(--gold);

  padding: 8px 12px;

  border-radius: 999px;

  font-size: .8rem;

  text-transform: uppercase;

  letter-spacing: .08em;
}


/* =========================================
   STATEMENT / GENERAL SECTIONS
========================================= */

.statement,
.projects,
.reviews,
.contact {
  padding: 90px 6vw;
}

.statement {
  text-align: center;

  max-width: 1200px;

  margin: auto;
}


/* =========================================
   FEATURES
========================================= */

.features {
  margin-top: 50px;

  display: grid;

  grid-template-columns: repeat(3,1fr);

  gap: 24px;
}

.features div {
  background: var(--panel);

  padding: 30px;

  border-radius: 18px;

  border: 1px solid var(--line);
}

.features p {
  color: var(--muted);

  line-height: 1.6;
}


/* =========================================
   PROJECTS
========================================= */

.section-heading {
  margin-bottom: 35px;
}

.project-grid {
  display: grid;

  grid-template-columns: 1.2fr .8fr;

  grid-auto-rows: 280px;

  gap: 18px;
}

.project {
  position: relative;

  background-size: cover;

  background-position: center;

  border-radius: 18px;

  overflow: hidden;
}

.project::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      transparent,
      rgba(0,0,0,.75)
    );
}

.project span {
  position: absolute;

  left: 20px;

  bottom: 18px;

  z-index: 2;

  font-weight: 700;
}

.project-1 {
  background-image:
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1200&q=80");
}

.project-2 {
  background-image:
    url("https://images.unsplash.com/photo-1600607688969-a5bfcd646154?auto=format&fit=crop&w=1200&q=80");
}

.project-3 {
  background-image:
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=80");
}

.project-4 {
  background-image:
    url("https://images.unsplash.com/photo-1600047509807-ba8f99d2cdde?auto=format&fit=crop&w=1200&q=80");
}


/* =========================================
   REVIEWS
========================================= */

.review-grid {
  display: grid;

  grid-template-columns: repeat(3,1fr);

  gap: 20px;
}

.review-card {
  background: var(--panel);

  border: 1px solid var(--line);

  border-radius: 18px;

  padding: 30px;
}

.review-card p {
  color: var(--muted);

  line-height: 1.7;
}

.stars {
  color: var(--gold);

  letter-spacing: .15em;

  margin-bottom: 18px;
}


/* =========================================
   CTA
========================================= */

.cta {
  margin: 40px 6vw 90px;

  display: grid;
  grid-template-columns: 42% 58%;

  min-height: 430px;

  border-radius: 24px;
  overflow: hidden;

  background: #080808;
}


/* LEFT SIDE */

.cta-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: 70px 60px;

  text-align: left;
}


.cta-content .eyebrow {
  margin-bottom: 15px;
}


.cta-content h2 {
  margin: 0 0 30px;
}


/* RIGHT SIDE — HOUSE */

.cta-image {
  background:
    linear-gradient(
      to right,
      rgba(8, 8, 8, 0.35),
      rgba(8, 8, 8, 0)
    ),
    url("images/BER_home.png")
      center / cover no-repeat;
}


/* TABLET / MOBILE */

@media (max-width: 800px) {

  .cta {
    grid-template-columns: 1fr;
  }

  .cta-content {
    padding: 55px 30px;
    align-items: center;
    text-align: center;
  }

  .cta-image {
    min-height: 320px;

    background:
      linear-gradient(
        to bottom,
        rgba(8, 8, 8, 0.15),
        rgba(8, 8, 8, 0)
      ),
      url("images/BER_home.png")
        center / cover no-repeat;
  }
}


/* =========================================
   CONTACT
========================================= */

.contact {
  display: grid;

  grid-template-columns: .8fr 1.2fr;

  gap: 50px;

  align-items: start;
}

.contact-copy p {
  color: var(--muted);

  line-height: 1.7;
}

form {
  display: grid;

  gap: 14px;
}

input,
select,
textarea {
  width: 100%;

  background: #151515;

  color: white;

  border: 1px solid var(--line);

  border-radius: 12px;

  padding: 15px;

  font: inherit;
}

textarea {
  resize: vertical;
}


/* =========================================
   FOOTER
========================================= */

footer {
  padding: 40px 6vw;

  border-top: 1px solid var(--line);

  color: var(--muted);

  text-align: center;
}


/* =========================================
   MAIN SITE TABLET / MOBILE
========================================= */

@media (max-width: 850px) {

  .menu-toggle {
    display: block;
  }

  .site-header nav {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 14px 6vw 22px;

    background: rgba(10,10,10,.98);

    border-bottom: 1px solid var(--line);
  }

  .site-header nav.show {
    display: flex;
  }

  .site-header nav a {
    display: block;
    padding: 14px 4px;

    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .site-header nav .nav-cta {
    margin-top: 10px;
    text-align: center;
    border-bottom: none;
  }

  .services,
  .features,
  .review-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .hero {
    padding-top: 120px;
    min-height: 86vh;
  }

  .service-image {
    min-height: 280px;
  }
}


/* =========================================
   PROFESSIONAL PARTNERS MOBILE
========================================= */

@media (max-width: 700px) {

  .partners-section {
    min-height: auto;

    padding: 7vh 6vw;
  }

  .partners-heading {
    width: 100%;

    margin-bottom: 5vh;

    gap: 3%;
  }

  .partners-heading h2 {
    font-size: 12px;

    letter-spacing: .15em;
  }

  .partners-grid {
    width: 100%;

    grid-template-columns: 1fr;

    row-gap: 5vh;
  }

  .partner-divider {
    width: 65%;

    height: 1px;

    min-height: 1px;

    margin: 0 auto;
  }

  .lumenary-logo {
    width: 70%;
  }

  .endurance-logo {
    width: 78%;
  }

  .partner-role {
    margin-top: 2vh;
  }

  /*
    Remove desktop vertical correction once
    the partner columns stack on mobile.
  */

  .endurance-partner .partner-role {
    transform: none;
  }

}