@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

:root {
  /* Deep Automotive Navy Palette */
  --bg-dark: #020617;
  /* Deepest Navy/Black */
  --bg-card: rgba(15, 23, 42, 0.6);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  /* Glowing Sapphire Base */
  --accent-primary: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

  /* Chrome/Silver Accents */
  --border-light: rgba(226, 232, 240, 0.08);
  --border-hover: rgba(226, 232, 240, 0.3);

  --shadow-lg: 0 20px 50px -10px rgba(2, 6, 23, 0.7);
  --glass: blur(16px);

  --radius: 2px;
  /* Sharper corners for "machined" look */
  --container: 1200px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  /* Subtle "Carbon Fiber" mesh pattern hint */
  background-image:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(90%, var(--container));
  margin-inline: auto;
}

/* Typography */
h1,
h2,
h3 {
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  /* Cinematic spacing */
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  /* Metallic Gradient Text */
  background: linear-gradient(to bottom, #ffffff 0%, #cbd5e1 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head p {
  color: var(--text-muted);
  max-width: 50ch;
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
  /* Stronger glow */
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, padding 0.3s;
}

header.scrolled {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text-main);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero .badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-weight: 500;
  font-size: 1rem;
}

.stat-item i {
  color: var(--accent-primary);
  font-size: 1.25rem;
}

.hero-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-light);
}

.hero img {
  width: 100%;
  height: auto;
  transform: scale(1.02);
}

/* Services / Features */
.services {
  padding: 5rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: var(--radius);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.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 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: white;
  font-weight: 600;
}

/* Reviews */
.review-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.stars {
  color: #fbbf24;
  /* Amber */
  margin-bottom: 1rem;
}

.quote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #e2e8f0;
}

.reviewer {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* About / Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.team-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border-light);
  /* Removed circular border and specific width/height */
}

.team-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

/* Adjust Owen's and Aidan's images */
#aidan-profile {
  object-fit: cover;
  /* Zoom in to fill */
  object-position: center center;
}

#owen-profile {
  object-fit: cover;
  /* Zoom in to fill */
  object-position: center 10%;
  /* Align lower to avoid cropping head/chin */
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  border: 1px solid var(--border-light);
  letter-spacing: 0.02em;
}

.role {
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: block;
}

.team-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact-section {
  padding: 5rem 0;
}

.contact-box {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.contact-box h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-box p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
  transition: transform 0.3s;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

.contact-link:hover {
  color: var(--accent-primary);
}

/* Requirements Section */
.requirements-section {
  padding: 5rem 0;
  background: var(--bg-dark);
}

.requirements-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* Centers the last item (Cancellation) */
  gap: 2rem;
  margin-top: 3rem;
}

.req-card {
  flex: 1 1 250px;
  /* Responsive flex sizing */
  max-width: 400px;
  /* Prevent getting too wide */
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: transform 0.3s ease;
}

.req-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.req-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.req-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
}

.req-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: #020617;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 1010;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

/* Ensure buttons don't overlap image on huge screens, 
   but stay accessible on smaller ones. */
@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }
}

/* Mobile Nav Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 70%;
  background: #1e293b;
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  padding: 6rem 2rem;
  border-left: 1px solid var(--border-light);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.mobile-menu a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-grid img {
    max-width: 80%;
    margin: 0 auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .btn-header {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

/* Before/After Slider */
.ba-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 4/3;
  /* Standard photo aspect ratio */
  margin: 2rem auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  cursor: ew-resize;
  background: #000;
  /* Letterboxing background */
}

.ba-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Show full image without cropping */
  object-position: center center;
  display: block;
  pointer-events: none;
}

.ba-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  /* Initial state */
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid white;
}

.ba-before img {
  width: 800px;
  /* Must match container max-width or set via JS */
  max-width: none;
}

.ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 40px;
  margin-left: -20px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.ba-circle {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border-color: var(--accent-primary);
  background: rgba(30, 41, 59, 0.9);
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.pop-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0;
  color: white;
}

.features {
  margin: 1.5rem 0 2rem;
  flex-grow: 1;
}

.features li {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--text-muted);
}

.features li i {
  color: var(--accent-primary);
}

/* Add-ons */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.addon-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.2s;
}

.addon-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.addon-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.addon-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: white;
}

.addon-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.addon-price {
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

/* Sticky Booking Button */
.fab-book {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-gradient);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 99px;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fab-book:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

@media (max-width: 768px) {
  .fab-book {
    padding: 0.85rem 1.25rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}