/* ============================================================
   Sofia Automobile — Custom CSS (supplement to Tailwind)
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;600;700&family=Inter:wght@400;500;600&display=swap');

/* --- Custom Properties --- */
:root {
  --gold:          #D4AF37;
  --gold-light:    #F0C040;
  --gold-dark:     #A07820;
  --surface:       #141414;
  --bg:            #0A0A0A;
  --card-border:   rgba(212, 175, 55, 0.25);
  --text-primary:  #FFFFFF;
  --text-secondary:rgba(255, 255, 255, 0.6);
  --red-accent:    #C0392B;
  --transition:    0.3s ease;
}

/* --- Base Reset & Typography --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* --- Selection --- */
::selection {
  background: var(--gold);
  color: #000;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* --- Focus Indicator --- */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  line-height: 1.15;
  margin: 0;
}

/* --- Gold Glow --- */
.gold-glow {
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  transition: box-shadow var(--transition), transform var(--transition);
}
.gold-glow:hover {
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35), 0 0 40px rgba(212, 175, 55, 0.12);
  transform: translateY(-2px);
}

/* --- Card Border Style --- */
.card-gold {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card-gold:hover {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.12);
}

/* --- Section Animate --- */
.section-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.section-animate:nth-child(2) { transition-delay: 0.1s; }
.section-animate:nth-child(3) { transition-delay: 0.2s; }
.section-animate:nth-child(4) { transition-delay: 0.3s; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--card-border);
  background: rgba(10, 10, 10, 0.97);
}

/* Nav links */
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--gold-light);
}
.nav-link[aria-current="page"]::after,
.nav-link:hover::after {
  width: 100%;
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  z-index: 1100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  padding: 6rem 1.5rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open {
  display: flex;
  animation: mobileMenuIn 0.25s ease forwards;
}
@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu.open { animation: none; }
}
.mobile-menu .nav-link {
  font-size: 1.4rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  width: 100%;
  padding: 0.5rem 0;
}

/* Hamburger button */
.hamburger {
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- Language Toggle --- */
.lang-toggle {
  display: flex;
  gap: 2px;
  align-items: center;
}
.lang-btn {
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.45rem;
  min-width: 2rem;
  min-height: 2rem;
  cursor: pointer;
  border-radius: 3px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.lang-btn img {
  display: block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
}
.lang-btn.active,
.lang-btn:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

/* Hide currently active language flag from switcher */
.lang-btn.active {
  display: none;
}

/* --- Hero Decoration Lines --- */
.hero-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-lines::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -5%;
  width: 60%;
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(212, 175, 55, 0.15), transparent);
}
.hero-lines::after {
  content: '';
  position: absolute;
  bottom: 30%;
  left: -5%;
  width: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.1), transparent);
}

/* Corner decorations */
.hero-corner-tl,
.hero-corner-br {
  position: absolute;
  width: 80px;
  height: 80px;
  pointer-events: none;
}
.hero-corner-tl {
  top: 15%;
  left: 5%;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-left: 1px solid rgba(212, 175, 55, 0.2);
}
.hero-corner-br {
  bottom: 20%;
  right: 5%;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  border-right: 1px solid rgba(212, 175, 55, 0.2);
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

/* --- Buttons --- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #000;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--gold-light);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--gold);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-outline:hover {
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn-whatsapp:hover {
  background: #1ebe5c;
  transform: translateY(-2px);
}

.btn-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #1877F2;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn-facebook:hover {
  background: #1565d8;
  transform: translateY(-2px);
}

/* --- Gold Badge --- */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

/* --- Section Headers --- */
.section-label {
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Gold Checkmark List --- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.check-list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23D4AF37'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

/* --- Accordion (details/summary) --- */
details {
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
}
details:first-of-type {
  border-top: 1px solid var(--card-border);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  gap: 1rem;
  transition: color var(--transition);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23D4AF37'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
  transition: transform var(--transition);
}
details[open] summary {
  color: var(--gold-light);
}
details[open] summary::after {
  transform: rotate(180deg);
}
details[open] summary:hover {
  color: var(--gold-light);
}
summary:hover {
  color: var(--gold-light);
}
.details-content {
  padding: 0 0 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Pricing Table --- */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}
.pricing-table th {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}
.pricing-table td {
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  font-size: 0.95rem;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
.pricing-table tr:hover td {
  background: rgba(212, 175, 55, 0.04);
}
.pricing-table .price-val {
  color: var(--gold-light);
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

/* --- Step Numbers --- */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Hero with BG image --- */
.hero-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 0.75rem 0;
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: var(--gold-light);
}
.breadcrumb span.sep {
  color: var(--gold-dark);
}
.breadcrumb span.current {
  color: var(--gold);
}

/* --- Sponsor badge --- */
.sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
}

/* --- Contact Card --- */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.contact-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.card-gold:hover .contact-icon-wrap {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
}

/* --- Form Styles --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.form-input,
.form-select,
.form-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.04);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.form-select option {
  background: #1a1a1a;
  color: var(--text-primary);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Success Message --- */
.form-success {
  display: none;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #4ade80;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 500;
}
.form-success.show {
  display: block;
}

/* --- Footer --- */
.footer {
  background: #000;
  border-top: 1px solid var(--card-border);
}
.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-link:hover {
  color: var(--gold-light);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .section-animate {
    opacity: 1;
    transform: none;
  }
}

/* --- Responsive helpers --- */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none !important;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .mobile-menu {
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 6rem 1.25rem 2rem;
    overflow-y: auto;
  }

  .mobile-menu .nav-link {
    font-size: 1.2rem;
    text-align: center;
  }

  .mobile-menu .lang-toggle {
    margin-top: 0.25rem;
  }

  .phone-link {
    font-size: clamp(1.5rem, 8vw, 2rem);
    word-break: break-word;
  }

  .btn-gold,
  .btn-outline,
  .btn-whatsapp,
  .btn-facebook {
    width: 100%;
  }

  .cta-frame {
    padding: 1.5rem;
  }

  .hero-corner-tl,
  .hero-corner-br {
    width: 56px;
    height: 56px;
  }
}
@media (min-width: 1025px) {
  .hamburger {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* Page top spacing (fixed navbar) */
.page-top {
  padding-top: 72px;
}

/* Gold underline heading decoration */
.heading-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: 1rem;
  border-radius: 2px;
}

/* Icon wrapper for service features */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.card-gold:hover .icon-circle {
  background: rgba(212, 175, 55, 0.18);
}

/* Phone link style */
.phone-link {
  color: var(--gold-light);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.phone-link:hover {
  color: var(--gold);
}

/* CTA section gold frame */
.cta-frame {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.cta-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* --- Vehicle carousel --- */
.carousel-slides {
  transition: transform 0.35s ease;
}

/* --- Image lightbox --- */
[data-lightbox-image] {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 1rem;
}

.lightbox-image {
  max-width: min(1100px, 95vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
