/* --------------------------------------------------
   FONTS
   -------------------------------------------------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/pjs-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/pjs-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/pjs-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/pjs-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/pjs-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------
   TOKENS & THEMES
   -------------------------------------------------- */
:root {
  --ink: #1B2036;
  --mist: #F4F6F8;
  --board: #FFFFFF;
  --blue: #4B5CF2;
  --blue-ink: #3A44C9;
  --blue-deep: #2F3AAE;
  --yellow: #F3E260;
  --muted: #5A6470;
  --stripe-lt: #7BA35A;
  --stripe-dk: #4A7A3E;

  /* On Ink Palette */
  --on-ink-text: #E7EAF0;
  --on-ink-muted: #B7BECB;
  --blue-light: #8F9BFF;

  /* Theme mappings */
  --bg: var(--mist);
  --panel-bg: var(--board);
  --text-main: var(--ink);
  --text-body: var(--blue-ink);
  --text-muted: var(--muted);
  --border-color: rgba(27, 32, 54, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B2036;
    --panel-bg: #232A44;
    --text-main: #E7EAF0;
    --text-body: #B7BECB;
    --text-muted: #8F9BFF;
    --border-color: rgba(255, 255, 255, 0.1);
  }
}

[data-theme="dark"] {
  --bg: #1B2036;
  --panel-bg: #232A44;
  --text-main: #E7EAF0;
  --text-body: #B7BECB;
  --text-muted: #8F9BFF;
  --border-color: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------
   RESETS & ACCESSIBILITY
   -------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

input, textarea, button {
  font-family: inherit;
}

/* Focus Visible States */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* --------------------------------------------------
   UTILITIES & BASE LAYOUT
   -------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }
}

.text-center { text-align: center; }

/* --------------------------------------------------
   THE MOWING STRIPE (SIGNATURE ACCENTS)
   -------------------------------------------------- */
.mowing-stripe-divider {
  height: 12px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--stripe-lt) 0px,
    var(--stripe-lt) 60px,
    var(--stripe-dk) 60px,
    var(--stripe-dk) 120px
  );
  border: none;
}

.logo-stripe {
  height: 3px;
  width: 100%;
  margin-top: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--stripe-lt) 0px,
    var(--stripe-lt) 10px,
    var(--stripe-dk) 10px,
    var(--stripe-dk) 20px
  );
}

.accent-stripe {
  height: 4px;
  width: 80px;
  margin: 8px 0 24px 0;
  background: repeating-linear-gradient(
    90deg,
    var(--stripe-lt) 0px,
    var(--stripe-lt) 8px,
    var(--stripe-dk) 8px,
    var(--stripe-dk) 16px
  );
}

/* --------------------------------------------------
   PREVIEW RIBBON
   -------------------------------------------------- */
.preview-ribbon {
  background-color: var(--ink);
  color: var(--on-ink-text);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1100;
}
.ribbon-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ribbon-chips {
  display: flex;
  gap: 8px;
}
.ribbon-chip {
  background-color: var(--blue);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}
.ribbon-chip:hover {
  opacity: 0.9;
}
.ribbon-dismiss {
  background: none;
  border: none;
  color: var(--on-ink-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.ribbon-dismiss:hover {
  color: #ffffff;
}
@media (max-width: 767px) {
  .preview-ribbon {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    padding-right: 40px;
  }
  .ribbon-dismiss {
    position: absolute;
    top: 12px;
    right: 12px;
  }
}

/* --------------------------------------------------
   STICKY CALL BAR
   -------------------------------------------------- */
.mobile-sticky-call {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--blue-deep);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
@media (min-width: 768px) {
  .mobile-sticky-call {
    display: none;
  }
}
@media (max-width: 767px) {
  body {
    padding-bottom: 52px;
  }
}

/* --------------------------------------------------
   SITE HEADER & NAVIGATION
   -------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  background-image: linear-gradient(to bottom, rgba(27, 32, 54, 0.9) 0%, rgba(27, 32, 54, 0) 100%);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-link {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
}
.logo-text {
  font-weight: 800;
  font-size: 24px;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.logo-sub {
  font-size: 11px;
  color: var(--blue-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.site-nav {
  position: relative;
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: flex-end;
  cursor: pointer;
  list-style: none;
  outline: none;
}
.nav-toggle::-webkit-details-marker {
  display: none;
}
.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
}

.nav-links {
  display: none; /* Mobile closed by default */
  flex-direction: column;
  gap: 12px;
  background-color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  width: 100%;
}
.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--blue-light);
}
.nav-cta-btn {
  background-color: var(--blue);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav-cta-btn:hover {
  background-color: var(--blue-ink);
}

@media (max-width: 767px) {
  .site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 14px 0;
  }
  .header-container {
    position: relative;
    flex-wrap: wrap;
  }
  .site-nav {
    width: 100%;
  }
  .nav-toggle {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 1010;
  }
  .nav-menu[open] .nav-links {
    display: flex;
  }
  .nav-links {
    margin-top: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
  }
  .nav-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    gap: 32px;
    width: auto;
  }
  .nav-link {
    font-size: 15px;
    padding: 0;
  }
  .nav-cta-btn {
    font-size: 15px;
    padding: 8px 20px;
  }
}

/* --------------------------------------------------
   HERO: THE STRIPED FIELD
   -------------------------------------------------- */
.hero {
  position: relative;
  background-image: 
    linear-gradient(to right, rgba(27, 32, 54, 0.9) 0%, rgba(27, 32, 54, 0.6) 50%, rgba(27, 32, 54, 0.1) 100%),
    linear-gradient(to bottom, rgba(27, 32, 54, 0.6) 0%, rgba(27, 32, 54, 0) 25%),
    url('img/hero-stripe.jpg');
  background-size: cover;
  background-position: center;
  color: var(--on-ink-text);
  padding: 180px 0 120px 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

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

.hero-eyebrow {
  color: var(--yellow);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--on-ink-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--blue);
  color: #ffffff;
  border: 2px solid transparent;
}
.btn-primary:hover {
  background-color: var(--blue-ink);
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Trust Row */
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: var(--on-ink-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 767px) {
  .hero {
    padding: 96px 0 72px 0;
    min-height: auto;
    background-image: 
      linear-gradient(to bottom, rgba(27, 32, 54, 0.95) 0%, rgba(27, 32, 54, 0.75) 100%),
      url('img/hero-stripe.jpg');
  }
  .gallery-hero {
    padding: 24px 0 48px 0;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-trust-row {
    flex-direction: column;
    gap: 12px;
  }
}

/* --------------------------------------------------
   WHAT WE DO (SERVICES)
   -------------------------------------------------- */
.section-padding {
  padding: 96px 0;
}
@media (max-width: 767px) {
  .section-padding {
    padding: 64px 0;
  }
}

.eyebrow-blue {
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 48px;
}
[data-theme="dark"] .section-h2 {
  color: var(--on-ink-text);
}

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

.service-card {
  background-color: var(--panel-bg);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease;
}

.service-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.service-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
[data-theme="dark"] .service-title {
  color: var(--on-ink-text);
}

.service-desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --------------------------------------------------
   LAWN PACKAGE BAND
   -------------------------------------------------- */
.package-band {
  background-color: var(--ink);
  color: var(--on-ink-text);
}

.package-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow-yellow {
  color: var(--yellow);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.package-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 32px;
}

.package-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.package-step {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--on-ink-text);
}
.package-step::before {
  content: "•";
  color: var(--blue-light);
  font-size: 24px;
  position: absolute;
  left: 0;
  top: -2px;
  line-height: 1;
}

.package-note {
  font-size: 15px;
  color: var(--on-ink-muted);
}

/* Pricing Card */
.price-card {
  background-color: #232A44;
  border-radius: 12px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-eyebrow {
  font-size: 12px;
  font-weight: 800;
  color: var(--on-ink-muted);
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.price-numbers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.price-amount {
  font-size: 56px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.price-label {
  font-size: 16px;
  color: #ffffff;
  font-weight: 600;
}

.price-card-text {
  font-size: 14px;
  color: var(--on-ink-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.price-cta-btn {
  width: 100%;
}

@media (max-width: 991px) {
  .package-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .package-left, .package-right, .price-card { min-width: 0; }
}
@media (max-width: 420px) {
  .price-amount { font-size: 46px; }
  .price-row { flex-wrap: wrap; gap: 4px 12px; }
}

/* --------------------------------------------------
   PROOF / CREDENTIALS BAND
   -------------------------------------------------- */
.proof-band {
  background-color: var(--board);
  border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .proof-band {
  background-color: #1B2036;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.proof-card {
  background-color: var(--mist);
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
}
[data-theme="dark"] .proof-card {
  background-color: #232A44;
}

.proof-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 8px;
}

.proof-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
[data-theme="dark"] .proof-label {
  color: var(--on-ink-text);
}

.proof-footnote {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
[data-theme="dark"] .proof-footnote {
  color: var(--on-ink-muted);
}

@media (max-width: 991px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 500px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   GALLERY TEASER (WORK)
   -------------------------------------------------- */
.teaser-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.teaser-header .section-h2 {
  margin-bottom: 0;
}

.teaser-link {
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.teaser-link:hover {
  text-decoration: underline;
}

.teaser-row {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 0.9fr;
  gap: 20px;
}

.teaser-img-box {
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
}

.teaser-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .teaser-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .teaser-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --------------------------------------------------
   CONTACT BAND
   -------------------------------------------------- */
.contact-band {
  background-color: var(--ink);
  color: var(--on-ink-text);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-left h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.contact-left .accent-stripe {
  margin-top: 16px;
  margin-bottom: 32px;
}

.contact-phone-huge {
  display: inline-block;
  background-color: var(--blue);
  color: #ffffff;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  margin-bottom: 32px;
}
.contact-phone-huge:hover {
  background-color: var(--blue-ink);
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  color: var(--on-ink-muted);
}
.contact-info-list a {
  text-decoration: none;
}
.contact-info-list a:hover {
  color: #ffffff;
}

/* Contact Card Form */
.contact-card {
  background-color: var(--board);
  border-radius: 12px;
  padding: 40px;
  color: var(--ink);
}
[data-theme="dark"] .contact-card {
  color: var(--on-ink-text);
}

.contact-card-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}

.mock-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
}

.form-input {
  background-color: var(--mist);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  font-size: 15px;
  color: var(--ink);
  width: 100%;
}
[data-theme="dark"] .form-input {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}
.form-input::placeholder {
  color: #888888;
}

.form-submit-btn {
  width: 100%;
  border: none;
  margin-top: 8px;
}

.form-footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
[data-theme="dark"] .form-footnote {
  color: var(--on-ink-muted);
}

@media (max-width: 991px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* --------------------------------------------------
   FOOTER
   -------------------------------------------------- */
.site-footer {
  background-color: #121524;
  color: var(--on-ink-text);
  padding: 64px 0;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
  min-width: 280px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  display: inline-block;
}

.footer-copy-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--on-ink-muted);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-phone {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}
.footer-phone:hover {
  color: var(--blue-light);
}

.footer-email {
  font-size: 16px;
  color: var(--on-ink-muted);
  text-decoration: none;
}
.footer-email:hover {
  color: #ffffff;
}

@media (max-width: 767px) {
  .footer-container {
    flex-direction: column;
    gap: 32px;
  }
  .footer-right {
    align-items: flex-start;
  }
  .footer-phone {
    font-size: 28px;
  }
}

/* --------------------------------------------------
   GALLERY PAGE SPECIFIC
   -------------------------------------------------- */
.gallery-hero {
  position: relative;
  background-color: var(--ink);
  color: #ffffff;
  padding: 160px 0 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-hero-eyebrow {
  color: var(--blue-light);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gallery-hero-h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -1px;
}

.gallery-section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 64px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
[data-theme="dark"] .gallery-section-title {
  color: #ffffff;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.gallery-item:nth-child(odd) {
  flex: 1 1 calc(58% - 8px);
}
.gallery-item:nth-child(even) {
  flex: 1 1 calc(42% - 8px);
}

@media (max-width: 767px) {
  .gallery-item {
    flex: 1 1 100% !important;
  }
}

.gallery-item-img-wrapper {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.gallery-item-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Scale animation if reduced motion not preferred */
@media (prefers-reduced-motion: no-preference) {
  .gallery-item:hover .gallery-item-img-wrapper img {
    transform: scale(1.03);
  }
}

.gallery-caption {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-body);
}

/* --------------------------------------------------
   REDUCED MOTION TRANSITIONS
   -------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-cta-btn, .nav-link, .ribbon-chip, .ribbon-dismiss, .service-card, .teaser-link, .contact-phone-huge, .footer-phone, .footer-email {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .service-card:hover {
    transform: translateY(-4px);
  }
}


/* OS dark-mode mirror of [data-theme=dark] element overrides */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-h2 { color: var(--on-ink-text); }
  :root:not([data-theme="light"]) .service-title { color: var(--on-ink-text); }
  :root:not([data-theme="light"]) .proof-band { background-color: #1B2036; }
  :root:not([data-theme="light"]) .proof-card { background-color: #232A44; }
  :root:not([data-theme="light"]) .proof-label { color: var(--on-ink-text); }
  :root:not([data-theme="light"]) .proof-footnote { color: var(--on-ink-muted); }
  :root:not([data-theme="light"]) .contact-card { color: var(--on-ink-text); }
  :root:not([data-theme="light"]) .form-input { background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff; }
  :root:not([data-theme="light"]) .form-footnote { color: var(--on-ink-muted); }
  :root:not([data-theme="light"]) .gallery-section-title { color: #ffffff; }
}
