/* =========================================================================
   Sam's Drafting Board — frontend stylesheet
   Design tokens captured from the live WordPress/Elementor site so the
   rebuild matches the original look and feel.
   ========================================================================= */

@font-face {
  font-family: 'Julietta Messie Demo';
  src: url('/assets/fonts/Julietta-Messie-Demo.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('/assets/fonts/Mark-Simonson-Proxima-Nova-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('/assets/fonts/Mark-Simonson-Proxima-Nova-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova Alt';
  src: url('/assets/fonts/Mark-Simonson-Proxima-Nova-Alt-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova Alt';
  src: url('/assets/fonts/Mark-Simonson-Proxima-Nova-Alt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #1D1D1D;
  --color-secondary: #000000;
  --color-text: #000000;
  --color-accent: #ACC88A;
  --color-accent-dark: #8FB569;
  --color-muted: #000000;
  --color-cream: #FFF6EB;
  --color-peach: #FFBC7D;
  --color-pale-yellow: #F7F0AE;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-border: #E6E1D8;

  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  --font-heading: 'Proxima Nova Alt', 'Proxima Nova', 'Open Sans', -apple-system, sans-serif;
  --font-heading-alt: 'Proxima Nova', 'Open Sans', -apple-system, sans-serif;
  --font-script: 'Julietta Messie Demo', 'Brush Script MT', cursive;

  --container-max: 1140px;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-card: 0 4px 18px rgba(29, 29, 29, 0.08);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.027rem, 1.4rem + 2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.9rem); }
h3 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2.2rem); }
h4 { font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.7rem); }

p { margin: 0 0 1em; color: var(--color-secondary); }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

section { padding-block: 72px; }
@media (max-width: 767px) { section { padding-block: 44px; } }

/* Homepage sections are each a full viewport tall, content vertically
   centered within — min-height (not height) so nothing gets clipped if a
   section's content ever exceeds 100vh. */
.home-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}
/* Eyebrow title — reusable script+heading treatment for section/page labels.
   Build markup with the eyebrow_title() helper (app/helpers/functions.php)
   rather than hand-styling each one; see it in use on the homepage "About
   SDB" section. */
.eyebrow-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em;
  text-align: left;
  margin-bottom: 10px;
  line-height: 1;
}
.eyebrow-title.is-center { justify-content: center; text-align: center; }
.eyebrow-title-script {
  font-family: var(--font-script);
  font-weight: normal;
  font-size: clamp(2.375rem, 1.875rem + 1.75vw, 3.25rem);
  color: var(--color-accent-dark);
}
.eyebrow-title-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.875rem, 1.5rem + 1.25vw, 2.5rem);
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.bg-cream { background: var(--color-cream); }
.bg-accent { background: var(--color-accent); }

/* Our Clients — logo grid, wraps and centers the trailing row */
.client-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.client-logo-tile {
  width: 170px;
  height: 170px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.client-logo-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 700px) {
  .client-logo-tile { width: 130px; height: 130px; padding: 14px; }
}

/* Our Workshop — full-bleed dark banner section (reuses the .intro-divider
   curved-line + dot shape from .intro-split / .services-split) */
.workshop-banner {
  position: relative;
  overflow: hidden;
  align-items: center;
  background-color: var(--color-black);
  background-image: linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.42)), url('/assets/images/workshopbanner.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}
/* Wrapper shares one coordinate space (viewBox 0 0 140 900) between the
   curve and the dot, so the dot's left% can be computed to sit exactly on
   the curve's point at vertical center (t≈0.5277 on the quadratic below,
   x≈61.8/140) instead of drifting apart if positioned independently. */
.workshop-divider-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34%;
  width: 140px;
  height: 100%;
  pointer-events: none;
}
.workshop-divider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.workshop-divider-dot {
  position: absolute;
  top: 50%;
  left: 44.1%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
}
@media (max-width: 900px) {
  .workshop-divider-wrap { display: none; }
}
.workshop-banner-inner { max-width: 640px; margin-inline: auto; position: relative; }
.workshop-banner .eyebrow-title-script { color: var(--color-white); }
.workshop-banner .eyebrow-title-heading { color: var(--color-pale-yellow); text-decoration-color: var(--color-pale-yellow); }
.workshop-banner p {
  color: var(--color-white);
  font-size: 1rem;
  margin: 0 0 28px;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: var(--font-heading-alt);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}
.btn:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.btn-outline-white { background: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn-outline-white:hover { background: var(--color-white); color: var(--color-primary); border-color: var(--color-white); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-accent);
  border-bottom: 3px solid var(--color-primary);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 52px; width: auto; }
.site-logo .site-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--color-white); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.main-nav ul li { display: flex; align-items: center; }
.main-nav ul li + li { border-left: 1px solid rgba(255, 255, 255, 0.5); }
.main-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  font-family: var(--font-heading-alt);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-white);
  transition: opacity var(--transition);
}
.main-nav a:hover, .main-nav a.active { opacity: 0.75; }
.has-dropdown > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}

.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 8px;
  display: none;
  flex-direction: column;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu { display: flex; }
.dropdown-menu a { padding: 10px 12px; color: var(--color-primary); }
.dropdown-menu a:hover { background: var(--color-cream); opacity: 1; }

.nav-cta { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--color-white); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--color-accent);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    transform: translateY(-110%);
    transition: transform var(--transition);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav ul li { display: block; }
  .main-nav ul li + li { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.35); }
  .dropdown-menu { position: static; box-shadow: none; display: none; border: none; padding-left: 12px; background: transparent; }
  .dropdown-menu a { color: var(--color-white); }
  .has-dropdown.is-open .dropdown-menu { display: flex; }
}

/* Video hero slider ---------------------------------------------------------
   Homepage hero replicating the original site's Revolution Slider setup:
   each slide is a muted, looping YouTube video playing as a BACKGROUND —
   no player controls, no YouTube chrome, not interactive (matches the
   original's noInteract/controls:"none"/mute/loop config). The iframe is
   oversized well past the stage on every side so YouTube's title bar and
   watermark are cropped out of view, and pointer-events:none prevents any
   hover from re-summoning the UI. Manual navigation only (arrows/dots);
   only the active slide's iframe exists in the DOM at a time. --------- */
.video-hero {
  position: relative;
  background: var(--color-primary);
  overflow: hidden;
  padding: 0; /* cancel global section padding — slider sits flush under the header */
}
.video-hero-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 420px;
  background: #000 center / cover no-repeat; /* per-slide poster set by JS */
  overflow: hidden;
}
/* Cover-crop sizing: fill the stage at 16:9 whichever dimension dominates,
   then zoom a further 30% so the top/bottom strips where YouTube draws its
   title/watermark always land outside the visible area. */
.video-hero-stage iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 160vh); /* 90vh stage * 16/9 */
  height: max(56.25vw, 90vh);
  transform: translate(-50%, -50%) scale(1.3);
  border: 0;
  pointer-events: none; /* background only — no play/pause/UI interaction */
}
/* Vertical scan-line overlay — emulates the classic-TV texture the original
   site applied via its slider's line-pattern overlay. Sits above the video,
   below captions/arrows; purely decorative. */
.video-hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    to right,
    rgba(0, 0, 0, 0.4) 0px,
    rgba(0, 0, 0, 0.4) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}
.video-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 90px 32px 32px;
  background: linear-gradient(180deg, rgba(29, 29, 29, 0) 0%, rgba(29, 29, 29, 0.65) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.video-hero-caption {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.1rem + 1.2vw, 2.2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.video-hero-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--color-white);
  font-family: var(--font-heading-alt);
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
  transition: background var(--transition), border-color var(--transition);
}
.video-hero-watch:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-primary); }
.video-hero-watch svg { width: 15px; height: 15px; fill: currentColor; }
.video-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(29, 29, 29, 0.55);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.video-hero-arrow:hover { background: var(--color-accent); }
.video-hero-arrow svg { width: 20px; height: 20px; fill: currentColor; }
.video-hero-arrow.prev { left: 18px; }
.video-hero-arrow.next { right: 18px; }

.video-hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--color-primary);
}
.video-hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.video-hero-dots button:hover { background: rgba(255, 255, 255, 0.6); }
.video-hero-dots button.active { background: var(--color-accent); transform: scale(1.2); }

@media (max-width: 700px) {
  .video-hero-stage { height: 60vh; min-height: 320px; }
  .video-hero-stage iframe {
    width: max(100vw, 106.67vh); /* 60vh stage * 16/9 */
    height: max(56.25vw, 60vh);
  }
  .video-hero-arrow { width: 38px; height: 38px; }
  .video-hero-overlay { padding: 60px 18px 20px; }
}

/* Founder intro split section (under the hero slider) ------------------------
   Recreates the original site's green intro block: tilted polaroid portrait
   on the left, curved white divider with a centre dot, and the script/bold
   headline stack on the right. Copy is verbatim from the original site. */
.intro-split {
  background: var(--color-accent);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.intro-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 60px 20px;
  min-height: 100vh; /* full-viewport section; min- so content can't overflow on short screens */
  position: relative;
}
.intro-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 140px;
  pointer-events: none;
}
/* Dot drawn in CSS (not inside the stretched SVG) so it stays a true
   circle at any section height; positioned on the curve's midpoint. */
.intro-divider-dot {
  position: absolute;
  top: 50%;
  left: calc(50% - 5px);
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-white);
  pointer-events: none;
}
@media (max-width: 900px) {
  .intro-divider-dot { display: none; }
}
.intro-photo {
  justify-self: center;
  position: relative;
}
.intro-photo img {
  /* 25% taller than the previous 340px-wide render (~421px tall → ~526px);
     width follows the photo's aspect ratio automatically. */
  display: block;
  height: 526px;
  max-height: 80vh; /* never taller than the viewport section it sits in */
  width: auto;
}

.intro-text { text-align: center; }
.intro-text .script {
  font-family: var(--font-script);
  color: var(--color-white);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  line-height: 1.35;
  margin: 0 0 10px;
  font-weight: normal;
}
.intro-text .strong {
  font-family: var(--font-heading-alt);
  font-weight: 700;
  color: var(--color-primary);
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 22px;
}
.intro-text p.lead {
  color: var(--color-primary);
  max-width: 480px;
  margin: 0 auto 26px;
}
.btn-dark { background: #000; border-color: #000; color: var(--color-white); }
.btn-dark:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }

@media (max-width: 900px) {
  .intro-split-inner { grid-template-columns: 1fr; padding: 60px 20px; gap: 56px; min-height: 0; }
  .intro-divider { display: none; }
  .intro-photo img { height: auto; width: 100%; max-width: 280px; }
}

/* Services split section — green block with the curved divider (reuses
   .intro-divider / .intro-divider-dot) and a stack of tilted service photos
   paired with script-font headings on the right. */
.services-split {
  background: var(--color-accent);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.services-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 90px 20px;
  min-height: 100vh;
  position: relative;
}
.services-intro { justify-self: start; }
.services-intro .eyebrow-title-script { color: var(--color-pale-yellow); }
.services-tagline {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.3125rem;
  margin: 0;
}
.services-split .intro-divider { left: 36%; }
.services-split .intro-divider-dot { left: calc(36% - 5px); }
.services-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.service-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 30px;
}
.service-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.service-name {
  font-family: var(--font-script);
  font-weight: normal;
  color: var(--color-pale-yellow);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  margin: 0 0 8px;
}
.service-copy p { color: rgba(29, 29, 29, 0.85); margin: 0; }

@media (max-width: 900px) {
  .services-split-inner { grid-template-columns: 1fr; padding: 60px 20px; gap: 48px; }
  .services-split .intro-divider,
  .services-split .intro-divider-dot { display: none; }
  .service-row { grid-template-columns: 154px 1fr; gap: 20px; }
}

/* Script/accent headline treatment — matches the original site's "Julietta
   Messie Demo" display font used on the homepage hero tagline. */
.script-heading {
  font-family: var(--font-script);
  font-weight: normal;
  line-height: 1.2;
  color: var(--color-accent);
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 4rem);
  margin: 0 0 0.2em;
}
.hero .script-heading { color: var(--color-accent); }

/* Long sentence-length headings need a smaller cap than the default
   clamp (tuned for short taglines) to stay legible in a script face. */
.script-heading.is-sentence { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }

.page-hero {
  background: var(--color-cream);
  color: var(--color-primary);
  padding-block: 90px;
  text-align: center;
}
.page-hero .hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}
.page-hero .hero-title .script {
  font-family: var(--font-script);
  font-weight: normal;
  color: var(--color-accent);
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem);
  line-height: 1;
}
.page-hero .hero-title .emphasis {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
  font-size: clamp(2.2rem, 1.7rem + 2vw, 3.4rem);
  line-height: 1;
  margin: 0;
}
.page-hero p.hero-subtitle { color: var(--color-secondary); margin: 16px 0 0; }

/* Project page hero — the project's own featured image as a full-bleed
   photo banner (per-project image passed via the --hero-image custom
   property, since it's dynamic unlike the static workshop/founder banners). */
.project-hero {
  position: relative;
  padding-block: 90px;
  text-align: center;
  background-color: var(--color-black);
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.project-hero .breadcrumb { color: rgba(255,255,255,0.8); }
.project-hero .breadcrumb a { color: rgba(255,255,255,0.8); }
.project-hero .breadcrumb a:hover { color: var(--color-accent); }
.project-hero .hero-title {
  color: var(--color-white);
  margin: 0;
}
.project-hero p.hero-subtitle { color: rgba(255,255,255,0.85); margin: 16px 0 0; }

/* Responsive 16:9 YouTube embed for the project video field */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; margin-top: 40px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Cards / grids -------------------------------------------------------------*/
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Blog listing cards — horizontal image-left tile on the sage-green
   section background, matching the "Read More" card style used elsewhere. */
.blog-grid { gap: 30px; }
.blog-card {
  display: flex;
  gap: 20px;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(29,29,29,0.14); }
.blog-card-image {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.blog-card-body h4 { margin-bottom: 10px; }
.blog-card-body h4 a { color: var(--color-primary); }
.blog-card-body h4 a:hover { color: var(--color-accent-dark); }
.blog-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin: 0 0 16px;
}
.blog-card-author svg { width: 14px; height: 14px; fill: var(--color-secondary); flex-shrink: 0; }
.blog-card-body .btn { align-self: flex-start; }
@media (max-width: 560px) {
  .blog-card { flex-direction: column; }
  .blog-card-image { width: 100%; height: 180px; }
}

.service-card, .card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover, .card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(29,29,29,0.14); }
.service-card img, .card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.service-card .card-body, .card .card-body { padding: 22px; }
.card-body h3, .card-body h4 { margin-bottom: 8px; }
.card-meta { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--color-accent);
  color: var(--color-primary);
  margin-bottom: 10px;
}
.card-tag.ongoing { background: var(--color-peach); }

/* Canvas grid — full-bleed image tiles with title/location/View overlay,
   used for the homepage "Our Canvas" completed-projects grid. */
.canvas-grid { gap: 5px; padding: 5px; }
.canvas-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.canvas-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}
.canvas-card:hover img { transform: rotate(-3deg) scale(1.1); }
.canvas-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 75%);
}
.canvas-card-title {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1rem;
}
.canvas-card-location {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.canvas-card-btn {
  display: inline-flex;
  padding: 7px 20px;
  border: 2px solid var(--color-white);
  border-radius: var(--radius);
  color: var(--color-white);
  font-family: var(--font-heading-alt);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Testimonials — single-slide carousel with quote marks framing the card,
   centered avatar/quote/name, and prev/next + dot navigation (JS in
   main.js). */
.testimonial-carousel {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 64px 0;
}
.testimonial-quote-mark {
  position: absolute;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--color-peach);
  pointer-events: none;
}
.testimonial-quote-mark.open { top: 0; left: 40px; }
.testimonial-quote-mark.close { bottom: 40px; right: 40px; }
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.testimonial-arrow svg { width: 100%; height: 100%; fill: currentColor; }
.testimonial-arrow:hover { color: var(--color-primary); }
.testimonial-arrow.prev { left: 0; }
.testimonial-arrow.next { right: 0; }
.testimonial-slide { display: none; text-align: center; }
.testimonial-slide.active { display: block; animation: testimonial-fade 0.4s ease; }
@keyframes testimonial-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.testimonial-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-card);
}
.testimonial-quote {
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.8;
  white-space: pre-line;
  margin: 0 0 28px;
}
.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
}
.testimonial-role {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-top: 4px;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.testimonial-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color-border);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.testimonial-dots button.active { background: var(--color-primary); transform: scale(1.2); }

@media (max-width: 700px) {
  .testimonial-carousel { padding: 20px 40px 0; }
  .testimonial-quote-mark { font-size: 3.4rem; }
  .testimonial-quote-mark.open { left: 4px; }
  .testimonial-quote-mark.close { right: 4px; bottom: 30px; }
}

/* Gallery ------------------------------------------------------------------*/
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); cursor: zoom-in; }

/* Full-bleed gallery variant (no container max-width) for project pages,
   matching the old site's edge-to-edge project gallery. */
.gallery-grid-full { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid-full img { border-radius: 0; }
.gallery-grid-full.aspect-3-2 img { aspect-ratio: 3/2; }
@media (max-width: 900px) { .gallery-grid-full { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gallery-grid-full { grid-template-columns: 1fr; } }

/* Forms ---------------------------------------------------------------------*/
.form-panel {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--color-primary); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.form-note { font-size: 0.82rem; color: var(--color-muted); }
.form-error { color: #c0392b; font-size: 0.85rem; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #e9f7ef; color: #1e7e42; border: 1px solid #b7e4c7; }
.alert-error { background: #fdecea; color: #a3352a; border: 1px solid #f5c2be; }

/* CTA band ------------------------------------------------------------------*/
.cta-band {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 50px 30px;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255,255,255,0.75); }

/* Pre-footer CTA ------------------------------------------------------------ */
.precta {
  background: linear-gradient(120deg, var(--color-accent-dark), var(--color-accent) 60%, var(--color-accent-dark));
  padding-block: 40px;
}
.precta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.precta h2 { margin: 0; color: var(--color-primary); }
.precta p { margin: 6px 0 0; color: var(--color-primary); opacity: 0.8; }
.precta-btn { background: var(--color-cream); border-color: var(--color-cream); color: var(--color-primary); flex-shrink: 0; }
.precta-btn:hover { background: var(--color-white); border-color: var(--color-white); }

/* Enquiry form section ------------------------------------------------------ */
.enquiry-section { background: var(--color-cream); padding-block: 70px; }
.form-panel-compact { max-width: 900px; margin: 0 auto; background: transparent; padding: 0; }
.form-grid-compact { grid-template-columns: repeat(3, 1fr); }
.form-grid-compact .form-group.full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid-compact { grid-template-columns: 1fr; } }
.form-panel-compact .form-group input,
.form-panel-compact .form-group select {
  background: var(--color-white);
  border: none;
  box-shadow: 0 1px 3px rgba(29,29,29,0.08);
}
.form-panel-compact .btn { min-width: 160px; }
.back-to-top {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  color: var(--color-accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
}
.back-to-top-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--color-accent-dark);
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.back-to-top-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top:hover .back-to-top-icon { background: var(--color-accent-dark); color: var(--color-white); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--color-white); color: var(--color-secondary); padding-block: 20px; border-top: 1px solid #eee; }
.footer-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}
.footer-email svg { width: 18px; height: 18px; fill: var(--color-secondary); }
.footer-email a { color: var(--color-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--color-secondary); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--color-accent-dark); }
.footer-legal { display: flex; gap: 16px; }
.footer-social { display: flex; align-items: center; gap: 12px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: var(--color-secondary);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.social-icons a:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-primary); }
.social-icons svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 700px) { .footer-bottom { justify-content: center; text-align: center; } }

/* WhatsApp floating button ------------------------------------------------ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* Utility ------------------------------------------------------------------*/
/* A name/short phrase that must never break across lines — main.js shrinks
   its font-size to fit instead of letting it wrap. */
.fit-nowrap { display: inline-block; white-space: nowrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.pill-published { background: #e9f7ef; color: #1e7e42; }
.pill-draft { background: #f4f4f4; color: #777; }

.breadcrumb { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--color-accent-dark); }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-primary);
}
.pagination a:hover { background: var(--color-cream); }
.pagination .active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.bg-accent .pagination a, .bg-accent .pagination span { background: var(--color-cream); border-color: var(--color-cream); }
.bg-accent .pagination .active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }

.quote-block {
  border-left: 4px solid var(--color-accent);
  padding-left: 20px;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-primary);
  margin: 30px 0;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.two-col.align-start { align-items: start; }
.two-col.ratio-60-40 { grid-template-columns: 3fr 2fr; }
.two-col.ratio-40-60 { grid-template-columns: 2fr 3fr; }
@media (max-width: 800px) {
  .two-col,
  .two-col.ratio-60-40,
  .two-col.ratio-40-60 { grid-template-columns: 1fr; }
}

/* Chevron bullet list — used for the founder page's résumé-style lists */
.chevron-list { list-style: none; margin: 0 0 1.4em; padding: 0; color: var(--color-secondary); }
.chevron-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.chevron-list li::before {
  content: '\276F';
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--color-accent-dark);
  font-size: 0.85em;
}

/* Founder page — dark photo banner for "Creative Pursuits" / "Personal
   Motivation" (reuses the workshop-banner overlay treatment, different
   source image). */
.founder-banner {
  position: relative;
  padding-block: 90px;
  background-color: var(--color-black);
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/images/founder/abourt-me-banner.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.founder-banner-inner { max-width: 700px; }
.founder-banner h3, .founder-banner p { color: var(--color-white); }
.founder-banner h3 { margin-top: 1.2em; }
.founder-banner h3:first-child { margin-top: 0; }

/* About page gallery — 2-col grid of studio photos with a hover overlay,
   click opens the shared [data-lightbox] viewer (see main.js). */
.about-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}
.about-gallery img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  display: block;
  cursor: zoom-in;
  transition: transform var(--transition);
}
.about-gallery a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29,29,29,0.25);
  opacity: 0;
  transition: opacity var(--transition);
}
.about-gallery a:hover img { transform: scale(1.05); }
.about-gallery a:hover::after { opacity: 1; }
@media (max-width: 600px) { .about-gallery { grid-template-columns: 1fr 1fr; gap: 6px; } }

/* Blog post — featured image + prose share one section so there's no
   double section padding-block gap between them. */
.blog-post-featured {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 36px;
}

.prose {
  color: var(--color-secondary);
  text-align: justify;
  overflow-wrap: break-word;
  word-break: break-word;
}
.prose h2, .prose h3 { margin-top: 1.4em; text-align: left; }
.prose img { border-radius: var(--radius-lg); margin: 20px 0; }
.prose ul, .prose ol { color: var(--color-secondary); padding-left: 22px; text-align: left; }
.prose p { margin: 0 0 1em; }

.lazy-fade { opacity: 0; transition: opacity 0.5s ease; }
.lazy-fade.loaded { opacity: 1; }
