/* Plan6ix Buildtrade Inc - Main Stylesheet */

/* CSS Custom Properties */
:root {
  /* Colors - Always light mode */
  --bg: #ffffff;
  --ink: #111111;
  --muted: #555555;
  --accent: #C1121F;
  --accent-strong: #910D17;
  --border: #e5e5e5;
  --surface: #f8f8f8;
  
  /* Typography */
  --font-family: -apple-system, 'Segoe UI', Roboto, Inter, Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-4xl: 40px;
  --font-size-5xl: 48px;
  
  /* Spacing (24px/32px scale) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  
  /* Layout */
  --container-max-width: 1200px;
  --border-radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-md) 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

@media (max-width: 768px) {
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  h3 { font-size: var(--font-size-2xl); }
}

p {
  margin: 0 0 var(--space-md) 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-md);
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-lg);
  width: 100%;
  max-width: 100%;
}

.grid--2-col {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3-col {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-col {
  grid-template-columns: repeat(4, 1fr);
}

/* Tablet breakpoint (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .grid--3-col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid--4-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .grid {
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .grid--2-col,
  .grid--3-col,
  .grid--4-col {
    grid-template-columns: 1fr;
  }
  
  .grid {
    gap: var(--space-sm);
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100vw;
  overflow: visible;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  min-height: 80px;
  gap: var(--space-sm);
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .header__container {
    gap: var(--space-xs);
  }
}

.header__logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding-top: 4px;
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.header__logo img {
  height: 50px;
  width: auto;
  display: block;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .header__logo img {
    height: 45px;
  }
}

@media (max-width: 768px) {
  .header__logo {
    white-space: pre-line;
    line-height: 1.1;
  }
  
  .header__logo img {
    height: 40px;
  }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* Hide nav and show hamburger on tablets and mobile */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }
  
  .header__nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md);
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
}

.header__nav-link {
  color: var(--ink);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  transition: background-color 0.2s;
}

.header__nav-link:hover {
  background-color: var(--surface);
  text-decoration: none;
}

.header__nav-link.is-active {
  background-color: var(--accent);
  color: white;
}

.header__cta {
  background: var(--accent);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

/* Adjust CTA button for tablets */
@media (max-width: 1024px) {
  .header__cta {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-sm);
    line-height: 1.2;
    text-align: center;
    white-space: pre-line;
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  .header__cta {
    max-width: 100px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.1;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .header__cta {
    max-width: 90px;
    padding: 3px 6px;
    font-size: 11px;
  }
}

.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--ink);
  cursor: pointer;
  padding: var(--space-xs);
  min-width: 48px;
  min-height: 48px;
}

/* Show hamburger menu on tablets and mobile */
@media (max-width: 1024px) {
  .header__menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Hero with mascot (index page only) */
.hero__container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: center;
  min-height: 500px;
  text-align: left;
  max-width: 100%;
}

.hero__mascot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero__mascot-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.hero__content {
  text-align: left;
  width: 100%;
}

.hero__title {
  margin-bottom: var(--space-md);
  text-align: left;
}

/* Center hero title on pages without mascot */
.hero > .container > .hero__title {
  text-align: center;
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: var(--muted);
  margin-bottom: var(--space-xl);
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* Center hero subtitle on pages without mascot */
.hero > .container > .hero__subtitle {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Tablet hero adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero__container {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    min-height: 400px;
  }
  
  .hero__mascot-image {
    max-height: 300px;
  }
  
  .hero__subtitle {
    font-size: var(--font-size-lg);
  }
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--accent);
  color: white;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-lg);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.2s;
  box-shadow: var(--shadow);
  max-width: 100%;
  box-sizing: border-box;
}

.hero__cta:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-2xl) 0;
  }
  
  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
    min-height: auto;
  }
  
  .hero__mascot {
    order: 1;
  }
  
  .hero__content {
    order: 2;
    text-align: center;
  }
  
  .hero__title {
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .hero__subtitle {
    font-size: var(--font-size-lg);
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .hero__mascot-image {
    max-height: 250px;
  }
  
  .hero__cta {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-sm);
    white-space: normal;
    text-align: center;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hero__cta {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px; /* WCAG touch target */
}

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

.btn--primary:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--secondary:hover {
  background: var(--accent);
  color: white;
  text-decoration: none;
}

.btn--large {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-lg);
}

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__title {
  margin-bottom: var(--space-sm);
  color: var(--ink);
}

.card__description {
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.card__cta {
  margin-top: auto;
}

@media (max-width: 1024px) {
  .card {
    padding: var(--space-md);
  }
}

/* Service tiles */
.service-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.2s;
}

.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-tile__icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-md);
}

.service-tile__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.service-tile__description {
  color: var(--muted);
  margin-bottom: var(--space-md);
}

@media (max-width: 1024px) {
  .service-tile {
    padding: var(--space-md);
  }
}

/* Process steps */
.process-steps {
  position: relative;
}

.process-step {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  align-items: flex-start;
}

.process-step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.process-step__content h3 {
  margin-bottom: var(--space-sm);
}

.process-step__content p {
  color: var(--muted);
}

@media (max-width: 768px) {
  .process-step {
    flex-direction: column;
    text-align: center;
  }
}

/* FAQ Accordion */
.faq {
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-sm);
}

.faq__question {
  background: var(--surface);
  border: none;
  padding: var(--space-md);
  width: 100%;
  text-align: left;
  font-size: var(--font-size-lg);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
}

.faq__question:hover {
  background: var(--border);
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
}

.faq__icon {
  transition: transform 0.2s;
  font-size: var(--font-size-xl);
}

.faq__answer {
  padding: 20px var(--space-md) var(--space-md) var(--space-md);
  color: var(--muted);
  display: none;
}

.faq__answer.is-open {
  display: block;
}

/* Package comparison table */
.packages {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.packages__table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  background: var(--bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.packages__table th,
.packages__table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.packages__table th {
  background: var(--surface);
  font-weight: 700;
  color: var(--ink);
}

.packages__table tr:hover {
  background: var(--surface);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
  width: 100%;
  /* Ensure smooth scrolling on mobile */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
}

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

.gallery__item {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform 0.2s;
  border: 2px solid transparent;
  /* Improve mobile touch handling */
  touch-action: manipulation;
}

.gallery__item:hover {
  transform: scale(1.02);
  border-color: var(--accent);
}

.gallery__item:focus-within {
  border-color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  /* Improve mobile touch handling - allow scrolling but handle taps carefully */
  touch-action: manipulation;
  /* Disable text selection which can interfere with touch events */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.gallery__image:hover,
.gallery__image:focus {
  transform: scale(1.05);
  opacity: 0.9;
}

.gallery__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: var(--space-md);
  transform: translateY(100%);
  transition: transform 0.2s;
  opacity: 1;
  z-index: 5;
}

.gallery__overlay h4,
.gallery__overlay p,
.gallery__overlay span,
.gallery__overlay .badge {
  color: white !important;
  opacity: 1 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.gallery__overlay h4 {
  font-size: var(--font-size-lg);
  margin-bottom: 4px;
}

.gallery__overlay p {
  font-size: var(--font-size-base);
  margin-bottom: 4px;
}

.gallery__overlay .badge {
  display: inline-block;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: var(--font-size-sm);
}

.gallery__item:hover .gallery__overlay {
  transform: translateY(0);
}

.gallery__filters {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.gallery__filter {
  background: transparent;
  border: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
}

.gallery__filter:hover {
  border-color: var(--accent);
}

.gallery__filter.is-active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Contact info */
.contact-info {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-info__icon {
  font-size: var(--font-size-xl);
  color: var(--accent);
}

.contact-info__link {
  color: var(--ink);
  font-weight: 600;
}

.contact-info__link:hover {
  color: var(--accent);
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0 var(--space-lg) 0;
  margin-top: var(--space-3xl);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
  width: 100%;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

.footer__section h4 {
  margin-bottom: var(--space-md);
}

.footer__section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__section li {
  margin-bottom: var(--space-sm);
}

.footer__section a {
  color: var(--muted);
}

.footer__section a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.social-links a {
  display: inline-block;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 1;
}

/* Trust badges */
.trust-badge-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.trust-badge {
  height: 80px;
  width: auto;
  max-width: 150px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.trust-badge:hover {
  opacity: 1;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--muted);
  font-size: var(--font-size-sm);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.lightbox__container {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  padding: var(--space-sm);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1001;
}

.lightbox__close:hover,
.lightbox__close:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.lightbox__caption {
  color: white;
  text-align: center;
  padding: var(--space-md) 0;
  font-size: var(--font-size-lg);
  font-weight: 500;
  max-width: 80%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--border-radius);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
}

.lightbox__navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: var(--font-size-xl);
  cursor: pointer;
  padding: var(--space-sm);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1001;
}

.lightbox__navigation:hover,
.lightbox__navigation:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.lightbox__prev {
  left: var(--space-md);
}

.lightbox__next {
  right: var(--space-md);
}

.lightbox__counter {
  position: absolute;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

@media (max-width: 768px) {
  .lightbox__close {
    top: var(--space-sm);
    right: var(--space-sm);
    font-size: var(--font-size-xl);
    width: 40px;
    height: 40px;
  }
  
  .lightbox__navigation {
    font-size: var(--font-size-lg);
    width: 40px;
    height: 40px;
  }
  
  .lightbox__prev {
    left: var(--space-sm);
  }
  
  .lightbox__next {
    right: var(--space-sm);
  }
  
  .lightbox__image {
    max-height: 70vh;
  }
  
  .lightbox__caption {
    font-size: var(--font-size-base);
    max-width: 90%;
  }
  
  /* Mobile-specific gallery improvements */
  .gallery {
    /* Ensure gallery container allows normal scrolling */
    touch-action: auto;
  }
  
  .gallery__item {
    /* Reduce transform effects on mobile to prevent scrolling interference */
    transition: none;
  }
  
  .gallery__item:hover {
    /* Disable hover effects on mobile since they don't work well with touch */
    transform: none;
  }
  
  .gallery__image {
    /* Improve touch responsiveness on mobile */
    touch-action: manipulation;
  }
  
  .gallery__image:hover,
  .gallery__image:focus {
    /* Disable hover/focus transforms on mobile to prevent scroll interference */
    transform: none;
    opacity: 1;
  }
  
  /* Improve touch targets for mobile */
  .gallery__image {
    /* Ensure minimum touch target size */
    min-height: 48px;
  }
}

/* Screen reader only utility */
.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;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.py-sm { padding: var(--space-sm) 0; }
.py-md { padding: var(--space-md) 0; }
.py-lg { padding: var(--space-lg) 0; }
.py-xl { padding: var(--space-xl) 0; }

.section {
  padding: var(--space-2xl) 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.section--alt {
  background: var(--surface);
}

/* Print styles */
@media print {
  .header,
  .footer,
  .btn,
  .hero__cta {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .card,
  .service-tile {
    break-inside: avoid;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Partner Page Styles */
.partner-showcase {
  margin-bottom: var(--space-2xl);
}

.partner-showcase__content {
  max-width: 800px;
  margin: 0 auto;
}

.partner-showcase__logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.partner-showcase__logo img {
  max-width: 200px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  background: var(--bg);
  padding: var(--space-sm);
}

.partner-showcase__title {
  font-size: var(--font-size-3xl);
  color: var(--accent);
  margin-bottom: var(--space-md);
  text-align: center;
}

.partner-showcase__meta {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.partner-showcase__badge {
  background: var(--accent);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.partner-showcase__description {
  font-size: var(--font-size-lg);
  color: var(--muted);
  margin-bottom: var(--space-xl);
  text-align: center;
  line-height: 1.7;
}

.partner-showcase__features h3 {
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.partner-showcase__features ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.partner-showcase__features li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.partner-showcase__features li:last-child {
  border-bottom: none;
}

.partner-showcase__features strong {
  color: var(--accent);
}

.partner-showcase__impact,
.partner-showcase__locations,
.partner-showcase__certifications,
.partner-showcase__services {
  margin-bottom: var(--space-lg);
}

.partner-showcase__impact h4,
.partner-showcase__locations h4,
.partner-showcase__certifications h4,
.partner-showcase__services h4 {
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.location-grid,
.certification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.location-item,
.cert-item {
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--border-radius);
  text-align: center;
}

.location-item strong,
.cert-item strong {
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-xs);
}

.partner-showcase__contact {
  text-align: center;
  margin-top: var(--space-xl);
}

.value-tile {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-md);
}

.value-tile__title {
  color: var(--accent);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-xl);
}

.value-tile__description {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .partner-showcase__meta {
    flex-direction: column;
    align-items: center;
  }
  
  .location-grid,
  .certification-grid {
    grid-template-columns: 1fr;
  }
  
  .partner-showcase__title {
    font-size: var(--font-size-2xl);
  }
}