/* =====================================================
   EXOTIC CARS TECHNICIAN - GALLERY & SERVICES PAGES
   ===================================================== */

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.gallery-caption-title {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
}

.gallery-caption-text {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.gallery-zoom {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--color-black);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--duration-normal);
}

.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: scale(1);
}

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

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

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

  .gallery-item.large {
    grid-column: span 1;
  }
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  transition: all var(--duration-normal);
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  transition: all var(--duration-normal);
}

.lightbox-nav:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

.lightbox-prev {
  left: var(--space-4);
}

.lightbox-next {
  right: var(--space-4);
}

.lightbox-caption {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-secondary);
}

/* SERVICES PAGE */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.service-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: flex;
  gap: var(--space-8);
  transition: all var(--duration-normal);
}

.service-detail-card:hover {
  border-color: var(--border-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--color-gold);
  font-size: var(--text-3xl);
  flex-shrink: 0;
}

.service-detail-content {
  flex: 1;
}

.service-detail-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.service-detail-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.service-detail-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.service-feature-tag svg {
  color: var(--color-gold);
  width: 12px;
  height: 12px;
}

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

@media (max-width: 640px) {
  .service-detail-card {
    flex-direction: column;
  }
}

/* ABOUT PAGE */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-story-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-story-image img {
  width: 100%;
  height: auto;
}

.about-story-badge {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--color-gold);
  color: var(--color-black);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
}

.about-story-badge-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: 1;
}

.about-story-badge-text {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.about-story-content h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.about-story-content p {
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

@media (max-width: 1024px) {
  .about-story {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

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

.team-card-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-5);
  aspect-ratio: 3/4;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.team-card:hover .team-card-image img {
  transform: scale(1.05);
}

.team-card-name {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.team-card-role {
  font-size: var(--text-sm);
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.team-card-certs {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

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

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

/* CERTIFICATIONS */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--duration-normal);
}

.cert-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-5px);
}

.cert-card-logo {
  height: 60px;
  width: auto;
  margin: 0 auto var(--space-4);
  filter: grayscale(100%) brightness(2);
  transition: filter var(--duration-normal);
}

.cert-card:hover .cert-card-logo {
  filter: grayscale(0%) brightness(1);
}

.cert-card-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
}

.cert-card-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

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

/* FOUNDER CARD */
.founder-card {
  display: flex;
  gap: var(--space-10);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--duration-normal);
}

.founder-card-image {
  flex-shrink: 0;
  width: 220px;
}

.founder-card-content {
  flex: 1;
}

@media (max-width: 768px) {
  .founder-card {
    flex-direction: column;
    text-align: center;
    gap: var(--space-6);
    padding: var(--space-6);
  }

  .founder-card-image {
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
  }

  /* Center the badges on mobile */
  .founder-card-content > div {
    justify-content: center;
  }
}

/* BOOKING PAGE */
.booking-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  max-width: 800px;
  margin: 0 auto;
}

.booking-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-12);
  position: relative;
}

.booking-progress::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--bg-tertiary);
}

.booking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  z-index: 1;
}

.booking-step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color-light);
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
  transition: all var(--duration-normal);
}

.booking-step.active .booking-step-number,
.booking-step.completed .booking-step-number {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-black);
}

.booking-step-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.booking-step.active .booking-step-label {
  color: var(--color-gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* SERVICE CARDS FOR SELECTION */
.service-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.service-select-card {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-normal);
}

.service-select-card:hover {
  border-color: var(--border-color);
}

.service-select-card.selected {
  border-color: var(--color-gold);
  background: rgba(201, 162, 39, 0.1);
}

.service-select-card input {
  display: none;
}

.service-select-icon {
  font-size: var(--text-2xl);
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.service-select-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

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

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

/* BOOKING GRID LAYOUT */
.grid-booking {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-12);
  align-items: start;
}

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

  .booking-sidebar {
    order: -1;
  }
}

/* BOOKING PROGRESS */
.booking-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-10);
  padding: 0 var(--space-4);
}

.booking-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.booking-progress-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color-light);
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  transition: all var(--duration-normal);
}

.booking-progress-step.active .booking-progress-number {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-black);
}

.booking-progress-step.completed .booking-progress-number {
  background: var(--color-success);
  border-color: var(--color-success);
  color: var(--color-black);
}

.booking-progress-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.booking-progress-step.active .booking-progress-label {
  color: var(--color-gold);
}

.booking-progress-line {
  width: 60px;
  height: 2px;
  background: var(--border-color-light);
  transition: background var(--duration-normal);
}

.booking-progress-line.active {
  background: var(--color-gold);
}

@media (max-width: 640px) {
  .booking-progress-label {
    display: none;
  }

  .booking-progress-line {
    width: 30px;
  }
}

/* BOOKING STEPS */
.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
}

.booking-step-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color-light);
}

.booking-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-color-light);
}

.booking-summary {
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color-light);
}

/* SERVICE SELECT ENHANCEMENTS */
.service-select-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.service-select-inner svg {
  color: var(--color-gold);
  transition: transform var(--duration-normal);
}

.service-select-card:hover .service-select-inner svg {
  transform: scale(1.1);
}

.service-select-card input:checked + .service-select-inner svg {
  color: var(--color-gold);
}

/* RADIO GROUP */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-radio {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.form-radio input {
  display: none;
}

.form-radio-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--duration-fast);
}

.form-radio input:checked + .form-radio-mark {
  border-color: var(--color-gold);
}

.form-radio input:checked + .form-radio-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
}

/* BOOKING SIDEBAR */
.booking-sidebar .contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.booking-sidebar .contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.booking-sidebar .contact-info-item:last-child {
  margin-bottom: 0;
}

.booking-sidebar .contact-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-gold);
  flex-shrink: 0;
}

/* CONTACT INFO CARD */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-color-light);
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-item:first-child {
  padding-top: 0;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-info-content {
  flex: 1;
}

.contact-info-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-1);
}

.contact-info-value {
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
}

/* CONTACT FORM CONTAINER */
.contact-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.contact-form-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
}

/* MAP CONTAINER */
.map-container {
  height: 450px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color-light);
}

.map-container iframe {
  width: 100%;
  height: 100%;
}

@media (max-width: 640px) {
  .map-container {
    height: 300px;
  }

  .contact-form-container,
  .booking-form-container {
    padding: var(--space-6);
  }
}
