/* =========================================================
   Bright Home Solutions — Solar Proposal
   Refined customer-facing styling
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

:root{
  --orange:        #FF6A00;
  --orange-soft:   #fff4ec;
  --orange-line:   rgba(255,106,0,0.32);
  --orange-dark:   #e85f00;

  --ink:           #111111;
  --dark:          #1f1f23;
  --muted:         #6b6b72;
  --soft:          #f6f5f2;
  --line:          #e9e7e2;
  --line-strong:   #d8d5cd;

  --white:         #ffffff;
  --cream:         #faf8f3;

  --serif:         'Fraunces', 'Times New Roman', serif;
  --sans:          'Poppins', 'Inter', -apple-system, system-ui, sans-serif;

  --radius-lg:     32px;
  --radius-md:     22px;
  --radius-sm:     14px;

  --shadow-soft:   0 14px 40px -16px rgba(28,28,32,0.18);
  --shadow-card:   0 24px 64px -28px rgba(28,28,32,0.22);
  --shadow-cta:    0 18px 40px -12px rgba(255,106,0,0.42);
}

html, body{
  margin:0;
  padding:0;
  font-family: var(--sans);
  color: var(--dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body{
  min-height: 100vh;
  background:
    radial-gradient(60rem 40rem at 92% -8%, rgba(255,106,0,0.10), transparent 60%),
    radial-gradient(50rem 36rem at -10% 18%, rgba(255,106,0,0.06), transparent 60%),
    var(--cream);
}

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

h1, h2, h3, h4, p { margin-top: 0; }


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar{
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 32px;
  background: rgba(250,248,243,0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(217,213,200,0.6);
}

.brand{
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo{
  height: 54px;
  width: auto;
  object-fit: contain;
}

.topbar-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.email-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
  transition: background .2s ease, transform .2s ease;
}

.email-pill svg{ color: var(--orange); }

.email-pill:hover{
  background: #ffe7d2;
  transform: translateY(-1px);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .005em;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-lg{
  min-height: 56px;
  padding: 16px 28px;
  font-size: 15px;
}

.btn-dark{
  background: #16161a;
  color: #fff;
}

.btn-dark:hover{
  background: #000;
  transform: translateY(-1px);
}

.btn-orange{
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn-orange:hover{
  background: var(--orange-dark);
  transform: translateY(-1px);
}


/* =========================================================
   LAYOUT
   ========================================================= */

main{
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 40px 0 64px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero{
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  min-height: 480px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.hero-copy{
  padding: 64px 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 12px 6px 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
  border-radius: 999px;
  width: fit-content;
}

.eyebrow-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,106,0,0.18);
  flex-shrink: 0;
}

.eyebrow-light{
  background: rgba(255,255,255,0.55);
  border-color: rgba(255,106,0,0.55);
}

h1{
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: .98;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
}

.hero-text{
  max-width: 540px;
  margin-bottom: 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 500;
}

.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.stat{
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--line);
}

.stat span{
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.stat strong{
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.05;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 32;
}

.stat-accent{
  background: linear-gradient(135deg, #ff7a1a, #ff6a00);
  border-color: var(--orange);
}

.stat-accent span{ color: rgba(255,255,255,0.85); }
.stat-accent strong{ color: #fff; }

.hero-cta{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta-note{
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.hero-art{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
  background: linear-gradient(160deg, #fff7ee 0%, #ffe9d3 100%);
}

.hero-image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-art-glow{
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,180,80,0.55), transparent 70%);
  pointer-events: none;
}


/* =========================================================
   PROPOSAL GRID
   ========================================================= */

.proposal-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 22px;
  margin-top: 22px;
  align-items: stretch;
}

.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 36px;
}

.card-head{
  margin-bottom: 24px;
}

.card h2,
.cta-card h2,
.steps-card h2{
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-weight: 600;
}


/* SUMMARY ROWS */

.summary-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--line);
  transition: border-color .2s ease, background .2s ease;
}

.summary-row:hover{
  border-color: var(--line-strong);
}

.row-label{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.row-ico{
  color: var(--orange);
  flex-shrink: 0;
}

.summary-row > strong{
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.adders-block{
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
}

.block-label{
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-row.total-row{
  margin-top: 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #ff7a1a, var(--orange));
  border-color: var(--orange);
  border-radius: var(--radius-md);
}

.summary-row.total-row span{
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.summary-row.total-row strong{
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48;
}


/* CONTACT CARD */

.contact-card{
  display: flex;
  flex-direction: column;
}

.contact-card .eyebrow{
  margin-bottom: 16px;
}

.contact-card h2{
  margin-bottom: 20px;
}

.mini-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-list div{
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--line);
}

.mini-list span{
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mini-list strong{
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.contact-divider{
  height: 1px;
  background: var(--line);
  margin: 24px 0 20px;
}

.contact-blurb{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 14px;
}

.contact-email{
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  font-size: 14.5px;
  transition: transform .2s ease;
}

.contact-email:hover{
  transform: translateX(2px);
}


/* =========================================================
   NOTES
   ========================================================= */

.notes-section{
  margin-top: 22px;
}

.notes-card{
  background: linear-gradient(135deg, #fffaf5, var(--white));
  border-color: var(--orange-line);
}

.notes-body{
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  font-weight: 500;
  white-space: pre-line;
}


/* =========================================================
   BENEFITS
   ========================================================= */

.benefit-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 22px;
}

.benefit-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.benefit-card:hover{
  transform: translateY(-3px);
  border-color: var(--orange-line);
  box-shadow: 0 22px 48px -22px rgba(255,106,0,0.28);
}

.benefit-ico{
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--orange-soft);
  color: var(--orange);
  margin-bottom: 22px;
  border: 1px solid var(--orange-line);
}

.benefit-card h3{
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 600;
}

.benefit-card p{
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}


/* =========================================================
   STEPS
   ========================================================= */

.steps-card{
  margin-top: 22px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.steps-head{
  margin-bottom: 28px;
  max-width: 640px;
}

.steps-head .eyebrow{ margin-bottom: 16px; }

.steps-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}

.steps-list li{
  position: relative;
  padding: 22px 22px 24px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--line);
}

.step-num{
  display: block;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 60;
}

.steps-list h4{
  font-size: 15.5px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.steps-list p{
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}


/* =========================================================
   CTA
   ========================================================= */

.cta-card{
  margin-top: 22px;
  padding: 40px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255,106,0,0.12), transparent 60%),
    linear-gradient(135deg, #ffffff 0%, #fff4ec 100%);
  border: 1px solid var(--orange-line);
  box-shadow: var(--shadow-soft);
}

.cta-copy{ max-width: 640px; }

.cta-card h2{
  margin-bottom: 8px;
}

.cta-card p{
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.page-footer{
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.page-footer p{
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
  max-width: 920px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1040px){
  .hero{
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-art{
    min-height: 320px;
    order: -1;
  }

  .proposal-grid{
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px){
  .topbar{
    padding: 12px 18px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .topbar-actions{
    width: 100%;
    justify-content: flex-start;
  }

  .brand-logo{ height: 44px; }

  main{
    width: min(100% - 24px, 1180px);
    padding: 24px 0 48px;
  }

  .hero-copy{
    padding: 36px 28px 32px;
  }

  .hero-stats{
    grid-template-columns: 1fr;
  }

  .hero-cta{
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-lg{ width: 100%; }

  .card,
  .steps-card{
    padding: 26px;
    border-radius: 24px;
  }

  .benefit-grid{ grid-template-columns: 1fr; }

  .benefit-card{ padding: 24px; }

  .steps-list{ grid-template-columns: 1fr; }

  .cta-card{
    padding: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cta-card .btn-orange{ width: 100%; }

  .summary-row.total-row{
    padding: 18px 20px;
  }

  .summary-row.total-row strong{
    font-size: 28px;
  }
}

@media (max-width: 420px){
  .email-pill{
    width: 100%;
    justify-content: center;
  }

  .topbar-actions .btn{ width: 100%; }
}
