/* ============================================
   BORROW OLIVER — Clay & Sage
   ============================================ */

:root {
  --bg:          #F5F0EB;
  --bg-raised:   #EAE3DA;
  --bg-card:     #FAF8F5;
  --text:        #2C2418;
  --text-muted:  #7A6E5D;
  --text-faint:  #A89E8E;
  --accent:      #8B6D4B;
  --accent-hover:#9F7E5A;
  --accent-subtle: rgba(139, 109, 75, 0.08);
  --border:      rgba(44, 36, 24, 0.1);

  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-mono:    'Space Grotesk', system-ui, sans-serif;

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

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

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

/* ============================================
   LAYOUT
   ============================================ */

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

.container-narrow {
  max-width: var(--narrow);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }

.accent {
  color: var(--accent);
}

.eyebrow,
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-card);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-card);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--text-muted);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
}

.nav-logo-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent);
}

.nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: var(--bg-card) !important;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--bg-card) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(245, 240, 235, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-link.active::after { display: none; }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 160px 0 100px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 24px;
  max-width: 750px;
  line-height: 1.12;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   PROBLEMS SECTION
   ============================================ */

.problems {
  padding: 100px 0;
  background: var(--bg-raised);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0 40px;
}

.problem-card {
  background: var(--bg-card);
  padding: 28px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  position: relative;
}
.problem-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--text-faint);
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
  opacity: 0.4;
}
.problem-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 4px;
  font-style: italic;
}

.problems-closer {
  font-size: 17px;
  color: var(--text);
  line-height: 1.65;
  max-width: 680px;
}

/* ============================================
   SERVICES PREVIEW
   ============================================ */

.services-preview {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.service-card {
  background: var(--bg-card);
  padding: 28px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.service-card h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
  padding: 100px 0;
  background: var(--bg-raised);
}

.how-it-works h2 {
  margin-bottom: 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-subtle);
  color: rgba(139, 109, 75, 0.15);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.step h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   PRICING
   ============================================ */

.pricing {
  padding: 100px 0;
}

.pricing h2 {
  margin-bottom: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.pricing-card {
  background: var(--bg-card);
  padding: 36px 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
}
.pricing-card.featured {
  border-color: var(--accent);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
}

.tier-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.hours {
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.tier-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-note {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   ABOUT PREVIEW
   ============================================ */

.about-preview {
  padding: 100px 0;
  background: var(--bg-raised);
}

.about-preview-content {
  max-width: 600px;
}

.about-preview-content p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-preview-content .btn {
  margin-top: 12px;
}

/* ============================================
   FINAL CTA
   ============================================ */

.final-cta {
  padding: 120px 0;
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 12px;
}

.final-cta p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ============================================
   EMAIL CAPTURE
   ============================================ */

.email-capture {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.email-capture h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.email-capture-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.email-capture-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 16px;
}

.email-capture-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}
.email-capture-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.email-capture-form button {
  padding: 12px 24px;
  background: var(--accent);
  color: var(--bg-card);
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.email-capture-form button:hover {
  background: var(--accent-hover);
}

.email-capture-note {
  font-size: 13px;
  color: var(--text-faint);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.5;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-faint);
}

/* ============================================
   PAGE CONTENT (Single / List)
   ============================================ */

.page-content {
  padding: 140px 0 80px;
}

.page-content h1 {
  margin-bottom: 12px;
}

.page-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-content h2 { margin-top: 48px; margin-bottom: 16px; }
.page-content h3 { margin-top: 32px; margin-bottom: 8px; }

.page-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.page-content strong {
  color: var(--text);
  font-weight: 600;
}

.page-content em {
  font-style: italic;
}

.page-content ul, .page-content ol {
  margin: 0 0 16px 24px;
}
.page-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.page-content .btn {
  margin-top: 16px;
}

/* Pricing inline (services page) */
.pricing-inline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  margin: 24px 0;
}
.pricing-inline p {
  margin-bottom: 12px;
}
.pricing-inline strong {
  font-family: var(--font-mono);
  font-size: 15px;
}

/* Blog post */
.blog-post .blog-content {
  font-size: 17px;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.back-link:hover {
  color: var(--accent);
}

.post-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.post-card {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.2s;
}
.post-card:hover {
  opacity: 0.75;
}
.post-card h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text);
}
.post-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   CONTACT
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-top: 140px;
  padding-bottom: 80px;
}

.contact-left h1 {
  margin-bottom: 16px;
}
.contact-left p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.contact-or {
  margin-top: 32px;
  font-size: 14px !important;
  color: var(--text-faint) !important;
}

.contact-form {
  padding-top: 40px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group .optional {
  color: var(--text-faint);
  font-weight: 400;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

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

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

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 120px;
  }

  .email-capture-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    text-align: center;
  }

  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }
}
