/* ==========================================================================
   Upstate Showing Co. — site styles
   Palette: navy #1F2D3D · gold #C9A66B · cream #FAF7F2 · cream-dark #EFE7D8
   Type: Playfair Display (headlines) · Source Sans 3 (body/UI)
   ========================================================================== */

:root {
  --navy: #1F2D3D;
  --navy-alt: #2E4155;
  --gold: #C9A66B;
  --cream: #FAF7F2;
  --cream-dark: #EFE7D8;
  --line: #E3D9C4;
  --text: #2B2620;
  --text-soft: #4A4436;
  --text-mute: #6B6250;
  --text-faint: #8A8270;
  --white: #FFFFFF;
  --radius: 4px;
  --max: 1120px;
  --shadow: 0 4px 24px rgba(31,45,61,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: #d9b87e; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-nav {
  padding: 9px 18px;
  font-size: 13.5px;
  background: var(--navy);
  color: var(--cream);
}
.btn-nav:hover { background: var(--navy-alt); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--navy);
}
.brand-name.small { font-size: 16px; display:block; margin-bottom: 4px; }
.brand-tag {
  font-size: 10.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--navy); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-alt) 65%, #3a5169 100%);
  color: var(--white);
  padding: 96px 24px 84px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,166,107,0.16) 0%, rgba(201,166,107,0) 70%);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,166,107,0.10) 0%, rgba(201,166,107,0) 70%);
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #E6DFD3;
  max-width: 600px;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-note {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--cream-dark); }
.section.navy { background: var(--navy); color: var(--cream); }
.section-title {
  font-size: clamp(26px, 3.4vw, 34px);
  text-align: center;
  margin-bottom: 10px;
}
.section-title.light { color: var(--white); }
.section-sub {
  text-align: center;
  color: var(--text-mute);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 48px;
}
.section-sub.light { color: #C3CBD4; }

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 44px;
}
.step { text-align: center; }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-mute); font-size: 15px; line-height: 1.55; }

/* ---------- Packages ---------- */
.packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
.package-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.package-card.premium { border-top-color: var(--gold); box-shadow: var(--shadow); }
.package-head h3 { font-size: 22px; margin-bottom: 4px; }
.package-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #8A6E3C;
  margin-bottom: 18px;
}
.plus-note { font-style: italic; color: var(--text-mute); font-size: 14px; margin-bottom: 12px; }
.package-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-soft);
}
.package-card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Pricing ---------- */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab-btn {
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn.active, .tab-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: translateY(0);} }
.tab-desc {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.6;
}

.table-wrap { overflow-x: auto; }
.rate-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow);
}
.rate-table th {
  background: var(--navy);
  color: var(--cream);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 14px 20px;
}
.rate-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.rate-table tbody tr:nth-child(even) td { background: #FFFDF7; }
.rate-table .sqft { font-weight: 700; color: var(--navy); font-size: 15px; }
.rate-table .price { display: block; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 22px; color: var(--navy); }
.rate-table .price .unit { font-family: 'Source Sans 3', Arial, sans-serif; font-size: 13px; font-weight: 600; color: var(--text-mute); }
.rate-table .detail { display: block; font-size: 12.5px; font-style: italic; color: var(--text-mute); margin-top: 2px; }
.rate-table .save { display: block; font-size: 12px; font-weight: 700; color: #8A6E3C; margin-top: 4px; }
.rate-table .custom { text-align: center; font-style: italic; color: #8A6E3C; }

/* ---------- Why It Matters (layers + stats) ---------- */
.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.layer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 22px 28px;
}
.layer-row.featured { border-color: var(--gold); background: rgba(201,166,107,0.08); }
.layer-left { flex: 1; }
.layer-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 700;
}
.layer-row h3 { color: var(--white); font-size: 19px; margin-bottom: 4px; }
.layer-row p { color: #C3CBD4; font-size: 14.5px; line-height: 1.5; max-width: 560px; }
.layer-stat { text-align: right; min-width: 150px; }
.layer-stat .num { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-weight: 700; color: var(--white); }
.layer-row.featured .layer-stat .num { color: var(--gold); }
.layer-stat .label { font-size: 12px; color: #A9B2BC; }

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.stat-tile {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.stat-tile .num { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.stat-tile .desc { display: block; font-size: 14px; color: var(--cream); line-height: 1.4; margin-bottom: 6px; }
.stat-tile .sub { display: block; font-size: 11.5px; font-style: italic; color: #93A0AB; }

.sources { font-size: 11.5px; line-height: 1.6; color: #8592A0; max-width: 900px; margin: 0 auto; }

/* ---------- Why Partner ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  max-width: 880px;
  margin: 0 auto;
}
.why-item {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-soft);
}
.why-item::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}
.why-item strong { color: var(--navy); }

/* ---------- Contact ---------- */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info .section-title { text-align: left; margin-bottom: 14px; }
.contact-info > p { color: var(--text-mute); font-size: 16px; line-height: 1.6; margin-bottom: 26px; }
.contact-call { margin-bottom: 34px; }
.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-details div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.contact-details dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-faint); font-weight: 700; }
.contact-details dd { font-size: 15px; color: var(--text-soft); font-weight: 600; }
.contact-details a:hover { color: var(--gold); }

.contact-form {
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form h3 { margin-bottom: 20px; font-size: 20px; }
.contact-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-mute);
  margin: 16px 0 6px;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,166,107,0.2);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form button { margin-top: 22px; width: 100%; }
.form-note { margin-top: 12px; font-size: 13.5px; text-align: center; color: var(--text-mute); min-height: 18px; }
.form-note.success { color: #4E7A4E; font-weight: 700; }
.form-note.error { color: #A5473A; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #C3CBD4;
  padding: 34px 0;
}
.site-footer .brand-name { color: var(--cream); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-tag { display: block; font-size: 12.5px; color: #8592A0; margin-top: 2px; }
.footer-links { display: flex; gap: 24px; font-size: 13.5px; }
.footer-links a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .packages { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .layer-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .layer-stat { text-align: left; }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn-nav { margin-top: 14px; text-align: center; }
  .nav-toggle { display: flex; }
  .hero { padding: 72px 20px 60px; }
  .section { padding: 60px 0; }
  .stat-tiles { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Rate table -> stacked cards, no horizontal scroll/clipping on phones */
  .rate-table { min-width: 0; }
  .rate-table thead { display: none; }
  .rate-table, .rate-table tbody, .rate-table tr, .rate-table td { display: block; width: 100%; }
  .rate-table tr {
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .rate-table tr:last-child { margin-bottom: 0; }
  .rate-table tbody tr:nth-child(even) td:not(.sqft) { background: none; }
  .rate-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }
  .rate-table td:last-child { border-bottom: none; }
  .rate-table tbody tr td.sqft {
    background: var(--navy) !important;
    color: var(--cream);
    font-size: 14.5px;
  }
  .rate-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-faint);
    margin-bottom: 5px;
  }
  .rate-table .custom { text-align: left; }
}
