/* ================================================================
   Roots & Rituals × Webcraft Studio — Partnership Proposal
   Palette: cream #F7F1E6 · linen #EDE4CC · parch #E2D4B5
            walnut #2C1A0E · bark #5C3A1E · terra #B85C38
            rust #8B3A2A · sage #5C7A5E · gold #C4903A
   Fonts: Playfair Display (headings) · Jost (body)
   ================================================================ */

:root {
  --cream: #F7F1E6;
  --linen: #EDE4CC;
  --parch: #E2D4B5;
  --walnut: #2C1A0E;
  --bark: #5C3A1E;
  --terra: #B85C38;
  --rust: #8B3A2A;
  --sage: #5C7A5E;
  --gold: #C4903A;
  --r: 6px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============ COVER ============ */
.cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cover-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cover-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(44, 26, 14, 0.62), rgba(44, 26, 14, 0.72));
  z-index: 1;
  pointer-events: none;
}

.cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 6rem 1.5rem;
  max-width: 820px;
}

.cover-brand { margin-bottom: 5rem; }

.cover-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--parch);
  margin-bottom: 2rem;
}

.cover-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.cover-x {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--gold);
  letter-spacing: 0.2em;
}

.cover-client, .cover-studio { display: block; }

.cover-tagline {
  margin-top: 2.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--parch);
}

.cover-meta {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(247, 241, 230, 0.3);
  padding-top: 2rem;
}

.cover-meta > div { display: flex; flex-direction: column; gap: 0.3rem; }

.meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--parch);
  opacity: 0.85;
}

.meta-value { font-weight: 500; font-size: 1rem; }

/* ============ SECTIONS ============ */
.proposal-section { padding: 6rem 1.5rem; }

.section-tint { background: var(--linen); }

.section-inner {
  max-width: 880px;
  margin: 0 auto;
}

.section-number {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--terra);
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--parch);
  min-width: 3rem;
}

.proposal-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--walnut);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--bark);
  margin-bottom: 2rem;
}

.proposal-section p { margin-bottom: 1.2rem; }
.proposal-section strong { font-weight: 600; color: var(--rust); }

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.figure {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(44, 26, 14, 0.12);
}

.figure img { width: 100%; height: 100%; object-fit: cover; }

.vision-note {
  margin-top: 3rem;
  padding: 2rem 2.2rem;
  background: var(--cream);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--r) var(--r) 0;
}

.vision-note .leaf-motif { width: 28px; height: 28px; color: var(--sage); margin-bottom: 0.6rem; }
.vision-note strong { color: var(--walnut); }
.vision-note p { margin: 0; }

/* value grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.value-item {
  background: var(--cream);
  padding: 1.8rem 2rem;
  border-radius: var(--r);
  border: 1px solid var(--parch);
}

.value-item h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 0.6rem;
}

.value-item p { margin: 0; font-size: 0.98rem; }

.practical-example {
  background: var(--walnut);
  color: var(--linen);
  padding: 2.2rem 2.5rem;
  border-radius: var(--r);
}

.example-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.practical-example p { margin: 0; color: var(--linen); }

/* service lists */
.service-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
}

.service-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px solid rgba(92, 58, 30, 0.15);
  font-size: 1.02rem;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 1.35rem;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--terra);
  border-bottom: 1.5px solid var(--terra);
  transform: rotate(45deg);
}

.section-note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bark);
  font-size: 1.02rem;
  border-top: 1px solid var(--parch);
  padding-top: 1.4rem;
}

/* meeting card */
.meeting-card {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: var(--r);
  padding: 2rem 2.2rem;
  box-shadow: 0 6px 24px rgba(44, 26, 14, 0.08);
}

.meeting-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--bark);
  margin-bottom: 0.8rem;
}

.meeting-card p { margin: 0; font-size: 0.98rem; }

/* roadmap */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.phase {
  background: var(--cream);
  border: 1px solid var(--parch);
  border-radius: var(--r);
  overflow: hidden;
}

.phase-ongoing { border-color: var(--sage); }

.phase-header {
  background: var(--linen);
  padding: 1.4rem 1.6rem;
  border-bottom: 2px solid var(--terra);
}

.phase-ongoing .phase-header { border-bottom-color: var(--sage); }

.phase-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.phase-ongoing .phase-label { color: var(--sage); }

.phase-header h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--walnut);
}

.phase p { padding: 1.4rem 1.6rem; font-size: 0.95rem; margin: 0; }

/* ============ PRICING ============ */
.pricing-card {
  background: var(--cream);
  border: 2px solid var(--terra);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(44, 26, 14, 0.12);
  margin: 2.5rem 0;
}

.pricing-head {
  background: var(--walnut);
  color: var(--cream);
  padding: 2.2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pricing-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.pricing-amount {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
}

.pricing-amount .currency { font-size: 0.55em; vertical-align: 0.35em; margin-right: 0.1em; }
.pricing-amount .per { font-family: var(--sans); font-size: 0.9rem; font-weight: 400; color: var(--parch); margin-left: 0.5rem; }

.pricing-terms { font-size: 0.95rem; color: var(--parch); }

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.pricing-table th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bark);
  padding: 1rem 2rem;
  background: var(--parch);
}

.pricing-table td {
  padding: 0.95rem 2rem;
  border-bottom: 1px solid rgba(92, 58, 30, 0.12);
}

.pricing-table tbody tr:nth-child(odd) { background: rgba(237, 228, 204, 0.5); }

.col-currency {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: var(--sage);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scope-note {
  background: var(--linen);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.8rem 2.2rem;
  margin: 2.5rem 0;
}

.scope-note p { margin: 0; }

.exclusions h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--bark);
  margin-bottom: 1rem;
}

.exclusions-list {
  columns: 2;
  column-gap: 2.5rem;
  list-style: none;
  margin-bottom: 1rem;
}

.exclusions-list li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  break-inside: avoid;
  font-size: 0.98rem;
}

.exclusions-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 8px; height: 8px;
  border: 1px solid var(--rust);
  border-radius: 50%;
}

.exclusions-note {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--bark);
}

/* terms grid */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.term-item {
  border-top: 2px solid var(--parch);
  padding-top: 1.2rem;
}

.term-item h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--bark);
  margin-bottom: 0.5rem;
}

.term-item p { margin: 0; font-size: 0.97rem; }

/* steps */
.steps-list {
  list-style: none;
  counter-reset: step;
  margin-top: 2rem;
}

.steps-list li {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--parch);
}

.steps-list li::before {
  content: '0' counter(step);
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--terra);
  flex-shrink: 0;
}

/* ============ CLOSING ============ */
.closing {
  background: var(--walnut);
  color: var(--linen);
  padding: 7rem 1.5rem 5rem;
}

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

.closing .section-number {
  color: var(--gold);
  border-bottom-color: rgba(196, 144, 58, 0.4);
}

.closing h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 2rem;
  color: var(--cream);
}

.closing-copy {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.7;
  color: var(--linen);
  margin-bottom: 4rem;
}

.signature-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  text-align: left;
  margin-bottom: 4rem;
}

.sig-block { display: flex; flex-direction: column; }

.sig-line {
  border-bottom: 1px solid rgba(247, 241, 230, 0.5);
  height: 3.2rem;
  margin-bottom: 0.6rem;
}

.sig-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.sig-name { font-family: var(--serif); font-size: 1.1rem; margin-top: 0.3rem; color: var(--cream); }
.sig-date { font-size: 0.9rem; color: var(--parch); margin-top: 0.3rem; }

.closing-wish { font-style: italic; font-family: var(--serif); color: var(--parch); }
.closing-sign { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-top: 0.5rem; }

/* ============ FOOTER ============ */
.proposal-footer {
  background: #22130a;
  color: var(--parch);
  padding: 3rem 1.5rem;
}

.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand { font-family: var(--serif); font-size: 1.2rem; color: var(--cream); }
.footer-role { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-top: 0.3rem; }
.footer-contact { font-size: 0.92rem; margin-bottom: 0.4rem; }
.footer-note { font-size: 0.85rem; font-style: italic; opacity: 0.8; }
.footer-credits { text-align: right; font-size: 0.8rem; }
.footer-credits p { margin-bottom: 0.4rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .two-col, .value-grid, .terms-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .exclusions-list { columns: 1; }
  .signature-area { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-credits { text-align: left; }
  .cover-meta { gap: 1.8rem; }
  .proposal-section { padding: 4.5rem 1.25rem; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .pricing-table th, .pricing-table td { padding: 0.8rem 1.2rem; }
  .pricing-head { padding: 1.8rem 1.4rem; }
  .practical-example { padding: 1.6rem 1.4rem; }
  .cover-meta { flex-direction: column; gap: 1.2rem; align-items: center; }
}

/* ============ PRINT ============ */
@media print {
  @page {
    margin: 2cm 1.8cm;
    @bottom-center {
      content: "Webcraft Studio — Digital Growth & Operations Partner · Prepared for Roots & Rituals · Tommy@rootsandrituals.life";
      font-family: 'Jost', Arial, sans-serif;
      font-size: 8pt;
      color: #8B3A2A;
    }
  }

  body {
    font-size: 11pt;
    background: #fff;
    color: #2C1A0E;
    line-height: 1.5;
  }

  .cover {
    min-height: auto;
    page-break-after: always;
    break-after: page;
  }

  .cover-bg { height: 100%; }

  .proposal-section { padding: 1.2rem 0; page-break-before: always; break-before: page; }
  .proposal-section:first-of-type { page-break-before: avoid; }
  /* Shorter sections share a page with the section before them to keep the printed proposal four pages shorter */
  .proposal-section.flow-with-previous { page-break-before: auto; break-before: auto; padding-top: 1.6rem; }
  .proposal-section h2 { margin-bottom: 1rem; }
  .lead { margin-bottom: 1.2rem; }
  .service-list { margin: 1rem 0 1.2rem; }
  .service-list li { padding: 0.55rem 0 0.55rem 2rem; }
  .section-note { padding-top: 1rem; }
  .proposal-section h2, .lead { page-break-after: avoid; }
  .proposal-section p, .service-list li, .phase, .value-item, .term-item { page-break-inside: avoid; }

  .section-tint, .value-item, .phase, .meeting-card, .vision-note, .scope-note {
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .pricing-card, .pricing-table th, .pricing-head {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .pricing-table tbody tr { page-break-inside: avoid; }

  .cover-bg, .figure img { max-height: 9cm; }

  .closing {
    background: #fff !important;
    color: #2C1A0E;
    page-break-before: always;
  }

  .closing h2, .closing-copy, .sig-name { color: #2C1A0E; }
  .closing .section-number, .sig-label, .closing-sign { color: #8B3A2A; }
  .closing-wish { color: #5C3A1E; }
  .sig-line { border-bottom-color: #5C3A1E; }

  .proposal-footer {
    background: #fff !important;
    color: #5C3A1E;
    padding: 1rem 0 0;
    border-top: 1px solid #E2D4B5;
  }

  .footer-brand, .footer-contact { color: #2C1A0E; }
  .footer-role { color: #8B3A2A; }

  a { text-decoration: none; color: inherit; }
}
