/* ==========================================================
   Any Weather — site styles
   Colours and fonts live in :root so they're easy to change.
   ========================================================== */

:root {
  /* Always show the light design, even when a device is in dark mode */
  color-scheme: only light;

  /* Highlands palette */
  --paper: #eeebe5;      /* pale granite: page background */
  --paper-2: #e1dcd2;    /* limestone: tinted panels */
  --ink: #262b30;        /* main text */
  --ink-soft: #5a6168;   /* slate grey: secondary text */
  --slate: #2b3137;      /* dark slate: footer, dark bands (matches the logo) */
  --stone: #bfb3a0;      /* stone: logo frame, accents on dark */
  --heather: #7a5c78;    /* heather: small headings, focus */
  --bracken: #a8673a;    /* bracken: buttons on hover, step numbers */
  --loch: #4e6b80;       /* loch blue */
  --moss: #5f6f4e;       /* moss */
  --moss-dark: #474e40;  /* dark moss: header on pages without a big photo */
  --line: #d3ccbf;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* Highlighted text: loch blue with light text */
::selection { background: var(--loch); color: var(--paper); }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1.2em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--heather);
  margin-bottom: 1em;
  display: block;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; margin: 0 auto; }
/* On larger screens let a main heading run slightly wider than the text column, so it stays on one line */
@media (min-width: 900px) {
  .narrow.center h1, .narrow .center h1 { margin-left: -64px; margin-right: -64px; }
}
.center { text-align: center; }

section { padding: clamp(64px, 10vw, 128px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--bracken); border-color: var(--bracken); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Header / nav ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  color: var(--paper);
}
/* Pages without a big photo get a loch blue header, matching the look over photos */
.site-header--solid { position: static; background: var(--loch); color: var(--paper); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark {
  width: 30px;
  height: 43px;
  flex: none;
}
/* The mark is drawn in one colour: white in the header, stone in the footer */
.site-footer .logo-mark { color: var(--stone); }
@media (max-width: 420px) {
  .logo { font-size: .8rem; letter-spacing: .24em; gap: 10px; }
  .logo-mark { width: 24px; height: 35px; }
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.nav ul a {
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.nav ul a:hover, .nav ul a[aria-current="page"] { border-bottom-color: currentColor; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    color: var(--ink);
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav ul li a { display: block; padding: 12px 0; }
  .nav.open ul { display: flex; }
  .site-header { position: absolute; }
  .site-header--solid { position: relative; }
}

/* ---------- Photo placeholders ----------
   Each photo sits in a .photo box. If the image file is missing,
   the box shows a soft colour and the filename it expects. */
.photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #8a9585, #56636b 60%, #3a4148);
}
.photo::after {
  content: attr(data-file);
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.photo img[hidden] { display: none; }
.photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-land     { aspect-ratio: 3 / 2; }
.ratio-tall     { aspect-ratio: 2 / 3; }
.ratio-square   { aspect-ratio: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  padding: 0;
}
.hero .photo { position: absolute; inset: 0; }
.hero .photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to right, rgba(20,18,16,.55), rgba(20,18,16,0) 60%),
    linear-gradient(to top, rgba(20,18,16,.6), rgba(20,18,16,.05) 55%, rgba(20,18,16,.35));
}
.hero__text {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: clamp(48px, 10vh, 120px);
}
.hero__text p {
  font-size: 1.1rem;
  max-width: 34em;
  margin-bottom: 2em;
}
.hero .eyebrow { color: rgba(244,241,236,.85); }
/* Keep long headlines to the left of the photo's subject */
.hero__text h1 { max-width: 11em; }
/* Elopements photo: on narrow screens, shift the crop so the couple stand to the right of the headline */
@media (max-width: 820px) {
  .hero--couple-right .photo img { object-position: 35% center; }
}
/* Home photo: on narrow screens, shift the crop so the whole couple is in view */
@media (max-width: 820px) {
  .hero--couple-home .photo img { object-position: 77% center; }
  /* The couple fill the lower half on phones, so the text sits over the hills above them */
  .hero--couple-home { align-items: flex-start; min-height: max(100svh, 660px); }
  .hero--couple-home .hero__text {
    padding-top: 104px;
    padding-bottom: 28px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  /* Button sits at the bottom of the photo, below the couple */
  .hero--couple-home .hero__text .btn { margin-top: auto; align-self: center; }
  /* Darker tint behind the text at the top, fading out above the couple; light tint behind the button */
  .hero--couple-home .photo::before {
    background: linear-gradient(to bottom,
      rgba(20, 18, 16, .72) 0%,
      rgba(20, 18, 16, .6) 30%,
      rgba(20, 18, 16, .25) 48%,
      rgba(20, 18, 16, 0) 60%,
      rgba(20, 18, 16, 0) 80%,
      rgba(20, 18, 16, .45) 100%);
  }
}
/* Buttons over photos on phones: smaller, with a soft dark tint so the text stands out */
@media (max-width: 820px) {
  .hero .btn--light {
    padding: 11px 20px;
    font-size: .72rem;
    letter-spacing: .16em;
    background: rgba(20, 18, 16, .38);
  }
}
/* Weddings photo: on narrow screens, centre the crop on the couple's joined hands */
@media (max-width: 820px) {
  .hero--focus-hands .photo img { object-position: 65% center; }
}
/* Smaller size for longer headlines */
.hero__text h1.h1--long { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 13em; }

.page-hero { min-height: 72vh; }

/* ---------- Layout helpers ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split--flip > :first-child { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

.card { text-decoration: none; display: block; }
.card .photo { margin-bottom: 24px; }
.card .photo img { transition: transform 1.2s ease; }
.card:hover .photo img { transform: scale(1.03); }
.card h3 { font-size: 2rem; margin-bottom: .2em; }
.card p { color: var(--ink-soft); }
.card .more {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

/* ---------- Gallery ---------- */
.gallery {
  columns: 3 280px;
  column-gap: 16px;
}
.gallery .photo {
  break-inside: avoid;
  margin-bottom: 16px;
}

/* ---------- Triptych (three photos in a row, all screen sizes) ---------- */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 1.2vw, 16px);
  margin: clamp(32px, 5vw, 56px) 0;
}

/* ---------- Dark band ---------- */
.band { background: var(--loch); color: var(--paper); }
.band .eyebrow { color: #d9cfbf; }

blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.4;
}
blockquote footer, .quote-by {
  font-family: var(--sans);
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 1.5em;
  opacity: .75;
}

/* ---------- Packages ---------- */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.package {
  border: 1px solid var(--line);
  border-top: 3px solid var(--loch);
  padding: 40px 32px;
  background: var(--paper);
}
.package h3 { margin-bottom: 1em; }
.package ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
}
.package li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}

.tint { background: var(--paper-2); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  counter-reset: step;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--bracken);
  margin-bottom: .2em;
}
.step p { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--serif);
  font-size: 1.4rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 1em 0 0; color: var(--ink-soft); }

/* ---------- Contact form ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.form label {
  display: block;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  padding: 10px 0;
  border-radius: 0;
}
.form textarea { min-height: 160px; resize: vertical; border: 1px solid var(--ink-soft); padding: 12px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--heather);
}
.hidden { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate);
  color: var(--paper);
  padding: 72px 0 40px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo { margin-bottom: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; opacity: .8; }
.site-footer a:hover { opacity: 1; }
.site-footer h4 {
  font-weight: 400;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--stone);
}
.small { font-size: .78rem; opacity: .6; }

/* ---------- Long-form text pages (privacy notice) ---------- */
.prose h1 { margin-bottom: .4em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 2em 0 .5em; }
.prose .lead { font-size: 1.1rem; }
.prose .updated { font-size: .85rem; color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: inherit; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: 16px 0 0; }
.form-note a { color: inherit; }
