/* Lyons Hardware, Bo'ness. Styles for index.html (and 404.html). */

/* fonts: self-hosted. Cabin 400 is only the first-paint fallback until the Adobe font arrives, so one weight is enough. */
@font-face { font-family: "RoughCut"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/roughcut-regular.otf") format("opentype"); }
@font-face { font-family: "RoughCut"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/roughcut-italic.otf") format("opentype"); }
@font-face { font-family: "Cabin"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/cabin-latin-400-normal.woff2") format("woff2"); }

:root {
  --green: #3d5445;
  --green-deep: #2f4338;
  --star: #ecdc68;
  --paper: #fdfdfb;
  --tint: #f1f3ee;
  --ink: #3a3a3a;
  --muted: #5a6560;
  --rule: #cdd2c9;
  --focus: var(--green-deep);
  --wordmark: "RoughCut", "Arial Narrow", Impact, sans-serif;
  --cond: "RoughCut", "Arial Narrow", sans-serif;
  --body: "p22-underground", "Cabin", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
/* focus: dark green ring on light sections, star yellow on wood */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wood, .wood-deep { --focus: var(--star); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 10;
  background: var(--star); color: var(--ink); font-weight: 600;
  padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wood {
  background-color: var(--green);
  background-image: url("images/grain.svg");
  color: #fff;
}
.wood-deep {
  background-color: var(--green-deep);
  background-image: url("images/grain.svg");
  color: #fff;
}

.headline {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.04;
  text-align: center;
  color: var(--ink);
  margin-inline: auto;
  max-width: 20ch;
}

/* sign plaque with notched corners, as on the shopfront and poster */
.plaque {
  --pc: #3a3a3a;
  --r: 15px;
  --arc: transparent calc(var(--r) - 1px), var(--pc) calc(var(--r) - 0.5px), var(--pc) calc(var(--r) + 1.5px), transparent calc(var(--r) + 2px);
  padding: 18px 30px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, var(--arc)) left top / calc(var(--r) + 2px) calc(var(--r) + 2px) no-repeat,
    radial-gradient(circle at 100% 0, var(--arc)) right top / calc(var(--r) + 2px) calc(var(--r) + 2px) no-repeat,
    radial-gradient(circle at 0 100%, var(--arc)) left bottom / calc(var(--r) + 2px) calc(var(--r) + 2px) no-repeat,
    radial-gradient(circle at 100% 100%, var(--arc)) right bottom / calc(var(--r) + 2px) calc(var(--r) + 2px) no-repeat,
    linear-gradient(var(--pc), var(--pc)) left var(--r) top 0 / calc(100% - 2 * var(--r)) 2px no-repeat,
    linear-gradient(var(--pc), var(--pc)) left var(--r) bottom 0 / calc(100% - 2 * var(--r)) 2px no-repeat,
    linear-gradient(var(--pc), var(--pc)) left 0 top var(--r) / 2px calc(100% - 2 * var(--r)) no-repeat,
    linear-gradient(var(--pc), var(--pc)) right 0 top var(--r) / 2px calc(100% - 2 * var(--r)) no-repeat;
}
.plaque.light { --pc: #fff; color: #fff; }

/* header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 8px;
}
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.header-right { display: flex; gap: 24px; align-items: center; }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 1rem; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }

.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; padding: 10px 22px; border-radius: 2px;
  border: 2px solid transparent; line-height: 1.2; cursor: pointer;
}
/* page buttons share one style (outline) and all darken on hover */
.btn-solid, .btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-solid:hover, .btn-outline:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-star { background: var(--star); color: var(--ink); }
.btn-star:hover { background: #d8c845; }

/* hero: arched shopfront, wordmark */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vh, 40px) 0 84px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 50% 100%, 0 calc(100% - 56px));
}
.hero-inner { position: relative; z-index: 1; }
.arch { width: min(560px, 78vw, 44vh); min-width: 250px; height: auto; margin-inline: auto; }
h1 { margin-top: clamp(10px, 2vh, 20px); }
.logo { width: min(100%, 40rem); height: auto; margin-inline: auto; }
.tagline {
  margin: clamp(14px, 2.6vh, 28px) auto 0;
  width: min(880px, 92%);
  display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px);
  font-family: var(--cond); font-style: italic; font-weight: 600;
  font-size: clamp(1.3rem, 3.4vw, 2.1rem); line-height: 1.1;
}
.tagline::before, .tagline::after { content: ""; flex: 1; height: 2px; background: var(--star); }

/* intro */
.intro { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); text-align: center; }
.intro .sub { max-width: 54ch; margin: 22px auto 0; color: var(--muted); font-size: 1.2rem; }
.actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.delivery { display: inline-block; margin-top: 34px; padding-block: 12px; }
.delivery + .delivery { margin-top: 12px; }
.contactline {
  margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 22px; font-size: 1.05rem; color: var(--ink);
}
.contactline span.dot { color: var(--muted); }
.contactline a { text-decoration: none; }
.contactline a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* 44px tap targets around the 24px icons */
.social { display: inline-flex; align-items: center; }
.social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.social a:hover { opacity: 0.8; }
.social svg { width: 24px; height: 24px; }

/* services */
.services { background: var(--tint); padding: clamp(56px, 8vw, 96px) 0; }
.signs { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.what {
  margin-top: 48px; display: grid; gap: 0 40px;
  grid-template-columns: repeat(3, 1fr);
}
.what div { border-top: 1px solid var(--rule); padding: 18px 0 24px; }
.what h3 { font-family: var(--cond); font-weight: 700; font-size: 1.65rem; line-height: 1.1; color: var(--green); }
.what p { margin-top: 8px; font-size: 1.02rem; color: var(--muted); line-height: 1.55; max-width: 36ch; }
.askline { margin-top: 12px; text-align: center; font-weight: 500; }
.askline a { font-weight: 600; }

/* local */
.local { padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.local h2 { font-family: var(--cond); font-weight: 700; font-size: clamp(2.1rem, 4.8vw, 3.4rem); line-height: 1.06; max-width: 22ch; margin-inline: auto; }
.local p { max-width: 54ch; margin: 20px auto 0; font-size: 1.2rem; color: #e8eee9; }
.local p + p { margin-top: 12px; }

/* gallery: every photo is cropped to its cell, so any shape of photo can be dropped in */
.gallery { padding: clamp(56px, 8vw, 96px) 0; }
.gallery h2, .reviews h2, .faq h2, .visit h2 {
  font-family: var(--cond); font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1.05; color: var(--ink);
}
.gallery-grid { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%; height: clamp(170px, 24vw, 270px); object-fit: cover;
  background: var(--tint);
}
.gallery-grid .wide { grid-column: span 2; }
.gallery-grid .full { grid-column: 1 / -1; }
.gallery-grid .full img { height: clamp(220px, 34vw, 400px); }
.gallery-grid figcaption {
  margin-top: 8px; font-family: var(--cond); font-weight: 700; font-size: 1.25rem; line-height: 1.2; color: var(--green);
}

/* visit */
.visit { background: var(--tint); padding: clamp(56px, 8vw, 96px) 0; }
.visit .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.contact { margin-top: 24px; display: grid; gap: 14px; font-style: normal; }
.contact span { display: block; color: var(--muted); font-size: 0.95rem; }
.contact strong, .contact a { font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.visit-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.hours { margin-top: 28px; border-collapse: collapse; width: 100%; max-width: 380px; }
.hours caption { text-align: left; font-family: var(--cond); font-weight: 700; font-size: 1.5rem; color: var(--green); padding-bottom: 6px; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.hours td { color: var(--muted); }

/* map: the iframe fills the box; the hatched background shows while it loads */
.map-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.map {
  position: relative; width: 100%; flex: 1; min-height: 360px;
  background: repeating-linear-gradient(135deg, rgba(61,84,69,0.06) 0 12px, transparent 12px 24px), #e3e9e2;
  border: 2px solid var(--rule);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* reviews */
.reviews { padding: clamp(56px, 8vw, 88px) 0; }
.reviews .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.rating { margin-top: 14px; font-family: var(--cond); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; color: var(--green); }
.rating span { display: block; text-wrap: balance; }
.rating span + span { margin-top: 10px; }
.reviews .btn { justify-self: start; }

/* faq */
.faq { padding: clamp(56px, 8vw, 88px) 0; border-top: 1px solid var(--rule); }
.faq-list { margin-top: 26px; max-width: 780px; }
details { border-bottom: 1px solid var(--rule); }
details:first-child { border-top: 1px solid var(--rule); }
summary {
  cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative;
  font-family: var(--cond); font-weight: 700; font-size: 1.5rem; color: var(--green);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-family: var(--body); font-weight: 500; font-size: 1.7rem; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 20px; max-width: 60ch; color: var(--muted); }

/* footer */
footer { padding: 40px 0; font-size: 1rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
footer .mark { margin: 0 0 12px; line-height: 0; }
footer .mark img { height: 64px; width: auto; }
footer a { color: #fff; }
footer .links { display: flex; gap: 20px; }
footer .copy { margin-top: 8px; }

/* 404 page */
.notfound { padding: clamp(56px, 10vw, 120px) 0; text-align: center; }
.notfound .actions { margin-top: 28px; }

@media (min-width: 900px) {
  .hero-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
  .arch { width: min(480px, 36vw, 62vh); margin: 0; }
    h1 { margin-top: 0; }
  .tagline { width: 100%; margin-top: 18px; font-size: clamp(1.15rem, 2vw, 1.6rem); }
  .intro { padding-top: clamp(32px, 4vh, 48px); }
  .intro h2.headline { max-width: 38ch; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
}
@media (max-width: 900px) {
  .signs { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .what { grid-template-columns: repeat(2, 1fr); }
  .visit .wrap { grid-template-columns: 1fr; }
  .map { min-height: 300px; }
  .reviews .wrap { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  /* intro signs and contact line: balanced wrapping, one item per line, no stray dots */
  .plaque { padding: 14px 18px; font-size: 0.92rem; letter-spacing: 0.06em; text-wrap: balance; }
  .delivery { display: block; max-width: 420px; margin-inline: auto; }
  .contactline { flex-direction: column; gap: 0; }
  .contactline .dot { display: none; }
  .contactline > a, .contactline > span:not(.social) { padding-block: 7px; }
  .contactline .social { margin-top: 6px; }
  /* phone: brand and call button on the top row, section links on a row of their own */
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; }
  .header-right { display: contents; }
  .site-header .btn-star { order: 2; }
  .site-nav {
    order: 3; flex-basis: 100%; justify-content: space-between; gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.25); margin-top: 8px;
  }
  .site-nav a:not(.btn) { padding: 12px 4px; font-size: 0.98rem; }
  .brand img { height: 40px; }
  .btn-star { white-space: nowrap; padding: 9px 11px; font-size: 0.9rem; }
  .what { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
