/*
 * One-Pager Styles — Dark theme (Red + Gray)
 * - Colors only changed (structure untouched)
 * - Mobile menu still hidden by default & shown via body.menu-open
 */

/* ========== Tokens / Reset ========== */
:root {
  /* Brand: red */
  --brand: #dc2626; /* red-600 */
  --brand-600: #b91c1c; /* red-700 */

  /* Typography & surfaces (dark) */
  --ink: #f3f4f6; /* near-white text */
  --muted: #ffffff; /* soft gray text */

  /* Backgrounds & borders (dark scale) */
  --bg: #0b0f14; /* page background */
  --paper: #12161d; /* section / alt surface */
  --border: #2a303a; /* dividers/borders */

  --radius: 1rem;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
  --maxw: 1200px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: auto;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu,
    "Helvetica Neue", Arial;
  color: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.bg-image {
  /* 3 layers = 2 overlays + 1 photo */
  background-image: radial-gradient(
      1200px 600px at 50% 10%,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.25) 60%,
      rgba(0, 0, 0, 0.35)
    ),
    linear-gradient(to bottom, rgba(11, 15, 20, 0.5), rgba(11, 15, 20, 0.75)),
    url("../img/trt-the-renovation-team-background-light.png");
  background-position: center top, center top, center;
  background-size: 100% 100%, 100% 100%, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
  /* parallax-style stickiness for desktop, iOS fallback below */
  background-attachment: scroll, scroll, fixed;
}

/* iOS Safari: avoid jitter with fixed backgrounds */
@supports (-webkit-touch-callout: none) {
  body.bg-image {
    background-attachment: scroll, scroll, scroll;
  }
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  font: inherit;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1rem;
}
.section {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.stack {
  display: grid;
  gap: 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Header / Navigation ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(6px);
  /* darker translucent header */
  background: rgba(13, 17, 23, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__name {
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #1a1f29; /* dark pill */
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.btn--primary {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-600);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
}

/* Mobile toggle */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #1a1f29; /* dark toggle */
  color: var(--ink);
}
.nav__toggle svg {
  width: 22px;
  height: 22px;
}

/* Desktop vs Mobile visibility */
.only-desktop {
  display: none;
}
.only-mobile {
  display: flex;
}
@media (min-width: 900px) {
  .only-desktop {
    display: flex;
  }
  .only-mobile {
    display: none;
  }
}

/* ========== Mobile Full-Screen Menu ========== */
/* Backdrop (hidden by default) */
.mobile-layer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0);
  z-index: 1200;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
body.menu-open .mobile-layer {
  display: block;
  opacity: 1;
}

/* Panel (hidden by default) */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  background: #ffffff;
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.2s ease;
  padding: 1.25rem 1rem 1rem;
  z-index: 1500;
  flex-direction: column;
}
body.menu-open .mobile-menu {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  background: #ffffff;
  color: var(--paper) !important;
  z-index: 1500;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    transition: none;
  }
}

/* Hide mobile UI entirely on desktop */
@media (min-width: 900px) {
  .mobile-menu,
  .mobile-layer {
    display: none !important;
  }
}

/* Menu content */
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.mobile-menu__links {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 0 1rem;
}
.mobile-menu__links a {
  padding: 0.9rem 0.5rem;
  border-radius: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
}
.mobile-menu__links a:hover {
  background: #121720;
  border-color: var(--border);
}
.mobile-menu__links .phone {
  color: var(--brand-600);
}
.mobile-menu__footer {
  margin-top: auto;
  color: #9aa4b2;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ========== Hero ========== */
.hero--home {
  background: linear-gradient(120deg, #1a1f29, #11151c);
}

.hero {
  padding: 2.5rem 0 1rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.hero p {
  color: var(--muted);
  margin: 0;
}

/* ========== Services ========== */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.service-card {
  grid-column: span 12;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #131a23; /* dark card */
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--ink);
}
.service-card:hover {
  border: 1px solid var(--brand);
  transform: scale(1.1);
  transition: ease-in 0.5s;
}
.service-card a {
  color: var(--ink);
}
.service-card h3 {
  margin: 0.25rem 0;
  font-size: 1.125rem;
  color: var(--ink);
}
.service-card p {
  margin: 0;
  color: var(--muted);
}
@media (min-width: 600px) {
  .service-card {
    grid-column: span 6;
  }
}
@media (min-width: 900px) {
  .service-card {
    grid-column: span 4;
  }
}

/* ========== About ========== */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}
.about__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about__body h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--ink);
}
.about__body p {
  color: var(--muted);
}
@media (min-width: 900px) {
  .about {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* ========== Two-up layout: About + Slider ========== */
/* Mobile: stack */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}
.split__col {
  min-width: 0;
} /* allows slider to shrink without overflow */

.right__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Desktop: two columns */
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 1fr; /* text slightly wider than slider */
    align-items: start;
  }
}

/* Tighten headings inside split */
.split h2 {
  margin-top: 0;
}

/* ========== Contact ========== */
.contact-wrap {
  display: grid;
  gap: 1.25rem;
}

.home-contact-title {
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

form.contact {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: #131a23;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.field label {
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: #0f141b;
  color: var(--ink);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.form-note {
  color: var(--ink);
  font-size: 0.9rem;
  margin: 0;
}
/* Force vertical stack (details above form) for this page/section */
.contact-grid--stacked {
  grid-template-columns: 1fr !important; /* override desktop 2-col */
}

/* Optional: small visual separation when stacked */
.contact-grid--stacked .contact-info {
  /* keep your dark theme; feel free to remove if you prefer no card look */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: #131a23;
  box-shadow: var(--shadow);
}

/* Disclaimer under the form */
.form-disclaimer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}
.form-disclaimer a {
  color: var(--brand);
  text-decoration: underline;
}

/* ========== Footer ========== */
.site-footer {
  background: #0b0f14;
  color: #e5e7eb;
} /* slightly darker to match page bg */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 0 0 0 20px !important;
}
.footer-grid a {
  color: var(--brand);
} /* brand red in footer links */
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.25rem;
  padding-top: 1rem;
  color: #9aa4b2;
  font-size: 0.9rem;
}

/* Desktop nav links — sits between brand and action buttons */
.nav__links {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-inline: 1rem;
}
.nav__link {
  /* subtle, compact, and consistent with dark theme */
  color: var(--ink);
  opacity: 0.9;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}
.nav__link:hover {
  opacity: 1;
  background: #121720;
  text-decoration: none;
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
}

/* Make the mobile menu fully opaque and clearer */
.mobile-layer {
  background: rgba(0, 0, 0, 0.65);
} /* darker scrim */
.mobile-menu {
  background: #0b0f14; /* solid, no transparency */
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.45); /* depth from page */
}
.mobile-menu__links a:hover {
  background: #161b24;
} /* slightly brighter hover */

/* ==========================================================================
   Gallery cell background images (this page only)
   - Uses layered backgrounds: dark gradient overlay + photo
   - Keeps your existing grid/aspect/rounding
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.gallery-grid .ph {
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  background: linear-gradient(
    135deg,
    #1e2430,
    #11151c
  ); /* darker placeholder */
  border: 1px dashed #3b4250;
  display: grid;
  place-items: center;
  color: #9aa4b2;
  font-size: 0.9rem;
}

.gallery-grid[data-gallery-grid] .ph {
  position: relative;
  color: var(--ink);
  /* make text readable over photos */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  /* ensure photos fill the tile */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
}

/* 1) Exterior Renovation */
.gallery-grid[data-gallery-grid] .ph:nth-child(1) {
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    url("../img/fasfit-exterior-signage-renovation.jpg");
}

/* 2) Kitchen */
.gallery-grid[data-gallery-grid] .ph:nth-child(2) {
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    url("../img/custom-built-entrance-gate.jpg");
}

/* 3) Bathroom */
.gallery-grid[data-gallery-grid] .ph:nth-child(3) {
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    url("../img/kitchen-renovation.jpg");
}

/* 4) Extension */
.gallery-grid[data-gallery-grid] .ph:nth-child(4) {
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    url("../img/interior-lounge-renovation.jpg");
}

/* 5) Roofing */
.gallery-grid[data-gallery-grid] .ph:nth-child(5) {
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    url("../img/bathroom-renovation.jpg");
}

/* 6) Interior */
.gallery-grid[data-gallery-grid] .ph:nth-child(6) {
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    url("../img/drywalling-and-partitioning.jpg");
}

/* 7) Exterior */
.gallery-grid[data-gallery-grid] .ph:nth-child(7) {
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    url("../img/bathroom-renovations.jpg");
}

/* 8) Tiling */
.gallery-grid[data-gallery-grid] .ph:nth-child(8) {
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    url("../img/custom-exterior-gates.jpg");
}

/* ==========================================================================
   Gallery hover effects (zoom, lift, glow) + CTA alignment
   ========================================================================== */
.gallery-grid[data-gallery-grid] .ph {
  cursor: zoom-in;
  background-size: 100%;
  transition: background-size 0.28s ease, transform 0.2s ease,
    box-shadow 0.28s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.gallery-grid[data-gallery-grid] .ph:hover,
.gallery-grid[data-gallery-grid] .ph:focus-visible {
  background-size: 108%;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  border-color: rgba(220, 38, 38, 0.35); /* brand glow */
  outline: 2px solid transparent;
}
.gallery-grid[data-gallery-grid] .ph:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* ==========================================================================
   Minimal, accessible lightbox
   ========================================================================== */
.glbx {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}
.glbx[hidden] {
  display: none;
}

.glbx__bg {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: zoom-out;
}

.glbx__frame {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  margin: 0;
  border-radius: 0.75rem;
  background: #0b0f14; /* dark surface */
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  padding: 0.75rem 0.75rem 2.25rem 0.75rem;
}

.glbx__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(88vh - 3.25rem);
  border-radius: 0.5rem;
  background: #11151c;
}

.glbx__cap {
  position: absolute;
  left: 0.9rem;
  right: 3.25rem;
  bottom: 0.6rem;
  color: var(--ink);
  font-size: 0.95rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glbx__close {
  position: absolute;
  right: 0.5rem;
  top: 0.25rem;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: #131a23;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}
.glbx__close:hover {
  background: #161b24;
  transform: scale(1.05);
}

/*
 * Featured Slider (dark theme, brand red accents)
 * - Full-width responsive; images 16:9 by default
 * - Hover pause, keyboard focus, dots & arrows
 */

/* Container */
.slider {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #131a23;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Track */
.slider__track {
  display: flex;
  will-change: transform;
  transition: transform 0.45s ease;
}

/* Slides */
.slide {
  min-width: 100%;
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f141b;
}
@media (max-width: 599px) {
  .slide {
    aspect-ratio: 4 / 3;
  }
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption */
.slide__cap {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.6rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
  color: var(--ink);
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

/* Controls */
.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: #1a1f29;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease, border-color 0.2s ease;
  z-index: 2;
}
.slider__btn:hover {
  background: #161b24;
  border-color: var(--brand);
}
.slider__btn:active {
  transform: translateY(-50%) scale(0.97);
}
.slider__btn--prev {
  left: 0.5rem;
}
.slider__btn--next {
  right: 0.5rem;
}

/* Dots */
.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.4rem;
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  z-index: 2;
}
.slider__dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #1a1f29;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  font-size: 0;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}
.slider__dots button[aria-current="true"] {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.15);
}
.slider__dots button:hover {
  border-color: var(--brand);
}

/* CTA alignment */
.slider__cta {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* Reduced motion: disable transitions/auto-advance animation */
@media (prefers-reduced-motion: reduce) {
  .slider__track {
    transition: none;
  }
}

/* ========================= Why Choose Us ========================= */
.why {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}
@media (min-width: 900px) {
  .why {
    grid-template-columns: 1.05fr 1fr;
  } /* text a touch wider */
}

/* Lede & points */
.why__lede {
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}
.why__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.why__points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink);
}
.why__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.35rem;
  background: var(--brand);
  /* check icon mask */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='white' d='M7.629 13.233L3.9 9.504l1.414-1.414 2.315 2.315 6.06-6.06 1.414 1.414z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='white' d='M7.629 13.233L3.9 9.504l1.414-1.414 2.315 2.315 6.06-6.06 1.414 1.414z'/></svg>");
  -webkit-mask-size: 70% 70%;
  mask-size: 70% 70%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.25);
}

/* Meta badges */
.why__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: #0f141b;
  color: var(--ink);
}
.badge__num {
  font-weight: 700;
  line-height: 1;
  padding: 0.1rem 0.35rem;
  border-radius: 0.4rem;
  background: rgba(220, 38, 38, 0.12);
  color: #fff;
  border: 1px solid rgba(220, 38, 38, 0.35);
}

/* Services list (cards) */
.why__services {
  margin: 0.5rem auto;
}
.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.why__services li a{
    color: var(--ink) !important;
}

.why__services li a:hover{
    color: var(--brand) !important;
}

@media (min-width: 600px) {
  .svc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .svc-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.svc {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: #131a23;
  color: var(--ink);
  padding: 0.85rem 0.9rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.25s ease,
    border-color 0.2s ease, background 0.2s ease;
  position: relative;
}
.svc::after {
  content: "";
  position: absolute;
  inset: auto 0.7rem 0.6rem auto;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0.75;
  transition: transform 0.18s ease, opacity 0.2s ease;
}
.svc:hover,
.svc:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  background: #161b24;
}
.svc:hover::after,
.svc:focus-visible::after {
  transform: scale(1.2);
  opacity: 1;
}

.svc__title {
  font-weight: 700;
}
.svc__meta {
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA under services */
.why__cta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}


/* ---------------------------------------------------------------
   Why cards (left column)
   - 1 column on mobile, 2 columns from 700px up
   - Subtle hover/focus lift, brand-accent edge, dark surfaces
---------------------------------------------------------------- */
.why__cards{
  list-style:none;
  margin: .5rem 0 0 0;
  padding:0;
  display:grid;
  gap:.75rem;
  grid-template-columns:1fr;
}
@media (min-width:700px){
  .why__cards{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

.qcard{
  position:relative;
  border:1px solid var(--border);
  border-radius:.9rem;
  background:#131a23;              /* dark card surface */
  color:var(--ink);
  padding: .9rem .95rem .9rem 1.05rem;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease, background .2s ease;
  overflow:hidden;
}

/* Brand-accent bar on the left */
.qcard::before{
  content:"";
  position:absolute; inset:0 auto 0 0;
  width:4px; border-radius:.9rem 0 0 .9rem;
  background: linear-gradient(180deg, rgba(220,38,38,.9), rgba(185,28,28,.9)); /* red */
  box-shadow: 0 0 0 1px rgba(220,38,38,.15), 0 8px 18px rgba(220,38,38,.15);
}

.qcard:hover,
.qcard:focus-within{
  transform: translateY(-2px);
  border-color: rgba(220,38,38,.35);
  background:#161b24;              /* slightly brighter on hover */
  box-shadow: 0 16px 32px rgba(0,0,0,.45);
}

.qcard__title{
  margin:0 0 .25rem 0;
  font-size:1.02rem;
  font-weight:700;
}
.qcard__body{
  margin:0;
  color:var(--muted);
  font-size:.95rem;
}

/* Optional: if you kept the lede text above the cards */
.why__lede{ color:var(--muted); margin:.5rem 0 1rem; }
