/* ============================================================
   FairRoofQuote.com — homepage.css
   v3: form cutoff fix, quote preview removed,
       social proof added, tighter hero, heading contrast
   ============================================================ */

/* ── HERO ── */
.hero {
  background: var(--surface);
  padding: 0;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  align-items: stretch;
}

/* Left panel */
.hero-left {
  position: relative;
  padding: 60px 48px 60px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('../images/header.png');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(250,250,248,0.97) 0%,
    rgba(250,250,248,0.93) 45%,
    rgba(250,250,248,0.72) 70%,
    rgba(250,250,248,0.28) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--forest-light);
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 20px;
  margin-bottom: 22px;
  letter-spacing: 0.2px;
}

.hero-eyebrow svg {
  width: 12px;
  height: 12px;
  stroke: var(--forest);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
}

.hero-h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-h1 em {
  font-style: normal;
  color: var(--forest);
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-mid);
  line-height: 1.65;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  align-items: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: center;
  padding: 0 28px;
  border-right: 1px solid var(--border);
}

.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { border-right: none; }

.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 5px;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--ink-light);
  font-weight: 500;
}

/* ── SOCIAL PROOF (below hero stats) ── */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.social-proof-avatars {
  display: flex;
  align-items: center;
}

.social-proof-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  margin-left: -8px;
  flex-shrink: 0;
}

.social-proof-avatar:first-child { margin-left: 0; }
.social-proof-avatar.a1 { background: #2A7A58; }
.social-proof-avatar.a2 { background: #534AB7; }
.social-proof-avatar.a3 { background: #854F0B; }
.social-proof-avatar.a4 { background: #A32D2D; }
.social-proof-avatar.a5 { background: #185FA5; }

.social-proof-text {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.45;
}

.social-proof-text strong {
  color: var(--ink);
  font-weight: 700;
}

.social-proof-stars {
  color: #B8860B;
  font-size: 12px;
  letter-spacing: 1px;
  display: block;
  margin-top: 1px;
}

/* ── RIGHT PANEL ── */
.hero-right {
  background: var(--bg-warm);
  border-left: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}


/* ── HOW IT WORKS ── */
.steps-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: calc(33.33% + 10px);
  right: calc(33.33% + 10px);
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--forest-light) 0px,
    var(--forest-light) 8px,
    transparent 8px,
    transparent 16px
  );
  pointer-events: none;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  z-index: 1;
  margin: 0 10px;
}

.step-card:first-child { margin-left: 0; }
.step-card:last-child  { margin-right: 0; }

.step-num {
  width: 36px;
  height: 36px;
  background: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ── TRUST SIGNALS ── */
.trust-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.trust-icon {
  width: 38px;
  height: 38px;
  background: var(--forest-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--forest);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.trust-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.trust-card p {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ── SECTION HEADINGS — increased contrast ── */
.section-heading {
  font-size: 32px !important;
  letter-spacing: -0.8px !important;
  line-height: 1.15 !important;
  margin-bottom: 12px !important;
}

/* ── SERVICE TILES ── */
.tiles-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.service-tile:hover {
  border-color: var(--forest);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.service-tile-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.service-tile-text p { font-size: 12px; color: var(--ink-light); }

.service-tile-arrow {
  width: 34px;
  height: 34px;
  background: var(--forest-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.service-tile:hover .service-tile-arrow { background: var(--forest); }

.service-tile-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--forest);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  transition: stroke 0.15s;
}

.service-tile:hover .service-tile-arrow svg { stroke: #fff; }

/* ── FAQ ── */
.faq-list { max-width: 740px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font);
  transition: color 0.15s;
}

.faq-question:hover { color: var(--forest); }
.faq-question[aria-expanded="true"] { color: var(--forest); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  transition: transform 0.2s;
}

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

.faq-answer {
  display: none;
  padding: 0 0 18px;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
}

.faq-answer a { color: var(--forest); }
.faq-answer.is-open { display: block; }

/* ── SECOND CTA ── */
.cta2-inner { max-width: 580px; margin: 0 auto; text-align: center; }

.cta2-btn {
  display: inline-block;
  margin-top: 28px;
}

.cta2-note { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-h1 { font-size: 38px; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-left  { min-height: auto; padding: 48px 20px 40px; }
  .hero-right { border-left: none; border-top: 1px solid var(--border); padding: 32px 20px; }
  .hero-h1    { font-size: 32px; letter-spacing: -1px; }
  .hero-sub   { font-size: 16px; }

  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .steps-grid::before { display: none; }
  .step-card  { margin: 0; }

  .tiles-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 26px !important; }

  .cta2-form  { flex-direction: column; align-items: stretch; }
  .cta2-zip   { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-h1    { font-size: 28px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat  { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 16px; width: 100%; }
  .hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
  .hero-social-proof { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── CALCULATOR PANEL ── */
.calc-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--forest);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.calc-panel--hidden {
  display: none;
}

.calc-step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--forest);
  background: var(--forest-light);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.calc-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.calc-sub {
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 20px;
}

.calc-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.calc-field {}

.calc-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mid);
  margin-bottom: 5px;
}

.calc-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  appearance: none;
  -webkit-appearance: none;
  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='%237A7A77' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.calc-select:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(28,92,66,0.1);
}

.calc-btn {
  width: 100%;
  padding: 13px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  letter-spacing: 0.1px;
}

.calc-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calc-btn:not(:disabled):hover { background: #2C2C2A; }
.calc-btn:not(:disabled):active { transform: scale(0.99); }

.calc-btn--green {
  background: var(--forest);
}

.calc-btn--green:not(:disabled):hover { background: var(--forest-mid); }

.calc-disclaimer {
  font-size: 11px;
  color: var(--ink-light);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* Result box */
.calc-result-box {
  background: var(--forest-light);
  border: 1px solid rgba(28,92,66,0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.calc-result-range {
  font-size: 32px;
  font-weight: 800;
  color: var(--forest);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

.calc-result-note {
  font-size: 12px;
  color: var(--forest);
  font-weight: 500;
  opacity: 0.75;
}

.calc-result-details {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-bottom: 20px;
  padding: 0 4px;
}

.calc-cta-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-cta-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.calc-back-btn {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--ink-light);
  cursor: pointer;
  font-family: var(--font);
  padding: 4px 0;
  text-align: center;
  transition: color 0.15s;
}

.calc-back-btn:hover { color: var(--forest); }

/* Step 3 header */
#calc-step3 .calc-header { margin-bottom: 16px; }
