/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette */
  --bg-dark: #0A0A0A;
  --bg-darker: #050505;
  --bg-card: #151515;
  --primary-red: #D32F2F;
  --primary-red-hover: #E53935;
  --accent-yellow: #FBC02D;
  --accent-yellow-dark: #F57F17;
  --text-white: #FFFFFF;
  --text-muted: #A0A0A0;
  
  /* Fonts */
  /* 'Rye' provides that vintage, mischievous, old-school biker/western vibe */
  --font-mischievous: 'Rye', cursive;
  /* 'Bebas Neue' for bold clean headers */
  --font-bold: 'Bebas Neue', sans-serif;
  /* 'Inter' for minimalistic luxury readability */
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-darker);
}

body {
  font-family: var(--font-body);
  color: var(--text-muted);
  background-color: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* --- Typography Classes --- */
.mischievous-text {
  font-family: var(--font-mischievous);
  letter-spacing: 1px;
}

.bold-header {
  font-family: var(--font-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.text-red { color: var(--primary-red); }
.text-yellow { color: var(--accent-yellow); }
.text-white { color: var(--text-white); }
.highlight-yellow {
  color: var(--accent-yellow);
  text-shadow: 0 0 10px rgba(251, 192, 45, 0.3);
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-family: var(--font-bold);
  font-size: 1.2rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  line-height: 1; /* Match font height exactly */
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--text-white);
  border: 1px solid var(--primary-red);
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-white);
  border: 1px solid var(--text-white);
}

.btn-secondary:hover {
  background-color: var(--text-white);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.large-btn {
  padding: 16px 48px;
  font-size: 1.5rem;
}

/* --- Navbar (Minimalist & Luxury) --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo {
  font-family: var(--font-bold);
  font-size: 2.5rem;
  letter-spacing: 2px;
  line-height: 1;
  display: flex;
  flex-direction: column;
}

.logo-subtext {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--accent-yellow);
  text-transform: uppercase;
  margin-top: 2px;
}

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

.nav-links li a:not(.btn-primary) {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-white);
  padding-bottom: 5px;
  position: relative;
}

.nav-links li a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-red);
  transition: var(--transition-smooth);
}

.nav-links li a:not(.btn-primary):hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 30px;
  height: 2px;
  background-color: var(--text-white);
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 10%;
  background-image: url('assets/hero_bg.png'); /* Dynamic background */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,5,5,0.9) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.8) 100%);
  z-index: 1;
}

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

.hero h1 {
  font-size: 5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 2px 4px 10px rgba(0,0,0,0.8);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 500px;
  color: #D0D0D0;
  border-left: 3px solid var(--primary-red);
  padding-left: 20px;
}

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

/* Layers of Red and Yellow aesthetics */
.red-layer-bg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40vw;
  height: 40vh;
  background: radial-gradient(circle, rgba(211,47,47,0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
}

.yellow-layer-bg {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(251,192,45,0.08) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
}

.image-citation {
  position: absolute;
  bottom: 20px;
  right: 5%;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  z-index: 5;
}

.image-citation a {
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.5);
}

.image-citation a:hover {
  color: var(--accent-yellow);
}

/* --- Services Section --- */
.services {
  padding: 120px 5%;
  background-color: var(--bg-dark);
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.sub-heading {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.sub-heading::before, .sub-heading::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background-color: var(--primary-red);
}

.sub-heading::before { right: 100%; margin-right: 15px; }
.sub-heading::after { left: 100%; margin-left: 15px; }

.section-main-title {
  font-size: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-card);
  padding: 40px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: var(--primary-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 25px;
  display: inline-block;
}

.red-glow { text-shadow: 0 0 20px rgba(211,47,47,0.8); }
.yellow-glow { text-shadow: 0 0 20px rgba(251,192,45,0.8); }
.white-glow { text-shadow: 0 0 20px rgba(255,255,255,0.6); }

.service-card h4 {
  font-family: var(--font-bold);
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- Smog Banner --- */
.smog-banner {
  background: linear-gradient(135deg, var(--bg-darker) 0%, rgba(20,20,20,1) 100%);
  border-top: 2px solid var(--accent-yellow);
  border-bottom: 2px solid var(--primary-red);
  padding: 100px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.smog-banner h2 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.smog-banner p {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.smog-layered-accents {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.02) 10px,
    rgba(255,255,255,0.02) 20px
  );
  z-index: 1;
  pointer-events: none;
}

/* --- Footer --- */
footer {
  background-color: var(--bg-darker);
  padding: 80px 5% 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-logo {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.footer-brand p {
  max-width: 300px;
}

.footer-contact p, .footer-hours p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-contact h4, .footer-hours h4 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.footer-legal p {
  margin-bottom: 5px;
}

.sample-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 500px;
}

.meygoo-signature {
  font-family: var(--font-body);
  color: var(--text-muted);
}

.meygoo-link {
  color: var(--accent-yellow);
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
}

.meygoo-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.meygoo-link:hover {
  color: var(--text-white);
}

.meygoo-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  background-color: var(--text-white);
}

/* --- Animations & Utilities --- */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.fade-in.visible {
  opacity: 1;
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive Media Queries */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile behavior for now */
  }
  .hamburger {
    display: flex;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .smog-banner h2 {
    font-size: 3rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
