/* ==========================================================================
   Northend Garage Autoparts – Premium Dark Theme Styling
   ========================================================================== */

/* Variables */
:root {
  --color-bg-main: #070709;
  --color-bg-alt: #0D0D11;
  --color-bg-card: rgba(18, 18, 24, 0.65);
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-glow: rgba(255, 152, 0, 0.2);
  
  /* Brand Gradients & Accents */
  --color-primary: #FF9800;
  --color-primary-dark: #E65100;
  --color-accent-grad: linear-gradient(135deg, #FFE4A0 0%, #FF9800 50%, #FF5722 100%);
  --color-glow: rgba(255, 152, 0, 0.35);
  
  /* Typography Colors */
  --text-main: #F4F4F6;
  --text-muted: #9BA4B0;
  
  /* Transitions & Radii */
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--color-bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: #FFFFFF;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

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

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Grid & Structure */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

/* Common Components */
.section-tag {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.text-gradient {
  background: var(--color-accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary, .btn-secondary, .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-accent-grad);
  color: #070709;
  border: none;
  box-shadow: 0 4px 20px var(--color-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 152, 0, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.nav-cta {
  background: rgba(255, 152, 0, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(255, 152, 0, 0.3);
  padding: 10px 20px;
}

.nav-cta:hover {
  background: var(--color-accent-grad);
  color: #070709;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--color-glow);
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(7, 7, 9, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: #FFFFFF;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #FFFFFF;
  transition: var(--transition);
}

/* Open Menu Animation states */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1617814076367-b759c7d7e738?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(7, 7, 9, 0.4) 0%, #070709 90%);
  z-index: 1;
}

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

.hero-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 6px 14px;
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.25);
  border-radius: 50px;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 600px;
}

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

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  padding: 100px 0;
  background-color: var(--color-bg-alt);
}

.about-text h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  margin-bottom: 24px;
}

.contact-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.contact-bullets li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-bullets .icon {
  font-size: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.contact-bullets strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.contact-bullets p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.contact-bullets a:hover {
  color: var(--color-primary);
}

.about-image-container {
  position: relative;
}

.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}

.image-glow-backing {
  position: absolute;
  inset: -10px;
  background: var(--color-accent-grad);
  filter: blur(40px);
  opacity: 0.15;
  z-index: 1;
}

/* ==========================================================================
   Services / Categories Section
   ========================================================================== */
.services-section {
  padding: 100px 0;
  background-color: var(--color-bg-main);
}

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

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Cards styling */
.card {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 152, 0, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 152, 0, 0.1);
}

.card-image-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-content {
  padding: 24px;
}

.card-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   Map Section
   ========================================================================== */
.map-section {
  padding: 100px 0;
  background-color: var(--color-bg-alt);
}

.grid-2-map {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
}

.hours-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}

.hours-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.hours-row:last-child {
  border-bottom: none;
}

.map-note {
  font-size: 15px;
}

.map-frame-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.map-container {
  height: 400px;
  width: 100%;
  /* Dark mode filter to style openstreetmap beautifully */
  filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

/* ==========================================================================
   Contact Section / Form
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  background-color: var(--color-bg-main);
  border-bottom: 1px solid var(--color-border);
}

.glass-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

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

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

.form-group label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.15);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #10B981;
  color: #FFFFFF;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  font-weight: 600;
  z-index: 2000;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-bg-alt);
  padding: 80px 0 0 0;
}

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

.branding-col .footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.branding-col .footer-logo img {
  height: 52px;
}

.branding-col p {
  font-size: 14px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #FFFFFF;
}

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

.footer-col ul a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-col ul a:hover {
  color: var(--color-primary);
}

.footer-col p {
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-col p a:hover {
  color: var(--color-primary);
}

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  color: var(--text-muted);
  transition: var(--transition);
}

.social-icon:hover {
  color: #070709;
  background: var(--color-primary);
  border-color: transparent;
  box-shadow: 0 4px 12px var(--color-glow);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 30px 0;
}

.footer-bottom p {
  font-size: 13px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 52px;
  }
  
  .grid-2 {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .navbar {
    height: 70px;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #070709;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-toggle {
    display: flex;
    z-index: 1000;
  }
  
  .grid-2, .grid-2-map, .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .hero-section {
    padding-top: 70px;
  }
  
  .hero h1 {
    font-size: 40px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .about-image-container {
    order: -1;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  
  .glass-form {
    padding: 24px;
  }
  
  .footer-bottom .flex-between {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
