/* =============================================
   GOLDEN STATE SOLAR — styles.css
   Mobile-first. High-contrast. High-conversion.
   ============================================= */

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

:root {
  --gold: #F5A623;
  --gold-dark: #D4891A;
  --navy: #0B1F3A;
  --navy-mid: #122B50;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-light: #E8ECF0;
  --gray-mid: #8A95A3;
  --text: #1A2332;
  --danger: #E53E3E;
  --success: #2F855A;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, .12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .18);

  --transition: .2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* space for sticky mobile bar */
  padding-bottom: 72px;
}

/* Thank-you page has no sticky bar, reset padding */
body.ty-page {
  padding-bottom: 0;
}

/* --- UTILITY --- */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  padding: 14px 28px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(245, 166, 35, .35);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, .45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 255, 255, .2);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, .3);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 16px 32px;
}

.btn-xl {
  font-size: 1.15rem;
  padding: 18px 36px;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}


/* ===========================================
   STICKY MOBILE CTA
   =========================================== */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .25);
  display: flex;
}

.sticky-mobile-cta .btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 15px;
}

@media (min-width: 768px) {
  .sticky-mobile-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}


/* ===========================================
   SECTION 1: HERO
   =========================================== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(11, 31, 58, 0.45) 0%,
      rgba(11, 31, 58, 0.80) 60%,
      rgba(11, 31, 58, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 100px;
}

.top-badge {
  display: inline-block;
  background: rgba(245, 166, 35, .18);
  border: 1px solid rgba(245, 166, 35, .5);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.br-desktop {
  display: none;
}

@media (min-width: 640px) {
  .br-desktop {
    display: block;
  }
}

.hero-sub {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: rgba(255, 255, 255, .85);
  margin-bottom: 12px;
  font-weight: 500;
}

.pge-note {
  font-size: .9rem;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

@media (min-width: 480px) {
  .hero-cta-row {
    flex-direction: row;
    justify-content: center;
  }
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  justify-content: center;
  align-items: center;
}

.trust-item {
  color: rgba(255, 255, 255, .9);
  font-size: .9rem;
  font-weight: 600;
}

.trust-sep {
  color: rgba(255, 255, 255, .4);
  font-size: .8rem;
}


/* ===========================================
   FORM SECTIONS
   =========================================== */
.form-section {
  padding: 56px 0;
}

.form-top {
  background: var(--off-white);
  border-top: 3px solid var(--gold);
}

.form-bottom {
  background: var(--navy);
}

.form-bottom .form-eyebrow,
.form-bottom .form-headline,
.form-bottom .form-sub {
  color: var(--white);
}

.form-bottom label {
  color: rgba(255, 255, 255, .85);
}

.form-bottom .form-disclaimer {
  color: rgba(255, 255, 255, .55);
}

.form-eyebrow {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.form-headline {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.form-sub {
  color: var(--gray-mid);
  margin-bottom: 28px;
  font-size: .95rem;
}

.qualify-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto;
}

.form-bottom .qualify-form {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 520px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A95A3' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .18);
}

.form-bottom .form-group input,
.form-bottom .form-group select {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
  color: var(--white);
}

.form-bottom .form-group input::placeholder {
  color: rgba(255, 255, 255, .45);
}

.form-bottom .form-group input:focus,
.form-bottom .form-group select:focus {
  background: rgba(255, 255, 255, .12);
  border-color: var(--gold);
}

.form-disclaimer {
  text-align: center;
  font-size: .8rem;
  color: var(--gray-mid);
  margin-top: 14px;
}


/* ===========================================
   SECTION 2: PROBLEM
   =========================================== */
.problem-section {
  padding: 64px 0;
  background: var(--white);
}

.section-headline {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.section-sub {
  text-align: center;
  color: var(--gray-mid);
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.problem-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  border: 2px solid var(--gray-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.problem-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.problem-card p {
  font-size: .9rem;
  color: #555;
  line-height: 1.6;
}


/* ===========================================
   SECTION 3: SOLUTION
   =========================================== */
.solution-section {
  background: var(--navy-mid);
  padding: 64px 0;
}

.solution-section .section-headline {
  color: var(--white);
}

.solution-section .section-sub {
  color: rgba(255, 255, 255, .65);
}

.solution-p {
  max-width: 580px;
  margin: 0 auto 40px;
}

.bill-compare {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}

@media (min-width: 580px) {
  .bill-compare {
    flex-direction: row;
    align-items: stretch;
  }
}

.bill-card {
  flex: 1;
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
}

.bill-before {
  background: rgba(229, 62, 62, .12);
  border: 2px solid rgba(229, 62, 62, .35);
}

.bill-after {
  background: rgba(47, 133, 90, .12);
  border: 2px solid rgba(47, 133, 90, .45);
}

.bill-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bill-before .bill-label {
  color: #FC8181;
}

.bill-after .bill-label {
  color: #68D391;
}

.bill-utility {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 6px;
}

.bill-amount {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.bill-high {
  color: #FC8181;
}

.bill-low {
  color: #68D391;
}

.bill-note {
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 18px;
  line-height: 1.4;
}

.bill-list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bill-list li {
  font-size: .88rem;
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
}

.bill-arrow {
  font-size: 2rem;
  color: var(--gold);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
}

@media (min-width: 580px) {
  .bill-arrow {
    transform: rotate(0deg);
  }
}

.bill-disclaimer {
  text-align: center;
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
  margin-top: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}


/* ===========================================
   SECTION 5: SOCIAL PROOF
   =========================================== */
.social-proof-section {
  background: var(--off-white);
  padding: 64px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: .92rem;
  color: #444;
  line-height: 1.65;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: .82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
}

.author-location {
  font-size: .8rem;
  color: var(--gray-mid);
}


/* ===========================================
   SECTION 6: FAQ
   =========================================== */
.faq-section {
  background: var(--white);
  padding: 64px 0;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--off-white);
}

.faq-question[aria-expanded="true"] {
  background: var(--off-white);
  color: var(--gold-dark);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-dark);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-answer.open {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 20px 18px;
  font-size: .9rem;
  color: #555;
  line-height: 1.65;
}


/* ===========================================
   SECTION 7: FINAL CTA
   =========================================== */
.final-cta-section {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  padding: 72px 0;
  text-align: center;
}

.final-eyebrow {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(11, 31, 58, .7);
  margin-bottom: 14px;
}

.final-headline {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.final-sub {
  font-size: 1rem;
  color: rgba(11, 31, 58, .65);
  margin-bottom: 32px;
}

.final-phone {
  display: block;
  margin-top: 20px;
  font-size: .95rem;
  color: var(--navy);
  text-decoration: none;
  opacity: .75;
}

.final-phone:hover {
  opacity: 1;
}


/* ===========================================
   FOOTER
   =========================================== */
.footer {
  background: var(--navy);
  padding: 40px 0 32px;
  text-align: center;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-links {
  font-size: .85rem;
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-legal {
  font-size: .72rem;
  color: rgba(255, 255, 255, .3);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}



/* ===========================================
   THANK-YOU PAGE
   =========================================== */

/* Header */
.ty-header {
  background: var(--navy);
  padding: 16px 0;
  border-bottom: 3px solid var(--gold);
}

.ty-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ty-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
}

.ty-phone-link {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}

.ty-phone-link:hover {
  color: var(--white);
}

/* Hero */
.ty-hero {
  background: var(--navy);
  padding: 36px 0 28px;
  text-align: center;
}

.ty-check {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}

.ty-headline {
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.ty-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 22px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.ty-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.ty-trust-pill {
  background: rgba(245, 166, 35, .15);
  border: 1px solid rgba(245, 166, 35, .4);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

/* Calendly section */
.ty-calendly-section {
  background: var(--off-white);
  padding: 32px 0 48px;
}

.ty-calendly-eyebrow {
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

/* Calendly widget container — constrain and center */
.calendly-inline-widget {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  max-width: 820px;
  margin: 0 auto;
}

/* Placeholder shown before Calendly loads */
.calendly-placeholder {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 2px dashed var(--gray-light);
  display: none;
  /* only shown via JS when widget isn't loading */
}

.calendly-ph-inner {
  padding: 60px 32px;
  text-align: center;
}

.calendly-ph-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.calendly-ph-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.calendly-ph-note {
  font-size: .85rem;
  color: var(--gray-mid);
}

.calendly-ph-note code {
  background: var(--gray-light);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .82rem;
}

/* Reassurance strip */
.ty-reassure {
  background: var(--white);
  padding: 40px 0;
  border-top: 1px solid var(--gray-light);
}

.ty-reassure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .ty-reassure-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ty-reassure-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ty-reassure-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.ty-reassure-item strong {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.ty-reassure-item p {
  font-size: .85rem;
  color: #666;
  line-height: 1.5;
}

/* Booking confirmation toast */
.booking-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
  font-size: .95rem;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  white-space: nowrap;
}

.booking-toast.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}