/* VAREX Detailing - Main Styles */

:root {
  --black: #0B0C10;
  --gold: #D4AF37;
  --gold-light: #E8C84A;
  --white: #FFFFFF;
  --gray: #A0A0A0;
  --red: #FF3333;
  --radius: 18px;
  
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Section */
section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

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

.btn-secondary:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
}

/* Page Loader */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--black);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

#page-loader .loader-text {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 40px;
  letter-spacing: 0.2em;
}

#page-loader .loader-bar {
  width: 300px;
  height: 3px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

#page-loader .loader-progress {
  height: 100%;
  background: var(--gold);
  width: 0%;
  animation: loadProgress 1.5s ease forwards;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 24px 0;
}

nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-logo .logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.nav-logo .logo-sub {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: var(--gray);
  text-transform: uppercase;
}

.nav-monogram {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-monogram svg {
  width: 50px;
  height: 50px;
  fill: var(--gold);
  opacity: 0.8;
}

.hamburger {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: var(--glass-bg);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gold);
  z-index: 1001;
  transition: width 0.1s ease;
}

/* Overlay Menu */
.overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(11, 12, 16, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 60px; /* Adds space at the top so menu links don't overlap the nav logo */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay-menu.active {
  opacity: 1;
  visibility: visible;
}

.overlay-menu ul {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Reduced gap from 24px */
  text-align: center;
  margin-bottom: 30px; /* Reduced bottom margin from 60px */
}

.overlay-menu ul li a {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem); /* Reduced size from clamp(2.5rem, 5vw, 5rem) */
  font-weight: 700;
  color: var(--white);
  transition: all 0.3s ease;
  display: inline-block;
  letter-spacing: 0.05em;
}

.overlay-menu ul li a:hover {
  color: var(--gold);
  transform: translateY(-4px); /* Changed to vertical lift for a clean luxury feel */
}

.overlay-cta {
  margin-bottom: 24px; /* Reduced margin from 40px */
}

.overlay-cta .btn {
  padding: 10px 24px;
  font-size: 0.8rem;
}

.overlay-info {
  text-align: center;
  color: var(--gray);
  font-size: 0.875rem; /* Slightly smaller detail text */
  line-height: 1.6;
}

.overlay-info a {
  color: var(--gold);
}
/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(11, 12, 16, 0.9) 0%, rgba(11, 12, 16, 0.3) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  margin-bottom: 32px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 40px;
  color: var(--gray);
  white-space: pre-line;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Contact Preview */
.contact-preview {
  background: linear-gradient(to bottom, var(--black) 0%, #161720 100%);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-form {
  max-width: 600px;
  margin: 40px auto 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.success-message {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.success-message.active {
  display: block;
}

.success-message .checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gold);
  animation: scaleIn 0.5s ease;
}

/* Services Section */
.services {
  background: linear-gradient(to bottom, #161720 0%, var(--black) 100%);
}

.services-grid {
  margin-top: 60px;
  perspective: 1000px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.5;
  height: 500px;
}

.service-card.active {
  opacity: 1;
  transform: translateY(-20px) scale(1.02);
  box-shadow: 0 0 40px rgba(255, 51, 51, 0.4);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: all 0.4s ease;
}

.service-card.active::before {
  background: var(--red);
}

.service-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 32px;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.95) 0%, transparent 100%);
}

.service-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--red);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--white);
}

.service-price {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.service-card .btn {
  font-size: 0.75rem;
  padding: 10px 24px;
}

/* Service Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(11, 12, 16, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 40px;
}

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

.modal-content {
  background: #161720;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

.modal-body {
  padding: 60px 40px 40px;
}

.modal-body h2 {
  margin-bottom: 16px;
}

.modal-body .service-price {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.modal-body .service-duration {
  color: var(--gray);
  margin-bottom: 32px;
  font-size: 1rem;
}

.modal-body p {
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 32px;
}

.modal-features {
  margin-bottom: 40px;
}

.modal-features h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.modal-features ul {
  display: grid;
  gap: 12px;
}

.modal-features ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray);
}

.modal-features ul li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Gallery Section */
.gallery {
  background: var(--black);
}

.gallery-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 60px;
  font-size: 1.125rem;
}

.gallery-grid {
  column-count: 3;
  column-gap: 24px;
}

.gallery-item {
  position: relative;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
  transition: all 0.3s ease;
}

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

.gallery-item img {
  width: 100%;
  display: block;
  transition: all 0.3s ease;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(212, 175, 55, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
  border: 3px solid var(--gold);
}

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

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(11, 12, 16, 0.98);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

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

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.lightbox-close {
  top: -70px;
  right: 0;
}

.lightbox-prev {
  left: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
}

/* About Section */
.about {
  background: linear-gradient(to bottom, var(--black) 0%, #161720 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.about-text h2 {
  margin-bottom: 32px;
}

.about-text p {
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 32px;
  font-size: 1.125rem;
}

.about-values {
  display: grid;
  gap: 16px;
}

.about-values li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
}

.about-values li::before {
  content: '✓';
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stats Section */
.stats {
  background: #161720;
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.stat-label {
  color: var(--gray);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Reviews Section */
.reviews {
  background: linear-gradient(to bottom, #161720 0%, var(--black) 100%);
  overflow: hidden;
}

.reviews-slider {
  margin-top: 40px;
  overflow: hidden;
  position: relative;
}

.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.review-card {
  width: 320px;            /* Fixed width so cards don't stretch */
  max-width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;           /* Reduced padding */
  flex-shrink: 0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-google {
  width: 24px;             /* Reduced Google icon size */
  height: 24px;
  fill: var(--gold);
}

.review-rating {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

.review-content {
  margin-bottom: 16px;
}

.review-text {
  line-height: 1.6;
  color: var(--gray);
  font-size: 0.95rem;      /* Scaled down text size */
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;             /* Reduced avatar size */
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.review-info {
  flex: 1;
}

.review-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.review-vehicle {
  color: var(--gray);
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.review-date {
  color: var(--gray);
  font-size: 0.75rem;
}

/* Map Section */
.map-section {
  position: relative;
  height: 600px;
  background: var(--black);
}

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

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(0.9) contrast(0.9);
}

.map-info-card {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 400px;
  background: rgba(11, 12, 16, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
}

.map-info-card h3 {
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: var(--gold);
}

.map-info-card p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--gray);
  line-height: 1.6;
}

.map-info-card p strong {
  color: var(--white);
  min-width: 80px;
}

.map-info-card .btn {
  margin-top: 24px;
  width: 100%;
  text-align: center;
}

/* Footer */
footer {
  background: var(--black);
  border-top: 2px solid var(--gold);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--gold);
}

.footer-col p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  color: var(--gray);
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 8px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.875rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.newsletter-form button {
  padding: 12px 24px;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 40px;
  text-align: center;
  color: var(--gray);
  font-size: 0.875rem;
}

.footer-bottom p:first-child {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
