/*
================================================================================
  AWESOME CONSTRUCTION CORP  —  style.css
  Public website styles — light cream theme with red accents
  ────────────────────────────────────────────────────────────────────────────
  Table of contents
    1.  CSS variables
    2.  Reset & base
    3.  Layout utilities
    4.  Typography
    5.  Buttons
    6.  Navbar
    7.  Hero
    8.  Tagline strip
    9.  Services
    10. Gallery
    11. About
    12. Contact
    13. Footer
    14. Lightbox
    15. Animations & scroll reveal
    16. Responsive
================================================================================
*/


/* ── 1. CSS Variables ──────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:         #f5f3ef;
  --surface:    #ffffff;
  --surface2:   #ede9e3;
  --border:     #dcd7cf;
  --red:        #cc1515;
  --red-dark:   #a01010;
  --red-glow:   rgba(204, 21, 21, .10);
  --text:       #1a1714;
  --muted:      #6b6560;
  --faint:      #b5afa7;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  /* Layout */
  --nav-h:     96px;
  --max-w:     1160px;
  --pad-x:     24px;
  --radius:    4px;
  --radius-lg: 10px;

  /* Effects */
  --shadow:    0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --ease:      .22s ease;
}


/* ── 2. Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; }
body   { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.65; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }


/* ── 3. Layout Utilities ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section {
  padding: 96px 0;
}
.section-white  { background: var(--surface); }
.section-tinted { background: var(--surface2); }


/* ── 4. Typography ─────────────────────────────────────────────────────────── */
.section-tag {
  display: block;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 62px);
  line-height: .94;
  letter-spacing: 1px;
  color: var(--text);
}
.section-title.left { text-align: left; }
.section-bar  {
  width: 52px; height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 18px auto 0;
}
.section-bar.left { margin-left: 0; }
.section-desc {
  color: var(--muted);
  margin-top: 16px;
  font-size: 17px;
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}


/* ── 5. Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius);
  transition: all var(--ease);
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border: 1.5px solid var(--red);
  box-shadow: 0 4px 16px rgba(204,21,21,.28);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(204,21,21,.40);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}
.btn-full {
  width: 100%;
  justify-content: center;
}


/* ── 6. Navbar ─────────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--ease), box-shadow var(--ease);
  background: rgba(245,243,239,.97);
  backdrop-filter: blur(14px);
}
#navbar.scrolled {
  background: rgba(245,243,239,.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo-nav {
  height: 72px;
  width: auto;
  transition: opacity var(--ease);
}
.logo-nav:hover { opacity: .75; }

.nav-links {
  display: flex;
  gap: clamp(14px, 2.2vw, 32px); /* scales automatically with any number of links */
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  padding: 8px 16px;
  border: 1.5px solid var(--red);
  border-radius: var(--radius);
  transition: all var(--ease);
  white-space: nowrap;
}
.nav-phone:hover { background: var(--red); color: #fff; }

.nav-admin {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--ease);
}
.nav-admin:hover { border-color: var(--text); color: var(--text); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(245,243,239,.98);
  backdrop-filter: blur(16px);
  padding: 28px var(--pad-x);
  gap: 22px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
}


/* ── 7. Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #faf8f5 0%, #fff5f5 50%, #f5f3ef 100%);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 65% at 72% 42%, rgba(204,21,21,.06) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 32px;
  flex: 1;
}
.hero-left { display: flex; flex-direction: column; }

.hero-badge {
  display: block;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 52px);
  line-height: 1.05;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-title .accent { color: var(--red); }
.hero-rule {
  width: 48px; height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Hero Slideshow ─────────────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface2, #f0ede8);
  box-shadow: 0 20px 60px rgba(0,0,0,.14);
}

/* ── Hero slideshow transitions ─────────────────────────────────────────────
   Three self-contained modes selected by data-transition attribute.
   Speed is configurable from JS via the --hero-spd CSS variable; easing
   is shared so the speed slider feels uniform across all three modes.   */
.hero-slides {
  --hero-spd: 0.7s;
  --hero-ease: cubic-bezier(.4, 0, .2, 1);
  display: flex;                /* default (slide) until JS sets attribute */
  width: 100%;
  height: 100%;
  position: relative;
}
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.hero-slide img,
.hero-slide video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── MOTION (intra-slide Ken Burns drift) ────────────────────────────
   The Motion 1-100 slider in admin sets --motion-duration on :root.

   IMPORTANT — completely independent of Transition Speed.

   This uses a 3-keyframe loop (0% → 50% → 100%) instead of the older
   `infinite alternate` pattern. With alternate, the animation reverses
   direction at each end, and that direction-flip — even with ease-in-out
   — reads as a tiny "bump" against the running motion. With this
   3-keyframe pattern the image drifts OUT to peak at 50% and drifts
   BACK to rest at 100%, then loops — the trajectory comes through the
   resting position smoothly, so there's no direction reversal at all.

   Combined with ease-in-out, velocity goes to zero at the midpoint
   AND at the loop boundary, giving a perfectly fluid never-ending
   drift. Falls back to 60s if --motion-duration is not set. */
@keyframes heroMotionDrift {
  0%, 100% { transform: scale(1)    translate3d(0, 0, 0); }
  50%      { transform: scale(1.10) translate3d(-1.5%, -1%, 0); }
}
.hero-slide img,
.hero-slide video {
  animation: heroMotionDrift var(--motion-duration, 60s) ease-in-out infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform-origin: center center;
  /* translate3d forces the image onto its own GPU compositor layer so
     the animation runs entirely on the GPU and never touches the main
     thread's paint pipeline — eliminates any sub-pixel jitter. */
}
/* Honour the user's reduced-motion OS preference */
@media (prefers-reduced-motion: reduce) {
  .hero-slide img,
  .hero-slide video {
    animation: none;
    transform: none;
  }
}

/* ── FADE: stacked slides, active = opacity 1 ──────────────────────── */
.hero-slides[data-transition="fade"] {
  display: block;
  transform: none;
  transition: none;
}
.hero-slides[data-transition="fade"] .hero-slide {
  position: absolute;
  inset: 0;
  flex: none;
  opacity: 0;
  z-index: 0;
  transform: translateZ(0);
  transition: opacity var(--hero-spd) var(--hero-ease);
  will-change: opacity;
}
.hero-slides[data-transition="fade"] .hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* ── ZOOM: stacked + scale 1.07 → 1 ────────────────────────────────── */
.hero-slides[data-transition="zoom"] {
  display: block;
  transform: none;
  transition: none;
}
.hero-slides[data-transition="zoom"] .hero-slide {
  position: absolute;
  inset: 0;
  flex: none;
  opacity: 0;
  z-index: 0;
  transform: translateZ(0) scale(1.07);
  transition: opacity var(--hero-spd) var(--hero-ease),
              transform var(--hero-spd) var(--hero-ease);
  will-change: opacity, transform;
}
.hero-slides[data-transition="zoom"] .hero-slide.is-active {
  opacity: 1;
  transform: translateZ(0) scale(1);
  z-index: 1;
}

/* ── SLIDE: flex row, container translates ─────────────────────────── */
.hero-slides[data-transition="slide"] {
  display: flex;
  transition: transform var(--hero-spd) var(--hero-ease);
  will-change: transform;
}
.hero-slides[data-transition="slide"] .hero-slide {
  position: relative;
  flex: 0 0 100%;
  opacity: 1;
  transform: translateZ(0);
  transition: none;
  will-change: auto;
}

/* Placeholder when no images uploaded */
.hero-slide-placeholder {
  background: var(--surface2, #f0ede8);
  display: flex; align-items: center; justify-content: center;
}
.hero-slide-icon {
  text-align: center;
  color: var(--muted, #9a9080);
  padding: 20px;
}
.hero-slide-icon svg { opacity: .4; margin-bottom: 12px; }
.hero-slide-icon p  { font-size: 13px; line-height: 1.7; }
.hero-slide-icon strong { color: var(--red, #cc1515); }

/* Navigation arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9);
  border: none; border-radius: 50%;
  width: 42px; height: 42px;
  font-size: 24px; line-height: 1;
  cursor: pointer; color: var(--text, #1a1714);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  transition: background .2s, transform .2s;
  z-index: 10; display: flex; align-items: center; justify-content: center;
  opacity: 0;
}
.hero-slider:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.hero-arrow-prev { left: 14px; }
.hero-arrow-next { right: 14px; }

/* Navigation dots */
.hero-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.55);
  border: none; cursor: pointer; padding: 0;
  transition: background .3s, transform .3s;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Stats bar */
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  padding-bottom: 56px;
}
.stat {
  flex: 1;
  padding: 22px 28px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.stat:last-child { border-right: 1px solid var(--border); }
.stat-num {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  color: var(--red);
}
.stat-suf {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--red);
}
.stat-lbl {
  display: block;
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}


/* ── 8. Tagline Strip ──────────────────────────────────────────────────────── */
.tagline-strip {
  background: var(--red);
  padding: 22px 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.tagline-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(0,0,0,.04) 0, rgba(0,0,0,.04) 1px, transparent 1px, transparent 12px);
}
.tagline-strip p {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 30px);
  color: #fff;
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
}


/* ── 9. Services ───────────────────────────────────────────────────────────── */

.service-card h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.service-cta { border: 2px solid var(--red) !important; }
.svc-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  transition: letter-spacing var(--ease);
}
.svc-link:hover { letter-spacing: 4px; }


/* ── 10. Gallery ───────────────────────────────────────────────────────────── */

/* Photos / Videos tab switcher */
.media-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
  margin-top: -8px;
}
.media-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 11px 32px;
  border: 2px solid #cc1515;
  color: #cc1515;
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
  line-height: 1;
}
.media-tab:first-child {
  border-right: none;
  border-radius: 4px 0 0 4px;
}
.media-tab:last-child {
  border-left: 1px solid #cc1515;
  border-radius: 0 4px 4px 0;
}
.media-tab.active {
  background: #cc1515;
  color: #fff;
}
.media-tab:not(.active):hover {
  background: rgba(204,21,21,.08);
}
.media-tab svg { flex-shrink: 0; }

.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-btn {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--ease);
}
.filter-btn:hover        { border-color: var(--red); color: var(--red); }
.filter-btn.active       { background: var(--red); border-color: var(--red); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-item img,
.gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  /* Ensure video fills the card like an image */
  position: absolute;
  top: 0; left: 0;
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.05); }

/* Hover overlay */
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,23,20,.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.gallery-overlay p {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 3px;
  text-transform: capitalize;
}

/* Video play icon badge */
.gallery-item.is-video::after {
  content: '▶';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 38px;
  color: rgba(255,255,255,.88);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  pointer-events: none;
}

/* Empty state */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.gallery-empty svg {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  opacity: .3;
}
.gallery-empty h4 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text);
  margin-bottom: 10px;
}
.gallery-empty a { color: var(--red); text-decoration: underline; }


/* ── 11. About ─────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-body {
  color: var(--muted);
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.about-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .5px;
  color: var(--text);
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}
.about-visual {
  display: flex;
  justify-content: center;
}
.about-logo-card {
  width: 280px;
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about-logo   { width: 100%; height: auto; mix-blend-mode: multiply; }
.about-logo-card hr { width: 100%; border: none; border-top: 1px solid var(--border); }
.cert-label {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
}
.cert-sub { font-family: var(--font-cond); font-size: 13px; color: var(--muted); }


/* ── 12. Contact ───────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--text);
  margin-bottom: 14px;
}
.contact-info > p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.contact-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ci-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-list strong {
  display: block;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.contact-list a { color: var(--red); font-size: 15px; }
.contact-list span { font-size: 15px; }

/* Form */
.contact-form {
  background: var(--surface);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.form-group label {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.req { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-msg.ok  { color: #1a8a3a; }
.form-msg.err { color: var(--red); }


/* ── 13. Footer ────────────────────────────────────────────────────────────── */
.footer { background: #1c1814; border-top: 1px solid #2e2a24; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  padding: 64px 0 52px;
}
.logo-footer {
  height: 72px; width: auto;
  opacity: .9;
  margin-bottom: 14px;
}
.footer-brand > p { font-size: 14px; color: #9a9088; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.footer-col li,
.footer-col a,
.footer-col p { font-size: 14px; color: #9a9088; margin-bottom: 9px; transition: color var(--ease); }
.footer-col a:hover { color: var(--red); }
.footer-contact a { color: #9a9088; }
.footer-contact a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid #2e2a24;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 13px; color: #5a5450; }
.footer-admin-link {
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5a5450;
  transition: color var(--ease);
}
.footer-admin-link:hover { color: var(--red); }


/* ── 14. Lightbox ──────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }

/* Centered modal card */
.lb-card {
  position: relative;
  z-index: 10000;
  background: #0d0d0d;
  border-radius: 12px;
  overflow: hidden;
  max-width: min(92vw, 960px);
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.9);
  animation: lbFadeIn .2s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9998;
  display: none;
}
.lb-close {
  position: absolute; top: 12px; right: 14px;
  z-index: 10001;
  font-size: 28px; color: #fff; opacity: .75;
  width: 36px; height: 36px; line-height: 36px;
  text-align: center; border-radius: 50%;
  background: rgba(0,0,0,.5);
  transition: opacity .2s, background .2s;
}
.lb-close:hover { opacity: 1; background: rgba(204,21,21,.8); }
.lb-prev, .lb-next {
  position: absolute; top: 50%;
  z-index: 10001;
  transform: translateY(-50%);
  font-size: 24px; color: #fff; opacity: .7;
  width: 40px; height: 40px; line-height: 40px;
  text-align: center; border-radius: 50%;
  background: rgba(0,0,0,.5);
  transition: opacity .2s, background .2s;
}
.lb-prev:hover, .lb-next:hover { opacity: 1; background: rgba(0,0,0,.8); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-media {
  position: relative; z-index: 10000;
  flex: 1; min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}
.lb-media img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

/* ══ Video player ═══════════════════════════════════════════ */
.lb-video-wrap {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #000; display: flex;
  flex-direction: column; user-select: none;
}
.lb-video-wrap video {
  display: block; width: 100%; max-height: 68vh;
  background: #000; cursor: pointer;
}

/* Codec error message */
.lbv-codec-error {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px;
  padding: 32px 24px; text-align: center;
  color: rgba(255,255,255,.8); font-family: 'Barlow',sans-serif;
  min-height: 200px;
}
.lbv-codec-error p { font-size: 14px; line-height: 1.6; margin:0; }

/* Controls bar — very compact, hugs bottom */
.lbv-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  padding: 20px 10px 6px;
  border-radius: 0 0 10px 10px;
  opacity: 1; transition: opacity .35s ease; z-index: 20;
}
.lbv-bar--hidden { opacity: 0; pointer-events: none; }

/* Progress bar — thin */
.lbv-progress-wrap { margin-bottom: 5px; padding: 4px 0; cursor: pointer; }
.lbv-progress-bg {
  position: relative; height: 3px;
  background: rgba(255,255,255,.2); border-radius: 2px;
  transition: height .15s;
}
.lbv-progress-wrap:hover .lbv-progress-bg { height: 4px; }
.lbv-progress-buf {
  position: absolute; top:0; left:0; height:100%;
  background: rgba(255,255,255,.2); border-radius:2px; pointer-events:none;
}
.lbv-progress-fill {
  position: absolute; top:0; left:0; height:100%;
  background: #cc1515; border-radius:2px; pointer-events:none;
  transition: width .1s linear;
}
.lbv-progress-thumb {
  position: absolute; top:50%;
  transform: translate(-50%,-50%);
  width: 10px; height: 10px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
  pointer-events: none; opacity: 0; transition: opacity .15s;
}
.lbv-progress-wrap:hover .lbv-progress-thumb { opacity: 1; }

/* Row */
.lbv-row { display:flex; align-items:center; justify-content:space-between; gap:2px; }
.lbv-group { display:flex; align-items:center; gap:1px; }

/* Compact buttons */
.lbv-btn {
  background: none; border: none;
  color: rgba(255,255,255,.7);
  font-size: 13px; cursor: pointer;
  padding: 3px 5px; border-radius: 3px;
  line-height: 1; transition: color .15s, background .15s;
  flex-shrink: 0;
}
.lbv-btn:hover { color:#fff; background: rgba(255,255,255,.1); }

/* Speed */
.lbv-speed {
  font-size: 10px; font-family:'Barlow Condensed',sans-serif;
  font-weight:700; letter-spacing:.5px;
  color: rgba(255,255,255,.6);
  padding: 2px 5px; border:1px solid rgba(255,255,255,.2); border-radius:3px;
}
.lbv-speed:hover { color:#fff; border-color:rgba(255,255,255,.4); }

/* Volume */
.lbv-vol {
  width: 52px; height: 3px;
  accent-color: #cc1515; cursor:pointer; border-radius:2px;
  opacity:.65;
}
.lbv-vol:hover { opacity:1; }

/* Time */
.lbv-time {
  color: rgba(255,255,255,.6);
  font-family:'Barlow Condensed',sans-serif;
  font-size: 11px; letter-spacing:.3px;
  white-space:nowrap; margin-left:3px;
}

/* Fullscreen — bottom right, slightly more visible */
.lbv-btn-fs {
  color: rgba(255,255,255,.85);
  font-size: 16px; padding: 3px 6px;
}
.lbv-btn-fs:hover { color:#fff; background:rgba(255,255,255,.15); }

/* Hide old classes */
.lb-vid-overlay,.lb-controls-toggle { display:none !important; }

/* Mobile */
@media (max-width:540px){
  .lbv-vol   { width:38px; }
  .lbv-btn   { font-size:12px; padding:2px 4px; }
  .lbv-speed { display:none; }
  .lbv-time  { font-size:10px; }
}
.lb-info {
  flex-shrink: 0;
  padding: 14px 20px 16px;
  background: #0d0d0d !important;
  border-top: 3px solid #cc1515;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;                 /* defense against any child overflow */
  min-width: 0;                     /* let flex children shrink correctly */
}
.lb-caption {
  font-family: var(--font-cond, 'Barlow Condensed', sans-serif);
  font-weight: 700;
  font-size: clamp(13px, 2.1vw, 16px);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #ffffff !important;
  line-height: 1.3;
  margin: 0 0 8px 0;
  display: block;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.lb-desc {
  font-family: var(--font-body, 'Barlow', sans-serif);
  color: #ffffff !important;
  font-size: clamp(12px, 1.6vw, 14px);
  line-height: 1.6;
  margin: 0;
  max-height: clamp(72px, 18vh, 130px);
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  opacity: 1 !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  box-sizing: border-box;
}
.lb-desc::-webkit-scrollbar { width: 4px; }
.lb-desc::-webkit-scrollbar-thumb { background: #cc1515; border-radius: 2px; }

/* Constrain rich-text / default-style content inside the description.
   Prevents any inline-styled wrapper (e.g. .acc-ds) or pasted content
   from blowing out the lightbox card width. */
.lb-desc :where(div, p, span, strong, em, u, a, ul, ol, li, h1, h2, h3, h4, h5, h6) {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.lb-desc p { margin: 0 0 6px 0; }
.lb-desc p:last-child { margin-bottom: 0; }
.lb-desc ul, .lb-desc ol { padding-left: 20px; margin: 4px 0; }
.lb-desc img { max-width: 100%; height: auto; display: block; }
.lb-desc .acc-ds { display: block; max-width: 100%; }

/* Tighter spacing & smaller text on phones */
@media (max-width: 600px) {
  .lb-info     { padding: 12px 14px 14px; }
  .lb-caption  { font-size: 13px; letter-spacing: 1px; margin-bottom: 6px; }
  .lb-desc     { font-size: 12px; line-height: 1.5; max-height: 96px; }
}


/* ── 15. Animations & Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .05s ease, transform .05s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.fade-up { animation: fadeUp .7s ease both; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* ── 16. Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-inner    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links, .nav-phone, .nav-admin { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-content    { grid-template-columns: 1fr; }
  .hero-right      { display: none; }
  .hero-title      { font-size: clamp(28px, 7vw, 44px); }
  .hero-stats      { flex-direction: column; }
  .stat            { border-right: 1px solid var(--border) !important; }

  /* Sections */
    .gallery-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-grid      { grid-template-columns: 1fr; }
  .about-visual    { display: none; }
  .contact-grid    { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 32px; }
  .footer-bottom   { flex-direction: column; gap: 10px; text-align: center; }
  .contact-form    { padding: 24px 18px; }
}

@media (max-width: 480px) {
  .gallery-grid    { grid-template-columns: 1fr; }
  .gallery-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-btn      { flex-shrink: 0; }
  .hero-ctas       { flex-direction: column; }
  .section         { padding: 64px 0; }
}

/* ── Video controls toggle button in lightbox ─────────────── */
.lb-controls-toggle {
  display: block;
  margin: 10px auto 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  padding: 7px 18px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  z-index: 10000;
}
.lb-controls-toggle:hover {
  background: rgba(255,255,255,.22);
  color: #fff;
}

/* Hide browser native video controls completely */
.lb-video-wrap video::-webkit-media-controls { display: none !important; }
.lb-video-wrap video::-webkit-media-controls-enclosure { display: none !important; }
.lb-video-wrap video::-webkit-media-controls-panel { display: none !important; }
.lb-video-wrap video { -webkit-media-controls: none; }

/* ── Force-hide ALL native browser video controls ─────────── */
.lb-video-wrap video::-webkit-media-controls,
.lb-video-wrap video::-webkit-media-controls-panel,
.lb-video-wrap video::-webkit-media-controls-panel-container,
.lb-video-wrap video::-webkit-media-controls-start-playback-button,
.lb-video-wrap video::-webkit-media-controls-overlay-play-button,
.lb-video-wrap video::-webkit-media-controls-enclosure,
.lb-video-wrap video::-webkit-media-controls-overlay-enclosure {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── Gallery sub-sections (Photos / Videos) ───────────────── */
.section-sub-header {
  margin-bottom: 24px;
}
.sub-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 1px;
  color: var(--text);
  margin-top: 4px;
}

/* Video grid — wider cards to fit video aspect ratio */
.video-grid {
  grid-template-columns: repeat(2, 1fr);
}
.video-grid .gallery-item {
  aspect-ratio: 16 / 9;
}

@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ══ BLOG FRONTEND ══════════════════════════════════════════ */

/* Blog grid — 3 columns */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

/* Blog card */
.blog-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e8e4dc);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.blog-card-body {
  padding: 24px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-date {
  font-family: var(--font-cond, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red, #cc1515);
  margin-bottom: 10px;
}
.blog-card-title {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text, #1a1714);
  line-height: 1.2;
  margin-bottom: 12px;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--muted, #7a7060);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}
.blog-read-btn {
  background: none;
  border: none;
  font-family: var(--font-cond, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red, #cc1515);
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  transition: opacity .2s;
}
.blog-read-btn:hover { opacity: .7; }

/* Empty state */
.blog-empty {
  text-align: center;
  grid-column: 1/-1;
  padding: 48px;
  color: var(--muted, #7a7060);
  font-size: 15px;
}

/* Single post view */
.blog-back-btn {
  background: none;
  border: 1px solid var(--border, #e8e4dc);
  border-radius: 6px;
  padding: 8px 18px;
  font-family: var(--font-cond, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 32px;
  color: var(--text, #1a1714);
  transition: background .2s;
}
.blog-back-btn:hover { background: var(--border, #e8e4dc); }

.blog-post-date {
  font-family: var(--font-cond, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red, #cc1515);
  margin-bottom: 12px;
}
.blog-post-title {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(28px, 4vw, 48px);
  color: var(--text, #1a1714);
  line-height: 1.1;
  margin-bottom: 20px;
}
.blog-post-divider {
  width: 56px; height: 3px;
  background: var(--red, #cc1515);
  margin-bottom: 32px;
}
.blog-post-content p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text, #1a1714);
  margin-bottom: 20px;
  max-width: 720px;
}

/* Responsive */
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .blog-grid { grid-template-columns: 1fr; } }

/* ── Blog new post notice ──────────────────────────────────── */
.blog-new-notice {
  background: var(--red, #cc1515);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-cond, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  cursor: pointer;
  animation: blogSlideIn .4s ease;
}
@keyframes blogSlideIn {
  from { opacity:0; transform: translateY(-10px); }
  to   { opacity:1; transform: translateY(0); }
}

/* Highlight newly published cards */
.blog-card-new {
  border-color: var(--red, #cc1515) !important;
  box-shadow: 0 0 0 2px rgba(204,21,21,.15), 0 4px 16px rgba(0,0,0,.08) !important;
}

/* ══ BLOG TEASER (index.php) ════════════════════════════════ */
.blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.blog-teaser-card {
  background: #fff;
  border: 1px solid var(--border, #e8e4dc);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}
.blog-teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
}
.blog-teaser-accent {
  height: 4px; background: var(--red, #cc1515); flex-shrink: 0;
}
.blog-teaser-body { padding: 24px 24px 20px; flex:1; display:flex; flex-direction:column; }
.blog-teaser-date {
  font-family: var(--font-cond, sans-serif); font-size: 11px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red, #cc1515); margin-bottom: 8px;
}
.blog-teaser-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(18px, 2vw, 22px); letter-spacing: .5px;
  color: var(--text, #1a1714); line-height: 1.15; margin-bottom: 10px;
}
.blog-teaser-excerpt {
  font-size: 13px; color: var(--muted, #7a7060); line-height: 1.65;
  flex: 1; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-teaser-read {
  font-family: var(--font-cond, sans-serif); font-size: 11px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red, #cc1515); text-decoration: none; align-self: flex-start;
  transition: opacity .2s;
}
.blog-teaser-read:hover { opacity: .7; }
.blog-teaser-empty { grid-column: 1/-1; text-align: center; padding: 40px; color: var(--muted, #9a9088); }
.blog-view-all { text-align: center; margin-top: 36px; }
.a-btn-outline-red {
  display: inline-block;
  font-family: var(--font-cond, sans-serif); font-size: 13px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red, #cc1515); text-decoration: none;
  border: 2px solid var(--red, #cc1515); border-radius: 4px;
  padding: 12px 32px; transition: all .2s;
}
.a-btn-outline-red:hover {
  background: var(--red, #cc1515); color: #fff;
}
@media (max-width: 900px) { .blog-teaser-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .blog-teaser-grid { grid-template-columns: 1fr; } }


/* ══ BLOG TEASER (index.php) ════════════════════════════════ */
.blog-teaser-card {
  background: #fff;
  border: 1px solid var(--border, #e8e4dc);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}
.blog-teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
}
.blog-teaser-accent {
  height: 4px; background: var(--red, #cc1515); flex-shrink: 0;
}
.blog-teaser-body { padding: 24px 24px 20px; flex:1; display:flex; flex-direction:column; }
.blog-teaser-date {
  font-family: var(--font-cond, sans-serif); font-size: 11px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red, #cc1515); margin-bottom: 8px;
}
.blog-teaser-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(18px, 2vw, 22px); letter-spacing: .5px;
  color: var(--text, #1a1714); line-height: 1.15; margin-bottom: 10px;
}
.blog-teaser-excerpt {
  font-size: 13px; color: var(--muted, #7a7060); line-height: 1.65;
  flex: 1; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-teaser-read {
  font-family: var(--font-cond, sans-serif); font-size: 11px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red, #cc1515); text-decoration: none; align-self: flex-start;
  transition: opacity .2s;
}
.blog-teaser-read:hover { opacity: .7; }
.blog-teaser-empty { grid-column: 1/-1; text-align: center; padding: 40px; color: var(--muted, #9a9088); }
.blog-view-all { text-align: center; margin-top: 36px; }
.a-btn-outline-red {
  display: inline-block;
  font-family: var(--font-cond, sans-serif); font-size: 13px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red, #cc1515); text-decoration: none;
  border: 2px solid var(--red, #cc1515); border-radius: 4px;
  padding: 12px 32px; transition: all .2s;
}
.a-btn-outline-red:hover {
  background: var(--red, #cc1515); color: #fff;
}
@media (max-width: 900px) { .blog-teaser-grid { grid-template-columns: repeat(2,1fr); } }


/* ══ SERVICES GRID — standalone cards, flex layout ══════════ */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;  /* centers partial last rows automatically */
  margin-top: 48px;
  align-items: stretch;
}

/* Each card is fully standalone — no shared outer border */
.service-card {
  /* flex size set by JS: flex-basis + max-width from --svc-card-basis */
  flex: 0 0 var(--svc-card-basis, calc(33.333% - 14px));
  max-width: var(--svc-card-basis, calc(33.333% - 14px));
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--border, #e8e4dc);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
  /* Square stacked layout */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  aspect-ratio: 1 / 1;
  z-index: 1;
  overflow: visible !important;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
}

/* Responsive: stack cards on small screens */
@media (max-width: 640px) {
  .services-grid { gap: 14px; }
  .service-card  { flex: 0 0 100% !important; max-width: 100% !important; }
}
@media (max-width: 900px) and (min-width: 641px) {
  /* Max 2 columns on tablet */
  .service-card {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
  }
}

/* Solo card (1 service) — full width, extra tall */
.service-card.svc-solo {
  min-height: 200px;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}
.service-card.svc-solo .svc-num {
  position: static;
  font-size: 80px;
  flex-shrink: 0;
}
.service-card.svc-solo .svc-name {
  font-size: 22px;
}

/* CTA card — red border */
.service-card.service-card-cta {
  border-color: var(--red, #cc1515);
  border-width: 2px;
}
.service-card.service-card-cta:hover { background: #fff9f9; }

/* Number watermark */
.svc-num {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 52px;
  color: var(--border, #e8e4dc);
  position: absolute;
  top: 10px; right: 18px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.service-card-cta .svc-num { color: rgba(204,21,21,.18); }

.svc-name {
  font-family: var(--font-cond, 'Barlow Condensed', sans-serif);
  font-size: 15px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text, #1a1714);
  margin-bottom: 10px; margin-top: 4px;
  padding-right: 48px; /* avoid overlap with number */
}
.svc-desc {
  font-size: 14px;
  color: var(--muted, #7a7060);
  line-height: 1.65;
  flex: 0;
  margin: 0;
}
.svc-desc a {
  color: var(--red, #cc1515);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity .2s;
  word-break: break-all;      /* break long URLs at any character */
  overflow-wrap: break-word;  /* also break long words */
  display: inline-block;
  max-width: 100%;
}
.svc-desc a:hover { opacity: .75; }
.svc-desc b, .svc-desc strong { font-weight: 700; color: var(--text, #1a1714); }
.svc-desc i, .svc-desc em     { font-style: italic; }
.svc-cta-link {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-cond, sans-serif); font-size: 11px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red, #cc1515); text-decoration: none; transition: opacity .2s;
}
.svc-cta-link:hover { opacity: .7; }

/* Empty state */
.services-empty {
  width: 100%; text-align: center;
  padding: 48px; color: var(--muted, #9a9088); font-size: 15px;
}

/* Responsive — on small screens all cards go full width */

/* ══ Video player ═══════════════════════════════════════════ */
/* ══ BLOG FRONTEND ══════════════════════════════════════════ */

/* Blog grid — 3 columns */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

/* Blog card */
.blog-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e8e4dc);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.blog-card-body {
  padding: 24px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-date {
  font-family: var(--font-cond, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red, #cc1515);
  margin-bottom: 10px;
}
.blog-card-title {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text, #1a1714);
  line-height: 1.2;
  margin-bottom: 12px;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--muted, #7a7060);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}
.blog-read-btn {
  background: none;
  border: none;
  font-family: var(--font-cond, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red, #cc1515);
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  transition: opacity .2s;
}
.blog-read-btn:hover { opacity: .7; }

/* Empty state */
.blog-empty {
  text-align: center;
  grid-column: 1/-1;
  padding: 48px;
  color: var(--muted, #7a7060);
  font-size: 15px;
}

/* Single post view */
.blog-back-btn {
  background: none;
  border: 1px solid var(--border, #e8e4dc);
  border-radius: 6px;
  padding: 8px 18px;
  font-family: var(--font-cond, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 32px;
  color: var(--text, #1a1714);
  transition: background .2s;
}
.blog-back-btn:hover { background: var(--border, #e8e4dc); }

.blog-post-date {
  font-family: var(--font-cond, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red, #cc1515);
  margin-bottom: 12px;
}
.blog-post-title {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(28px, 4vw, 48px);
  color: var(--text, #1a1714);
  line-height: 1.1;
  margin-bottom: 20px;
}
.blog-post-divider {
  width: 56px; height: 3px;
  background: var(--red, #cc1515);
  margin-bottom: 32px;
}
.blog-post-content p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text, #1a1714);
  margin-bottom: 20px;
  max-width: 720px;
}

/* Responsive */
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Blog new post notice ──────────────────────────────────── */
.blog-new-notice {
  background: var(--red, #cc1515);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-cond, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  cursor: pointer;
  animation: blogSlideIn .4s ease;
}
@keyframes blogSlideIn {
  from { opacity:0; transform: translateY(-10px); }
  to   { opacity:1; transform: translateY(0); }
}

/* Highlight newly published cards */
/* ══ BLOG TEASER (index.php) ════════════════════════════════ */
.blog-teaser-card {
  background: #fff;
  border: 1px solid var(--border, #e8e4dc);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}
.blog-teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
}
.blog-teaser-accent {
  height: 4px; background: var(--red, #cc1515); flex-shrink: 0;
}
.blog-teaser-body { padding: 24px 24px 20px; flex:1; display:flex; flex-direction:column; }
.blog-teaser-date {
  font-family: var(--font-cond, sans-serif); font-size: 11px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red, #cc1515); margin-bottom: 8px;
}
.blog-teaser-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(18px, 2vw, 22px); letter-spacing: .5px;
  color: var(--text, #1a1714); line-height: 1.15; margin-bottom: 10px;
}
.blog-teaser-excerpt {
  font-size: 13px; color: var(--muted, #7a7060); line-height: 1.65;
  flex: 1; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-teaser-read {
  font-family: var(--font-cond, sans-serif); font-size: 11px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red, #cc1515); text-decoration: none; align-self: flex-start;
  transition: opacity .2s;
}
.blog-teaser-read:hover { opacity: .7; }
.blog-teaser-empty { grid-column: 1/-1; text-align: center; padding: 40px; color: var(--muted, #9a9088); }
.blog-view-all { text-align: center; margin-top: 36px; }
.a-btn-outline-red {
  display: inline-block;
  font-family: var(--font-cond, sans-serif); font-size: 13px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red, #cc1515); text-decoration: none;
  border: 2px solid var(--red, #cc1515); border-radius: 4px;
  padding: 12px 32px; transition: all .2s;
}
.a-btn-outline-red:hover {
  background: var(--red, #cc1515); color: #fff;
}
@media (max-width: 900px) { .blog-teaser-grid { grid-template-columns: repeat(2,1fr); } }


/* ══ SERVICE CARD HOVER CTA ════════════════════════════════ */
.service-card:not(.service-card-cta) { cursor: pointer; }
.svc-hover-cta {
  font-family: var(--font-cond, sans-serif);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--red, #cc1515);
  margin-top: auto; padding-top: 14px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.service-card:hover .svc-hover-cta {
  opacity: 1; transform: translateY(0);
}

/* ══ SERVICE GALLERY MODAL ════════════════════════════════ */
#svcGalleryOverlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(10,8,6,.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
#svcGalleryOverlay.open { opacity: 1; pointer-events: all; }

.svc-gal-panel {
  background: #fff;
  width: 100%; max-height: 88vh;
  border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,0,.15,1);
  overflow: hidden;
}
#svcGalleryOverlay.open .svc-gal-panel { transform: translateY(0); }

.svc-gal-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--border, #e8e4dc);
  flex-shrink: 0; gap: 16px;
}
/* col 1: service name — left aligned */
.svc-gal-header-left {
  display: flex; flex-direction: column; gap: 2px;
  justify-self: start;
}
.svc-gal-header-titles { display: flex; flex-direction: column; gap: 2px; }
.svc-gal-tag {
  font-family: var(--font-cond, sans-serif);
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--red, #cc1515);
  margin-bottom: 0;
}
.svc-gal-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(28px, 4vw, 48px); letter-spacing: 1px;
  color: var(--text, #1a1714); line-height: 1; margin: 0;
}
/* Request a Free Estimate — col 2 of 3, truly centered */
.svc-gal-estimate-btn {
  display: inline-flex; align-items: center;
  font-family: var(--font-cond, sans-serif);
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  color: var(--red, #cc1515);
  border: 2px solid var(--red, #cc1515);
  border-radius: 4px; padding: 10px 24px;
  transition: background .2s, color .2s;
  white-space: nowrap;
  justify-self: center;
}
.svc-gal-estimate-btn:hover {
  background: var(--red, #cc1515); color: #fff;
}
.svc-gal-close {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border, #e8e4dc);
  background: var(--surface2, #f5f3ef);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
  justify-self: end;
}
.svc-gal-close:hover { background: var(--red, #cc1515); color: #fff; border-color: var(--red, #cc1515); }

.svc-gal-body {
  flex: 1; overflow-y: auto; padding: 28px 32px 40px;
}

/* Image grid */
.svc-gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.svc-gal-item {
  position: relative; overflow: hidden;
  border-radius: 8px; aspect-ratio: 4/3;
  cursor: zoom-in; background: var(--surface2, #f0ede8);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.svc-gal-item:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.svc-gal-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; border-radius: 8px;
  transition: opacity .3s;
}
.svc-gal-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 20px 12px 8px;
  opacity: 0; transition: opacity .2s;
  border-radius: 0 0 8px 8px;
}
.svc-gal-item:hover .svc-gal-caption { opacity: 1; }

/* Loading & empty states */
.svc-gal-loading {
  text-align: center; padding: 64px 24px;
  color: var(--muted, #9a9088);
}
.svc-gal-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border, #e8e4dc);
  border-top-color: var(--red, #cc1515);
  animation: svcSpin .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes svcSpin { to { transform: rotate(360deg); } }

.svc-gal-empty {
  text-align: center; padding: 64px 24px;
  color: var(--muted, #9a9088);
}
.svc-gal-empty svg { stroke: var(--border, #ccc); margin: 0 auto 16px; display: block; }
.svc-gal-empty p   { font-size: 16px; margin-bottom: 20px; }
.svc-gal-contact {
  display: inline-block;
  font-family: var(--font-cond, sans-serif); font-size: 12px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red, #cc1515); text-decoration: none;
  border: 2px solid var(--red, #cc1515); border-radius: 4px;
  padding: 10px 24px; transition: all .2s;
}
.svc-gal-contact:hover { background: var(--red, #cc1515); color: #fff; }

/* ── Lightbox ───────────────────────────────────────────── */
#svcLightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  padding: 24px;
}
#svcLightbox.open { opacity: 1; pointer-events: all; }
.svc-lb-inner { position: relative; max-width: 1100px; width: 100%; text-align: center; }
.svc-lb-close {
  position: absolute; top: -44px; right: 0;
  background: rgba(255,255,255,.12); border: none;
  color: #fff; font-size: 20px; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s;
}
.svc-lb-close:hover { background: var(--red, #cc1515); }
.svc-lb-img {
  max-width: 100%; max-height: 80vh;
  border-radius: 8px; object-fit: contain;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.svc-lb-caption {
  color: rgba(255,255,255,.7); font-size: 13px;
  margin-top: 12px; letter-spacing: .5px;
}

@media (max-width: 580px) {
  .svc-gal-header { padding: 20px 20px 16px; }
  .svc-gal-body   { padding: 20px 16px 32px; }
  .svc-gal-grid   { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}

/* ══ SERVICE MEDIA OVERLAY ══════════════════════════════════ */
.svc-overlay {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 50vh;
  z-index: 9000;
  background: #0d0d0d;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
}
.svc-overlay.visible {
  transform: translateY(0);
  pointer-events: all;
}

/* Media fills the overlay completely */
.svc-overlay-media {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #111;
}
.svc-overlay-media img,
.svc-overlay-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.svc-overlay-media video { outline: none; }

/* No-media placeholder */
.svc-overlay-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  color: #444; font-family: var(--font-cond, sans-serif);
}
.svc-overlay-placeholder svg { width: 48px; height: 48px; stroke: #333; }
.svc-overlay-placeholder span { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }

/* Info bar at bottom */
.svc-overlay-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 28px;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.svc-overlay-tag {
  font-family: var(--font-cond, sans-serif);
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--red, #cc1515);
}
.svc-overlay-name {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(18px, 2.5vw, 28px);
  letter-spacing: 1px;
  color: #fff;
  flex: 1;
}
.svc-overlay-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s; flex-shrink: 0;
}
.svc-overlay-close:hover { background: var(--red, #cc1515); }

/* Dim the page content behind the overlay */
.svc-overlay-dim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 8999;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.svc-overlay-dim.visible { opacity: 1; pointer-events: none; }

/* ══ SERVICE HOVER PREVIEW PANEL ════════════════════════════ */
#svcHoverPanel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 50vh;
  z-index: 8000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
  background: #0d0d0d;
  overflow: hidden;
}
#svcHoverPanel.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Background image */
#svcHoverImg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
#svcHoverPanel.has-img #svcHoverImg { display: block; }

/* Video */
#svcHoverVideo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
#svcHoverPanel.has-video #svcHoverVideo { display: block; }

/* Dark gradient overlay so panel blends into page */
#svcHoverPanel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, #0d0d0d 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Close button */
#svcHoverClose {
  position: absolute;
  top: 14px; right: 20px;
  z-index: 3;
  width: 36px; height: 36px;
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
#svcHoverClose:hover { background: rgba(204,21,21,.8); }

/* ══ SERVICE GALLERY MODAL — video support ══════════════════ */
.svc-gal-video {
  position: relative; cursor: pointer;
}
.svc-gal-video video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: 6px;
  pointer-events: none;
}
.svc-gal-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
  color: #fff; font-size: 32px;
  border-radius: 6px;
  transition: background .2s;
  pointer-events: none;
}
.svc-gal-video:hover .svc-gal-play { background: rgba(204,21,21,.5); }

/* Lightbox video support */
.svc-lb-video {
  display: none;
  max-width: 90vw; max-height: 80vh;
  border-radius: 8px;
  width: 100%; background: #000;
}
.svc-lb-video[style*="block"] { display: block; }

/* ══ SERVICE INFO HOVER PANEL ═══════════════════════════════ */
/* ══ SERVICE CARD INLINE MODAL (hover 1s fade-in / 1s fade-out) ══════════ */

/* Card needs relative + z-index so modal can float above siblings */
.service-card.is-active {
  z-index: 100; /* float above other cards while active */
}

/* VIEW OUR WORK link text */
.svc-view-work {
  font-family: var(--font-cond, 'Barlow Condensed', sans-serif);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text, #1a1714);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 16px;
  cursor: pointer;
}

/* ── The floating modal ────────────────────────────────────── */
/* ── Global service hover modal — lives at <body> level ─────── */
.svc-card-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);    /* slightly above center = "lift" entry */

  width: clamp(300px, 42vw, 500px);
  max-height: min(82vh, 720px);        /* never taller than viewport */

  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border,#ccc) transparent;

  padding: 28px 32px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 28px 72px rgba(0,0,0,.24), 0 4px 16px rgba(0,0,0,.1);
  border: 1px solid var(--border,#e8e4dc);
  z-index: 9500;

  /* Hidden by default — pointer-events:none ensures zero hit-testing when invisible */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease, transform .25s cubic-bezier(.22,.68,0,1.15);
}
.svc-card-modal.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.svc-card-modal::-webkit-scrollbar { width: 5px; }
.svc-card-modal::-webkit-scrollbar-thumb { background: var(--border,#ddd); border-radius: 3px; }

/* Close button inside modal */
.svc-modal-close {
  position: sticky; top: -28px; float: right;
  margin: -10px -12px 8px 0;
  background: var(--surface2,#f5f3ef);
  border: none; border-radius: 50%;
  width: 28px; height: 28px; font-size: 13px;
  cursor: pointer; color: var(--muted,#888);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 1; flex-shrink: 0;
}
.svc-modal-close:hover { background: var(--red,#cc1515); color: #fff; }

/* Modal title */
.svc-card-modal a { color: var(--red, #cc1515); word-break: break-all; overflow-wrap: break-word; }
.svc-modal-media {
  margin: -6px -4px 14px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  line-height: 0;
}

.svc-card-modal-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 26px; letter-spacing: 1px;
  color: var(--text, #1a1714);
  line-height: 1;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red, #cc1515);
}

/* Each info section */
.svc-modal-section {
  margin-bottom: 14px;
}
.svc-modal-label {
  font-family: var(--font-cond, sans-serif);
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red, #cc1515);
  margin-bottom: 5px;
  display: flex; align-items: center; gap: 5px;
}
.svc-modal-body {
  font-size: 13px;
  color: var(--text, #1a1714);
  line-height: 1.65;
}
.svc-modal-body a    { color: var(--red, #cc1515); text-decoration: underline; word-break: break-all; overflow-wrap: break-word; }
.svc-modal-body b,
.svc-modal-body strong { font-weight: 700; }

.svc-modal-empty {
  font-size: 13px; color: var(--muted, #aaa); font-style: italic;
}

/* Footer CTA */
.svc-modal-media {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.svc-modal-media img,
.svc-modal-media video,
.svc-modal-media iframe {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.svc-card-modal-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #e8e4dc);
}
.svc-card-modal-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  font-family: var(--font-cond, sans-serif);
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  background: transparent;
  color: var(--red, #cc1515);
  border: 2px solid var(--red, #cc1515);
  border-radius: 6px;
  padding: 12px 24px;
  transition: background .18s, color .18s;
}
.svc-card-modal-cta:hover {
  background: var(--red, #cc1515);
  color: #fff;
}

/* Remove old hover-hint styles since we replaced it */
.svc-hover-hint { display: none !important; }

/* Dim overlay — appears behind the modal, above the page */
.svc-modal-dim {
  position: fixed; inset: 0;
  background: rgba(20,16,14,.35);
  backdrop-filter: blur(2px);
  z-index: 9400;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.svc-modal-dim.visible {
  opacity: 1; visibility: visible; pointer-events: auto;
}

/* On mobile — modal full width inside card */
@media (max-width: 768px) {
  .svc-card-modal {
    /* On mobile: full-width bottom sheet */
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(8px) !important;
    width: 100% !important;
    max-width: 100%;
    max-height: 75vh;
    border-radius: 16px 16px 0 0;
    padding: 20px 20px 32px;
    transition: opacity .5s ease, visibility .5s ease, transform .5s ease;
  }
  .service-card.is-active .svc-card-modal {
    transform: translateY(0) !important;
  }
}

/* ── Contact form feedback ──────────────────────────────────── */
.form-msg         { margin-top: 12px; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 6px; }
.form-msg-ok      { background: #edfaf1; color: #1a6b36; border: 1px solid #a3d9b1; }
.form-msg-err     { background: #fff0f0; color: #cc1515; border: 1px solid #f5b5b5; }
.input-error      { border-color: var(--red, #cc1515) !important; box-shadow: 0 0 0 2px rgba(204,21,21,.12); }

/* ── Social follow icons in footer ──────────────────────────── */
#footerSocialLinks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: opacity .2s, transform .15s;
  flex-shrink: 0;
}
#footerSocialLinks a:hover {
  opacity: .85;
  transform: translateY(-2px);
}

/* ── Social Follow Buttons (server-side rendered) ───────────── */
.social-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-cond, 'Barlow Condensed', sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity .2s, transform .15s;
  flex-shrink: 0;
}
.social-follow-btn:hover { opacity: .88; transform: translateY(-2px); }

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  transition: opacity .2s, transform .15s;
  flex-shrink: 0;
}
.social-icon-btn:hover { opacity: .85; transform: translateY(-2px); }

/* ── Service card — square stacked layout ────────────────────── */
.svc-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.svc-card-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
  flex-shrink: 0;
}
.svc-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 6px;
  font-family: var(--font-cond, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, color .18s, transform .15s;
  border: 2px solid var(--red, #cc1515);
  width: 100%;
  box-sizing: border-box;
}
.svc-card-action:hover {
  transform: translateY(-1px);
}
.svc-card-action--work {
  background: transparent;
  color: var(--text, #1a1714);
  font-size: 10px;
  border-color: var(--border, #e8e4dc);
}
.svc-card-action--work:hover {
  background: var(--surface2, #ede9e3);
  border-color: var(--muted, #9a9088);
  color: var(--text, #1a1714);
}
.svc-card-action--ask {
  background: transparent;
  color: var(--red, #cc1515);
}
.svc-card-action--ask:hover {
  background: var(--red, #cc1515);
  color: #fff;
}
@media (max-width: 640px) {
  .service-card {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .svc-card-right {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .svc-card-action { flex: 1; min-width: 140px; }
}

/* ══════════════════════════════════════════════════
   REVIEWS SECTION
══════════════════════════════════════════════════ */
.rev-section { background: #f8f9fa; }

/* Two-column layout */
.rev-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}
.rev-left { display: flex; flex-direction: column; gap: 20px; }

/* Score summary card */
.rev-summary-card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  gap: 28px;
  align-items: center;
}
.rev-score-col   { text-align: center; min-width: 80px; }
.rev-score-big   { font-size: 56px; font-weight: 400; color: #202124; line-height: 1; font-family: 'Roboto',sans-serif; }
.rev-star-row    { color: #fbbc04; font-size: 18px; letter-spacing: 1px; margin: 4px 0 2px; }
.rev-score-sub   { font-size: 12px; color: #70757a; }
.rev-bars-col    { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.rev-bar-row     { display: flex; align-items: center; gap: 8px; }
.rev-bar-label   { font-size: 12px; color: #70757a; width: 10px; text-align: right; }
.rev-bar-track   { flex: 1; height: 8px; background: #e8eaed; border-radius: 4px; overflow: hidden; }
.rev-bar-fill    { height: 100%; background: #fbbc04; border-radius: 4px; transition: width .7s ease; width: 0; }
.rev-bar-count   { font-size: 12px; color: #70757a; width: 16px; }

/* Platform links */
.rev-platforms       { background: #fff; border: 1px solid #dadce0; border-radius: 8px; padding: 16px 20px; }
.rev-platforms-label { font-size: 12px; color: #70757a; margin-bottom: 10px; font-weight: 500; }
.rev-platforms-row   { display: flex; gap: 8px; flex-wrap: wrap; }
.rev-platform-btn    { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 20px; border: 1px solid #dadce0; font-size: 13px; font-weight: 500; text-decoration: none; color: #3c4043; background: #fff; transition: background .15s; }
.rev-platform-btn:hover { background: #f1f3f4; }

/* Review cards — Google style, stacked full width */
.rev-grid {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  overflow: hidden;
}
.rev-card {
  padding: 16px 20px 12px;
  border-bottom: 1px solid #e8eaed;
  transition: background .12s;
}
.rev-card-hidden { display: none !important; }
.rev-card:last-child  { border-bottom: none; }
.rev-card:hover       { background: #fafafa; }

.rev-card-top    { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.rev-card-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: #cc1515;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500; font-family: 'Google Sans','Roboto',sans-serif;
}
.rev-card-meta   { flex: 1; min-width: 0; }
.rev-card-name   { font-size: 14px; font-weight: 500; color: #202124; line-height: 1.3; }
.rev-card-date   { font-size: 12px; color: #70757a; margin-top: 1px; }
.rev-card-project { display: none; }

.rev-card-stars-row    { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rev-card-stars        { color: #fbbc04; font-size: 14px; letter-spacing: 1px; line-height: 1; }
.rev-card-project-tag  { font-size: 12px; color: #70757a; }

.rev-card-title { font-size: 13px; font-weight: 500; color: #202124; margin-bottom: 2px; }

.rev-card-body-wrap { }
.rev-card-body {
  font-size: 14px; color: #3c4043; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.rev-card-body.expanded { display: block; overflow: visible; -webkit-line-clamp: unset; }
.rev-card-more {
  background: none; border: none; cursor: pointer;
  color: #1a73e8; font-size: 14px; padding: 0; display: inline;
  font-family: inherit;
}
.rev-card-more:hover { text-decoration: underline; }

.rev-card-photos     { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.rev-card-photo      { width: 72px; height: 72px; border-radius: 4px; object-fit: cover; cursor: pointer; border: 1px solid #e0e0e0; }
.rev-card-photo:hover{ opacity: .85; }

.rev-card-footer  { display: flex; gap: 12px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f1f3f4; }
.rev-card-action  { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 5px; color: #70757a; font-size: 13px; padding: 4px 8px; border-radius: 4px; font-family: inherit; }
.rev-card-action:hover { background: #f1f3f4; color: #202124; }
.rev-card-action span { font-size: 12px; }

/* Load more / see less */
.rev-load-more-wrap { background: #fff; border: 1px solid #dadce0; border-top: none; border-radius: 0 0 8px 8px; padding: 0; text-align: center; }
.rev-load-more-btn  {
  width: 100%; padding: 14px; background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: #1a73e8;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .12s;
  border-top: 1px solid #e8eaed;
}
.rev-load-more-btn:hover { background: #f1f3f4; }
.rev-load-more-btn svg  { transition: transform .2s; }
.rev-load-more-btn.expanded svg { transform: rotate(180deg); }

.rev-no-reviews { background: #fff; border: 1px solid #dadce0; border-radius: 8px; text-align: center; padding: 40px 20px; color: #70757a; font-size: 14px; }

/* Right column — form */
.rev-right { position: sticky; top: 80px; }
.rev-form-card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 24px;
}
.rev-form-badge   { display: none; }
.rev-form-heading { font-size: 20px; font-weight: 500; color: #202124; margin-bottom: 4px; font-family: 'Google Sans','Roboto',sans-serif; }
.rev-form-sub     { font-size: 13px; color: #70757a; margin-bottom: 18px; line-height: 1.5; }

.rev-rating-wrap  { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.rev-rating-label { font-size: 12px; font-weight: 500; color: #70757a; text-transform: none; letter-spacing: 0; font-family: inherit; }
.rev-star-picker  { display: flex; gap: 2px; }
.rev-star-btn     { background: none; border: none; font-size: 26px; color: #dadce0; cursor: pointer; padding: 0 1px; transition: color .1s, transform .1s; line-height: 1; }
.rev-star-btn.active  { color: #fbbc04; }
.rev-star-btn:hover   { color: #fbbc04; transform: scale(1.15); }
.rev-rating-hint  { font-size: 12px; color: #70757a; font-style: italic; }

.rev-form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 0; }
.rev-field-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.rev-field-label { font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: #70757a; font-family: inherit; }
.rev-field-opt   { font-weight: 400; letter-spacing: 0; font-style: italic; text-transform: none; font-size: 10px; }
.rev-req         { color: #cc1515; }
.rev-input       { width: 100%; padding: 9px 12px; box-sizing: border-box; border: 1px solid #dadce0; border-radius: 4px; font-size: 14px; color: #202124; background: #fff; transition: border-color .15s, box-shadow .15s; font-family: inherit; }
.rev-input:focus { border-color: #1a73e8; outline: none; box-shadow: 0 0 0 2px rgba(26,115,232,.15); }
.rev-input::placeholder { color: #bdc1c6; }
select.rev-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; cursor: pointer; }
.rev-textarea    { resize: vertical; min-height: 90px; }

/* Upload zone — neutral, no color accent */
.rev-upload-zone  { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #dadce0; border-radius: 4px; cursor: pointer; color: #70757a; font-size: 13px; background: #fff; transition: border-color .15s; }
.rev-upload-zone:hover { border-color: #999; background: #f8f9fa; color: #3c4043; }
.rev-photo-previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.rev-preview-wrap   { position: relative; display: inline-block; }
.rev-preview-thumb  { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; border: 1px solid #dadce0; display: block; }
.rev-preview-remove { position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; border-radius: 50%; background: #cc1515; color: #fff; border: none; cursor: pointer; font-size: 10px; line-height: 16px; text-align: center; padding: 0; }

.rev-submit-btn { width: 100%; padding: 11px; background: #cc1515; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, box-shadow .15s; margin-top: 4px; font-family: inherit; letter-spacing: 0; text-transform: none; }
.rev-submit-btn:hover    { background: #a01010; box-shadow: 0 2px 8px rgba(204,21,21,.3); }
.rev-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.rev-msg      { margin-top: 10px; font-size: 13px; text-align: center; }
.rev-msg.ok   { color: #0f9d58; }
.rev-msg.err  { color: #d93025; }
.rev-form-note { text-align: center; font-size: 11px; color: #bdc1c6; margin-top: 8px; }

@media (max-width: 960px) {
  .rev-layout { grid-template-columns: 1fr; gap: 28px; }
  .rev-right  { position: static; }
}
@media (max-width: 560px) {
  .rev-summary-card { flex-direction: column; gap: 14px; }
  .rev-form-card    { padding: 18px 16px; }
  .rev-form-row     { grid-template-columns: 1fr; }
}
