/* =========================================================
   Tokens
========================================================= */
:root {
  --ink: #26302E;
  --paper: #F6F1E7;
  --river: #1F3B3D;
  --marigold: #D9A441;
  --sage: #8FA48C;
  --sage-text: #5C6A5B;
  --porch-white: #FFFDF8;

  --placeholder-border: #B5473F;
  --placeholder-bg: rgba(181, 71, 63, 0.06);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max-width: 1120px;
}

/* =========================================================
   Reset
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

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

.fraunces { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; }
.mono { font-family: var(--font-mono); }

h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(26px, 4vw, 36px); }

.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--river);
  margin: 0 0 12px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--marigold);
  color: var(--river);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 24px;
  top: 24px;
}

/* Focus states */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}

/* =========================================================
   Placeholder markers (dev-only, not part of final design)
========================================================= */
.placeholder-box {
  border: 2px dashed var(--placeholder-border);
  background: var(--placeholder-bg);
  position: relative;
}
.ph-label,
.ph-placeholder-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--placeholder-border);
  display: inline-block;
}
.ph-placeholder-tag {
  border: 1px solid var(--placeholder-border);
  border-radius: 3px;
  padding: 1px 5px;
  margin-right: 6px;
  vertical-align: middle;
}
.placeholder-inline {
  background: var(--placeholder-bg);
  border-left: 3px solid var(--placeholder-border);
  padding: 8px 12px;
  font-size: 0.95em;
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  padding: 12px 22px;
  transition: transform 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--marigold);
  color: var(--river);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--river);
  color: var(--river);
}
.btn-ghost:hover { background: rgba(31, 59, 61, 0.06); }
.btn-small { padding: 8px 16px; font-size: 15px; }
.btn-large { padding: 16px 30px; font-size: 18px; }

/* =========================================================
   Header
========================================================= */
.site-header {
  background: var(--river);
  color: var(--porch-white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  color: var(--porch-white);
}
.wordmark-logo {
  height: 42px;
  width: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.header-phone {
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  color: var(--porch-white);
}
.header-phone .ph-placeholder-tag {
  color: #E8B4AE;
  border-color: #E8B4AE;
}

/* =========================================================
   Sections
========================================================= */
.section { padding: 72px 0; }
.section .eyebrow.center { }
.section h2.center { max-width: 760px; }

/* Divider look between sections without hard borders */
.how-it-works { background: var(--paper); }
.meet-amy { background: #EFE8D8; }
.services { background: var(--paper); }
.pricing { background: #EFE8D8; }
.trust { background: var(--paper); }
.contact { background: var(--river); color: var(--porch-white); }

/* =========================================================
   Hero
========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 24px 72px;
  align-items: center;
}
.hero-sub {
  font-size: 20px;
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.photo-frame {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: var(--porch-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 30px rgba(31, 59, 61, 0.12);
  overflow: hidden;
  position: relative;
}
.photo-frame.small { aspect-ratio: 3 / 4; max-width: 320px; }
.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   How it works
========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.step { text-align: center; }
.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--sage-text);
  border: 1px solid var(--sage);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  line-height: 38px;
  margin-bottom: 14px;
}
.step p { margin: 0; }

/* =========================================================
   Porch note card — the signature element
========================================================= */
.porch-note {
  background: var(--porch-white);
  border-radius: 3px;
  padding: 32px;
  box-shadow: 0 10px 24px rgba(38, 48, 46, 0.14);
  position: relative;
  transform: rotate(-1.5deg);
  transition: transform 0.25s ease;
}
.porch-note:nth-of-type(2n) { transform: rotate(1.2deg); }
.porch-note:hover { transform: rotate(0deg); }
.porch-note::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 70px;
  height: 24px;
  background: rgba(217, 164, 65, 0.55);
  transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   Meet Amy
========================================================= */
.meet-amy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

/* =========================================================
   Services
========================================================= */
.service-grid {
  max-width: 920px;
  margin: 40px auto 0;
}
.service-tile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 20px;
  padding: 22px 0;
  border-bottom: 1px dashed rgba(38, 48, 46, 0.18);
}
.service-tile:last-child { border-bottom: none; }
.service-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 34px;
  text-align: center;
  line-height: 1.3;
}
.service-tile h3 {
  flex: 0 0 auto;
  margin-bottom: 0;
}
.service-tile p {
  margin: 0;
  max-width: 62ch;
  flex: 1 1 100%;
  padding-left: 54px;
}

@media (min-width: 780px) {
  .service-tile { flex-wrap: nowrap; }
  .service-tile h3 { flex: 0 0 190px; }
  .service-tile p { flex: 1 1 auto; padding-left: 0; }
}

/* =========================================================
   Pricing — receipt style
========================================================= */
.pricing-category { margin-bottom: 40px; max-width: 640px; margin-left: auto; margin-right: auto; }
.pricing-category-head {
  margin-bottom: 12px;
}
.pricing-category-head h3 {
  font-size: 20px;
  margin-bottom: 2px;
}
.pricing-note {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage-text);
  font-style: normal;
}
.receipt-table {
  width: 100%;
  table-layout: fixed;
  background: var(--porch-white);
  border-radius: 6px;
  overflow: hidden;
}
.receipt-table .col-name { width: 37%; }
.receipt-table .col-price { width: 16%; }
.receipt-table .col-detail { width: 47%; }
.receipt-table td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px dashed rgba(38, 48, 46, 0.15);
}
.receipt-table tr:last-child td { border-bottom: none; }
.receipt-table td:first-child { font-weight: 600; }
.receipt-table td.mono {
  font-weight: 600;
  color: var(--river);
  white-space: nowrap;
}
.receipt-table td:last-child:not(.mono) {
  color: #5A655F;
  font-size: 15px;
}
.category-footnote {
  font-size: 14px;
  color: #5A655F;
  margin-top: 12px;
  padding: 0 20px;
}
.pricing-terms {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px dashed rgba(38, 48, 46, 0.2);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.terms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 32px;
  margin: 0;
}
.term-item dt {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage-text);
  margin-bottom: 5px;
}
.term-item dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

@media (min-width: 780px) {
  .terms-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 32px;
  }
}

.meet-greet-grid {
  margin-top: 0;
}
.meet-greet-grid dd {
  max-width: 34ch;
}

/* =========================================================
   Trust
========================================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}
.testimonial-attr {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sage-text);
  margin-top: 12px;
}
.promise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}
.promise-grid .porch-note { padding: 28px 24px; }
.promise-grid h3 {
  font-size: 22px;
  color: var(--river);
  margin: 0 0 8px;
}
.promise-grid p { margin: 0; }
.service-area {
  margin-top: 56px;
  text-align: center;
}
.island-motif {
  width: 200px;
  height: auto;
  color: var(--river);
  margin: 0 auto 16px;
}
.service-area-note { max-width: 52ch; margin: 0 auto; text-align: left; }

/* =========================================================
   Contact
========================================================= */
.contact .eyebrow.center { color: var(--marigold); }
.contact-sub {
  max-width: 52ch;
  margin: 0 auto 32px;
  opacity: 0.9;
}
.contact-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact .btn-ghost { border-color: var(--porch-white); color: var(--porch-white); }
.contact .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.contact-email {
  text-align: center;
  margin-top: 28px;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Footer
========================================================= */
.site-footer {
  background: var(--river);
  color: rgba(255, 253, 248, 0.75);
  font-size: 14px;
  padding: 32px 0;
}
.footer-inner p { margin: 4px 0; }
.footer-inner a { text-decoration: underline; }

/* =========================================================
   Scroll reveal
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .porch-note { transition: none; }
  .btn { transition: none; }
}

/* =========================================================
   Responsive
========================================================= */
@media (min-width: 780px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 88px 24px 100px;
  }
  .meet-amy-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* auto-fit: 3 promises fill one row; 4 still fit if the optional one is enabled */
  .promise-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  body { font-size: 16px; }

  .hero-ctas { justify-content: center; }

  /* Fixed table columns don't have room at this width — stack each cell instead */
  .receipt-table { display: block; width: auto; }
  .receipt-table tbody { display: block; }
  .receipt-table tr {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px dashed rgba(38, 48, 46, 0.15);
  }
  .receipt-table tr:last-child { border-bottom: none; }
  .receipt-table td {
    display: block;
    width: auto;
    padding: 0;
    border-bottom: none;
  }
  .receipt-table td.mono { margin-top: 2px; }
  .receipt-table td:last-child:not(.mono) { margin-top: 6px; font-size: 14px; }
}

/* Below ~613px the wordmark and phone/button no longer fit on one row and the header
   wraps; center both rows once they stack */
@media (max-width: 612px) {
  .header-inner { justify-content: center; }
  .header-actions { width: 100%; justify-content: center; }
}
