/* Marlow — boutique/retail template, ported from the original
   SGEnterprise Hosting demo (public/hosting-templates/marlow) into the
   tradie-tier's schema-driven renderer. The demo's defining content (a
   shop grid + Stripe cart mock) has no equivalent here — repurposed as
   plain service cards, no price/cart. Sections it never needed (trust
   strip, process, a portfolio gallery + lightbox, reviews, an enquiry
   form) are new, built to match its bold/rounded design tokens. The
   demo's newsletter signup was dropped — no schema equivalent, same
   reasoning as Harbourline's portal-plugin pitch.
   Palette: warm paper / mustard / forest / brick
   Type: Bricolage Grotesque (display, bold geometric) · Work Sans (body)
*/

:root {
  --paper: #f4ede1;
  --ink: #211c15;
  --mustard: #e0a437;
  --forest: #3c5240;
  --brick: #b8552f;
  --stone: #8a8070;
  --panel: #ece1cd;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Work Sans', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(33,28,21,0.035) 1px, transparent 1px);
  background-size: 4px 4px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }

.kicker {
  font-family: var(--body); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brick);
  margin: 0 0 0.75rem;
}

.btn {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 0.9375rem; padding: 0.9rem 1.7rem; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper);
}
.btn-primary:hover { background: var(--brick); border-color: var(--brick); }
.btn-ghost { border-color: rgba(255,255,255,0.7); background: transparent; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.demo-flag { background: var(--ink); color: var(--paper); font-size: 0.75rem; text-align: center; padding: 0.55rem 1rem; }
.demo-flag strong { color: var(--mustard); }
.demo-flag a { margin-left: 0.75rem; text-decoration: underline; color: var(--paper); }

/* nav */
/* background+blur live on ::before, not .nav itself — backdrop-filter (like
   transform/filter/will-change) on an ancestor makes it the containing block
   for any position:fixed descendant, which was hijacking .nav-links' mobile
   off-canvas panel down to .nav's own header-height box instead of the
   viewport. See northline/harbourline, which never had this on .nav and
   never had the bug. */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 2px solid var(--ink); }
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(244,237,225,0.92); backdrop-filter: blur(8px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 0.5rem; }
.brand-logo { height: 2.3rem; width: auto; display: block; }
.brand-text { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.brand-names { display: flex; flex-direction: column; gap: 0.05rem; }
.brand-tagline { font-family: var(--body); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.01em; color: var(--stone); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.nav-links a:hover, .nav-links a.active { color: var(--brick); }
.nav-cta { background: var(--ink); color: var(--paper) !important; padding: 0.55rem 1.2rem; border-radius: 999px; }
.nav-toggle { display: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; min-height: min(88vh, 720px); }
.hero-in { align-self: center; padding-block: 3rem; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 0.98; letter-spacing: -0.01em; margin: 0 0 1.25rem; }
.hero .lead { font-size: 1.0625rem; max-width: 38ch; color: var(--stone); margin: 0 0 1.75rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions .btn-ghost { border-color: var(--ink); color: var(--ink); }
.hero-actions .btn-ghost:hover { background: var(--ink); color: var(--paper) !important; }
.hero-photo { position: relative; background-size: cover; background-position: center; }
.hero-logo-wrap { position: absolute; top: 1.5rem; left: 1.5rem; z-index: 2; }
.hero-logo { max-height: 5.25rem; width: auto; display: block; filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4)); }

/* trust strip (new — pill chips, matching the demo's rounded-everything language) */
.trust { padding-block: clamp(1.5rem, 4vw, 2.5rem) 0; }
.trust-in { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.trust-in div { background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 0.6rem 1.25rem; display: flex; align-items: baseline; gap: 0.5rem; }
.trust-in b { font-family: var(--display); font-size: 1.1rem; color: var(--brick); }
.trust-in span { font-size: 0.75rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.04em; }

/* services (ported from "shop" — the demo's per-product photo + price +
   add-to-cart has no equivalent here; svc.num fills the photo's old slot
   as a rotated numeral tile instead, keeping the demo's playful tilt) */
.services { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section-head { max-width: 560px; margin: 0 0 clamp(2.5rem, 6vw, 3rem); }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.service-card { display: flex; flex-direction: column; }
.service-num {
  aspect-ratio: 3/4; border-radius: 14px; margin-bottom: 0.9rem;
  background: var(--mustard); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 3rem; color: var(--ink);
}
.service-photo { aspect-ratio: 3/4; border-radius: 14px; margin-bottom: 0.9rem; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-card:nth-child(3n+1) .service-num, .service-card:nth-child(3n+1) .service-photo { transform: rotate(-1.2deg); }
.service-card:nth-child(3n+3) .service-num, .service-card:nth-child(3n+3) .service-photo { transform: rotate(1deg); }
.service-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; margin: 0 0 0.4rem; }
.service-card p { margin: 0; color: var(--stone); font-size: 0.9rem; }

/* feature band (ported from "story" — the demo used one photo; adapted to
   a stacked pair so both featureBand images render) */
.feature-band { background: var(--panel); padding-block: clamp(4rem, 9vw, 6.5rem); }
.feature-in { display: grid; grid-template-columns: 0.9fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.feature-photos { position: relative; aspect-ratio: 4/5; }
.feature-photo { position: absolute; background-size: cover; background-position: center; border-radius: 14px; }
.feature-photo:not(.feature-photo--sm) { width: 78%; height: 82%; top: 0; left: 0; transform: rotate(-1.5deg); }
.feature-photo--sm { width: 52%; height: 48%; bottom: 0; right: 0; border: 6px solid var(--panel); transform: rotate(2deg); }
.feature-copy h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 2.5rem); line-height: 1.1; margin: 0 0 1.1rem; }
.feature-copy p { max-width: 46ch; margin: 0 0 1rem; color: var(--ink); opacity: 0.82; }

/* process (new — pill numerals, no boxed steps) */
.process { padding-block: clamp(4rem, 9vw, 6.5rem); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.process-step span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--ink); color: var(--mustard);
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin-bottom: 0.9rem;
}
.process-step h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 0 0 0.4rem; }
.process-step p { margin: 0; color: var(--stone); font-size: 0.875rem; }

/* work highlight band (ported from "lookbook") */
.work { position: relative; background-size: cover; background-position: center 25%; min-height: 340px; display: flex; align-items: flex-end; }
.work-overlay { width: 100%; background: linear-gradient(to top, rgba(33,28,21,0.78), transparent 70%); padding-block: 2.5rem; color: #fff; }
.work-overlay h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 0.6rem; max-width: 20ch; line-height: 1.1; }
.work-overlay .kicker { color: var(--mustard); }
.work-copy { max-width: 44ch; color: rgba(244,237,225,0.85); margin: 0; }

/* portfolio gallery (new — rounded tilted tiles, matching the product-card
   rotation flourish used elsewhere in this template) */
.portfolio { padding-block: clamp(4rem, 9vw, 6.5rem); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.75rem; }
.portfolio-item { cursor: pointer; }
.portfolio-item:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
.portfolio-item:nth-child(3n+2) .portfolio-photo { transform: rotate(-1deg); }
.portfolio-item:nth-child(3n+3) .portfolio-photo { transform: rotate(1deg); }
.portfolio-photo { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px -28px rgba(33,28,21,0.35); }
.portfolio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-caption { padding: 0.9rem 0.15rem 0; }
.portfolio-caption h3 { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; margin: 0 0 0.3rem; }
.portfolio-caption p { margin: 0; color: var(--stone); font-size: 0.875rem; }

.blog-teaser { padding-block: clamp(4rem, 9vw, 6.5rem); background: var(--panel); }
.blog-teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.75rem; margin-bottom: 2rem; }
.blog-teaser-card { display: block; text-decoration: none; }
.blog-teaser-img { width: 100%; aspect-ratio: 16/10; border-radius: 14px; object-fit: cover; display: block; box-shadow: 0 20px 40px -28px rgba(33,28,21,0.35); }
.blog-teaser-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; margin: 0.9rem 0 0.3rem; color: var(--ink); }
.blog-teaser-card p { margin: 0; color: var(--ink); opacity: 0.7; font-size: 0.875rem; }
.blog-teaser-viewall { display: inline-block; color: var(--brick); font-weight: 700; text-decoration: none; }

.shop-teaser { padding-block: clamp(4rem, 9vw, 6.5rem); background: var(--panel); }
.shop-teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.75rem; margin-bottom: 2rem; }
.shop-teaser-card { display: block; text-decoration: none; }
.shop-teaser-img { width: 100%; aspect-ratio: 16/10; border-radius: 14px; object-fit: cover; display: block; box-shadow: 0 20px 40px -28px rgba(33,28,21,0.35); }
.shop-teaser-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; margin: 0.9rem 0 0.3rem; color: var(--ink); }
.shop-teaser-card p { margin: 0; color: var(--ink); opacity: 0.7; font-size: 0.875rem; }
.shop-teaser-viewall { display: inline-block; color: var(--brick); font-weight: 700; text-decoration: none; }
.shop-teaser-card .price { margin: 0.3rem 1.25rem 0 !important; font-weight: 700; color: var(--brick); }

.booking-teaser { padding-block: clamp(4rem, 9vw, 6.5rem); background: var(--panel); }
.booking-teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.booking-teaser-card { display: block; text-decoration: none; background: var(--paper); border-radius: 14px; padding: 1.5rem 1.25rem; box-shadow: 0 20px 40px -28px rgba(33,28,21,0.35); }
.booking-teaser-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; margin: 0 0 0.3rem; color: var(--ink); }
.booking-teaser-card .meta { margin: 0; color: var(--ink); opacity: 0.7; font-size: 0.875rem; }
.booking-teaser-viewall { display: inline-block; color: var(--brick); font-weight: 700; text-decoration: none; }

.about-teaser { padding-block: clamp(4rem, 9vw, 6.5rem); background: var(--panel); }
.about-teaser-excerpt { max-width: 640px; color: var(--ink); opacity: 0.82; font-size: 0.9375rem; line-height: 1.7; margin: 0 0 1.25rem; }
.about-teaser-viewall { display: inline-block; color: var(--brick); font-weight: 700; text-decoration: none; }

/* lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100; background: rgba(33,28,21,0.94);
  align-items: center; justify-content: center; flex-direction: column; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: min(90vw, 1100px); max-height: 78vh; object-fit: contain; border-radius: 8px; }
.lightbox-caption { color: rgba(244,237,225,0.85); font-size: 0.875rem; margin-top: 1rem; text-align: center; }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.5rem; background: none; border: none;
  color: #fff; font-size: 2.25rem; line-height: 1; cursor: pointer; padding: 0.25rem 0.5rem;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1);
  border: none; color: #fff; font-size: 2.5rem; line-height: 1; width: 3rem; height: 3rem;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* reviews (new — rounded cards with a mustard top edge, consistent with
   the pill/rounded language elsewhere; no drop-shadow-heavy northline copy) */
.reviews { padding-block: clamp(4rem, 9vw, 6.5rem); background: var(--panel); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.review-card { background: var(--paper); border-radius: 14px; padding: 1.75rem; border: 2px solid var(--ink); }
.review-stars { color: var(--brick); letter-spacing: 0.15em; font-size: 1rem; margin-bottom: 0.9rem; }
.review-quote { margin: 0 0 1rem; font-size: 0.9375rem; }
.review-by { margin: 0; font-family: var(--display); font-weight: 700; font-size: 0.8125rem; color: var(--ink); }
.review-card--placeholder { border-style: dashed; }
.review-tag {
  display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--brick); background: rgba(184,85,47,0.12);
  border-radius: 999px; padding: 0.25rem 0.65rem; margin-bottom: 0.9rem;
}

/* contact / web-enquiry form (new — reuses the demo's own pill input
   style from its newsletter form) */
.contact-enquiry { padding-block: clamp(4rem, 9vw, 6.5rem); }
.contact-enquiry .section-head p { max-width: 48ch; color: var(--stone); }
.enquiry-form { display: grid; gap: 0.9rem; max-width: 560px; }
.enquiry-form input, .enquiry-form textarea {
  font: inherit; width: 100%; padding: 0.85rem 1.1rem; border: 2px solid var(--ink);
  border-radius: 999px; background: #fff; color: var(--ink); font-size: 0.9375rem;
}
.enquiry-form textarea { border-radius: 20px; min-height: 100px; resize: vertical; }
.enquiry-form-label { font-size: 0.8125rem; color: var(--stone); margin: -0.35rem 0 -0.5rem; }
.enquiry-form button { justify-self: start; }
.enquiry-form-note { font-size: 0.8125rem; color: var(--stone); margin: 0.25rem 0 0; }

/* cta */
.cta { position: relative; background-size: cover; background-position: center; }
.cta-overlay { background: rgba(33,28,21,0.8); }
.cta-in { padding-block: clamp(4rem, 9vw, 6rem); text-align: center; color: #fff; }
.cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin: 0 0 0.6rem; }
.cta p { color: rgba(255,255,255,0.82); margin: 0 0 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* footer */
.site-footer { background: var(--ink); color: rgba(244,237,225,0.6); }
.footer-in { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding-block: 1.5rem; font-size: 0.8125rem; }
.site-footer .footer-in > span > a { color: inherit; text-decoration: underline; }
.site-footer .footer-in > span > a:hover { color: var(--mustard); }
.footer-credit a { color: var(--mustard); text-decoration: underline; }
.referral-strip { background: var(--mustard); }
.referral-strip-logo { height: 26px; width: auto; display: block; }
.referral-strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1.5rem; padding: 1rem var(--gutter); text-align: center; }
.referral-strip-text { color: var(--ink); font-weight: 600; }
.referral-strip-cta { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--ink); color: var(--mustard); font-weight: 700; padding: 0.5rem 1.15rem; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: opacity .15s; }
.referral-strip-cta:hover { opacity: 0.82; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; aspect-ratio: 16/9; }
  .feature-in { grid-template-columns: 1fr; }
  .feature-photos { order: -1; width: 100%; max-width: 340px; margin-inline: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 62px 0 0 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 2rem var(--gutter);
    gap: 1.5rem; transform: translateX(100%); transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; width: 34px; height: 24px; position: relative; background: none; border: none; cursor: pointer; }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); }
  .nav-toggle::before { top: 0; }
  .nav-toggle span { top: 11px; }
  .nav-toggle::after { bottom: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}

.logo-bar { text-align: center; padding: 1.5rem 1rem; }
.logo-bar img { max-height: 4.5rem; width: auto; display: inline-block; }
.footer-social { display: flex; align-items: center; gap: 0.9rem; }
.footer-social a { color: inherit; display: inline-flex; opacity: 0.85; }
.footer-social a:hover { opacity: 1; }

/* FAQ accordion — native <details>/<summary>, no JS needed */
.faq { padding-block: clamp(4rem, 9vw, 6.5rem); background: var(--panel); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 0 1.5rem; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq-icon { flex: none; position: relative; width: 1.1rem; height: 1.1rem; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; inset: 0; margin: auto; background: var(--brick); border-radius: 2px; }
.faq-icon::before { width: 100%; height: 2px; }
.faq-icon::after { width: 2px; height: 100%; transition: opacity 0.15s ease; }
.faq-item[open] .faq-icon::after { opacity: 0; }
.faq-a { margin: 0 0 1.25rem; color: var(--stone); font-size: 0.9375rem; line-height: 1.6; }

/* The hero is the one place .kicker sits on a dark scrim instead of a light
   section background, and every template used the same dark accent for both —
   so the hero kicker was near-invisible over its own photo. Scoped override:
   light sections keep the accent colour, the hero gets something legible. */
.hero .kicker { color: rgba(255,255,255,0.92); }
