/* ==========================================================
   BYROWE shared styles, used by every page.
   EASY EDITS: change colours here. Text edits are in each
   page's HTML. The contact email is set in /site.js.
   Sizes are deliberately generous so the site is easy to read
   and tap for everyone, including older visitors.
   ========================================================== */
:root {
  --paper: #f6f5f1;
  --ink: #000000;
  --muted: #3d3a35;
  --line: #cfccc2;
  --panel: #ecebe4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
p { margin: 0 0 1rem; }

.skip {
  position: absolute; left: 1rem; top: -10rem;
  background: var(--ink); color: var(--paper);
  padding: 0.8rem 1.2rem; z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */
header { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.mark { text-decoration: none; display: inline-block; }
.mark b {
  display: block;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-size: 1.3rem;
  line-height: 1.2;
}
.mark span {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}
.mark i {
  display: block;
  width: 2.2rem;
  height: 2px;
  background: var(--ink);
  margin-top: 0.45rem;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0 -0.75rem; }
.nav a {
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.6rem 0.75rem;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Hero */
.hero { padding: 3.5rem 1.5rem 4.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: 3rem; align-items: center; }
.hero-img { margin: 0; }
.hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 48rem) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-img { max-width: 20rem; width: 100%; margin: 0 auto; }
}
.tagline { margin: 0; color: var(--muted); font-size: 1.2rem; }
.hero h1 {
  font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.2;
  margin: 2rem 0 1rem;
  max-width: 22ch;
}
.lead { max-width: 38rem; color: var(--muted); margin: 0 0 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  font-weight: 500;
  font-size: 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
}
.btn:hover { background: #2b2a27; }
.btn.alt { background: transparent; color: var(--ink); }
.btn.alt:hover { background: var(--panel); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.hint { font-size: 1.15rem; color: var(--muted); margin-top: 1.2rem; }

/* Sections */
section { padding: 4rem 0; border-top: 1px solid var(--line); }
h2 { font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; margin: 0 0 2rem; }
.intro { color: var(--muted); max-width: 40rem; margin: -1rem 0 2rem; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: s; padding-top: 1rem; border-top: 2px solid var(--ink); }
.steps li::before { content: "Step " counter(s); display: block; font-weight: 500; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.steps strong { display: block; font-weight: 500; font-size: 1.3rem; margin-bottom: 0.3rem; }
.steps span { color: var(--muted); display: block; }
.notes { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.notes h3 { font-weight: 500; font-size: 1.2rem; margin: 0 0 0.3rem; }
.notes p { margin: 0; color: var(--muted); }

.promise { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.promise h3 { font-weight: 500; font-size: 1.35rem; margin: 0 0 0.3rem; }
.promise p { margin: 0; color: var(--muted); }

/* "How we can help" cards */
.help { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.help > div { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ink); padding: 1.5rem; }
.help h3 { font-weight: 500; font-size: 1.35rem; margin: 0 0 0.4rem; }
.help p { margin: 0; color: var(--muted); }
.care { margin: 2rem 0 0; max-width: 44rem; font-size: 1.15rem; color: var(--muted); font-style: italic; }

.items { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.items li { border: 1px solid var(--ink); padding: 0.5rem 1.1rem; border-radius: 999px; }
.items li.more { border-style: dashed; }

.contact { background: var(--panel); border-top: none; }
.contact .box { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); align-items: start; }
.contact p { margin: 0 0 0.5rem; }
.contact .big { font-size: 1.6rem; font-weight: 500; overflow-wrap: anywhere; }
.contact .contact-label { margin-top: 1.2rem; }
.contact .contact-note { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }

/* Photo enquiry form */
.enquiry { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); max-width: 44rem; }
.enquiry h2 { margin: 0 0 0.75rem; }
.enquiry form { display: grid; gap: 1.25rem; }
.enquiry .field-row { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.enquiry label, .enquiry legend { display: grid; gap: 0.4rem; font-weight: 500; }
.enquiry label span, .enquiry legend span { font-weight: 400; color: var(--muted); }
.enquiry input[type="email"], .enquiry input[type="text"], .enquiry textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--muted); border-radius: 0; padding: 0.7rem 0.8rem; width: 100%;
}
.enquiry textarea { resize: vertical; }
.enquiry fieldset { border: 1px solid var(--line); background: #fff; margin: 0; padding: 1rem 1.25rem 1.25rem; display: grid; gap: 0.75rem; }
.enquiry legend { padding: 0 0.4rem; }
.enquiry input[type="file"] { font: inherit; font-size: 1rem; max-width: 100%; }
.enquiry .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.enquiry .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-error { color: #9b1c1c; margin: 0; }
.form-privacy { color: var(--muted); font-size: 0.95rem; margin: 0; }
.form-success { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ink); padding: 1.5rem; }
.form-success h3 { margin: 0 0 0.5rem; font-weight: 500; font-size: 1.3rem; }
.form-success p { margin: 0; color: var(--muted); }

/* Page titles (inner pages) */
.page-title { padding: 3rem 0; }
.page-title h1 { font-weight: 500; font-size: clamp(2.1rem, 6vw, 3.3rem); line-height: 1.1; margin: 0 0 1rem; }
.page-title p { color: var(--muted); max-width: 38rem; margin: 0; }

/* About */
.about { max-width: 42rem; }
.about p { margin: 0 0 1.4rem; }
.about p:first-child { font-size: 1.4rem; color: var(--ink); }

/* Fees tables */
.fees { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.fees th, .fees td { text-align: left; padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fees th { font-weight: 500; border-bottom: 2px solid var(--ink); }
.fees td:last-child, .fees th:last-child { text-align: right; padding-right: 0; font-weight: 500; }
.note { color: var(--muted); margin: 0 0 1.5rem; }

footer { padding: 2.5rem 0 3rem; font-size: 1.05rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
footer nav a { margin-right: 1.25rem; }

@media (max-width: 30rem) {
  body { font-size: 1.2rem; }
  .hero { padding: 2.5rem 1.5rem 3.5rem; }
  .btn { width: 100%; }
  .bar { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   Phone fine-tuning. Only applies to small screens, so the
   desktop layout is unchanged.
   ========================================================== */
@media (max-width: 40rem) {
  .wrap { padding: 0 1.25rem; }
  .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  section { padding: 3rem 0; }

  /* Stack every grid into one column so nothing is wider than the screen */
  .steps, .notes, .promise, .help,
  .contact .box, .enquiry .field-row { grid-template-columns: minmax(0, 1fr); }
  .steps > *, .notes > *, .promise > *, .help > *,
  .contact .box > *, .enquiry form > *, .enquiry .field-row > * { min-width: 0; }

  /* Contact boxes and photo form */
  .contact .box { gap: 1.5rem; }
  .contact .big { font-size: 1.3rem; overflow-wrap: break-word; word-break: break-word; }
  .enquiry { margin-top: 2rem; padding-top: 2rem; max-width: none; }
  .enquiry h2 { font-size: 1.6rem; }
  .enquiry fieldset { min-width: 0; padding: 0.9rem 1rem 1rem; }
  .enquiry input[type="email"], .enquiry input[type="text"], .enquiry textarea {
    font-size: 1rem; min-height: 3rem; max-width: 100%;
  }
  .enquiry input[type="file"] { width: 100%; font-size: 0.95rem; }
  .enquiry .btn { justify-self: stretch; width: 100%; }
  .form-success, .help > div { padding: 1.25rem; }

  /* Fee tables: keep long text inside the screen */
  .fees th, .fees td { padding: 0.75rem 0.75rem 0.75rem 0; overflow-wrap: anywhere; }

  /* 3-column fee tables (postage, additional services): stack each row
     so the name and cost sit on one line and the condition below it */
  .fees.stack, .fees.stack tbody { display: block; width: 100%; }
  .fees.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fees.stack tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line);
  }
  .fees.stack tbody tr:first-child { border-top: 2px solid var(--ink); }
  .fees.stack td { display: block; padding: 0; border: 0; min-width: 0; }
  .fees.stack td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 500; }
  .fees.stack td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 1.05rem; }
  .fees.stack td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; overflow-wrap: normal; }

  footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
  footer nav a { margin-right: 0; padding: 0.4rem 0; }
}

@media (max-width: 22rem) {
  .wrap, .hero { padding-left: 1rem; padding-right: 1rem; }
  .mark b { letter-spacing: 0.35em; }
  .nav a { font-size: 1.05rem; padding: 0.5rem 0.6rem; }
}

/* Privacy & cookies page */
.legal { max-width: 44rem; }
.legal h3 { font-weight: 500; font-size: 1.35rem; margin: 2rem 0 0.5rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.4rem; }
.legal li { margin: 0 0 0.6rem; }
.legal li strong { font-weight: 500; }
.legal .updated { color: var(--muted); margin-top: -1.25rem; }
