/* =========================================================================
   Jake Stanley Plastering — site stylesheet
   Aesthetic: editorial craft. Warm plaster cream, lime + terracotta accents,
   variable Fraunces display, DM Sans body. Asymmetric magazine layouts.
   ========================================================================= */

:root {
  /* Palette */
  --plaster: #EFE7D5;          /* warm off-white background, like fresh lime plaster */
  --plaster-deep: #E4D9C0;     /* slightly darker plaster */
  --cream: #F7F1E1;            /* lightest cream */
  --ink: #16140F;              /* near-black, warm */
  --ink-soft: #2B2620;
  --ink-mute: #5C544A;
  --lime: #C7D834;             /* signature lime green */
  --lime-deep: #A6B520;
  --terracotta: #D54A28;       /* orangy red from logo */
  --terracotta-deep: #B53814;
  --line: rgba(22, 20, 15, 0.16);
  --line-strong: rgba(22, 20, 15, 0.6);

  /* Type scale */
  --display: "Fraunces", ui-serif, Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;

  /* Layout */
  --max: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
}

/* =========================================================================
   Reset & base
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* keeps anchor targets clear of sticky header */
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--plaster);
  background-image:
    radial-gradient(ellipse at 12% 8%, rgba(199, 216, 52, 0.18), transparent 55%),
    radial-gradient(ellipse at 92% 4%, rgba(213, 74, 40, 0.10), transparent 50%),
    radial-gradient(ellipse at 50% 110%, rgba(22, 20, 15, 0.08), transparent 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(213, 74, 40, 0.18);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh; /* mobile-aware viewport height */
}

/* Touch targets — min 44x44 for buttons/links on mobile */
a, button, input, textarea, select, label {
  touch-action: manipulation; /* removes 300ms tap delay on iOS */
}

/* Subtle plaster grain overlay across the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.18;
  mix-blend-mode: multiply;
}

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--lime); color: var(--ink); }

/* Visible keyboard focus across the whole site */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--cream);
  z-index: 100;
  border-radius: 6px;
  font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =========================================================================
   Typography helpers
   ========================================================================= */

.section-title {
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.title-italic {
  font-style: italic;
  font-weight: 320;
  color: var(--ink-soft);
}

.section-tag {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-mute);
  margin: 0 0 1.25rem;
}
.section-tag.light { color: rgba(247, 241, 225, 0.7); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow:hover { gap: 0.9rem; color: var(--terracotta); }

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg { padding: 1.15rem 2rem; font-size: 1rem; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--lime); border-color: var(--lime); }

.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 241, 225, 0.55);
}
.btn-ghost-light:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  padding: 0.85rem 1.4rem;
}
.btn-line:hover { background: var(--ink); color: var(--cream); }

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem var(--gutter);
  background: rgba(239, 231, 213, 0.85);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.brand-trade {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.primary-nav ul {
  display: flex;
  gap: 2rem;
  justify-content: center;
}
.primary-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
  color: var(--ink);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.primary-nav a[aria-current="page"] { color: var(--terracotta); }

/* Mobile-only "Call us" link inside the open menu — hidden on desktop */
.primary-nav .mobile-call-cta { display: none; }

.header-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  transition: background 0.2s ease, color 0.2s ease;
}
.header-cta:hover { background: var(--terracotta); border-color: var(--terracotta); }
.header-cta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.header-cta-number {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
}
/* Each bar anchored to centre — guarantees a clean X on toggle */
.menu-toggle span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.menu-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.menu-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(0); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* =========================================================================
   Layout containers
   ========================================================================= */

main {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  position: relative;
}

/* =========================================================================
   Hero (home)
   ========================================================================= */

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  min-height: 86vh;
}

.hero-grid { max-width: 38rem; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  margin-bottom: 1.8rem;
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(199, 216, 52, 0.3);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(199, 216, 52, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(199, 216, 52, 0); }
}

.hero-title {
  font-family: var(--display);
  font-weight: 360;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 1.6rem;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.hero-title em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 320;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.hero-accent {
  position: relative;
  display: inline-block;
  z-index: 0;
  padding: 0 0.15em;
}
.hero-accent::before {
  content: "";
  position: absolute;
  inset: 18% -6% 8% -6%;
  background: var(--lime);
  z-index: -1;
  transform: skewX(-6deg);
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  max-width: 32rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  max-width: 36rem;
}
.hero-meta li { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-meta strong {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero-meta span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

/* Hero figure — illustrated trowel/skim composition */
.hero-figure {
  margin: 0;
  position: relative;
  align-self: stretch;
}
.hero-canvas {
  position: relative;
  height: 100%;
  min-height: 460px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #2B2620 0%, #16140F 60%, #0E0C08 100%);
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(22, 20, 15, 0.5),
    inset 0 0 0 1px rgba(247, 241, 225, 0.06);
}
.hero-canvas::before {
  /* plaster texture inside the canvas */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(247, 241, 225, 0.08), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(213, 74, 40, 0.18), transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}
.hero-trowel {
  position: absolute;
  width: 70%;
  aspect-ratio: 2.4 / 1;
  top: 38%;
  left: 14%;
  background: linear-gradient(135deg, #EDE6D6 0%, #C9BFA5 100%);
  border-radius: 4px;
  transform: rotate(-18deg);
  box-shadow:
    0 14px 40px rgba(0,0,0,0.4),
    inset 0 -2px 6px rgba(0,0,0,0.18);
}
.hero-trowel::after {
  /* handle */
  content: "";
  position: absolute;
  width: 32%;
  height: 36%;
  background: var(--terracotta);
  right: -12%;
  top: 32%;
  border-radius: 6px;
  transform: rotate(8deg);
  box-shadow: 0 8px 24px rgba(213, 74, 40, 0.5);
}
.hero-swipe {
  position: absolute;
  width: 110%;
  height: 24%;
  background: linear-gradient(90deg, transparent, rgba(247, 241, 225, 0.85), transparent);
  top: 26%;
  left: -5%;
  transform: rotate(-6deg);
  filter: blur(0.5px);
  animation: swipe 6s ease-in-out infinite;
}
.hero-swipe--two {
  top: 60%;
  height: 18%;
  background: linear-gradient(90deg, transparent, rgba(199, 216, 52, 0.6), transparent);
  animation-delay: 2s;
}
@keyframes swipe {
  0%, 100% { transform: rotate(-6deg) translateX(0); opacity: 0.9; }
  50% { transform: rotate(-6deg) translateX(8%); opacity: 0.6; }
}
.hero-spec {
  position: absolute;
  top: 1.6rem;
  left: 1.6rem;
  font-family: var(--display);
  color: var(--cream);
  font-size: 0.92rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.hero-tag {
  position: absolute;
  bottom: 1.6rem;
  right: 1.6rem;
  padding: 0.4rem 0.8rem;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* =========================================================================
   Ticker
   ========================================================================= */

.ticker {
  position: relative;
  margin: 0 calc(-1 * var(--gutter));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--plaster-deep);
  overflow: hidden;
  padding: 1.4rem 0;
  z-index: 2;
}
.ticker-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  width: max-content;
}
.ticker-track span {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.ticker-track span:nth-child(odd):not(:nth-child(2n)) {
  /* dots */
}
.ticker-track span:nth-child(2n) {
  color: var(--terracotta);
  font-style: normal;
  font-weight: 400;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================================
   About
   ========================================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.about-body { font-size: 1.08rem; color: var(--ink-soft); max-width: 32rem; }
.about-body p { margin-bottom: 1.2rem; }
.about-body em { color: var(--terracotta); font-style: italic; font-family: var(--display); }

/* =========================================================================
   Section heads
   ========================================================================= */

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
  max-width: 50rem;
}

/* =========================================================================
   Services preview (home)
   ========================================================================= */

.services-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.service-card {
  position: relative;
  padding: 2rem 1.6rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 18rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -16px rgba(22, 20, 15, 0.25);
  }
}
.service-card:nth-child(1) { grid-column: span 5; }
.service-card:nth-child(2) { grid-column: span 7; min-height: 20rem; }
.service-card:nth-child(3) { grid-column: span 4; }
.service-card:nth-child(4) { grid-column: span 4; }
.service-card:nth-child(5) { grid-column: span 4; }

.service-card--accent {
  background: var(--lime);
  border-color: var(--lime-deep);
}
.service-card--dark {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.service-card--dark .service-num { color: rgba(247, 241, 225, 0.4); }
.service-card--dark p { color: rgba(247, 241, 225, 0.7); }

.service-num {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.service-card h3 {
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "opsz" 96, "SOFT" 80;
}
.service-card p {
  margin: auto 0 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* =========================================================================
   Pull quote
   ========================================================================= */

.pull-quote {
  margin: 0 calc(-1 * var(--gutter));
  padding: clamp(5rem, 9vw, 8rem) var(--gutter);
  background: var(--terracotta);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.pull-quote::before,
.pull-quote::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.pull-quote::before {
  width: 30vw;
  height: 30vw;
  background: rgba(255, 255, 255, 0.06);
  top: -10vw;
  right: -8vw;
}
.pull-quote::after {
  width: 16vw;
  height: 16vw;
  background: var(--lime);
  bottom: -8vw;
  left: 4vw;
  mix-blend-mode: screen;
  opacity: 0.4;
}
.pull-quote blockquote {
  position: relative;
  margin: 0 auto;
  max-width: 64rem;
  text-align: center;
}
.pull-quote p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 320;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.pull-quote cite {
  font-style: normal;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.85;
}
.quote-mark {
  display: inline-block;
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.18em;
}

/* =========================================================================
   Why
   ========================================================================= */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
}
.why-grid li {
  padding: 2rem 1.4rem 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.why-grid li:last-child { border-right: 0; }
.why-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.why-grid h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
.why-grid p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* =========================================================================
   CTA block
   ========================================================================= */

.cta-block {
  margin: 0 calc(-1 * var(--gutter));
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(213, 74, 40, 0.25), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(199, 216, 52, 0.15), transparent 60%),
    var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-inner { max-width: 62rem; margin: 0 auto; text-align: center; }
.cta-title {
  font-family: var(--display);
  font-weight: 360;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.2rem;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.cta-lead {
  font-size: 1.15rem;
  color: rgba(247, 241, 225, 0.78);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
.cta-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================================================
   Page hero (services / contact)
   ========================================================================= */

.page-hero {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
  max-width: 64rem;
}
.page-title {
  font-family: var(--display);
  font-weight: 360;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 1.6rem;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.page-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 44rem;
  margin-bottom: 2rem;
}

/* =========================================================================
   Service index nav
   ========================================================================= */

.service-index {
  position: sticky;
  top: 76px;
  z-index: 4;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0.75rem var(--gutter);
  background: rgba(239, 231, 213, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-index ul {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.service-index a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--cream);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.service-index a span {
  font-family: var(--display);
  color: var(--terracotta);
  font-weight: 500;
}
.service-index a:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.service-index a:hover span { color: var(--lime); }

/* =========================================================================
   Service blocks (services page)
   ========================================================================= */

.service-block {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.service-block:last-of-type { border-bottom: 1px solid var(--line); }

.service-block-head {
  align-self: start;
  position: sticky;
  top: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-block-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: var(--terracotta);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.service-block-head h2 {
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.service-block-sub {
  font-size: 0.95rem;
  color: var(--ink-mute);
  margin-top: 0.3rem;
}

.service-block-body { font-size: 1.04rem; color: var(--ink-soft); }
.service-block-body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 1.6rem 0 0.6rem;
  color: var(--ink);
}
.service-bullets li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  border-bottom: 1px dashed var(--line);
  position: relative;
  font-size: 0.98rem;
}
.service-bullets li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--terracotta);
}
.service-bullets.numbered { counter-reset: step; }
.service-bullets.numbered li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-style: italic;
  color: var(--terracotta);
}

.service-aside {
  align-self: start;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--line);
  position: sticky;
  top: 160px;
}
.aside-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin: 0 0 0.6rem;
}
.aside-value {
  font-family: var(--display);
  font-weight: 380;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.aside-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}

.service-block--alt { background: rgba(247, 241, 225, 0.5); margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.service-block--feature {
  background: var(--ink);
  color: var(--cream);
  margin: 0 calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  border-color: var(--ink);
}
.service-block--feature .service-block-num { color: var(--lime); }
.service-block--feature .service-block-head h2 { color: var(--cream); }
.service-block--feature .service-block-sub { color: rgba(247, 241, 225, 0.7); }
.service-block--feature .service-block-body { color: rgba(247, 241, 225, 0.85); }
.service-block--feature .service-block-body h3 { color: var(--lime); }
.service-block--feature .service-bullets li { border-color: rgba(247, 241, 225, 0.18); }
.service-block--feature .service-bullets li::before { color: var(--lime); }
.service-block--feature .service-aside {
  background: rgba(247, 241, 225, 0.06);
  border-color: rgba(247, 241, 225, 0.18);
  color: var(--cream);
}
.service-block--feature .aside-tag { color: rgba(247, 241, 225, 0.6); }
.service-block--feature .aside-note { color: rgba(247, 241, 225, 0.7); }

/* =========================================================================
   Process
   ========================================================================= */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.process-steps li {
  padding: 2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
@media (hover: hover) {
  .process-steps li:hover {
    background: var(--ink);
    color: var(--cream);
    transform: translateY(-4px);
  }
  .process-steps li:hover .step-num { color: var(--lime); }
  .process-steps li:hover p { color: rgba(247, 241, 225, 0.7); }
}
.step-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.4rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 1rem;
}
.process-steps h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  font-weight: 500;
}
.process-steps p { font-size: 0.95rem; margin: 0; color: var(--ink-soft); }

/* =========================================================================
   Contact page
   ========================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}
.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 1.8rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--cream);
  min-height: 16rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  text-decoration: none;
  color: var(--ink);
}
@media (hover: hover) {
  .contact-card:hover {
    transform: translateY(-4px);
    background: var(--ink);
    color: var(--cream);
  }
}
.contact-card--accent { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); }
@media (hover: hover) {
  .contact-card--accent:hover { background: var(--ink); border-color: var(--ink); }
}
.contact-card--info { background: var(--lime); border-color: var(--lime-deep); cursor: default; }
.contact-card--info:hover { transform: none; background: var(--lime); color: var(--ink); }

.contact-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.contact-value {
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.contact-value--email { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.contact-value--area { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.05; }

.contact-foot {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* =========================================================================
   Form
   ========================================================================= */

.form-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.form-intro p { color: var(--ink-soft); }
.form-tips {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
}
.form-tips li::first-letter { color: var(--terracotta); font-size: 1.1em; }

.quote-form {
  background: var(--cream);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.form-row { display: flex; flex-direction: column; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.label-text {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}
input, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: max(16px, 1rem); /* 16px+ prevents iOS Safari from zooming the page on focus */
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--plaster);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(213, 74, 40, 0.18);
}
textarea { resize: vertical; min-height: 120px; }

.form-row--checks {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.form-row--checks legend { padding: 0; }
.form-row--checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.form-row--checks legend { grid-column: 1 / -1; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--plaster);
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  width: fit-content;
}
.check:hover { border-color: var(--ink); }
.check input {
  width: auto;
  margin: 0;
  accent-color: var(--terracotta);
}
.check input:checked + span {
  color: var(--terracotta);
  font-weight: 500;
}
@media (min-width: 540px) {
  .form-row--checks {
    grid-template-columns: 1fr 1fr;
  }
}

.form-row--submit {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.form-foot {
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin: 0;
  max-width: 22rem;
}

/* =========================================================================
   FAQ
   ========================================================================= */

.faq-list { display: flex; flex-direction: column; gap: 0.4rem; }
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.faq-list details:last-of-type { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0; /* larger tap target on mobile */
  min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.6rem;
  color: var(--terracotta);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p {
  margin: 0.6rem 0 0.4rem;
  color: var(--ink-soft);
  max-width: 60rem;
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: clamp(3.5rem, 6vw, 6rem) var(--gutter) 2rem;
  background: var(--ink);
  color: var(--cream);
  border-top: 4px solid var(--lime);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
}
.footer-brand .brand-mark {
  margin-bottom: 1rem;
  background: var(--cream);
}
.footer-name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.footer-tagline { font-size: 0.95rem; color: rgba(247, 241, 225, 0.65); max-width: 22rem; margin: 0; }

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: rgba(247, 241, 225, 0.5);
  margin: 0 0 1rem;
}
.site-footer ul li {
  padding: 0.3rem 0;
  font-size: 0.96rem;
  color: rgba(247, 241, 225, 0.85);
}
.site-footer a:hover { color: var(--lime); }

.footer-base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 241, 225, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(247, 241, 225, 0.5);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.footer-base p { margin: 0; }
.footer-base a {
  color: rgba(247, 241, 225, 0.75);
  border-bottom: 1px solid rgba(247, 241, 225, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-base a:hover { color: var(--lime); border-color: var(--lime); }

/* =========================================================================
   Reveal animation (handled in main.js)
   ========================================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-canvas { min-height: 360px; }
  .hero-meta { gap: 1.5rem; }

  .about-grid { grid-template-columns: 1fr; }

  .services-list { grid-template-columns: repeat(6, 1fr); }
  .service-card:nth-child(1) { grid-column: span 6; }
  .service-card:nth-child(2) { grid-column: span 6; }
  .service-card:nth-child(3) { grid-column: span 6; }
  .service-card:nth-child(4) { grid-column: span 3; }
  .service-card:nth-child(5) { grid-column: span 3; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid li:nth-child(2) { border-right: 0; }
  .why-grid li:nth-child(odd) { border-right: 1px solid var(--line); }

  .service-block { grid-template-columns: 1fr; }
  .service-block-head, .service-aside { position: static; }

  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-card--info { grid-column: 1 / -1; }
  .form-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.7rem var(--gutter);
  }
  .menu-toggle { justify-self: end; }
  .primary-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--plaster);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem var(--gutter) 1.75rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 12px 24px -12px rgba(22, 20, 15, 0.18);
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0.4rem;
  }
  .primary-nav a {
    font-size: 1.35rem;
    font-family: var(--display);
    padding: 0.7rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* Mobile menu shows a tap-to-call link below the page links */
  .primary-nav .mobile-call-cta {
    display: flex;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    gap: 0.5rem;
    align-items: baseline;
    color: var(--terracotta);
    font-family: var(--display);
    font-size: 1.1rem;
  }

  /* Header CTA hidden on mobile — call link lives in the menu instead */
  .header-cta { display: none; }
  .menu-toggle { display: inline-block; width: 44px; height: 44px; }

  .brand-trade { display: none; }
  .brand-name { font-size: 1.05rem; }

  .hero-meta { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .hero-meta li:last-child { grid-column: 1 / -1; }
  .hero-canvas { min-height: 320px; }

  .services-list { grid-template-columns: 1fr; gap: 0.8rem; }
  .service-card,
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: span 1; min-height: 14rem; }

  .why-grid { grid-template-columns: 1fr; }
  .why-grid li { border-right: 0 !important; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
  .why-grid li:last-child { border-bottom: 0; }

  .process-steps { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row--split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .service-index { top: 64px; padding: 0.6rem var(--gutter); overflow-x: auto; }
  .service-index ul { flex-wrap: nowrap; justify-content: flex-start; }
  .service-block-head { top: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
