/* ============================================================
   Greig Soohen — Officiant
   Palette: coastal & warm. Sand/stone neutrals, sea-glass sage.
   ============================================================ */

:root {
  /* colour */
  --bg:          #faf8f4;
  --bg-tint:     #f2efe8;
  --surface:     #ffffff;
  --ink:         #2e3a34;
  --ink-soft:    #5c6963;
  --ink-faint:   #8b968f;
  --sage:        #7c9885;
  --sage-deep:   #5b7a66;
  --sand:        #c9a87c;
  --rule:        #e2ddd2;

  /* type */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* rhythm */
  --wrap:    1140px;
  --gutter:  clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4.5rem, 11vw, 8.5rem);

  --radius:  2px;
  --shadow:  0 1px 2px rgba(46, 58, 52, .04), 0 10px 30px -12px rgba(46, 58, 52, .12);
  --ease:    cubic-bezier(.22, .61, .36, 1);
}

/* ─────────────────────────── reset ─────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); letter-spacing: 0; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -110%);
  z-index: 100;
  background: var(--ink); color: #fff;
  padding: .7rem 1.25rem;
  text-decoration: none;
  font-size: .875rem;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* ─────────────────────────── layout ────────────────────────── */

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

.section { padding-block: var(--section); }
.section--tint { background: var(--bg-tint); }

.section__head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--ink-soft);
  margin-top: 1.25rem;
  max-width: 38rem;
}

.eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 1rem;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 2.25rem; height: 1px;
  background: var(--sand);
  margin-top: .75rem;
}

/* ─────────────────────────── header ────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
}

.wordmark { text-decoration: none; color: inherit; line-height: 1.25; }
.wordmark__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: .02em;
}
.wordmark__role {
  display: block;
  font-size: .625rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav__cta {
  color: var(--ink) !important;
  border: 1px solid var(--ink);
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: .75rem; margin-right: -.75rem;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; }
.nav-toggle__bars::before { transform: translateY(-7px); }
.nav-toggle__bars::after  { transform: translateY(5.5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: rotate(-90deg) translateX(0); }

/* ──────────────────────────── hero ─────────────────────────── */

.hero { position: relative; overflow: hidden; }

.hero__art {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__art svg, .hero__art img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 92%, transparent) 38%,
    color-mix(in srgb, var(--bg) 45%, transparent) 62%,
    transparent 100%
  );
}

.hero__inner {
  position: relative; z-index: 1;
  padding-block: clamp(4rem, 12vw, 9rem) clamp(4rem, 9vw, 7rem);
  max-width: min(var(--wrap), 100%);
}

.hero__title {
  font-size: clamp(2.85rem, 8.2vw, 5.6rem);
  max-width: 20ch;
  margin-bottom: 1.75rem;
}
.hero__title em {
  font-style: italic;
  color: var(--sage-deep);
}

.hero__lede {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  color: var(--ink-soft);
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: .875rem;
  margin-top: 2.25rem;
}

/* stats */
.stats {
  display: flex; flex-wrap: wrap;
  gap: clamp(1.75rem, 5vw, 4rem);
  margin: clamp(3rem, 7vw, 4.75rem) 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  max-width: 40rem;
}
.stat dt {
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.stat dd {
  margin: .3rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  font-weight: 300;
}
.stat dd span { color: var(--sand); }

/* ─────────────────────────── buttons ──────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--sage-deep); color: #fff; }
.btn--primary[disabled] { opacity: .55; cursor: progress; }

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

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: auto;
  padding-top: 1.75rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sage-deep);
}
.link-arrow::after {
  content: "→";
  transition: transform .25s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ─────────────────────────── cards ────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.85rem);
  box-shadow: var(--shadow);
}
.card__mark {
  display: block;
  width: 2.75rem; height: 2.75rem;
  color: var(--sage);
  margin-bottom: 1.5rem;
}
.card h3 { margin-bottom: .9rem; }
.card > p { color: var(--ink-soft); }

.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .6rem;
  font-size: .9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: .45rem; height: .45rem;
  border-left: 1.5px solid var(--sand);
  border-bottom: 1.5px solid var(--sand);
  transform: rotate(-45deg);
}

/* ─────────────────────────── about ────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 26rem; }
}

/* Portrait. greig.jpg is pre-cropped to 448x560 (exactly 4:5), so `cover`
   removes nothing and object-position has no effect at this aspect — it's kept
   centred only so a differently-shaped replacement still frames sensibly. */
.about__portrait {
  margin: 0;
}
/* height:auto is load-bearing: the img carries width/height attributes, and
   without it the height attribute pins the box at 560px so `width: 100%` gives
   a taller, narrower frame than 4:5 and aspect-ratio never applies. */
.about__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--radius);
  background: var(--bg-tint);   /* holds the space while the file loads */
  box-shadow: var(--shadow);
}
/* No decorative frame here on purpose. An offset sand rule was tried and read
   as a misalignment rather than a flourish — at a small offset only two edges
   show, which looks like the border slipped. The photo carries itself. */

.drop-lede {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink);
  margin-block: 1.5rem;
}
.about__body > p:not(.drop-lede):not(.eyebrow) { color: var(--ink-soft); }

.pull-quote {
  margin: 2.5rem 0 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--sand);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
}

/* ─────────────────────────── steps ────────────────────────── */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  counter-reset: step;
}
.step { padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.step__num {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .1em;
  color: var(--sand);
  margin-bottom: .85rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .65rem; }
.step p { font-size: .9375rem; color: var(--ink-soft); }

/* ──────────────────────────── faq ─────────────────────────── */

.faq { max-width: 50rem; }

.accordion details {
  border-bottom: 1px solid var(--rule);
}
.accordion details:first-child { border-top: 1px solid var(--rule); }

.accordion summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.35;
  transition: color .2s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--sage-deep); }
.accordion summary::after {
  content: "";
  flex: none;
  width: .7rem; height: .7rem;
  border-right: 1.5px solid var(--sand);
  border-bottom: 1.5px solid var(--sand);
  transform: rotate(45deg) translateY(-25%);
  transition: transform .3s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(225deg) translateY(-25%); }

.accordion__body {
  padding-bottom: 1.6rem;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: .9375rem;
}

/* ────────────────────────── enquiry ───────────────────────── */

.enquire {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .enquire { grid-template-columns: 1fr; }
}

.enquire__intro > p { color: var(--ink-soft); margin-top: 1.25rem; }

.contact-list { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
}
.contact-list__label {
  font-size: .6875rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: .25rem;
}

/* form */
.form {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1.25rem; }
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1.25rem;
}

.field label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}
.field .req { color: var(--sand); margin-left: .2em; }
.field .opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink-faint);
  font-size: .8125rem;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }

.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--surface);
  border-color: var(--sage);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 20%, transparent);
}
.field ::placeholder { color: var(--ink-faint); opacity: 1; }

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 1.25rem, calc(100% - .75rem) 1.25rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: start;
  margin-block: 1.75rem;
}
.field--check input {
  width: 1.1rem; height: 1.1rem;
  margin-top: .3rem;
  accent-color: var(--sage-deep);
}
.field--check label {
  text-transform: none;
  letter-spacing: 0;
  font-size: .9375rem;
  font-weight: 400;
  margin: 0;
  color: var(--ink-soft);
}

/* invalid state only after a submit attempt */
.form.is-validated :invalid {
  border-color: #b4553f;
}

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

.form__status {
  margin: 1.25rem 0 0;
  font-size: .9375rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  display: none;
}
.form__status.is-error {
  display: block;
  background: #fbeeea;
  color: #8f3d29;
  border: 1px solid #eccfc6;
}
.form__status.is-success {
  display: block;
  background: color-mix(in srgb, var(--sage) 14%, var(--bg));
  color: var(--sage-deep);
  border: 1px solid color-mix(in srgb, var(--sage) 35%, transparent);
}

.form__fineprint {
  margin: 1.25rem 0 0;
  font-size: .8125rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ─────────────────────────── footer ───────────────────────── */

.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, #fff 78%, var(--ink));
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer__name {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 .35rem;
}
.footer__role, .footer__place { margin: 0; font-size: .875rem; }
.footer__place { color: color-mix(in srgb, #fff 52%, var(--ink)); margin-top: .35rem; }

.footer__links { display: flex; flex-direction: column; gap: .6rem; }
.footer__links a {
  color: color-mix(in srgb, #fff 78%, var(--ink));
  text-decoration: none;
  font-size: .875rem;
}
.footer__links a:hover { color: #fff; text-decoration: underline; }

.footer-legal {
  border-top: 1px solid color-mix(in srgb, #fff 14%, var(--ink));
  padding-top: 1.75rem;
}
.footer-legal p {
  margin: 0;
  font-size: .75rem;
  color: color-mix(in srgb, #fff 45%, var(--ink));
}

/* ─────────────────────── reveal animation ─────────────────── */

/* Scoped to `.js` (set by boot.js) so content is never hidden when scripts
   fail to run. Without JS the page renders fully, just without the fade-in. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ───────────────────────── small screens ─────────────────── */

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

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-block: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow);

    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: .9rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }
  .nav__cta {
    border: 0;
    padding: 1.15rem 0 .5rem;
    color: var(--sage-deep) !important;
    font-weight: 600;
  }
  .nav__cta:hover { background: none; color: var(--sage-deep) !important; }

  .hero__art::after {
    background: linear-gradient(
      170deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 88%, transparent) 55%,
      color-mix(in srgb, var(--bg) 60%, transparent) 100%
    );
  }

  .contact-list li { grid-template-columns: 1fr; gap: .15rem; }
}

/* ────────────────────────── a11y / print ─────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero__art, .form { animation: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; font-size: 11pt; }
  .site-footer { background: #fff; color: #000; }
}
