/* Heather Allansdottir writer
   Idea: the editor's proof mark. A gilt insertion caret, margin notes,
   pilcrows and printer's crop marks carried through every page. */

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

:root {
  /* Brand palette: bottle-green ink with a gilt accent */
  --primary:      #1d3a30;
  --primary-mid:  #16201c;
  --primary-dark: #0f1513;
  --accent:       #d2ad62;
  --accent-mid:   #e3c587;

  /* Neutrals */
  --bg:         #0f1513;
  --surface:    #16201c;
  --surface-2:  #1c2924;
  --border:     #2e3d37;
  --text:       #ede7d9;
  --text-soft:  #bdb7a8;
  --text-muted: #948f83;
  --ink:        #101613;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-body:    'Jost', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 8vw, 120px);
  --container:   1180px;
  --radius:      12px;
  --radius-lg:   24px;
  --header-h:    4.5rem;

  --caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M2 13 L12 2 L22 13' fill='none' stroke='%23d2ad62' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 3.25rem; /* room for the phone call bar */
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--text);
}
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
p { max-width: 38rem; }
p + p { margin-top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--ink); padding: 0.6rem 1rem;
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

section { padding-block: var(--section-pad); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: var(--bg);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(5, 8, 7, 0.55);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.brand span { font-style: italic; font-weight: 400; color: var(--accent); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}
.nav-toggle:hover { border-color: var(--accent); }
.bars, .bars::before, .bars::after {
  display: block; width: 1.2rem; height: 1.5px; background: currentColor;
  transition: transform 0.25s, opacity 0.2s;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-links {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem clamp(1.25rem, 5vw, 2rem) 1.25rem;
}
.nav-links.open { display: flex; }
.nav-links a {
  display: block;
  position: relative;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-links li:last-child a { border-bottom: 0; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 0.9rem; height: 0.55rem;
  transform: translateY(-50%);
  background: var(--caret) center / contain no-repeat;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-mid); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(210, 173, 98, 0.12); color: var(--text); }

.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }

.text-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.3s;
}
.text-link:hover, .text-link:focus-visible { background-size: 100% 1px; }

/* ---------- Proof marks ---------- */
.proof-rule {
  position: relative;
  height: 1px;
  background: var(--border);
  margin-block: 0;
}
.proof-rule::after {
  content: "";
  position: absolute;
  left: clamp(1.25rem, 8vw, 6rem);
  top: -0.3rem;
  width: 1.4rem; height: 0.8rem;
  background: var(--bg) var(--caret) center / 1rem no-repeat;
  padding-inline: 0.4rem;
  box-sizing: content-box;
}

.margin-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-soft);
  border-left: 1px solid var(--accent);
  padding-left: 1rem;
  max-width: 22rem;
}

.pilcrow-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-top: 1px solid var(--border);
}
.pilcrow-list li:last-child { border-bottom: 1px solid var(--border); }
.pilcrow-list li::before {
  content: "\00B6";
  position: absolute;
  left: 0; top: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--accent);
}

/* Photo frames with printer's crop marks */
.frame {
  position: relative;
  margin: 14px;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  max-height: 46vh;
  filter: saturate(0.9) contrast(1.02);
}
.frame::before {
  content: "";
  position: absolute;
  inset: -12px;
  pointer-events: none;
  --m: var(--accent);
  background:
    linear-gradient(var(--m), var(--m)) left top / 10px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left top / 1px 10px no-repeat,
    linear-gradient(var(--m), var(--m)) right top / 10px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right top / 1px 10px no-repeat,
    linear-gradient(var(--m), var(--m)) left bottom / 10px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left bottom / 1px 10px no-repeat,
    linear-gradient(var(--m), var(--m)) right bottom / 10px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right bottom / 1px 10px no-repeat;
  opacity: 0.8;
}

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-pad); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-title {
  font-size: clamp(2.6rem, 7.2vw, 5.1rem);
  font-weight: 500;
  line-height: 1.15;
}
.hero-title .l1, .hero-title .l2 { display: block; }
.caret-mark {
  display: inline-block;
  width: 0.42em;
  height: 0.32em;
  margin-right: 0.08em;
  vertical-align: -0.02em;
}
.caret-mark svg { width: 100%; height: 100%; overflow: visible; }
.caret-mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 32;
  stroke-dashoffset: 0;
}
.insert-word { font-style: italic; color: var(--accent); display: inline-block; }
.hero .lede {
  margin-top: 1.75rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--text-soft);
  max-width: 34rem;
}
.hero-note { margin-top: 2.5rem; }
.hero-figure img { object-position: 55% 50%; }

/* Entrance: headline in, caret drawn, word inserted, then the rest */
@keyframes rise { from { opacity: 0; transform: translateY(0.6em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 32; } to { stroke-dashoffset: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-0.35em); } to { opacity: 1; transform: none; } }
@keyframes unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

.hero-title .l1 { animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.hero-title .l2 { animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both; }
.hero-title .caret-mark path { animation: draw 0.35s ease-out 0.95s both; }
.hero-title .insert-word { animation: drop 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) 1.05s both; }
.hero .lede { animation: rise 0.6s ease 1.25s both; }
.hero .actions { animation: rise 0.6s ease 1.5s both; }
.hero-figure img { animation: unroll 1.1s cubic-bezier(0.6, 0, 0.2, 1) 0.4s both; }
.hero-figure::before { animation: fade 0.5s ease 1.4s both; }
.hero-note { animation: fade 0.5s ease 1.8s both; }

/* ---------- Inner page heroes ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.page-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); }
.page-hero .lede {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 1.6vw, 1.22rem);
  color: var(--text-soft);
  max-width: 34rem;
}

/* Proof slip summary card */
.slip {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.slip-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.slip dl { display: grid; gap: 1.1rem; }
.slip dt { font-size: 0.9rem; color: var(--text-muted); }
.slip dd { font-size: clamp(0.98rem, 4vw, 1.12rem); }
.slip dd a { text-decoration: none; color: var(--text); transition: color 0.2s; white-space: nowrap; }
.slip dd a:hover { color: var(--accent); }
.slip .big-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
  max-width: none;
}

/* ---------- Statement ---------- */
.statement-grid { display: grid; gap: 2.5rem; }
.statement-text {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.3;
  max-width: 40rem;
}
.statement-body p { color: var(--text-soft); }
.statement-body .margin-note { margin-top: 2rem; }

/* ---------- Services (home) ---------- */
.services-band { background: var(--surface); }
.band-grid { display: grid; gap: 3rem; align-items: start; }
.band-figure img { object-position: 60% 55%; }
.svc-head p { margin-top: 1rem; color: var(--text-soft); }
.svc-rows { margin-top: 2.25rem; }
.svc-row {
  display: grid;
  gap: 0.75rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--border);
}
.svc-row:last-child { border-bottom: 1px solid var(--border); }
.svc-row h3 { display: flex; align-items: baseline; gap: 0.6rem; }
.svc-row h3::before {
  content: "\00B6";
  color: var(--accent);
  font-size: 0.8em;
}
.svc-row p { color: var(--text-soft); }

/* ---------- Areas ---------- */
.areas-grid { display: grid; gap: 2rem; align-items: end; }
.dateline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.15;
  font-weight: 500;
}
.dateline span { display: block; }
.dateline span + span::before {
  content: "";
  display: inline-block;
  width: 0.45em; height: 0.28em;
  margin-right: 0.3em;
  background: var(--caret) center / contain no-repeat;
  vertical-align: 0.05em;
}
.areas-grid p { color: var(--text-soft); }

/* ---------- Detail sections (services/about) ---------- */
.detail-grid { display: grid; gap: 2.5rem; align-items: start; }
.detail-grid .copy p { color: var(--text-soft); }
.detail-grid .copy h2 { margin-bottom: 1.25rem; }
.detail-grid .pilcrow-list { margin-top: 2rem; }
.list-label {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text);
}
.list-label + .pilcrow-list { margin-top: 0.75rem; }
.alt { background: var(--surface); }
.alt .proof-rule::after { background-color: var(--surface); }

/* ---------- CTA ---------- */
.cta-panel {
  display: grid;
  gap: 2rem;
  border-top: 1px solid var(--accent);
  padding-top: clamp(2rem, 5vw, 3.5rem);
}
.cta-panel h2 { max-width: 34rem; }
.cta-contact { display: grid; gap: 0.5rem; }
.cta-contact a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5.4vw, 1.9rem);
  line-height: 1.35;
  width: fit-content;
  max-width: 100%;
  transition: color 0.2s;
}
.cta-contact a.email { font-size: clamp(1.15rem, 5.2vw, 1.75rem); }
.cta-contact a:hover { color: var(--accent); }

/* ---------- Testimonials ---------- */
.reviews-section { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-pad); }
.reviews-section h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); }

/* ---------- Contact form ---------- */
.form-grid { display: grid; gap: 3rem; align-items: start; }
.form-aside h2 { margin-bottom: 1.25rem; }
.form-aside p { color: var(--text-soft); }
.enquiry {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.25rem;
}
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.98rem; color: var(--text); }
.field .opt { color: var(--text-muted); font-size: 0.9rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #4a5c55; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(210, 173, 98, 0.22);
}
.enquiry .btn { justify-self: start; }
.thanks {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.thanks h3 { margin-bottom: 0.75rem; }
.thanks p { color: var(--text-soft); }
.thanks[hidden], .enquiry[hidden] { display: none; }

/* ---------- Privacy ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { margin-top: 0.75rem; }
.prose li { position: relative; padding-left: 1.5rem; margin-top: 0.4rem; }
.prose li::before { content: "\00B6"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-display); }
.prose a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0f0d;
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  font-size: 0.98rem;
}
.footer-grid { display: grid; gap: 2.25rem; }
.footer-brand .brand { font-size: 1.6rem; display: inline-block; margin-bottom: 0.75rem; white-space: normal; }
.footer-brand p { color: var(--text-soft); max-width: 22rem; }
.footer-head { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--text); margin-bottom: 0.75rem; }
.footer-links { display: grid; gap: 0.35rem; }
.footer-links a, .footer-contact a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-links a[aria-current="page"] { color: var(--accent); }
.footer-contact { display: grid; gap: 0.35rem; align-content: start; }
.footer-contact p { color: var(--text-soft); }
.footer-base {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-base a { color: var(--text-soft); text-decoration: none; transition: color 0.2s; }
.footer-base a:hover { color: var(--accent); }

/* ---------- Phone call bar ---------- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--accent);
  border-top: 1px solid var(--accent-mid);
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.02rem;
  text-decoration: none;
}
.callbar a:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.callbar svg { width: 1.05rem; height: 1.05rem; }

/* ---------- Scroll reveals (short, under 0.4s) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }

  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2.1rem);
    background: transparent;
    border: 0;
    padding: 0;
  }
  .nav-links a {
    padding: 0.4rem 0;
    font-size: 0.98rem;
    border-bottom: 0;
  }
  .nav-links a[aria-current="page"]::after {
    right: auto; top: auto;
    left: 50%; bottom: -0.45rem;
    transform: translateX(-50%);
  }

  .frame img { max-height: none; }
  .svc-row { grid-template-columns: 15rem 1fr; gap: 2rem; align-items: baseline; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-base { grid-template-columns: 1fr auto; }
  .form-grid { grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .hero { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
  .hero-grid { grid-template-columns: 1.25fr 0.9fr; gap: clamp(3rem, 6vw, 6rem); }
  .hero-figure img { aspect-ratio: 4 / 5; max-height: 72vh; }

  .page-hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: clamp(3rem, 6vw, 6rem); }
  .page-hero .frame img { aspect-ratio: 5 / 4; }

  .statement-grid { grid-template-columns: 1.15fr 0.85fr; gap: 6rem; align-items: end; }
  .band-grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: center; }
  .band-figure img { aspect-ratio: 3 / 4; }
  .areas-grid { grid-template-columns: 1.2fr 0.8fr; gap: 5rem; }
  .cta-panel { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 3rem; }
  .detail-grid { grid-template-columns: 0.9fr 1.1fr; gap: 6rem; }
  .detail-grid.flip { grid-template-columns: 1.1fr 0.9fr; }
  .detail-grid.flip .frame { order: 2; }
}

/* ---------- Reduced motion: everything shown at once ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile nav lock: keep last ----------
   Under 768px the links stay hidden in every header state until
   the menu button adds .open. */
@media (max-width: 767.98px) {
  .site-header .nav-links,
  .site-header.scrolled .nav-links,
  .site-header .nav .nav-links:not(.open),
  .site-header.scrolled .nav .nav-links:not(.open) { display: none; }
  .site-header .nav .nav-links.open,
  .site-header.scrolled .nav .nav-links.open { display: flex; }
}
