/* ══════════════════════════════════════════
   SBG Home Exteriors — Client Estimate Page
   Colors: #FCC014 yellow, #111111 dark, #F8F7F3 warm off-white
   Font: Montserrat
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Montserrat', sans-serif;
  background: #F8F7F3;
  color: #111111;
  font-size: 14px;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ── Header ── */
.c-header {
  background: #111111;
  border-bottom: 4px solid #FCC014;
  padding: 0.85rem 0;
}

.c-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.c-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.c-logo-sun {
  font-size: 2rem;
  color: #FCC014;
  line-height: 1;
}

.c-logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.c-logo-tag {
  font-size: 0.65rem;
  color: #FCC014;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.c-back-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.c-back-link:hover { color: #FCC014; }

/* ── Hero ── */
.c-hero {
  background: #111111;
  padding: 3.5rem 1.5rem 4rem;
}

.c-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.c-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.c-hero-title span { color: #FCC014; }

.c-hero-sub {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ── Search Card ── */
.c-search-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.c-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #62615C;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.c-input-row {
  display: flex;
  gap: 0.6rem;
}

.c-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e3de;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: 'Montserrat', sans-serif;
  color: #111111;
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

.c-input:focus { border-color: #FCC014; box-shadow: 0 0 0 3px rgba(252,192,20,0.2); }

/* ── Buttons ── */
.c-btn {
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
  background: #FCC014;
  color: #111111;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}

.c-btn:hover  { background: #e6ac00; }
.c-btn:active { transform: scale(0.97); }
.c-btn:disabled { background: #f0d780; cursor: not-allowed; }

.c-btn-outline {
  padding: 0.45rem 1rem;
  background: transparent;
  color: #111111;
  border: 2px solid #e5e3de;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.c-btn-outline:hover { border-color: #FCC014; background: #fffbea; }

.c-btn-cta {
  font-size: 0.88rem;
  padding: 0.75rem 1.75rem;
}

/* ── Loading ── */
.c-loading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #62615C;
  font-weight: 500;
}

.c-spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid #e5e3de;
  border-top-color: #FCC014;
  border-radius: 50%;
  animation: c-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes c-spin { to { transform: rotate(360deg); } }

/* ── Error ── */
.c-error {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  background: #fff5f5;
  border: 1.5px solid #fecaca;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  color: #b91c1c;
  margin-top: 0.75rem;
  font-weight: 500;
}

/* ── Results Section ── */
.c-results {
  padding: 2rem 1.5rem 3rem;
}

.c-results-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Results header */
.c-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e3de;
}

.c-results-address-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.c-check { font-size: 1.4rem; }

.c-results-address {
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
}

.c-results-sub {
  font-size: 0.7rem;
  color: #62615C;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.c-results-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Quality badge */
.c-quality-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}

.c-quality-medium { background: #fef9c3; color: #854d0e; }
.c-quality-low    { background: #ffedd5; color: #9a3412; }

/* ── Two column layout ── */
.c-two-col {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── Left: Stats ── */
.c-left { display: flex; flex-direction: column; gap: 1.25rem; }

.c-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.c-stat {
  background: #ffffff;
  border: 2px solid #e5e3de;
  border-radius: 12px;
  padding: 1.1rem 0.85rem;
  text-align: center;
  transition: box-shadow 0.15s;
}

.c-stat:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.c-stat-highlight {
  grid-column: 1 / -1;
  background: #111111;
  border-color: #FCC014;
  border-width: 3px;
}

.c-stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #62615C;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}

.c-stat-highlight .c-stat-label { color: rgba(255,255,255,0.55); }

.c-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111111;
  line-height: 1;
  letter-spacing: -0.5px;
}

.c-stat-highlight .c-stat-value { color: #FCC014; font-size: 2.2rem; }

.c-stat-unit {
  font-size: 0.62rem;
  color: #94a3b8;
  margin-top: 0.3rem;
  font-weight: 500;
}

.c-stat-highlight .c-stat-unit { color: rgba(255,255,255,0.4); }

/* Disclaimer */
.c-disclaimer {
  background: #fff8e1;
  border: 1.5px solid #FCC014;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  color: #62615C;
  line-height: 1.6;
}

.c-disclaimer strong { color: #111111; }
.c-disclaimer a { color: #111111; font-weight: 600; }

/* ── Right: Images ── */
.c-right { display: flex; flex-direction: column; gap: 1.25rem; }

.c-img-group { display: flex; flex-direction: column; gap: 0.6rem; }

.c-img-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #62615C;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.c-sv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.c-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.c-img-block { display: flex; flex-direction: column; gap: 0.3rem; }

.c-img-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #62615C;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.c-img-wrapper {
  background: #e5e3de;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.c-img-loading {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

.c-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-img-err {
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
  padding: 0.5rem;
}

/* ── CTA Bar ── */
.c-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #111111;
  border-radius: 14px;
  padding: 1.25rem 1.75rem;
  margin-top: 2rem;
}

.c-cta-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.c-cta-text strong { color: #FCC014; }

/* ── Footer ── */
.c-footer {
  background: #2D2D2D;
  padding: 1.25rem 1.5rem;
}

.c-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}

/* ── Autocomplete Dropdown ── */
.c-suggestions {
  background: #fff;
  border: 2px solid #e5e3de;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  z-index: 99999;
  max-height: 280px;
  overflow-y: auto;
}

.c-sug-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f0ec;
  transition: background 0.1s;
  font-family: 'Montserrat', sans-serif;
}

.c-sug-item:last-child { border-bottom: none; }

.c-sug-item:hover { background: #fffbea; }

.c-sug-item.active {
  background: #fff8d6;
  border-left: 3px solid #FCC014;
  padding-left: calc(1rem - 3px);
}

.c-sug-main {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111111;
}

.c-sug-main strong { color: #c99000; font-weight: 800; }

.c-sug-sec {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* ── Print ── */
@media print {
  .no-print { display: none !important; }
  .c-header { background: #111 !important; }
  .c-hero   { display: none; }
  .c-results { padding: 1rem 0; }
  .c-cta-bar, .c-footer { display: none; }
  body { background: white; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .c-two-col { grid-template-columns: 1fr; }
  .c-sv-grid { grid-template-columns: repeat(2, 1fr); }
  .c-hero-title { font-size: 1.5rem; }
}

@media (max-width: 540px) {
  .c-input-row { flex-direction: column; }
  .c-btn { width: 100%; text-align: center; }
  .c-sv-grid { grid-template-columns: 1fr 1fr; }
  .c-stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Price Includes Panel ── */
.c-includes {
  background: #ffffff;
  border: 2px solid #e5e3de;
  border-left: 4px solid #FCC014;
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.c-includes-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}

.c-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.c-includes-list li {
  font-size: 0.78rem;
  color: #2D2D2D;
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.c-includes-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #FCC014;
  font-weight: 800;
}
