/* Setuply site kit: the small set of pieces every theme shares. Each theme
   file sets the variables, then builds its own page layouts on top. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--heading-weight, 600);
  line-height: 1.1;
  letter-spacing: var(--heading-spacing, -0.01em);
  text-transform: var(--heading-transform, none);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, var(--h1-max, 4rem)); }
h2 { font-size: clamp(1.8rem, 4vw, var(--h2-max, 2.6rem)); }
h3 { font-size: 1.3rem; }

p, ul, dl, dd, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 24px; }
.section { padding: 88px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.centre { text-align: center; margin-inline: auto; }

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text, var(--accent));
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 2px solid var(--primary);
  border-radius: var(--btn-radius, 8px);
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn.ghost { background: transparent; border-color: currentColor; color: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.text-link {
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
  color: var(--accent-text, var(--accent));
  text-underline-offset: 4px;
}

/* Demo bar (template previews only) */
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  padding: 8px 16px;
  background: #14282c;
  color: #f5efe3;
  font: 500 14px/1.4 system-ui, sans-serif;
  text-align: center;
}
.demo-bar a { color: #f2c14e; font-weight: 700; }

/* Header */
.topbar { font-size: 0.88rem; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-block: 8px; }
.topbar a { text-decoration: none; font-weight: 600; }
.topbar-phone { margin-left: auto; }
header.site { background: var(--header-bg, var(--bg)); color: var(--header-text, var(--text)); }
.site-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { font-family: var(--font-display); font-weight: var(--heading-weight, 600); font-size: 1.45rem; line-height: 1.1; text-decoration: none; text-transform: var(--heading-transform, none); }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--accent); }
.btn.call { padding: 10px 18px; }

/* Photos and placeholders */
.photo { width: 100%; height: 100%; object-fit: cover; }
.ph {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 200px;
  padding: 20px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 14px, transparent 14px 28px),
    linear-gradient(140deg, var(--ph-a), var(--ph-b));
  color: var(--ph-text, #fff);
  text-align: center;
}
.ph span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5; opacity: 0.9; }
.ph, .photo { border-radius: var(--radius); }
.round { border-radius: 50% !important; aspect-ratio: 1; min-height: 0; }

/* Initials tile for team members without a photo */
.avatar {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--ph-a), var(--ph-b));
  color: var(--ph-text, #fff);
  font-family: var(--font-display);
  font-weight: var(--heading-weight, 600);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.02em;
}

/* Map and star rating */
iframe.map { display: block; width: 100%; height: 280px; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.stars { margin-bottom: 14px; color: var(--star, #e8a917); font-size: 1.25rem; letter-spacing: 0.18em; line-height: 1; }

/* The header stays in view, and sections fade up as they arrive */
header.site { position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(0, 0, 0, 0.45); }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.photo { transition: filter .3s, transform .5s; }
.gallery li:hover .photo { filter: brightness(1.06) saturate(1.08); }

/* Lists that each theme restyles */
.svc li { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 20px; align-items: baseline; }
.svc p { color: var(--muted); }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feats h3 { margin-bottom: 8px; }
.feats p { color: var(--muted); }
.feat-n { display: none; }
.quote p { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; }
.quote footer { margin-top: 20px; color: var(--muted); font-size: 1rem; }
.note { margin-top: 28px; color: var(--muted); }

/* Text beside a photo (About page) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text h2 { margin-bottom: 18px; }
.split-text p { color: var(--muted); }
.split-text p + p { margin-top: 14px; }
.split-media .ph, .split-media .photo { aspect-ratio: 4 / 3.4; }

/* Inner page heading */
.page-hero { padding: 72px 0 56px; background: var(--surface); }
.page-hero .lead { margin-top: 18px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person .ph, .person .photo { aspect-ratio: 1; min-height: 0; margin-bottom: 16px; }
.person .role { color: var(--accent-text, var(--accent)); font-weight: 600; margin: 2px 0 8px; }
.person p { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .ph, .gallery .photo { aspect-ratio: 1; min-height: 0; }
.gallery figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-details h2, .contact-form h2 { margin-bottom: 20px; }
.contact-details h3 { margin: 28px 0 10px; }
.contact-details dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.contact-details dt { font-weight: 600; }
.contact-details dd { color: var(--muted); }
.hours li { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours li span:last-child { color: var(--muted); }
.ph.map { margin-top: 28px; }

.contact-form { padding: 32px; background: var(--card-bg, var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form label { display: block; margin-bottom: 16px; font-size: 0.92rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--field-radius, 8px);
  background: var(--field-bg, var(--bg));
  color: inherit;
  font: inherit;
  font-weight: 400;
}
.contact-form textarea { resize: vertical; }
.form-msg { margin-top: 14px; font-weight: 600; color: var(--accent-text, var(--accent)); }
[hidden] { display: none !important; }

/* Footer */
.site-footer { padding: 56px 0 24px; background: var(--footer-bg, var(--surface)); color: var(--footer-text, var(--text)); font-size: 0.95rem; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer h3 { margin-bottom: 10px; font-size: 1rem; }
.site-footer p { opacity: 0.8; }
.site-footer .brand { opacity: 1; margin-bottom: 8px; }
.site-footer .hours li { border-color: color-mix(in srgb, currentColor 18%, transparent); }
.site-footer .hours li span:last-child { color: inherit; opacity: 0.8; }
.footer-mark { display: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); font-size: 0.85rem; }

/* Smaller screens */
@media (max-width: 900px) {
  .site-inner { flex-wrap: wrap; padding-block: 14px; gap: 10px 20px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 4px 20px; }
  .btn.call { margin-left: auto; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .feats, .team { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar-inner span:nth-child(2), .topbar-inner > a:not(.topbar-phone) { display: none; }
}

/* Phones: a Menu button replaces the row of links, and everything gets
   one column with generous gaps. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 16px;
  border: 1.5px solid currentColor;
  border-radius: var(--btn-radius, 8px);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.nav-toggle::before { content: ""; width: 16px; height: 10px; border-block: 2px solid currentColor; }

@media (max-width: 760px) {
  .site-inner { flex-direction: row; flex-wrap: wrap; align-items: center; min-height: 0; padding-block: 16px; gap: 0 16px; }
  .brand { font-size: 1.35rem; flex: 1 1 0; min-width: 0; }
  .btn.call { display: none; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: flex; flex-direction: column; order: 5; width: 100%; margin: 14px 0 0; gap: 0; }
  .site-nav a { padding: 14px 2px; border-bottom: 0; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); font-size: 1.05rem; }
  .site-nav a[aria-current] { color: var(--accent-text, var(--accent)); }
  .topbar-inner { justify-content: space-between; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 22px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 30px; }
  .lead { font-size: 1.08rem; }
  .feats, .team, .footer-grid { grid-template-columns: 1fr; }
  .feats { gap: 32px; }
  .team { gap: 40px; }
  .footer-grid { gap: 32px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .actions { gap: 12px; margin-top: 28px; }
  .actions .btn { flex: 1 1 100%; }
  .split, .contact-grid { gap: 40px; }
  .contact-form { padding: 24px 20px; }
  .page-hero { padding: 52px 0 40px; }
  .ph { overflow: hidden; }
  .ph span { font-size: 0.68rem; }
  .text-link { margin-top: 20px; }
}

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

/* Hammer: phone number first. For trades and home services.
   Call box in the hero, edge-to-edge photo strip, trust blocks, price list. */
:root {
  --bg: #f4f3ef;
  --surface: #e9e7e0;
  --text: #17181a;
  --muted: #55585c;
  --line: #d2cfc5;
  --primary: #17181a;
  --on-primary: #f4f3ef;
  --accent: #f5b800;
  --accent-text: #8a6500;
  --radius: 0px;
  --btn-radius: 0px;
  --field-radius: 0px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --heading-weight: 700;
  --heading-transform: uppercase;
  --heading-spacing: 0.01em;
  --h1-max: 6rem;
  --h2-max: 3.4rem;
  --header-bg: #17181a;
  --header-text: #f4f3ef;
  --footer-bg: #17181a;
  --footer-text: #f4f3ef;
  --ph-a: #4a4e55;
  --ph-b: #26282d;
  --card-bg: #fff;
}

h1, h2 { line-height: 0.96; }
h3 { font-size: 1.5rem; }
.btn { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; }
.brand { font-size: 1.7rem; letter-spacing: 0.02em; }

/* Yellow strip above the header */
.topbar { background: var(--accent); color: #17181a; font-weight: 600; }
.topbar-phone { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.04em; }
.btn.call { background: var(--accent); border-color: var(--accent); color: #17181a; }

/* Hero: headline on the left, yellow call box hanging off the bottom */
.hm-hero { background: #17181a; color: #f4f3ef; padding: 80px 0 0; }
.hm-hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr); gap: 56px; align-items: end; }
.hm-hero-inner > div { padding-bottom: 72px; }
.hm-hero .eyebrow { color: var(--accent); }
.hm-hero .lead { margin-top: 24px; color: #b9bbbd; }
.callbox { position: relative; z-index: 2; margin-bottom: -56px; padding: 32px; background: var(--accent); color: #17181a; box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.35); }
.callbox-label { font-weight: 600; }
.big-phone { display: block; margin: 4px 0 16px; font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; text-decoration: none; white-space: nowrap; }
.callbox ul { margin-bottom: 22px; }
.callbox li { padding: 7px 0 7px 28px; border-top: 2px solid rgba(23, 24, 26, 0.2); position: relative; font-weight: 600; }
.callbox li::before { content: "✓"; position: absolute; left: 2px; font-weight: 700; }
.callbox .btn { width: 100%; }

/* Three photos, edge to edge */
.hm-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4px; background: #17181a; border-top: 12px solid transparent; border-image: repeating-linear-gradient(-45deg, #f5b800 0 16px, #17181a 16px 32px) 12; }
.hm-strip .ph, .hm-strip .photo { height: 340px; }

/* Trust blocks: three full-width panels */
.hm-trust .feats { gap: 0; }
.hm-trust li { padding: 52px clamp(24px, 4vw, 56px); }
.hm-trust li:nth-child(1) { background: #17181a; color: #f4f3ef; }
.hm-trust li:nth-child(2) { background: #2b2d32; color: #f4f3ef; }
.hm-trust li:nth-child(3) { background: var(--accent); color: #17181a; }
.hm-trust .feat-n { display: block; margin-bottom: 14px; font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; opacity: 0.35; }
.hm-trust h3 { font-size: 1.8rem; }
.hm-trust p { color: inherit; opacity: 0.8; }

/* Services as a numbered price list */
.svc { border-top: 4px solid var(--text); }
.svc li { grid-template-columns: 76px 1fr auto; align-items: center; padding: 22px 0; border-bottom: 2px solid var(--text); }
.svc-n { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--accent-text); }
.svc h3 { font-size: 1.7rem; }
.svc-price { padding: 8px 16px; background: #17181a; color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }

/* Review beside the about text, no gap */
.hm-about { display: grid; grid-template-columns: 1fr 1fr; }
.hm-about > div { padding: clamp(40px, 6vw, 88px); }
.hm-about-quote { background: #17181a; color: #f4f3ef; display: grid; align-content: center; border-left: 12px solid var(--accent); }
.hm-about-quote .quote p { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.hm-about-quote .quote footer { color: #b9bbbd; }
.hm-about-text { background: var(--surface); }
.hm-about-text h2 { margin-bottom: 18px; }
.hm-about-text p:not(.eyebrow) { color: var(--muted); }

/* Closing band: the phone number, as big as it will go */
.hm-cta { padding: 72px 0; background: var(--accent); color: #17181a; }
.giant-phone { display: block; margin: 10px 0 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 11vw, 8.5rem); line-height: 0.95; text-decoration: none; }
.hm-cta p { font-weight: 500; }

/* Inner pages */
.page-hero { background: #17181a; color: #f4f3ef; border-bottom: 12px solid transparent; border-image: repeating-linear-gradient(-45deg, #f5b800 0 16px, #17181a 16px 32px) 12; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero .lead { color: #b9bbbd; }
.gallery { grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gallery figure { position: relative; }
.gallery figcaption { position: absolute; left: 0; bottom: 0; margin: 0; padding: 6px 12px; background: var(--accent); color: #17181a; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; }
.person { border-top: 6px solid var(--text); padding-top: 16px; }
.contact-details .big-phone { font-size: 3.4rem; }
.contact-form { border: 0; border-top: 8px solid var(--accent); background: #fff; }
.site-footer { border-top: 8px solid var(--accent); }

@media (max-width: 900px) {
  .hm-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hm-hero-inner > div { padding-bottom: 40px; }
  .hm-strip { grid-template-columns: 1fr 1fr; }
  .hm-strip > :first-child { grid-column: span 2; }
  .hm-strip .ph, .hm-strip .photo { height: 220px; }
  .hm-trust .feats, .hm-about { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .svc li { grid-template-columns: 52px 1fr; }
  .svc-price { grid-column: 2; justify-self: start; }
  .svc-n { font-size: 2rem; }
}

/* Phones */
@media (max-width: 600px) {
  .hm-hero { padding-top: 48px; }
  .hm-hero-inner > div { padding-bottom: 36px; }
  .callbox { margin-bottom: -28px; padding: 26px 22px; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35); }
  .big-phone { font-size: 2.7rem; }
  .hm-strip .ph, .hm-strip .photo { height: 170px; }
  .hm-strip > :first-child { height: 230px; }
  .hm-trust li { padding: 40px 22px; }
  .svc li { padding: 24px 0; gap: 10px 16px; }
  .hm-about > div { padding: 48px 22px; }
  .hm-about-quote { border-left-width: 8px; }
  .hm-cta { padding: 56px 0; }
  .contact-details .big-phone { font-size: 2.9rem; }
}

@media (max-width: 760px) { .brand { font-size: 1.45rem; } }

.site-nav a[aria-current] { color: var(--accent); }

.hm-about-quote .stars { color: var(--accent); }
.person .avatar { background: #17181a; color: var(--accent); }
