/* ============================================================
   KC YARD MAINTENANCE & HANDYMAN SERVICES — STYLES
   Colour palette (white + green to match logo):
     White:           #ffffff
     Off-white:       #f7faf3
     Brand green:     #7cc142
     Green dark:      #5fa530
     Green deep:      #3f7a1f
     Navy text:       #1a2332
     Text body:       #4a5660
     Border light:    #e3e8de
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark: #1f4d2c;
  --green-mid:  #2a6b3d;
  --green-light-tint: #e8f0ea;
  --accent: #2a6b3d;
  --accent-dark: #1f4d2c;
  --accent-deep: #143820;
  --white: #ffffff;
  --off-white: #f7faf3;
  --navy: #1a2332;
  --text-dark: #1a2332;
  --text-body: #4a5660;
  --border-light: #e3e8de;
  --nav-height: 84px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

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

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

/* ============================================================
   UTILITIES
   ============================================================ */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 640px;
  margin-bottom: 36px;
}

.section-light {
  background: var(--off-white);
}

.section-light .section-title,
.section-light .section-intro {
  color: var(--text-dark);
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  text-align: center;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.hero .btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  font-weight: 700;
}

.hero .btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.section-green .btn-primary {
  background: var(--white);
  color: var(--green-dark);
}

.section-green .btn-primary:hover {
  background: var(--off-white);
  color: var(--green-dark);
}

.btn-secondary {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}

.btn-secondary svg,
.btn-secondary i {
  width: 18px;
  height: 18px;
}

.btn-full {
  width: 100%;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.2s;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(26,35,50,0.08);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.nav-logo {
  height: 64px;
  width: auto;
  display: block;
  max-width: 240px;
  object-fit: contain;
}

.nav-cta-btn {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-color: var(--accent) !important;
}

.nav-cta-btn:hover {
  background: var(--accent-dark) !important;
  color: var(--white) !important;
  border-color: var(--accent-dark) !important;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
  opacity: 0.85;
}

.nav-links a:hover {
  color: var(--accent-dark);
  opacity: 1;
}

.nav-cta-btn {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--green-mid, #2d6a4f);
  padding: 9px 20px;
  border-radius: 5px;
  white-space: nowrap;
  border: 2px solid rgba(255,255,255,0.5);
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.nav-cta-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.9);
}

.nav-fb-link {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.nav-fb-link:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.nav-mobile-menu.open {
  display: flex;
  max-height: 400px;
  padding: 8px 0 16px;
}

.mobile-link {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  display: block;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-light);
}

.mobile-link:hover {
  background: var(--off-white);
  color: var(--accent-dark);
}

.mobile-cta {
  background: var(--accent);
  color: var(--white) !important;
  margin: 8px 16px;
  border-radius: 6px;
  text-align: center;
  border-bottom: none !important;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center right;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(26,35,50,0.78) 0%, rgba(26,35,50,0.62) 35%, rgba(26,35,50,0.25) 65%, rgba(26,35,50,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 90px 24px 40px;
  margin: 0 auto 0 max(24px, calc((100vw - 1140px) / 2 + 24px));
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ============================================================
   SERVICES
   ============================================================ */

.services {
  padding: 56px 0;
}

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

.service-card:nth-child(1) { grid-column: 1 / 3; }
.service-card:nth-child(2) { grid-column: 3 / 5; }
.service-card:nth-child(3) { grid-column: 5 / 7; }
.service-card:nth-child(4) { grid-column: 2 / 4; }
.service-card:nth-child(5) { grid-column: 4 / 6; }

.service-card {
  background: var(--white);
  border: 1.5px solid #d8e4dc;
  border-top: 3px solid var(--green-dark);
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 6px 24px rgba(26,58,42,0.1);
  transform: translateY(-3px);
}

.service-card {
  border-top: 3px solid var(--accent);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(124,193,66,0.14);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg {
  display: block;
}

.service-icon i,
.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  padding: 56px 0;
  background: var(--green-dark);
}

.about .section-title {
  color: var(--white);
}

.about .section-intro {
  color: rgba(255,255,255,0.82);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.about-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 28px 24px;
  transition: background 0.2s;
}

.about-card:hover {
  background: rgba(255,255,255,0.12);
}

.about-card-marker {
  width: 32px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  padding: 56px 0;
}

.contact-dark {
  background: var(--off-white);
  padding: 56px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: 40px;
  align-items: center;
}

/* Left column — info */
.contact-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.contact-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact-subtext {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 420px;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-row-icon {
  flex-shrink: 0;
  color: var(--accent-dark);
  margin-top: 2px;
}

.contact-row-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-body);
  opacity: 0.7;
  margin-bottom: 3px;
}

.contact-row-value {
  display: block;
  font-size: 0.97rem;
  color: var(--navy);
  line-height: 1.5;
  font-weight: 600;
}

a.contact-row-value:hover {
  color: var(--accent-dark);
}

/* Right column — form card */
.contact-form-wrap h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.contact-dark .contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(26,35,50,0.08);
  max-width: 520px;
  width: 100%;
  justify-self: end;
}

/* Form */
.form-success {
  background: #f0f7f0;
  border: 1px solid #c3dfc3;
  color: #2d5a2d;
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.required-star {
  color: #c0392b;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 7px;
  font-size: 0.97rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(26,58,42,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 84px;
}

/* ============================================================
   GALLERY
   ============================================================ */

.gallery {
  padding: 56px 0;
  background: var(--white);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #d0dbd4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus img {
  transform: scale(1.05);
}

.gallery-item:focus {
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 501;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-close:focus,
.lightbox-prev:focus,
.lightbox-next:focus {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--white);
  color: var(--text-body);
  border-top: 1px solid var(--border-light);
}

.footer-main {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}

/* Column 1 — Brand */
.footer-col-brand .footer-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-contact-quick {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-contact-link:hover {
  color: var(--accent-dark);
}

.footer-contact-link svg {
  flex-shrink: 0;
  color: var(--accent-dark);
}

/* Columns 2-4 — generic */
.footer-col-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a,
.footer-col-links span {
  font-size: 0.92rem;
  color: var(--text-body);
  transition: color 0.2s;
}

.footer-col-links a:hover {
  color: var(--accent-dark);
}

/* Bottom bar */
.footer-bottom-bar {
  background: var(--off-white);
  border-top: 1px solid var(--border-light);
}

.footer-bottom-inner {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-body);
}

.footer-built-by {
  color: var(--text-body);
  transition: color 0.2s;
}

.footer-built-by:hover {
  color: var(--accent-dark);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta-btn,
  .nav-fb-link {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile-menu {
    display: flex;
  }

  .hero {
    background-position: 55% center;
  }

  .hero-content {
    padding: 80px 20px 32px;
    margin: 0;
  }

  .hero-badge {
    display: inline-flex;
    width: fit-content;
    max-width: 255px;
    font-size: 0.72rem;
    margin-bottom: 12px;
    padding: 5px 12px;
    line-height: 1.35;
    white-space: normal;
    text-wrap: pretty;
  }

  .hero .btn-primary {
    border: none;
  }

  .hero-content h1 {
    margin-bottom: 12px;
  }

  .hero-subtitle {
    margin-bottom: 24px;
    font-size: 0.93rem;
  }

  .services,
  .about,
  .contact,
  .gallery {
    padding: 44px 0;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: auto; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

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

  .about-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-main {
    padding: 48px 0 36px;
  }

  .footer-tagline {
    max-width: 100%;
  }
}

/* ============================================================
   KC CUSTOM ADDITIONS
   ============================================================ */

/* Hero CTA group */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* About section (intro block with stats) */
.about-section {
  padding: 56px 0;
  background: var(--white);
}

.about-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text .contact-eyebrow {
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.about-text .section-title {
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--green-light-tint);
  padding: 40px 36px;
  border-radius: 14px;
  border-left: 4px solid var(--accent);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-deep);
  line-height: 1;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 600;
}

/* Footer logo */
.footer-logo {
  height: 96px;
  width: auto;
  margin-bottom: 20px;
  max-width: 280px;
  object-fit: contain;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(124,193,66,0.18);
}

.contact-row a:hover {
  color: var(--accent-dark);
}

/* Mobile tweaks */
@media (max-width: 960px) {
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-logo {
    height: 48px;
  }

  .about-section {
    padding: 44px 0;
  }

  .about-stats {
    padding: 28px 24px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   WORK GALLERY — Badges + caption overlay
   ============================================================ */
.gallery-section {
  padding: 56px 0;
  background: var(--white);
}

.gallery-section .section-title,
.gallery-section .section-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.gallery-section .section-intro {
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26,35,50,0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus img {
  transform: scale(1.06);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Badge — appears bottom-left of each image, sized to text */
.gallery-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255,255,255,0.96);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  display: inline-block;
  width: auto;
  max-width: calc(100% - 24px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  white-space: nowrap;
}

/* Lightbox caption */
.lightbox-caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 501;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .gallery-badge {
    font-size: 0.78rem;
    padding: 8px 12px;
  }
}
