/* Main colour is the logo blue (assets/logo.png); orange, sand and cream are the accents */
:root {
  --brand: #15789b;
  --brand-dark: #0f5c77; /* hover states */
  --orange: #f7b351;
  --sand: #ead3a9;
  --cream: #f8f5ed;

  --ink: #1f323a;
  --muted: #5a6a71;
  --line: #ddd3bf;
  --link: var(--brand);

  --heading: "Bitter", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  /* Shared sizes - use these rather than one-off values so every page matches */
  --text-small: 0.95rem;   /* captions, secondary info, form labels */
  --text-tiny: 0.85rem;    /* labels, tags, footer small print */
  --measure: 40em;         /* max line length for paragraphs */
  --radius: 4px;
  --page-top: 3rem;        /* space between header and each page's title */
  --section: 3.5rem;       /* vertical space between sections */
  --gap: 48px;             /* gap between columns */
}

@media (max-width: 800px) {
  :root {
    --page-top: 2rem;
    --section: 2.5rem;
    --gap: 32px;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* Always reserve room for the scrollbar so short and long pages line up identically */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; padding-bottom: var(--section); }

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 0.6rem; }
h2 { font-size: 1.6rem; margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0.2rem 0; }

a { color: var(--link); }
a:hover { color: var(--brand-dark); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: var(--measure); margin: 0; }
.muted { color: var(--muted); font-size: var(--text-small); }

svg { width: 1.2em; height: 1.2em; fill: currentColor; vertical-align: -0.2em; flex-shrink: 0; }

/* ---------- Header ---------- */
#site-header {
  min-height: 105px; /* header is filled in by JS; keep its space reserved so nothing jumps */
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--ink);
}
.brand-name { font-family: var(--heading); font-weight: 700; font-size: 1.25rem; }
.logo-img { height: 80px; width: auto; display: block; }
.logo-placeholder {
  width: 48px;
  height: 48px;
  border: 2px dashed var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
nav a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius);
}
nav a:hover { background: var(--sand); color: var(--ink); }
nav a[aria-current="page"] { background: var(--brand); color: #fff; }

/* Phones: logo on top, the four pages as a row of tabs underneath */
@media (max-width: 720px) {
  #site-header { min-height: 138px; }
  .header-inner {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }
  .brand { padding: 6px 0; }
  .logo-img { height: 60px; }
  .logo-placeholder { height: 40px; }
  .logo-placeholder { width: 40px; font-size: 0.6rem; }
  .brand-name { font-size: 1.15rem; }
  nav { margin: 8px -8px 0; }
  nav ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
  nav a {
    text-align: center;
    padding: 10px 2px 11px;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }
  nav a:hover { background: none; }
  nav a[aria-current="page"] {
    background: none;
    color: var(--brand);
    font-weight: 600;
    border-bottom-color: var(--brand);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  cursor: pointer;
}
.btn:hover { background: #f0a43a; border-color: #f0a43a; color: var(--ink); }
.btn-plain { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-plain:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: default; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }

/* ---------- Photos / placeholders ---------- */
.photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.placeholder {
  background: var(--sand);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: #8a7552;
  font-size: var(--text-small);
}

/* ---------- Page tops ----------
   The home hero and the other pages' headings start the same distance below the header. */
.hero, .page-head { padding-top: var(--page-top); }

/* ---------- Home ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gap);
  align-items: start;
  padding-bottom: var(--section);
}

.band { background: var(--sand); padding: var(--section) 0; margin-bottom: var(--section); }
.band .placeholder { background: #dfc28f; color: #6f5b3a; }
.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--gap);
  align-items: start;
}
.about-photo { aspect-ratio: 4 / 5; }
.about p { margin: 0 0 1rem; max-width: var(--measure); }

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--gap);
  margin: 0;
}
.services > div { padding: 1rem 0; border-top: 1px solid var(--line); }
.services dt { font-family: var(--heading); font-weight: 600; font-size: 1.15rem; color: var(--brand); }
.services dd { margin: 0.3rem 0 0; }
.areas { margin: 0 0 1.5rem; max-width: var(--measure); }

@media (max-width: 800px) {
  .hero, .about { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4 / 3; }
  .services { grid-template-columns: 1fr; }
}

/* ---------- Inner pages ---------- */
.page-head { padding-bottom: 2rem; }
.cta-line { margin-top: 2rem; }

/* A job on the work page: text, then its before/after pairs */
.job { padding: 2rem 0 0; border-top: 1px solid var(--line); }
.job-text { max-width: var(--measure); margin-bottom: 1.5rem; }
.job-text h2 { margin: 0.25rem 0; }
.job-text p { margin: 0.25rem 0; }

/* Before/after pair, side by side */
.ba { margin: 0 0 2rem; max-width: 860px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-side { position: relative; display: block; }
.ba .photo { aspect-ratio: auto; height: auto; }
.ba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 10px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  font-size: var(--text-tiny);
  font-weight: 600;
}
.ba-label.ba-after { background: var(--orange); }
.ba figcaption { margin-top: 0.5rem; color: var(--muted); font-size: var(--text-small); }

.hero-photo { aspect-ratio: 3 / 2; }

/* Big review quote uses the same type as an h2 */
.review-big { font-family: var(--heading); font-weight: 600; font-size: 1.6rem; line-height: 1.2; }

.tag {
  display: inline-block;
  margin: 0;
  font-size: var(--text-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.stars { color: var(--orange); letter-spacing: 2px; font-size: 1.1rem; }
.avg { display: block; margin-top: 0.4rem; color: var(--ink); }

.review { max-width: var(--measure); padding: 2rem 0; border-top: 1px solid var(--line); }
.review:last-child { border-bottom: 1px solid var(--line); }
.review p { margin: 0.5rem 0; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--gap);
  align-items: start;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { border-top: 1px solid var(--line); }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--ink);
}
.contact-list a:hover { color: var(--brand-dark); }
.contact-list svg { width: 26px; height: 26px; color: var(--brand); }
.contact-list span { display: flex; flex-direction: column; line-height: 1.3; overflow-wrap: anywhere; }
.contact-list strong { font-size: var(--text-tiny); color: var(--muted); font-weight: 600; }
.contact-list .hours { padding: 14px 0; color: var(--muted); border-bottom: 1px solid var(--line); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-form label { display: block; font-weight: 600; font-size: var(--text-small); margin-bottom: 16px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #cfc4ad;
  border-radius: var(--radius);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .honey { display: none; }
.form-status { margin: 12px 0 0; color: var(--brand); font-weight: 600; }

@media (max-width: 800px) {
  .contact { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Footer ---------- */
#site-footer { background: var(--brand); color: #fff; padding: 2.5rem 0 1rem; }
#site-footer a { color: #fff; }
#site-footer a:hover { color: var(--sand); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  line-height: 1.7;
}
.footer-social { display: flex; gap: 14px; }
.footer-social svg { width: 26px; height: 26px; }
.footer-small { margin-top: 2rem; font-size: var(--text-tiny); opacity: 0.8; }

.hero > *, .about > *, .contact > *, .services > * { min-width: 0; }
