/* Fix WP theme overriding carousel buttons */
.carousel-btn, .carousel-prev, .carousel-next {
  width: 44px !important;
  height: 44px !important;
  min-width: unset !important;
  min-height: unset !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.9) !important;
  color: #0b1121 !important;
  border: none !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
}
.carousel-btn:hover, .carousel-prev:hover, .carousel-next:hover {
  background: #fff !important;
}
.carousel-btn svg { display: block; margin: auto; }

.carousel-dot {
  width: 8px !important;
  height: 8px !important;
  min-width: unset !important;
  min-height: unset !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.4) !important;
  border: none !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  cursor: pointer;
}
.carousel-dot.active {
  background: #fff !important;
  transform: scale(1.3);
}

.carousel-expand {
  width: 40px !important;
  height: 40px !important;
  min-width: unset !important;
  min-height: unset !important;
  border-radius: 10px !important;
  background: rgba(0,0,0,0.5) !important;
  color: #fff !important;
  border: none !important;
  padding: 0 !important;
  font-size: 0 !important;
}

/* Lightbox buttons */
.lightbox-close, .lightbox-btn, .lightbox-prev, .lightbox-next {
  min-width: unset !important;
  min-height: unset !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

/* Fix breadcrumb spacing below fixed nav */
.page-hero .hero-bg-gradient,
.page-hero .hero-bg-grid,
.page-hero .hero-bg-dots { position: absolute; inset: 0; }
.page-hero-inner {
  padding-top: 7rem !important;
}

/* Fix WP theme h3 override on cards */
.card h3, .ins h3 {
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-bottom: 0.5rem !important;
}

/* Page-specific styles */
.page-hero { position: relative; padding-top: 72px; overflow: hidden; background: var(--black); color: var(--white); }
.page-hero .hero-bg-gradient { position: absolute; inset: 0; background: linear-gradient(145deg, #060a18 0%, #001196 35%, #004eff 65%, #0070e0 100%); }
.page-hero .hero-bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 72px 72px; }
.page-hero .hero-bg-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(41,200,255,0.12) 1px, transparent 1px); background-size: 32px 32px; opacity: 0.5; }
.page-hero .hero-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(0,150,255,0.2) 0%, transparent 65%); top: -200px; right: -100px; animation: drift 14s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-25px) scale(1.06); } 66% { transform: translate(-30px,35px) scale(0.94); } }
.page-hero-inner { position: relative; z-index: 2; padding: 5rem 0 4.5rem; max-width: 780px; }
.page-hero .breadcrumb { font-size: 0.8125rem; color: rgba(255,255,255,0.4); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 8px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.15s; }
.page-hero .breadcrumb a:hover { color: var(--neon-blue); }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,0.15); }
.page-hero .hero-label { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--neon-blue); margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.25rem,4.5vw,3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.page-hero .hero-desc { font-size: 1.125rem; line-height: 1.75; color: rgba(255,255,255,0.7); max-width: 640px; }
.page-hero .hero-address { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-top: 1.5rem; display: flex; align-items: center; gap: 8px; }
.page-hero .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

section { padding: 6rem 0; }
section.alt { background: #f5f6f8; }
section.dark { background: var(--black); color: var(--white); }
.section-label { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); margin-bottom: 0.75rem; }
section.dark .section-label { color: var(--neon-blue); }
.section-title { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 1rem; }
.section-desc { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.75; max-width: 640px; margin-bottom: 3rem; }
section.dark .section-desc { color: rgba(255,255,255,0.6); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: all 0.3s ease; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(11,17,33,0.1); border-color: transparent; }
.card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.625rem; }
.card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
section.dark .card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
section.dark .card h3 { color: var(--white); }
section.dark .card p { color: rgba(255,255,255,0.55); }
section.dark .card:hover { border-color: rgba(41,200,255,0.15); }

/* Hub comparison table */
.hub-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.875rem; }
.hub-table th { text-align: left; padding: 1rem; font-weight: 700; color: var(--white); border-bottom: 2px solid rgba(41,200,255,0.2); }
.hub-table td { padding: 0.875rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.hub-table tr:hover td { background: rgba(255,255,255,0.02); }
.hub-table .highlight { color: var(--neon-blue); font-weight: 700; }
.hub-table .winner { background: rgba(41,200,255,0.06); }
.hub-table .hub-name { font-weight: 700; color: var(--white); }

/* Drive time map */
.drive-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); margin: 2rem 0; }
.drive-map iframe { width: 100%; height: 500px; border: none; display: block; }

/* Photo placeholders */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.photo-placeholder { background: var(--light-gray); border-radius: 12px; height: 220px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--text-muted); }
section.dark .photo-placeholder { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.3); }
.photo-placeholder.wide { grid-column: span 2; }

/* Certs */
.certs-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 2rem; }
.cert { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; text-align: center; }
.cert h4 { font-size: 0.8125rem; margin-bottom: 0.25rem; }
.cert p { font-size: 0.6875rem; color: var(--text-muted); line-height: 1.4; }

/* Contact block */
.contact-block { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item strong { display: block; font-size: 0.875rem; margin-bottom: 2px; }
.contact-item span { font-size: 0.8125rem; color: var(--text-muted); }
.map-embed { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 350px; border: none; display: block; }

/* CTA */
.cta-section { text-align: center; padding: 5rem 2rem; background: var(--black); position: relative; overflow: hidden; color: var(--white); }
.cta-section .bg { position: absolute; inset: 0; background: linear-gradient(145deg, #0b1121, #001196 50%, #004eff); }
.cta-section .inner { position: relative; z-index: 2; }
.cta-section h2 { font-size: clamp(1.75rem,3vw,2.5rem); font-weight: 800; margin-bottom: 1rem; }
.cta-section p { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 520px; margin: 0 auto 2rem; line-height: 1.7; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .contact-block { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-placeholder.wide { grid-column: span 1; }
}
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .nav-links, .nav-actions .login-link { display: none; }
  .mobile-menu-btn { display: block; }
  .cards-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .certs-row { grid-template-columns: repeat(2, 1fr); }
  .hub-table { font-size: 0.75rem; }
  .hub-table th, .hub-table td { padding: 0.625rem 0.5rem; }
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--black);
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--black);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  z-index: 5;
}

.carousel-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

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

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

.carousel-expand {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.carousel-expand:hover {
  background: rgba(0,0,0,0.7);
  transform: scale(1.08);
}

.carousel-caption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  min-height: 1.5em;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  z-index: 2;
}

.lightbox-content img {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 8px;
  transition: color 0.15s;
}

.lightbox-close:hover { color: var(--white); }

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--white);
  transition: all 0.2s;
}

.lightbox-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

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

.lightbox-caption {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.lightbox-counter {
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 0.375rem;
}

@media (max-width: 768px) {
  .carousel-slide img { height: 280px; }
  .carousel-btn { width: 36px; height: 36px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-btn { width: 40px; height: 40px; }
}


/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-q {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
  list-style: none;
  line-height: 1.4;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.2s;
}

details[open] .faq-q::after {
  content: '−';
}

.faq-a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 0 0 1.25rem 0;
}


