/* ==========================================================================
   O.Morris Carpentry & Building Services
   Shared stylesheet - all pages link to this single file
   ========================================================================== */

:root {
  /* Colour tokens - sampled from the O.Morris logo, plus a supporting blue/white mix */
  --ink: #121a2f;          /* logo navy - primary brand colour */
  --ink-2: #1c2c4d;         /* lighter navy - panels, gradients */
  --ink-3: #24365e;         /* lighter still - hover states on navy */
  --white: #ffffff;
  --paper: #f6f8fb;         /* page background */
  --blue: #4d7ea8;          /* mid blue accent - the "nice mix of white and blue" */
  --blue-light: #eaf1f8;    /* pale blue tint for section backgrounds */
  --blue-dark: #35597a;     /* pressed / hover on blue */
  --grey: #5b6472;          /* muted body text on white */
  --grey-light: #8e97a6;    /* captions, meta text */
  --line: #e1e6ee;          /* hairline borders */
  --gold: #c9a75f;          /* star rating colour */

  --font-display: "Jost", sans-serif;
  --font-body: "Work Sans", sans-serif;

  --container: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--grey); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

/* -------------------- Signature device: tick rule --------------------
   Echoes the underline beneath the logo wordmark, redrawn as a builder's
   measuring line with tick marks. Used under headings and as dividers. */

.tick-rule {
  --tick-color: var(--blue);
  width: 96px;
  height: 10px;
  margin: 0 0 28px;
  background-image:
    linear-gradient(var(--tick-color), var(--tick-color)),
    repeating-linear-gradient(
      90deg,
      var(--tick-color) 0px, var(--tick-color) 1px,
      transparent 1px, transparent 12px
    );
  background-size: 100% 2px, 100% 8px;
  background-position: top left, bottom left;
  background-repeat: no-repeat, repeat-x;
}

.tick-rule.center { margin-left: auto; margin-right: auto; }
.tick-rule.on-dark { --tick-color: var(--white); opacity: 0.85; }
.tick-rule.wide { width: 160px; }

.tick-divider {
  width: 100%;
  height: 9px;
  background-image:
    linear-gradient(var(--line), var(--line)),
    repeating-linear-gradient(
      90deg,
      var(--line) 0px, var(--line) 1px,
      transparent 1px, transparent 28px
    );
  background-size: 100% 1px, 100% 8px;
  background-position: top left, bottom left;
  background-repeat: no-repeat, repeat-x;
  margin: 64px 0;
}

/* -------------------------------- Buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-outline-dark {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline-light {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-light:hover { background: var(--ink); color: var(--white); }

.btn-block { width: 100%; justify-content: center; }

/* --------------------------------- Header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ink);
  border: 1px solid var(--line);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.brand-text { font-size: 1rem; letter-spacing: 0.03em; line-height: 1.25; }
.brand-text strong { display: block; font-weight: 500; color: var(--ink); }
.brand-text span { font-size: 0.72rem; color: var(--blue); letter-spacing: 0.12em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.mobile-nav-cta { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.main-nav ul a {
  color: var(--grey);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav ul a:hover, .main-nav ul a.active { color: var(--ink); border-color: var(--blue); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone svg { flex-shrink: 0; color: var(--blue); }

.header-whatsapp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  color: var(--blue-dark);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.header-whatsapp:hover { background: var(--blue); color: var(--white); }

.nav-toggle {
  display: none;
  background: var(--blue-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--blue-dark);
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 19px; }
.nav-toggle::after { top: 24px; }
.nav-toggle.open { background: var(--blue); }
.nav-toggle.open span,
.nav-toggle.open::before,
.nav-toggle.open::after { background: var(--white); }
.nav-toggle.open::before { transform: translateX(-50%) translateY(5px) rotate(45deg); }
.nav-toggle.open::after { transform: translateX(-50%) translateY(-5px) rotate(-45deg); }
.nav-toggle.open span { opacity: 0; }

/* --------------------------------- Hero --------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  padding: 128px 0 84px;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 25s infinite;
}
.hero-bg-slide:nth-child(1) { background-image: url("/assets/images/hero-1.jpg"); animation-delay: 0s; }
.hero-bg-slide:nth-child(2) { background-image: url("/assets/images/hero-2.jpg"); animation-delay: 5s; }
.hero-bg-slide:nth-child(3) { background-image: url("/assets/images/hero-3.jpg"); animation-delay: 10s; }
.hero-bg-slide:nth-child(4) { background-image: url("/assets/images/hero-4.jpg"); animation-delay: 15s; }
.hero-bg-slide:nth-child(5) { background-image: url("/assets/images/hero-5.jpg"); animation-delay: 20s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  20%  { opacity: 1; }
  24%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(18,26,47,0.62) 0%, rgba(18,26,47,0.4) 38%, rgba(18,26,47,0.16) 65%, rgba(18,26,47,0.28) 100%),
    linear-gradient(180deg, rgba(18,26,47,0.22) 0%, rgba(18,26,47,0.02) 40%, rgba(18,26,47,0.3) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  z-index: 1;
}

.hero .container { position: relative; z-index: 2; }

.hero-content { max-width: 740px; }

.hero-content .eyebrow { color: var(--white); }

.hero-content .eyebrow,
.hero-content h1,
.hero-content p.lead {
  text-shadow: 0 2px 16px rgba(18,26,47,0.45);
}

.hero-content p.lead {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.88);
  max-width: 46ch;
}

.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.hero-stat { flex: 1 1 130px; }
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(18,26,47,0.5);
}
.hero-stat span { font-size: 0.82rem; color: rgba(255,255,255,0.7); text-shadow: 0 1px 10px rgba(18,26,47,0.5); white-space: nowrap; }

/* Ultra-wide screens: the fixed 1180px container starts to look stranded
   on the left against a full-bleed hero photo, so both the shared
   container and the hero text column scale up past 1440px. */
@media (min-width: 1440px) {
  :root { --container: 1320px; }
  .hero-content { max-width: 760px; }
}
@media (min-width: 1800px) {
  :root { --container: 1480px; }
  .hero-content { max-width: 840px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide { animation: none; opacity: 0; }
  .hero-bg-slide:first-child { opacity: 1; }
}

/* ------------------------------ Page header ------------------------------ */

.page-header {
  background: var(--blue-light);
  color: var(--ink);
  padding: 68px 0 58px;
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { color: var(--blue); }
.page-header p.lead { color: var(--grey); max-width: 60ch; }

/* -------------------------------- Sections -------------------------------- */

section { padding: 68px 0; }
.section-tight-top { padding-top: 32px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink p { color: rgba(255,255,255,0.7); }
.bg-blue-light { background: var(--blue-light); }

/* ------------------------------ Service grid ------------------------------ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(18,26,47,0.09);
  border-color: var(--blue);
}
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.service-card:hover .service-icon { background: var(--blue); color: var(--white); }
.service-card h3 { margin: 0 0 10px; font-size: 1.12rem; }
.service-card p { margin: 0 0 20px; font-size: 0.93rem; flex-grow: 1; }
.service-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link svg { transition: transform 0.2s ease; }
.service-card:hover .service-link svg { transform: translateX(3px); }

/* Closing wide card - fills the trailing row instead of leaving a gap */
.service-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 30px 36px;
}
.service-card-wide .service-icon { margin-bottom: 0; }
.service-card-wide .service-card-body { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.service-card-wide h3 { margin: 0 0 4px; }
.service-card-wide p { margin: 0; flex-grow: 0; }

/* ---------------------------- Category cards (3) ---------------------------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.category-card {
  background: var(--white);
  color: var(--ink);
  padding: 40px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
}
.category-card h3 { color: var(--ink); }
.category-card p { color: var(--grey); }
.category-card ul { margin: 20px 0 0; padding: 0; list-style: none; }
.category-card li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink);
}
.category-card li:first-child { border-top: none; }

/* --------------------------------- About --------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-figure {
  background: var(--ink);
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.about-figure img { width: 82%; }

.reasons-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.reasons-list li { display: flex; gap: 14px; }
.reasons-list .tick {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.reasons-list strong { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 3px; }
.reasons-list p { margin: 0; font-size: 0.94rem; }

/* ------------------------------- Testimonials ------------------------------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 14px; }
.testimonial-quote { font-size: 0.98rem; color: var(--ink); margin-bottom: 20px; }
.testimonial-meta { display: flex; justify-content: space-between; align-items: baseline; }
.testimonial-meta strong { font-family: var(--font-display); font-size: 0.92rem; }
.testimonial-meta span { font-size: 0.8rem; color: var(--grey-light); }
.testimonial-job { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); margin-bottom: 8px; display: block; }

.reviews-note {
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--grey);
}

/* -------------------------------- Case studies -------------------------------- */

.work-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.work-preview-card {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-light);
}
.work-preview-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.work-preview-card:hover img { transform: scale(1.07); }
.work-preview-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(18,26,47,0.82) 100%);
}
.work-preview-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}

.case-study-head { max-width: 640px; }
.case-study-head .lead { margin-top: 6px; }

.case-study-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.case-photo {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: zoom-in;
  background: var(--blue-light);
}
.case-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.case-photo:hover img { transform: scale(1.06); }
.case-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(18,26,47,0.28) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.case-photo:hover::after { opacity: 1; }

body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10,14,26,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.24); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* --------------------------------- CTA band --------------------------------- */

.cta-band {
  background: var(--blue-light);
  color: var(--ink);
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0; }
.cta-band .cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --------------------------------- Contact --------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-info-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.contact-info-card .tick-rule { margin-bottom: 24px; }
.contact-line {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-line:first-of-type { border-top: none; }
.contact-line svg { flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.contact-line strong { display: block; font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 4px; }
.contact-line a, .contact-line span.value { color: var(--white); font-size: 1rem; }

.social-row { display: flex; gap: 12px; margin-top: 28px; }
.social-btn {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-btn:hover { background: var(--blue); border-color: var(--blue); }

.form-card {
  background: var(--blue-light);
  border: 1px solid rgba(77,126,168,0.18);
  border-radius: var(--radius);
  padding: 40px;
}
.form-card-intro { margin-bottom: 28px; }
.form-card-intro h3 { margin-bottom: 8px; }
.form-card-intro p { margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(77,126,168,0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.honeypot { position: absolute; left: -9999px; top: -9999px; }

.form-note { font-size: 0.85rem; color: var(--grey-light); margin-top: 14px; }
.form-success {
  display: none;
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.form-success.show { display: block; }
.form-success h3 { margin-bottom: 8px; }

.map-note {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--blue-light);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ink);
}

/* --------------------------------- Footer --------------------------------- */

.site-footer {
  background: var(--ink-2);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--white); }

/* --------------------------------- Reveal on scroll --------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

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

/* --------------------------------- Focus visibility --------------------------------- */

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------------------------------- Responsive ---------------------------------- */

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 320px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .case-study-photos { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .brand-text span { display: none; }
  .about-figure { display: none; }

  .header-phone,
  .header-whatsapp { display: none; }
  .header-cta { gap: 10px; }
  .header-cta .btn-primary { padding: 11px 16px; font-size: 0.76rem; letter-spacing: 0.04em; }

  body.nav-locked { overflow: hidden; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 8px 24px 24px;
    gap: 0;
    box-shadow: 0 12px 24px rgba(18,26,47,0.08);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .site-header.nav-open .main-nav li { border-top: 1px solid var(--line); }
  .site-header.nav-open .main-nav ul a { display: block; padding: 16px 0; }
  .site-header.nav-open .header-cta { display: none; }

  .mobile-nav-cta { display: flex; flex-direction: column; padding-top: 8px; }
  .mobile-nav-cta-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--ink);
  }
  .mobile-nav-cta-link svg { color: var(--blue); flex-shrink: 0; }

  section { padding: 60px 0; }
  .hero { padding: 56px 0 70px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }

  .case-study-photos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lightbox { padding: 24px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }

  /* Card grids become horizontal swipeable carousels on mobile instead of a
     long vertical stack - each card peeks the next one to invite swiping. */
  .category-grid,
  .services-grid,
  .testimonial-grid,
  .work-preview-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    margin: 0 -24px;
    padding: 4px 24px 12px;
  }
  .category-grid::-webkit-scrollbar,
  .services-grid::-webkit-scrollbar,
  .testimonial-grid::-webkit-scrollbar,
  .work-preview-grid::-webkit-scrollbar { display: none; }

  .category-grid > *,
  .services-grid > *,
  .testimonial-grid > *,
  .work-preview-grid > * {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
  .service-card-wide {
    flex: 0 0 84%;
    flex-direction: column;
    align-items: flex-start;
  }
  .service-card-wide .service-card-body { flex-direction: column; align-items: flex-start; }

  .swipe-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--grey-light);
    margin: -28px 0 24px;
  }
}

@media (min-width: 761px) {
  .swipe-hint { display: none; }
}

/* ---------------------------- Service detail pages ---------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--grey-light);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span[aria-current] { color: var(--ink); }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}

.service-detail-main h2 { margin-top: 44px; }
.service-detail-main h2:first-child { margin-top: 0; }

.service-sidebar { position: sticky; top: 108px; }
.service-sidebar-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.related-services {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.related-services a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.related-services a:hover { border-color: var(--blue); color: var(--blue); }

.service-quote {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin: 36px 0;
}
.service-quote .stars { margin-bottom: 10px; }
.service-quote p.quote-text { font-size: 1.02rem; color: var(--ink); margin-bottom: 10px; }
.service-quote .quote-meta { font-family: var(--font-display); font-size: 0.85rem; color: var(--grey); }

@media (max-width: 980px) {
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}
