/* 
  WOLFORDS AUTO REPAIR - Stylesheet
  Business: WOLFORDS AUTO REPAIR (wolfordsauto.store)
  Email: dev@wolfordsauto.store
  Design Theme: Elegant Dark (Obsidian #0A0A0A & Warm Gold #C6A361)
*/

/* --- CSS Variables --- */
:root {
  --bg-dark: #0A0A0A;
  --bg-card: #0F0F0F;
  --bg-card-hover: #151515;
  --bg-glass: rgba(15, 15, 15, 0.88);
  --accent-gold: #C6A361;
  --accent-gold-hover: #D4AF37;
  --accent-gold-glow: rgba(198, 163, 97, 0.2);
  --accent-silver: #F5F5F5;
  --text-primary: #F5F5F5;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-active: rgba(198, 163, 97, 0.5);
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 25px rgba(198, 163, 97, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Playfair Display", "Cinzel", "Cormorant Garamond", Georgia, serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Reset & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-family: var(--font-sans); font-weight: 700; }

.text-gold {
  color: var(--accent-gold) !important;
}

.font-serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* --- Skip Link for Accessibility --- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--accent-gold);
  color: #000000;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 700;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 16px;
}

/* --- Page Loader --- */
#loader-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(198, 163, 97, 0.15);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loader-brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent-gold);
  text-transform: uppercase;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent-gold-hover);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background: rgba(198, 163, 97, 0.1);
  border: 1px solid rgba(198, 163, 97, 0.3);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.15rem;
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: padding var(--transition-normal), background var(--transition-normal);
  padding: 16px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  line-height: 1;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold);
  color: #000000;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.header-cta:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 88vh;
  padding-top: 150px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, var(--bg-dark) 100%),
              url('../images/hero-car.jpg') center/cover no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-title {
  margin: 20px 0 24px 0;
  text-shadow: 0 4px 20px rgba(0,0,0,0.9);
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-gold);
  color: #000000;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 8px 25px var(--accent-gold-glow);
}

.btn-primary:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
  color: var(--text-primary);
  transform: translateY(-3px);
}

/* --- Cards & Grid --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  display: block;
}

.about-img, .feature-img {
  width: 100%;
  height: 380px;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  display: block;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(198, 163, 97, 0.1);
  border: 1px solid rgba(198, 163, 97, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.num-badge {
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

/* --- Feature / Why Choose Us Section --- */
.feature-box {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.feature-box-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(198, 163, 97, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(198, 163, 97, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
}

/* --- Interactive Vehicle Service Inquiry Tool --- */
.tool-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
  transition: border-color var(--transition-fast);
}

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

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.tool-summary {
  background: var(--bg-dark);
  border-left: 3px solid var(--accent-gold);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.tool-summary-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

/* --- Contact Section --- */
.contact-card {
  background: #0F0F0F;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-email-badge {
  display: inline-block;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 24px 0 36px 0;
  word-break: break-all;
}

/* --- Privacy Policy Specific Layout --- */
.privacy-page-container {
  padding-top: 140px;
  padding-bottom: 100px;
  max-width: 920px;
  margin: 0 auto;
}

.toc-sidebar {
  position: sticky;
  top: 120px;
  height: calc(100vh - 160px);
  overflow-y: auto;
  padding-right: 16px;
}

.toc-sidebar::-webkit-scrollbar {
  width: 4px;
}
.toc-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.toc-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.toc-link:hover, .toc-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-left: 3px solid var(--accent-gold);
}

.privacy-article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px;
}

.privacy-article h1 {
  margin-bottom: 12px;
}

.privacy-effective-date {
  display: inline-block;
  background: rgba(198, 163, 97, 0.1);
  border: 1px solid rgba(198, 163, 97, 0.3);
  color: var(--accent-gold);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.privacy-article h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.privacy-article h3 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--accent-gold);
}

.privacy-article p {
  margin-bottom: 16px;
  line-height: 1.75;
}

.privacy-article ul, .privacy-article ol {
  margin: 16px 0 24px 24px;
  color: var(--text-secondary);
}

.privacy-article li {
  margin-bottom: 8px;
}

.privacy-article a {
  word-break: break-all;
}

/* --- Footer --- */
.site-footer {
  background: #0A0A0A;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 30px 0;
  margin-top: auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-info {
  max-width: 400px;
}

.footer-nav {
  display: flex;
  gap: 60px;
}

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

.footer-nav-title {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Scroll To Top Button --- */
#scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--accent-gold);
  color: #000000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px var(--accent-gold-glow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 900;
}

#scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-top-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-4px);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .privacy-page-container {
    grid-template-columns: 1fr;
  }
  .toc-sidebar {
    position: relative;
    top: 0;
    height: auto;
    margin-bottom: 30px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
    transition: right var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.open {
    right: 0;
  }

  .mobile-toggle {
    display: block;
    z-index: 1000;
  }

  .header-cta {
    display: none;
  }

  .grid-2, .grid-3, .form-grid {
    grid-template-columns: 1fr;
  }

  .privacy-article {
    padding: 30px 20px;
  }

  .contact-card {
    padding: 40px 20px;
  }
}

@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;
  }
}
