/* ============================================================
   CURB AGENCY — Shared Stylesheet
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --terracotta: #C4622D;
  --cream: #FAF7F2;
  --charcoal: #2C2C2C;
  --light-gray: #E8E4DF;
  --terracotta-dark: #a8511f;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --section-pad-desktop: 80px;
  --section-pad-mobile: 48px;

  --max-width: 1100px;
  --text-width: 720px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--terracotta);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-container {
  max-width: var(--text-width);
  margin: 0 auto;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--charcoal);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

p {
  margin-bottom: 1rem;
  color: var(--charcoal);
}

p:last-child {
  margin-bottom: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-color: var(--terracotta);
  color: var(--cream);
  padding: 14px 32px;
  border-radius: 0;
  border: 2px solid var(--terracotta);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  text-decoration: none;
  color: var(--cream);
}

.btn-outline {
  background-color: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}

.btn-outline:hover {
  background-color: var(--terracotta);
  color: var(--cream);
}

.btn-large {
  font-size: 1.05rem;
  padding: 18px 48px;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--cream);
  border-bottom: 1px solid var(--light-gray);
  padding: 18px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav__logo:hover {
  color: var(--terracotta);
  text-decoration: none;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.nav__link:hover {
  border-color: var(--terracotta);
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  background-color: var(--cream);
  padding: var(--section-pad-desktop) 0;
  border-bottom: 1px solid var(--light-gray);
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero__subhead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #555;
  max-width: 580px;
  margin-bottom: 36px;
}

.hero__sub-copy {
  font-size: 0.85rem;
  color: #888;
  margin-top: 16px;
  font-style: italic;
}

/* ── Sections ── */
.section {
  padding: var(--section-pad-desktop) 0;
}

.section--alt {
  background-color: var(--light-gray);
}

.section--dark {
  background-color: var(--charcoal);
  color: var(--cream);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
  color: var(--cream);
}

.section--cream {
  background-color: var(--cream);
}

.section__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
  display: block;
}

.section__heading {
  margin-bottom: 20px;
}

.section__subhead {
  font-size: 1.05rem;
  color: #666;
  max-width: 600px;
  margin-bottom: 52px;
  line-height: 1.7;
}

.section--dark .section__subhead {
  color: rgba(255,255,255,0.7);
}

/* ── Product Card ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 52px;
}

.product-card {
  background-color: var(--cream);
  border: 1px solid var(--light-gray);
  padding: 40px 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.section--alt .product-card {
  background-color: white;
}

.product-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
  display: block;
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.product-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ── About / Why ── */
.about__body {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 640px;
  color: #555;
}

/* ── Feature Cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 0;
}

.feature-card {
  background-color: var(--light-gray);
  padding: 32px 28px;
}

.feature-card__emoji {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.feature-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.65;
}

/* ── Framework Table ── */
.framework-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-family: var(--font-body);
}

.framework-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
  background-color: var(--charcoal);
  color: var(--cream);
}

.framework-table tbody tr:nth-child(odd) {
  background-color: var(--light-gray);
}

.framework-table tbody tr:nth-child(even) {
  background-color: var(--cream);
}

.framework-table td {
  padding: 18px 20px;
  vertical-align: middle;
}

.framework-table .td-letter {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terracotta);
  width: 60px;
  min-width: 60px;
}

.framework-table .td-name {
  font-weight: 600;
  color: var(--terracotta);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  min-width: 160px;
  padding-right: 12px;
}

.framework-table .td-desc {
  color: var(--charcoal);
  font-size: 0.95rem;
}

/* ── Pricing ── */
.pricing-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.pricing-block h2 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--cream);
  margin-bottom: 20px;
}

.pricing-block p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.75;
}

.pricing-block .btn {
  background-color: var(--cream);
  color: var(--terracotta);
  border-color: var(--cream);
  font-size: 1rem;
}

.pricing-block .btn:hover {
  background-color: var(--light-gray);
  border-color: var(--light-gray);
  color: var(--terracotta);
}

.pricing__sub {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
  font-style: italic;
}

/* ── FAQ ── */
.faq-list {
  list-style: none;
  max-width: var(--text-width);
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--light-gray);
  padding: 28px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--light-gray);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}

/* ── Problem Section ── */
.problem-list {
  list-style: none;
  margin: 28px 0 28px 0;
}

.problem-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  font-size: 1rem;
  color: var(--charcoal);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  line-height: 1.6;
}

.section--alt .problem-list li {
  border-bottom-color: rgba(0,0,0,0.08);
}

.problem-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 600;
}

/* ── Final CTA ── */
.final-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.final-cta h2 {
  color: var(--cream);
  margin-bottom: 20px;
}

.final-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.7;
}

.final-cta .price-line {
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 32px;
}

.final-cta .btn {
  background-color: var(--cream);
  color: var(--terracotta);
  border-color: var(--cream);
}

.final-cta .btn:hover {
  background-color: var(--light-gray);
  border-color: var(--light-gray);
  color: var(--terracotta);
}

/* ── Footer ── */
.footer {
  background-color: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.footer a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.footer a:hover {
  color: var(--cream);
  border-color: var(--cream);
  text-decoration: none;
}

/* ── Hero accent line ── */
.accent-line {
  display: inline-block;
  width: 48px;
  height: 3px;
  background-color: var(--terracotta);
  margin-bottom: 28px;
}

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background-color: var(--terracotta);
  margin: 0 0 32px 0;
}

.divider--center {
  margin: 0 auto 32px auto;
}

/* ── Subpage hero variant ── */
.hero--product {
  background-color: var(--charcoal);
  border-bottom: none;
}

.hero--product h1 {
  color: var(--cream);
}

.hero--product .hero__subhead {
  color: rgba(255,255,255,0.7);
}

.hero--product .hero__eyebrow {
  color: var(--terracotta);
}

.hero--product .hero__sub-copy {
  color: rgba(255,255,255,0.45);
}

.hero--product .hero__back-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-top: 20px;
  display: inline-block;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1px;
}

.hero--product .hero__back-link:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

/* ── Nav variant for dark pages ── */
.nav--dark {
  background-color: var(--charcoal);
  border-bottom-color: rgba(255,255,255,0.1);
}

.nav--dark .nav__logo {
  color: var(--cream);
}

.nav--dark .nav__logo:hover {
  color: var(--terracotta);
}

.nav--dark .nav__link {
  color: var(--terracotta);
}

/* ── Table wrap for mobile ── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Hero Split Layout ── */
.hero--split {
  padding: 0;
  overflow: hidden;
}

.hero__split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  align-items: stretch;
}

.hero__split-text {
  padding: 80px 48px 80px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__split-image {
  overflow: hidden;
  position: relative;
}

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

/* ── Hero Background Image ── */
.hero--bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--bg-image__overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 44, 44, 0.78);
  z-index: 1;
}

/* ── Image Break ── */
.image-break {
  position: relative;
  height: 340px;
  overflow: hidden;
}

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

.image-break__overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 44, 44, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-break__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--cream);
  text-align: center;
  max-width: 720px;
  line-height: 1.5;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --section-pad-desktop: var(--section-pad-mobile);
  }

  .hero--split .hero__split-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__split-text {
    padding: 48px 24px;
  }

  .hero__split-image {
    height: 280px;
  }

  .image-break {
    height: 220px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding: var(--section-pad-mobile) 0;
  }

  .nav__inner {
    gap: 12px;
  }

  .nav__logo {
    font-size: 1.15rem;
  }

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

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

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .btn-large {
    padding: 16px 32px;
    font-size: 0.95rem;
  }

  .framework-table .td-letter {
    width: 40px;
    min-width: 40px;
    font-size: 1.2rem;
  }

  .framework-table td {
    padding: 14px 12px;
  }

  .framework-table .td-name {
    min-width: 110px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .product-card {
    padding: 28px 22px;
  }

  .feature-card {
    padding: 24px 20px;
  }
}
