/* Summerfield: site-signage look. Hi-vis yellow on near-black, sandstone and clay. Big type by default. */

@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/barlowcondensed-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(/fonts/barlowcondensed-800.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(/fonts/atkinsonhyperlegible-400.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url(/fonts/atkinsonhyperlegible-700.woff2) format("woff2"); }

:root {
  --yellow: #ffc20e;
  --black: #16130f;
  --sand: #efe6d6;
  --clay: #8a4b2a;
  --earth: #2a211a;
  --white: #fffdf8;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --pad: max(clamp(1.25rem, 4vw, 3rem), (100% - 70rem) / 2);   /* side padding; centres content past 70rem */
}

* { box-sizing: border-box; }
html { font-size: 125%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 5rem; }   /* 20px base */
body { margin: 0; font-family: var(--body); line-height: 1.55; color: var(--black); background: var(--sand); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: .01em; margin: 0; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  font-size: 1.1rem; text-decoration: none; padding: .6em 1em; border: 3px solid var(--black); border-radius: 4px;
  cursor: pointer; line-height: 1.1;
}
.btn-call { background: var(--yellow); color: var(--black); }
.btn-call:hover, .btn-call:focus-visible { background: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--white); color: var(--black); }
.btn-big { font-size: 1.35rem; padding: .7em 1.1em; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem;
  padding: .6rem var(--pad); background: var(--black); color: var(--white);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--yellow); color: var(--black);
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.brand-name small { display: block; font-size: .62em; font-weight: 700; color: var(--yellow); letter-spacing: .04em; }
.topnav { display: none; gap: 1.5rem; }
.topnav a { font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; text-decoration: none; }
.topnav a:hover { color: var(--yellow); }
.topbar .btn-call { display: none; }

/* Hero */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(85vh, 44rem); padding: 0; color: var(--white); background: var(--earth); overflow: hidden; }
.hero picture { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,19,15,.15) 0%, rgba(22,19,15,.85) 65%); }
.hero-text { position: relative; z-index: 1; align-self: end; width: 100%; padding: 3rem var(--pad) 2.5rem; }
.tag {
  display: inline-block; margin: 0 0 1rem; padding: .25em .6em; background: var(--yellow); color: var(--black);
  font-family: var(--display); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em;
}
.tag span { white-space: nowrap; }
.hero h1 { font-size: clamp(2.3rem, 9vw, 5.5rem); text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.lede { font-size: 1.2rem; max-width: 34rem; margin: 1rem 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hazard tape */
.hazard {
  height: 1.4rem; border-block: 3px solid var(--black);
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 1.4rem, var(--black) 1.4rem 2.8rem);
}

/* Sections */
section { padding: 3.5rem var(--pad); }
.section-title { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 1.5rem; }
.section-lede { font-size: 1.15rem; margin: -.5rem 0 1.5rem; max-width: 40rem; }

/* Services as site signs */
.signs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.sign {
  background: var(--yellow); border: 4px solid var(--black); border-radius: 6px; padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: inset 0 0 0 4px var(--yellow), inset 0 0 0 7px var(--black);
}
.sign h3 { font-size: 1.9rem; margin: .6rem 0 .5rem; }
.sign p { margin: 0; font-size: 1.05rem; }
.pict { width: 4rem; height: 4rem; fill: none; stroke: var(--black); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.sign .short { display: none; }
.services-cta { margin: 1.75rem 0 0; }
.sign-dark { background: var(--black); color: var(--white); box-shadow: inset 0 0 0 4px var(--black), inset 0 0 0 7px var(--yellow); }
.sign-dark .pict { stroke: var(--yellow); }
.sign-dark h3 { color: var(--yellow); }

/* Projects */
.projects { background: var(--earth); color: var(--white); }
.gallery { display: grid; gap: 1.25rem; }
.gallery figure { margin: 0; background: var(--black); border: 3px solid var(--black); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: .7rem 1rem; font-size: 1.05rem; border-top: 4px solid var(--yellow); }

/* Testimonial */
.words { background: var(--clay); color: var(--white); }
.words blockquote { margin: 0 auto; max-width: 46rem; }
.words p { font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.4; margin: 0 0 1rem; }
.words footer { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; color: var(--yellow); }

/* Quote form */
.quote { display: grid; gap: 2rem; }
.quote-intro p { font-size: 1.15rem; margin: 0 0 1.25rem; max-width: 30rem; }
.contact-line { margin-top: 1rem !important; }
.contact-line a { font-weight: 700; overflow-wrap: anywhere; }
.quote-form { display: grid; gap: 1.1rem; background: var(--white); border: 4px solid var(--black); border-radius: 6px; padding: clamp(1.1rem, 3vw, 2rem); }
.field { display: grid; gap: .35rem; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-weight: 700; font-size: 1.05rem; padding: 0; }
input, textarea { font: inherit; font-size: 1.05rem; padding: .65rem .75rem; border: 3px solid var(--black); border-radius: 4px; background: var(--white); color: var(--black); width: 100%; }
input:focus, textarea:focus { outline: 4px solid var(--yellow); outline-offset: 0; }
.checks { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); margin-top: .35rem; }
.checks label { display: flex; align-items: center; gap: .6rem; font-weight: 400; padding: .45rem .6rem; border: 2px solid var(--black); border-radius: 4px; cursor: pointer; }
.checks input { width: 1.5rem; height: 1.5rem; accent-color: var(--black); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-form .btn { justify-self: start; }

/* Footer and mobile call bar */
.sitefoot { background: var(--black); color: var(--white); padding: 2.5rem var(--pad) 6rem; }
.sitefoot p { margin: 0 0 .5rem; }
.foot-brand { font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; color: var(--yellow); }
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr;
  border-top: 3px solid var(--black); padding-bottom: env(safe-area-inset-bottom); background: var(--black);
}
.callbar a {
  display: block; text-align: center; padding: .85rem .5rem; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; line-height: 1.1;
}
.callbar-call { background: var(--yellow); color: var(--black); }
.callbar-quote { background: var(--black); color: var(--yellow); }

/* Simple pages (thanks / error) */
.notice { min-height: 70vh; display: grid; align-content: center; justify-items: start; gap: 1.25rem; max-width: 46rem; }
.notice p { font-size: 1.2rem; margin: 0; }

/* Phones: signs become compact rows (symbol left, heading and one short line right) */
@media (max-width: 640px) {
  .signs { gap: .75rem; }
  .sign { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .8rem; align-items: center; padding: .8rem .9rem; }
  .sign .pict { width: 2.6rem; height: 2.6rem; grid-row: span 2; }
  .sign h3 { font-size: 1.35rem; margin: 0 0 .15rem; }
  .btn-big { font-size: 1.2rem; padding: .7em .9em; }
  .btn { white-space: nowrap; }
  .sign .long { display: none; }
  .sign .short { display: block; font-size: 1rem; line-height: 1.35; }
}

@media (min-width: 900px) {
  .topnav, .topbar .btn-call { display: flex; }
  .callbar { display: none; }
  .sitefoot { padding-bottom: 2.5rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .quote { grid-template-columns: minmax(16rem, 22rem) minmax(0, 44rem); column-gap: 3rem; align-items: start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
