:root {
  --sand: #f5efe3;
  --paper: #fffdf8;
  --ink: #14282c;
  --ink-soft: #4b5d60;
  --line: #ddd3c0;
  --teal: #0f5e5c;
  --teal-dark: #0a4644;
  --coral: #d9552f;
  --sun: #f2c14e;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--sand);
  padding: 10px 16px;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Type ---------- */

h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }

h1 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(transparent 68%, var(--sun) 68%, var(--sun) 92%, transparent 92%);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

.btn-small { padding: 9px 18px; font-size: 0.95rem; }

.btn-light { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-light:hover { background: #ffd56a; border-color: #ffd56a; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 239, 227, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  text-decoration: none;
}
.wordmark svg { width: 30px; height: 30px; }
.wordmark span {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.nav a:not(.btn):hover { color: var(--teal); }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

.lead {
  margin-top: 26px;
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
}

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

/* The written quote */

.quote-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 32px 28px;
  transform: rotate(1.6deg);
  box-shadow: 0 1px 0 #fff inset, 0 24px 48px -24px rgba(20, 40, 44, 0.35), 0 2px 6px rgba(20, 40, 44, 0.06);
}

.quote-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.quote-title {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.quote-lines { margin-top: 20px; border-top: 1px solid var(--line); }
.quote-lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
}
.quote-lines i { font-style: normal; font-weight: 700; color: var(--teal); }

.quote-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 18px;
}
.quote-total span { font-weight: 600; }
.quote-total strong {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.quote-foot {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.stamp {
  position: absolute;
  top: -22px;
  right: -14px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  border: 3px double var(--coral);
  background: var(--paper);
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
  transform: rotate(10deg);
}

/* What's covered */

.covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.covers li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 12px;
  font-weight: 600;
}
.covers li + li { border-left: 1px solid var(--line); }
.covers svg {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sections ---------- */

.plans, .how { padding: 104px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-sub { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Plans ---------- */

.plan-list { border-top: 2px solid var(--ink); }

.plan {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 210px 200px;
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.plan-num {
  align-self: start;
  padding-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral);
}

.plan-body h3 {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.plan-body p { margin-top: 8px; color: var(--ink-soft); max-width: 36em; }
.plan-body .plan-note { color: var(--ink); font-weight: 500; }

.plan-price { text-align: right; }
.plan-price strong {
  display: block;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.plan:nth-child(4) .plan-price strong { font-size: 1.6rem; }
.plan-price span { font-size: 0.9rem; color: var(--ink-soft); }

.plan-cta { justify-self: end; width: 100%; }

.custom {
  margin-top: 36px;
  padding: 22px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sun);
  border-radius: 8px;
}
.custom a { color: var(--teal); font-weight: 600; margin-left: 6px; white-space: nowrap; }

/* ---------- How it works ---------- */

.how { background: var(--paper); border-top: 1px solid var(--line); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.how-item {
  grid-column: span 2;
  padding: 28px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.how-item-wide { grid-column: span 3; }

.how-item h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.how-item-wide h3 { font-size: 1.75rem; }
.how-item p { color: var(--ink-soft); }

/* ---------- Contact ---------- */

.contact {
  background: var(--ink);
  color: var(--sand);
  padding: 96px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.contact .eyebrow { color: var(--sun); }
.contact-sub { margin-top: 20px; color: #b9c6c5; font-size: 1.08rem; max-width: 32em; }

.contact-sub a { color: var(--sand); font-weight: 600; }
.contact-sub + .contact-sub { margin-top: 12px; }

/* Enquiry form */

.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--ink-soft); font-size: inherit; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(15, 94, 92, 0.25);
  outline-offset: 0;
  border-color: var(--teal);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form-actions .btn { cursor: pointer; font-family: inherit; flex: 1 1 auto; }
.form-actions .btn:disabled { opacity: 0.55; cursor: default; transform: none; }

.form-note { margin-top: 12px; font-size: 0.88rem; color: var(--ink-soft); }
.form-status { margin-top: 12px; font-weight: 600; color: var(--teal); }
.form-status:empty { display: none; }
.form-status.is-error { color: #b3261e; }

.form-done h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-done p { color: var(--ink-soft); }
.form-done:focus { outline: none; }

[hidden] { display: none !important; }

/* Thank-you page */

.thanks { padding: 96px 0 120px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b9c6c5;
  border-top: 1px solid rgba(245, 239, 227, 0.14);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 26px;
}
.site-footer strong { color: var(--sand); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .quote-card { max-width: 420px; margin-inline: auto; width: 100%; }

  .plan {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px 20px;
    align-items: start;
  }
  .plan-cta { grid-column: 2 / -1; justify-self: start; width: auto; margin-top: 14px; }

  .how-item, .how-item-wide { grid-column: span 3; }
  .how-item:last-child { grid-column: span 6; }

  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }

  .nav { gap: 16px; }
  .nav a:not(.btn) { display: none; }

  .lead { font-size: 1.08rem; }
  .hero-actions .btn { flex: 1 1 auto; }

  .quote-card { padding: 28px 22px 22px; transform: rotate(1deg); }
  .stamp { right: -6px; width: 80px; height: 80px; font-size: 0.7rem; }

  .covers { grid-template-columns: repeat(2, 1fr); margin-top: 60px; }
  .covers li { justify-content: flex-start; padding: 16px 14px; }
  .covers li + li { border-left: 0; }
  .covers li:nth-child(even) { border-left: 1px solid var(--line); }
  .covers li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .plans, .how { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }

  .plan { grid-template-columns: 1fr; padding: 28px 0; }
  .plan-num { padding-top: 0; }
  .plan-price { text-align: left; margin-top: 10px; }
  .plan-price strong, .plan:nth-child(4) .plan-price strong { font-size: 1.9rem; display: inline; margin-right: 8px; }
  .plan-cta { grid-column: auto; width: 100%; }

  .custom a { display: inline-block; margin-left: 0; }

  .how-grid { grid-template-columns: 1fr; gap: 14px; }
  .how-item, .how-item-wide, .how-item:last-child { grid-column: auto; padding: 22px; }

  .contact { padding: 72px 0; }
  .form-card { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions .btn { width: 100%; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
