/* ============================================================
   PHOTOGRAPHER WEBSITE TEMPLATE: STYLES
   Look: a darkroom contact sheet. Cinematic, precise, quiet.
   Near-black paper, bone type, one warm amber accent used rarely.
   Change your accent in one place: --amber below.
   Fonts: Gloock (display serif) + Karla (body),
   loaded in each page's <head>.
   ============================================================ */

:root {
  /* EDIT: the single accent colour. Keep it rare; it reads best that way. */
  --amber: oklch(76% 0.12 80);

  /* Darkroom paper and bone type. Tinted, never pure black or white. */
  --char: oklch(19% 0.012 270);        /* page background */
  --char-deep: oklch(15% 0.012 270);   /* CTA band, footer */
  --fill: oklch(24% 0.012 270);        /* image placeholder fill */
  --bone: oklch(92% 0.008 90);         /* body text */
  --muted: oklch(66% 0.018 260);       /* secondary text, grey-blue */
  --line: oklch(35% 0.01 270);         /* hairline rules */
  --frame-line: oklch(92% 0.008 90 / 0.38); /* the contact-sheet frame edge */

  --max: 1120px;
}

/* Fallback for older browsers that don't know oklch */
@supports not (color: oklch(50% 0 0)) {
  :root {
    --amber: #dfa54b;
    --char: #1b1b21;
    --char-deep: #131318;
    --fill: #26262d;
    --bone: #eae7de;
    --muted: #949aa8;
    --line: #46464e;
    --frame-line: rgba(234, 231, 222, 0.38);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Karla", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--bone);
  background: var(--char);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .statement, .apr-num, .quote-feature blockquote, .avail-line {
  font-family: "Gloock", Georgia, serif;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.icon { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.16em; }
a { color: var(--bone); }

/* ============================================================
   INTRO ANIMATION: rise, sharpen, fade, element by element.
   fill-mode "both" holds the start state, so no static opacity 0.
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.hero .kicker      { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.05s both; }
.hero .frame       { animation: rise 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.16s both; }
.hero .statement   { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.30s both; }
.hero .lead        { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.40s both; }
.hero .actions     { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.50s both; }
.page-head .kicker { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.05s both; }
.page-head h1      { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.14s both; }
.page-head .lead   { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.26s both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--char);
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; gap: 16px; flex-wrap: wrap;
}
.logo {
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
}
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s ease;
}
nav.main > a:not(.btn):hover { color: var(--bone); }
nav.main > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px;
  background: var(--bone); transition: right 0.25s ease;
}
nav.main > a:not(.btn):hover::after { right: 0; }

/* ============================================================
   BUTTONS: quiet bone pill on charcoal, with a 1px amber border
   beam that orbits the pill while hovered.
   ============================================================ */
@property --beam { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--bone);
  color: var(--char);
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn::before {
  content: ""; position: absolute; inset: -5px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--beam), transparent 0deg 300deg, var(--amber) 332deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none; z-index: -1;
}
.btn:hover::before { opacity: 1; animation: beam 1.4s linear infinite; }
@keyframes beam { to { --beam: 360deg; } }
.btn.ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line);
}
.btn.ghost::before { display: none; }
.btn.ghost:hover { border-color: var(--bone); transform: none; }

/* ============================================================
   THE SIGNATURE: contact-sheet frames.
   Every image sits inside a thin bone border with a small
   letterspaced caps label beneath, like a numbered contact sheet.
   ============================================================ */
.frame { margin: 0; min-width: 0; }
.frame .ph {
  display: block;
  width: 100%;
  border: 1px solid var(--frame-line);
  background: var(--fill);
}

/* Photo slots: click one in edit mode and your photo fills the frame. */
[data-photo] { position: relative; overflow: hidden; }
[data-photo] img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0; background: none;
}
[data-photo].has-img { background: none; }
/* Natural slots take the shape of the photo instead of cropping it. */
[data-photo][data-fit="natural"] img { position: static; height: auto; object-fit: fill; }
.frame figcaption {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Placeholder aspect ratios. Delete the class once a real photo is in. */
.r32  { aspect-ratio: 3 / 2; }
.r45  { aspect-ratio: 4 / 5; }
.r11  { aspect-ratio: 1 / 1; }
.r169 { aspect-ratio: 16 / 9; }

/* The contact sheet: masonry columns. Add as many frames as you like;
   each photo keeps its own shape and the wall lays itself out. */
.sheet {
  columns: 3;
  column-gap: 28px;
}
.sheet .frame {
  break-inside: avoid;
  margin: 0 0 48px;
  display: block;
}
/* Legacy width classes from the old grid; kept harmless on purpose. */
.sheet .w3, .sheet .w4 { width: auto; }
.sheet .drop { margin-top: 0; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 88px; }
.kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero .frame { margin-bottom: 56px; }
.statement {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.16;
  letter-spacing: 0.005em;
  text-wrap: balance;
  max-width: 21ch;
}
.hero .lead { margin: 22px 0 34px; font-size: 17.5px; color: var(--muted); max-width: 52ch; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; }
.sec-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.sec-label::before { content: ""; width: 28px; height: 1px; background: var(--line); }
h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.2;
  letter-spacing: 0.005em;
  margin-bottom: 14px;
}
.sec-intro { color: var(--muted); max-width: 54ch; }
.sec-head { margin-bottom: 52px; }
.sec-foot { margin-top: 52px; }

/* Inner page header */
.page-head { padding: 72px 0 20px; }
.page-head h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.15; max-width: 20ch; }
.page-head .lead { margin-top: 18px; font-size: 17.5px; color: var(--muted); max-width: 52ch; }

/* ---------- Approach: three numbered paragraphs, no cards ---------- */
.apr { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 56px; margin-top: 48px; }
.apr-item { border-top: 1px solid var(--line); padding-top: 22px; }
.apr-num { font-size: 19px; color: var(--amber); display: block; margin-bottom: 14px; }
.apr-item h3 { font-size: 22px; margin-bottom: 8px; }
.apr-item p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ---------- Kind words: one featured voice, two supporting ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.quote-feature { border-top: 1px solid var(--line); padding-top: 26px; }
.quote-feature blockquote {
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.4;
  margin-bottom: 22px;
}
.quote-side .quote { border-top: 1px solid var(--line); padding: 22px 0; }
.quote-side blockquote { font-size: 15.5px; color: var(--muted); margin-bottom: 12px; line-height: 1.7; }
.quote cite {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote-feature cite { color: var(--bone); }

/* ---------- Availability line ---------- */
.avail { padding: 0; }
.avail .container {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 34px; padding-bottom: 34px;
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; align-self: center; }
.avail-line { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.4; }
.avail a { color: var(--bone); text-decoration-color: var(--line); text-underline-offset: 4px; }
.avail a:hover { text-decoration-color: var(--amber); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--char-deep); border-top: 1px solid var(--line); padding: 92px 0; }
.cta-band .container {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 64px; align-items: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 44ch; }
.cta-band .cta-alt { margin-top: 18px; font-size: 15px; color: var(--muted); }
.cta-band .cta-alt a { color: var(--bone); text-decoration-color: var(--line); text-underline-offset: 4px; }
.cta-band .cta-alt a:hover { text-decoration-color: var(--amber); }

/* ---------- Enquiry form ---------- */
form.enquiry { max-width: 560px; }
form.enquiry label {
  display: block;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin: 26px 0 8px;
}
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 16px;
  font-family: inherit;
  background: var(--fill);
  color: var(--bone);
  transition: border-color 0.2s ease;
}
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus {
  outline: none;
  border-color: var(--amber);
}
form.enquiry input::placeholder, form.enquiry textarea::placeholder { color: var(--muted); }
form.enquiry select { appearance: none; -webkit-appearance: none; }
form.enquiry textarea { min-height: 130px; resize: vertical; }
form.enquiry .hint { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
form.enquiry button { margin-top: 30px; }
::-webkit-calendar-picker-indicator { filter: invert(0.85); }

/* ---------- Contact rows ---------- */
.contact-rows { border-top: 1px solid var(--line); max-width: 560px; }
.contact-rows .crow {
  display: grid; grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px; padding: 20px 2px;
  border-bottom: 1px solid var(--line);
}
.contact-rows h3 {
  font-family: "Karla", sans-serif;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 9px;
  padding-top: 4px;
}
.contact-rows p { font-size: 16px; }
.contact-rows a { color: var(--bone); text-decoration-color: var(--line); text-underline-offset: 4px; }
.contact-rows a:hover { text-decoration-color: var(--amber); }

/* ---------- Pricing guide: ruled rows, no cards ---------- */
.price-list { border-top: 1px solid var(--line); }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 48px;
  padding: 30px 2px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.price-row h3 { font-size: 24px; margin-bottom: 8px; }
.price-row p { color: var(--muted); font-size: 15.5px; max-width: 58ch; }
.price-row .price {
  font-family: "Gloock", Georgia, serif;
  font-size: 24px;
  white-space: nowrap;
  text-align: right;
}
.price-note { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 62ch; }

/* ---------- Footer ---------- */
footer.site { background: var(--char-deep); border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: 15px; color: var(--muted); }
footer.site h4 {
  font-family: "Karla", sans-serif;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 12px;
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--bone); }
footer.site .cols { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 32px; }
footer.site .legal { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .sheet { columns: 2; column-gap: 20px; }
  .sheet .frame { margin-bottom: 40px; }
  .apr { grid-template-columns: 1fr; gap: 36px; }
  .quotes { grid-template-columns: 1fr; gap: 40px; }
  .cta-band .container { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 44px 0 64px; }
  section { padding: 60px 0; }
  .sheet { columns: 1; }
  header.site .container { justify-content: center; text-align: center; }
  nav.main { gap: 20px; }
  nav.main .btn { display: none; }
}

/* ---------- Sticky mobile CTA ---------- */
.cta-sticky { display: none; }
@media (max-width: 640px) {
  .cta-sticky {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    background: var(--bone);
    color: var(--char);
    font-family: "Karla", sans-serif;
    font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 15px;
    border-radius: 999px;
    text-decoration: none;
    z-index: 60;
  }
  body { padding-bottom: 88px; }
}
