/* ============================================================
   PAGES.CSS — Legacy Line Auto
   Page-specific styles — Dark Premium Theme
   ============================================================ */


/* ------------------------------------------------------------
   HOME PAGE
   ------------------------------------------------------------ */

.home-hero {
  min-height: clamp(520px, 80vh, 850px);
  text-align: left;
}

.home-hero .hero__content {
  max-width: 640px;
  text-align: left;
}

.home-hero .hero__subtitle {
  margin-left: 0;
}

.home-hero .hero__actions {
  justify-content: flex-start;
}

/* Trust bar */
.trust-bar {
  padding-block: var(--space-lg);
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg) clamp(2rem, 5vw, 4rem);
}

.trust-bar__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ── Location/Hours bar on home page — card layout ── */
[aria-label="Location and hours"] .contact-info__item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  border-bottom: none;
  transition: all var(--transition-base);
}

[aria-label="Location and hours"] .contact-info__item:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

[aria-label="Location and hours"] .contact-info__icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--color-accent-glow);
  border: 1px solid var(--color-border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

[aria-label="Location and hours"] .contact-info__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent);
}

[aria-label="Location and hours"] .contact-info__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
  text-align: center;
}

[aria-label="Location and hours"] .contact-info__value {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
  text-align: center;
}

[aria-label="Location and hours"] .contact-info__value a {
  color: var(--color-accent);
}

[aria-label="Location and hours"] .contact-info__value a:hover {
  color: var(--color-accent-light);
}

@media (max-width: 768px) {
  [aria-label="Location and hours"] .grid.grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}


/* =========================================================
   Services — Fanned Card Deck (Desktop) / Accordion (Mobile)
   ========================================================= */

/* Shared card styles */
.service-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
  box-sizing: border-box;
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-accent-glow);
  color: var(--color-accent);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-card__title {
  font-size: var(--text-lg);
  color: var(--color-text-bright);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.service-card__text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}

.service-card__link:hover {
  gap: 0.625rem;
}

/* DESKTOP: Fanned card deck */
@media (min-width: 769px) {
  .services-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 420px;
    padding: 20px 0 20px;
  }

  .service-card {
    position: absolute;
    width: 230px;
    padding: 22px 18px 18px;
    text-align: center;
    transform-origin: center 140%;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    background-color: var(--color-bg-card);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
  }

  .service-card__icon {
    margin-bottom: 0.75rem;
  }

  .service-card:nth-child(1) { transform: rotate(-21deg) translateX(-340px); z-index: 1; }
  .service-card:nth-child(2) { transform: rotate(-15deg) translateX(-245px); z-index: 2; }
  .service-card:nth-child(3) { transform: rotate(-9deg)  translateX(-150px); z-index: 3; }
  .service-card:nth-child(4) { transform: rotate(-3deg)  translateX(-55px);  z-index: 4; }
  .service-card:nth-child(5) { transform: rotate(3deg)   translateX(55px);   z-index: 5; }
  .service-card:nth-child(6) { transform: rotate(9deg)   translateX(150px);  z-index: 6; }
  .service-card:nth-child(7) { transform: rotate(15deg)  translateX(245px);  z-index: 7; }
  .service-card:nth-child(8) { transform: rotate(21deg)  translateX(340px);  z-index: 8; }

  .service-card:nth-child(1):hover { transform: rotate(-21deg) translateX(-340px) translateY(-40px) scale(1.05); }
  .service-card:nth-child(2):hover { transform: rotate(-15deg) translateX(-245px) translateY(-40px) scale(1.05); }
  .service-card:nth-child(3):hover { transform: rotate(-9deg)  translateX(-150px) translateY(-40px) scale(1.05); }
  .service-card:nth-child(4):hover { transform: rotate(-3deg)  translateX(-55px)  translateY(-40px) scale(1.05); }
  .service-card:nth-child(5):hover { transform: rotate(3deg)   translateX(55px)   translateY(-40px) scale(1.05); }
  .service-card:nth-child(6):hover { transform: rotate(9deg)   translateX(150px)  translateY(-40px) scale(1.05); }
  .service-card:nth-child(7):hover { transform: rotate(15deg)  translateX(245px)  translateY(-40px) scale(1.05); }
  .service-card:nth-child(8):hover { transform: rotate(21deg)  translateX(340px)  translateY(-40px) scale(1.05); }

  .service-card:hover {
    z-index: 20 !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    border-color: var(--color-accent);
    background-color: var(--color-bg-card-hover);
  }
}

/* Smaller desktops */
@media (min-width: 769px) and (max-width: 1100px) {
  .service-card {
    width: 200px;
    padding: 18px 14px 14px;
  }

  .service-card:nth-child(1) { transform: rotate(-18deg) translateX(-270px); }
  .service-card:nth-child(2) { transform: rotate(-12.8deg) translateX(-195px); }
  .service-card:nth-child(3) { transform: rotate(-7.7deg) translateX(-115px); }
  .service-card:nth-child(4) { transform: rotate(-2.6deg) translateX(-40px); }
  .service-card:nth-child(5) { transform: rotate(2.6deg) translateX(40px); }
  .service-card:nth-child(6) { transform: rotate(7.7deg) translateX(115px); }
  .service-card:nth-child(7) { transform: rotate(12.8deg) translateX(195px); }
  .service-card:nth-child(8) { transform: rotate(18deg) translateX(270px); }

  .service-card:nth-child(1):hover { transform: rotate(-18deg) translateX(-270px) translateY(-40px) scale(1.05); }
  .service-card:nth-child(2):hover { transform: rotate(-12.8deg) translateX(-195px) translateY(-40px) scale(1.05); }
  .service-card:nth-child(3):hover { transform: rotate(-7.7deg) translateX(-115px) translateY(-40px) scale(1.05); }
  .service-card:nth-child(4):hover { transform: rotate(-2.6deg) translateX(-40px) translateY(-40px) scale(1.05); }
  .service-card:nth-child(5):hover { transform: rotate(2.6deg) translateX(40px) translateY(-40px) scale(1.05); }
  .service-card:nth-child(6):hover { transform: rotate(7.7deg) translateX(115px) translateY(-40px) scale(1.05); }
  .service-card:nth-child(7):hover { transform: rotate(12.8deg) translateX(195px) translateY(-40px) scale(1.05); }
  .service-card:nth-child(8):hover { transform: rotate(18deg) translateX(270px) translateY(-40px) scale(1.05); }
}

/* Pull cards up on home page */
@media (min-width: 769px) {
  #services .services-preview {
    transform: translateY(-10px);
    margin-bottom: 0;
  }
  #services {
    padding-bottom: 3rem;
  }
  #services .section-header {
    margin-bottom: var(--space-lg);
  }
}

/* MOBILE: Accordion */
@media (max-width: 768px) {
  .services-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
  }

  .service-card {
    position: relative;
    transform: none !important;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
  }

  .service-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0;
  }

  .service-card__title {
    font-size: var(--text-base);
    margin-bottom: 0;
    flex: 1;
    text-align: left;
  }

  .service-card__text {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    font-size: var(--text-sm);
    text-align: left;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
  }

  .service-card__link {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
  }

  .service-card.is-expanded .service-card__text {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 0.5rem;
  }

  .service-card.is-expanded .service-card__link {
    max-height: 50px;
    opacity: 1;
  }

  .service-card::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238B95A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }

  .service-card.is-expanded::after {
    transform: rotate(180deg);
  }
}


/* =========================================================
   Services Page — Grid Layout
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  align-items: stretch;
  justify-content: center;
}

.services-grid .service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: var(--space-lg) var(--space-md);
  text-align: left;
  transform: none;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  transition: all var(--transition-base);
}

.services-grid .service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--color-accent);
  background: var(--color-bg-card-hover);
}

.services-grid .service-card__icon {
  margin-bottom: var(--space-md);
}

.services-grid .service-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.services-grid .service-card__text {
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: var(--space-md);
  max-height: none;
  opacity: 1;
  overflow: visible;
  flex: 1;
}

.services-grid .service-card::after {
  display: none;
}

.services-grid {
  margin-top: -1rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .services-grid .service-card {
    padding: var(--space-md);
  }
}


/* ------------------------------------------------------------
   ABOUT PAGE
   ------------------------------------------------------------ */

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

.about-intro__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.about-intro__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-intro:hover .about-intro__image img {
  transform: scale(1.03);
}

.about-intro__content h2 {
  margin-bottom: var(--space-sm);
}

.about-intro__content h3 {
  color: var(--color-text-bright);
  margin-bottom: var(--space-md);
}

.about-intro__content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}


/* =========================================================
   Timeline — Premium Dark
   ========================================================= */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary-mid) 50%, var(--color-accent-glow) 100%);
  opacity: 0.15;
}

.timeline__progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  z-index: 2;
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  align-items: start;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent), 0 0 20px var(--color-accent-glow);
  z-index: 3;
  justify-self: center;
  align-self: start;
  margin-top: var(--space-md);
}

.timeline__content {
  background: var(--color-bg-card);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.timeline__content:hover {
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-2px);
}

.timeline__item--left .timeline__content { grid-column: 1; text-align: right; }
.timeline__item--left .timeline__dot { grid-column: 2; }
.timeline__item--left .timeline__photo { grid-column: 3; }

.timeline__item--right .timeline__content { grid-column: 3; }
.timeline__item--right .timeline__dot { grid-column: 2; grid-row: 1; }
.timeline__item--right .timeline__photo { grid-column: 1; grid-row: 1; }

.timeline__date {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
  padding: 0.25rem 0.75rem;
  background: var(--color-accent-glow);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-accent);
}

.timeline__title {
  font-size: var(--text-2xl);
  color: var(--color-text-bright);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}

.timeline__desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.75;
}

.timeline__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.timeline__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.6s ease;
}

.timeline__item:hover .timeline__photo img {
  transform: scale(1.03);
}

/* Mobile timeline */
@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline__progress { left: 20px; }

  .timeline__item,
  .timeline__item--left,
  .timeline__item--right {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-left: 50px;
    position: relative;
  }

  .timeline__dot {
    position: absolute;
    left: 13px;
  }

  .timeline__item--left .timeline__content,
  .timeline__item--right .timeline__content {
    text-align: left;
  }

  .timeline__photo {
    order: -1;
  }
}


/* Team grid */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.team-member {
  text-align: center;
  max-width: 320px;
}

.team-member__photo {
  width: 180px;
  height: 180px;
  margin-inline: auto;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-border);
}

.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member__name {
  font-size: var(--text-lg);
  color: var(--color-text-bright);
  margin-bottom: 0.125rem;
}

.team-member__role {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-member__bio {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.team-member {
  transition: transform var(--transition-base);
}

.team-member:hover {
  transform: translateY(-4px);
}

.team-member:hover .team-member__photo {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}


/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

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

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

.value-item {
  padding: var(--space-lg);
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.value-item__title {
  font-size: var(--text-lg);
  color: var(--color-text-bright);
  margin-bottom: var(--space-xs);
}

.value-item__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.value-item {
  transition: all var(--transition-base);
}

.value-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: var(--color-accent);
}


/* ------------------------------------------------------------
   GALLERY PAGE
   ------------------------------------------------------------ */

.gallery-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.gallery-featured__text h2 {
  color: var(--color-text-bright);
  margin-bottom: var(--space-md);
}

.gallery-featured__text p {
  color: var(--color-text-muted);
  line-height: 1.75;
}

.gallery-featured__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.gallery-featured__photo img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-featured__photo:hover img {
  transform: scale(1.03);
}

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

/* Gallery filter bar */
.gallery-page__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-xl);
  position: sticky;
  top: 68px;
  z-index: 50;
  background: rgba(10, 15, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-md) var(--space-sm);
  margin-inline: calc(-1 * var(--container-padding));
  padding-inline: var(--container-padding);
  border-bottom: 1px solid var(--color-border);
}

.gallery-filter {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-dim);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter:hover {
  color: var(--color-text-bright);
  border-color: var(--color-border-light);
}

.gallery-filter.is-active {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}


/* ------------------------------------------------------------
   CONTACT PAGE
   ------------------------------------------------------------ */

/* Contact page styles are in components.css */


/* ------------------------------------------------------------
   CTA BANNER
   ------------------------------------------------------------ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-bg-section) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(74, 124, 155, 0.15), transparent 65%);
  pointer-events: none;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  color: var(--color-text-bright);
  margin-bottom: var(--space-sm);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__text {
  color: var(--color-text-muted);
  max-width: 50ch;
  margin: 0 auto var(--space-xl);
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-banner__actions .btn {
  min-width: 200px;
}

@media (max-width: 768px) {
  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-banner__actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}


/* ------------------------------------------------------------
   WHY US SECTION (services page)
   ------------------------------------------------------------ */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.why-us__item {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.why-us__item:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.why-us__label {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-bright);
  text-transform: uppercase;
}


/* Masonry gallery variant (about page) */
.gallery--masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ----- Light Mode Page Overrides ----- */

/* Service cards in light mode */
html[data-theme="light"] .service-card {
  background-color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .services-grid .service-card:hover,
html[data-theme="light"] .why-us__item:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

@media (min-width: 769px) {
  html[data-theme="light"] .service-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }
  html[data-theme="light"] .service-card:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12), var(--shadow-glow);
  }
}

/* Timeline */
html[data-theme="light"] .timeline__content {
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .timeline__content:hover {
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
html[data-theme="light"] .timeline__dot {
  border-color: #F5F6F8;
}

/* Values */
html[data-theme="light"] .value-item {
  background: #FFFFFF;
}

/* Why us */
html[data-theme="light"] .why-us__item {
  background: #FFFFFF;
}

/* Gallery featured */
html[data-theme="light"] .gallery-featured__photo {
  box-shadow: var(--shadow-md);
}

/* Location/Hours cards in light mode */
html[data-theme="light"] [aria-label="Location and hours"] .contact-info__item {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] [aria-label="Location and hours"] .contact-info__item:hover {
  box-shadow: var(--shadow-md);
}

/* Section dividers */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: var(--space-sm) auto 0;
  opacity: 0.5;
}

.section-header .section-divider {
  margin-top: var(--space-md);
}

/* Visual character: italic accent text */
.accent-italic {
  font-style: italic;
  color: var(--color-accent);
}

/* CTA animated gradient glow */
.cta-banner::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, transparent 0%, rgba(74, 124, 155, 0.2) 25%, rgba(74, 124, 155, 0.4) 50%, rgba(74, 124, 155, 0.2) 75%, transparent 100%);
  background-size: 200% 100%;
  animation: cta-shimmer 4s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

@keyframes cta-shimmer {
  0%, 100% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
}

/* Force section--dark to stay dark in light mode */
html[data-theme="light"] .section--dark {
  background-color: #0D1219;
}
html[data-theme="light"] .section--dark h2,
html[data-theme="light"] .section--dark h3,
html[data-theme="light"] .section--dark h4 {
  color: #FFFFFF;
}
html[data-theme="light"] .section--dark p,
html[data-theme="light"] .section--dark span,
html[data-theme="light"] .section--dark .section-header__label {
  color: #8B95A3;
}
html[data-theme="light"] .section--dark .section-header__label {
  color: var(--color-accent);
}
html[data-theme="light"] .section--dark .section-header__desc {
  color: #8B95A3;
}
html[data-theme="light"] .section--dark .value-item {
  background: #151D27;
  border-color: rgba(255, 255, 255, 0.06);
}
html[data-theme="light"] .section--dark .value-item__title {
  color: #FFFFFF;
}
html[data-theme="light"] .section--dark .value-item__text {
  color: #8B95A3;
}
html[data-theme="light"] .section--dark .value-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Force section--bg to stay slightly darker in light mode for contrast */
html[data-theme="light"] .section--bg {
  background: linear-gradient(180deg, #E8E9EC 0%, #F5F6F8 100%);
}

/* Why-us section stays dark in light mode */
html[data-theme="light"] .why-us__item {
  border-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .why-us__item:hover {
  border-color: var(--color-accent);
}
