@import url("../fonts/faces.css");

:root {
  --bg: #faf7f2;
  --bg-alt: #f1ebe1;
  --ink: #2b2420;
  --muted: #6e625a;
  --accent: #8a5a3b;
  --accent-dark: #6d4529;
  --dark: #241e1a;
  --line: #e2d8ca;
  --radius: 6px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .75rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); font-weight: 500; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-small { padding: .5rem 1rem; font-size: .9rem; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Staging banner (preview only) */
.stage-banner { background: #c9a227; color: var(--dark); text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; }

/* Top bar */
.topbar { background: var(--dark); color: #d8ccbf; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar a { text-decoration: none; font-weight: 600; color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo img { height: 44px; width: auto; }
.logo-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.5rem;
  border-radius: 50%;
}
.logo-text { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1; display: grid; }
.logo-text small { font-family: var(--sans); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: .2rem; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { text-decoration: none; font-size: .95rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"], .site-nav a.is-current { color: var(--accent); }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Services dropdown */
.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: .75em; }
.sub-nav {
  display: none;
  position: absolute; top: 100%; left: -1rem;
  min-width: 250px; padding: .5rem 0; margin-top: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 32px -18px rgba(43, 36, 32, .45);
}
.sub-nav::before { content: ""; position: absolute; inset: -.8rem 0 auto; height: .8rem; }
.sub-nav a { display: block; padding: .5rem 1rem; }
.sub-nav a:hover { background: var(--bg-alt); }
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { display: block; }

/* Image slots that wait for a photo to be uploaded */
[data-image] {
  position: relative;
  background-color: var(--bg-alt);
  background-image: linear-gradient(135deg, #e8dccb, #cdb89e);
  background-size: cover;
  background-position: center;
}
[data-image]:not(.has-image)::after {
  content: "Photo to come";
  position: absolute; inset: auto 0 1rem;
  text-align: center; font-size: .85rem; color: #7a6a5c;
}

/* Home hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-note { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.hero-media { margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; max-height: 620px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 48px -24px rgba(43, 36, 32, .45); }

/* Inner page hero */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 22em; }
.crumbs { margin: 0 0 1rem; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--accent-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 .4rem; }

/* Trusted by */
.trusted { border-block: 1px solid var(--line); background: #fff; }
.trusted-inner { display: flex; align-items: center; gap: 2rem; padding-block: 1.25rem; flex-wrap: wrap; }
.trusted p { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; color: var(--muted); }
.trusted ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; }
.trusted li { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.trusted li:last-child { color: var(--muted); font-weight: 500; }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin-bottom: 2.25rem; }
.section-head p:last-child:not(.eyebrow) { color: var(--muted); }

/* Service tiles */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem; }
.service { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(43, 36, 32, .5); }
.service img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service div { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.service h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.service p { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
.service .more { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--accent); }

/* Service page detail */
.service-detail { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 2rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.note { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.note p { margin: 0; color: var(--muted); }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.callout p { margin: 0; }

/* Case studies */
.case { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case + .case { margin-top: 1.5rem; }
.case-reverse .case-media { order: 2; }
.case-media { margin: 0; background: var(--bg-alt); }
.case-media img { width: 100%; height: 340px; object-fit: cover; }
.case-text { padding: clamp(1.5rem, 4vw, 2.75rem); }
.case-tag { margin: 0 0 .5rem; font-size: .8rem; font-weight: 600; color: var(--accent); }
.case-text h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.case-text > p { color: var(--muted); }
.case-facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; font-size: .92rem; }
.case-facts li { display: grid; grid-template-columns: 70px 1fr; border-top: 1px solid var(--line); padding-top: .5rem; }
.case-facts span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding-top: .1rem; }

/* USPs */
.usps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.usps li { display: grid; gap: .25rem; border-top: 2px solid var(--accent); padding-top: 1rem; }
.usps strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.usps span { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; padding: 0; text-align: left; font: inherit; color: inherit; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: .9rem 1.1rem 1.1rem; }
.card-body h3 { font-size: 1.2rem; margin: 0 0 .15rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media { margin: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.features { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.features li { display: grid; border-left: 2px solid var(--accent); padding-left: 1rem; }
.features span { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; margin-bottom: 1rem; }

/* Call band (end of every page) */
.call-band { background: var(--dark); color: #efe7dc; }
.call-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding-block: clamp(2.5rem, 6vw, 4rem); }
.call-band h2 { margin-bottom: .3rem; }
.call-band p { margin: 0; color: #cbbfb2; max-width: 34rem; }
.call-band-action { display: grid; gap: .3rem; }
.call-band-action span { color: #a8998b; font-size: .88rem; }
.phone-big { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 600; line-height: 1; text-decoration: none; color: #fff; }
.phone-big:hover { color: #d9b48f; }

/* Contact page */
.contact-hero { text-align: left; }
.phone-hero { display: inline-block; margin-top: 1rem; font-family: var(--serif); font-size: clamp(2.8rem, 9vw, 5rem); font-weight: 600; line-height: 1; color: var(--accent); text-decoration: none; }
.phone-hero:hover { color: var(--accent-dark); }
.phone-hint { color: var(--muted); font-size: .9rem; margin: .75rem 0 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h2 { font-size: 1.4rem; }
.contact-card p { margin: 0 0 .5rem; overflow-wrap: anywhere; }
.muted { color: var(--muted); }

/* Footer */
.site-footer { background: #1a1512; color: #a8998b; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.15fr .9fr 1fr; gap: 2rem; padding-block: 2.5rem 1.5rem; }
.footer-grid ul + .footer-head { margin-top: 1.4rem; }
.footer-grid p { margin: 0 0 .5rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-grid a { text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover { color: #efe7dc; }
.footer-name { font-family: var(--serif); font-size: 1.35rem; color: #efe7dc; }
.footer-head { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; color: #d9b48f; }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1rem; }
.footer-base p { margin: 0; }

/* Mobile call button */
.call-fab { display: none; }

.prose { max-width: 44rem; }
.prose p { margin: 0 0 1rem; }
.prose a, .related a { color: var(--accent-dark); }
.related { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.related a { font-weight: 600; }
.faqs { display: grid; gap: .75rem; max-width: 44rem; }
.faqs details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.faqs summary { font-weight: 600; cursor: pointer; }
.faqs p { margin: .65rem 0 0; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,12,10,.92); display: grid; place-items: center; align-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; width: auto; border-radius: var(--radius); }
.lightbox-caption { color: #efe7dc; text-align: center; margin: .75rem 0 0; }
.lightbox-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

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

/* Responsive */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .topbar-inner span { display: none; }
  .topbar-inner { justify-content: center; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none; padding: .5rem 16px 1rem;
    max-height: calc(100vh - 68px); overflow-y: auto;
    box-shadow: 0 24px 32px -12px rgba(43, 36, 32, .35);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem 0; }
  .site-nav .btn { text-align: center; margin-top: .5rem; }
  .has-sub > a::after { content: ""; }
  .sub-nav { display: block; position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 .25rem; padding: 0 0 0 1rem; background: none; min-width: 0; }
  .sub-nav::before { content: none; }
  .sub-nav a { padding: .45rem 0; font-size: .92rem; }
  .hero-grid, .split, .case { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .case-reverse .case-media { order: 0; }
  .case-media img { height: 220px; }
  .split-media img { aspect-ratio: 4 / 3; }
  .usps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 4.5rem; }
  .call-fab {
    display: block; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
    padding: .85rem 1.4rem; border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
  }
}
@media (max-width: 600px) {
  .steps, .ticks { grid-template-columns: 1fr; }
}
