/* Sun Devil Auto Parts - Auto Parts Store Design */
:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --secondary: #dc2626;
  --dark: #171717;
  --dark-light: #262626;
  --gray-700: #404040;
  --gray-500: #737373;
  --gray-300: #d4d4d4;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; color: var(--gray-700); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Header - Orange Bar Top */
.header { position: fixed; top: 0; left: 0; right: 0; background: var(--white); z-index: 1000; box-shadow: var(--shadow); }
.header-top { background: linear-gradient(90deg, var(--primary), var(--secondary)); padding: 8px 20px; color: var(--white); font-size: 13px; font-weight: 600; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top span { display: flex; align-items: center; gap: 6px; }
.header-top svg { width: 14px; height: 14px; }

.header-main { height: 72px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 46px; height: 46px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 26px; height: 26px; color: var(--white); }
.logo-text { font-size: 18px; font-weight: 800; color: var(--dark); line-height: 1.2; }
.logo-text span { display: block; font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--gray-700); font-size: 14px; font-weight: 600; padding: 6px 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-btn { background: var(--dark); color: var(--white); padding: 11px 22px; border-radius: 6px; font-weight: 700; font-size: 13px; transition: all 0.25s; }
.nav-btn:hover { background: var(--primary); transform: translateY(-1px); color: var(--white); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { width: 22px; height: 2.5px; background: var(--dark); border-radius: 2px; transition: 0.3s; }

/* Hero - Card Stack Style */
.hero { padding: 115px 0 70px; background: var(--gray-100); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 400px; height: 400px; background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 10%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(220,38,38,0.06) 0%, transparent 70%); border-radius: 50%; }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero-content { padding-right: 30px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 2px solid var(--primary); color: var(--primary); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 18px; }
.hero-badge svg { width: 14px; height: 14px; }
.hero-title { font-size: 46px; font-weight: 900; color: var(--dark); line-height: 1.1; margin-bottom: 18px; letter-spacing: -1px; }
.hero-title span { color: var(--primary); }
.hero-desc { font-size: 16px; color: var(--gray-500); margin-bottom: 26px; line-height: 1.75; }
.hero-stats { display: flex; gap: 28px; margin-bottom: 28px; }
.hero-stat { padding: 14px 20px; background: var(--white); border-radius: 8px; box-shadow: var(--shadow); }
.hero-stat-value { font-size: 24px; font-weight: 900; color: var(--primary); line-height: 1; }
.hero-stat-label { font-size: 11px; color: var(--gray-500); font-weight: 600; margin-top: 4px; }
.hero-buttons { display: flex; gap: 12px; }

.hero-visual { position: relative; height: 380px; }
.hero-card { position: absolute; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; transition: transform 0.4s; }
.hero-card:hover { transform: scale(1.02) translateY(-5px); }
.hero-card.main { width: 280px; height: 320px; top: 30px; left: 50%; transform: translateX(-50%); z-index: 3; }
.hero-card.back { width: 260px; height: 300px; top: 45px; left: 52%; z-index: 2; opacity: 0.7; }
.hero-card img { width: 100%; height: 70%; object-fit: cover; }
.hero-card-body { padding: 14px; }
.hero-card-title { font-size: 14px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.hero-card-price { font-size: 16px; font-weight: 900; color: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.25s; border: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,115,22,0.35); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }

/* Sections */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-100); }
.section-dark { background: var(--dark); color: var(--white); }

.section-header { margin-bottom: 48px; }
.section-header.text-center { text-align: center; }
.section-tag { display: inline-block; background: rgba(249,115,22,0.1); color: var(--primary); padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.section-title { font-size: 36px; font-weight: 900; color: var(--dark); line-height: 1.15; letter-spacing: -0.5px; }
.section-title span { color: var(--primary); }
.section-desc { font-size: 16px; color: var(--gray-500); margin-top: 12px; max-width: 560px; }
.section-header.text-center .section-desc { margin: 12px auto 0; }
.section-dark .section-title { color: var(--white); }
.section-dark .section-desc { color: rgba(255,255,255,0.7); }

/* Categories - Widget Grid */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-widget { background: var(--white); border-radius: 10px; padding: 24px 20px; text-align: center; box-shadow: var(--shadow); transition: all 0.3s; border: 2px solid transparent; }
.category-widget:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.category-icon svg { width: 28px; height: 28px; color: var(--white); }
.category-widget h3 { font-size: 16px; color: var(--dark); margin-bottom: 6px; font-weight: 800; }
.category-widget p { font-size: 13px; color: var(--gray-500); }

/* Services - Asymmetric Cards */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card-a { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.35s; }
.service-card-a:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card-a.featured { grid-row: span 2; }
.service-card-a.featured .service-card-img { height: 240px; }
.service-card-img { height: 160px; overflow: hidden; position: relative; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card-a:hover .service-card-img img { transform: scale(1.06); }
.service-card-label { position: absolute; top: 12px; left: 12px; background: var(--primary); color: var(--white); padding: 5px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.service-card-body { padding: 20px; }
.service-card-body h3 { font-size: 18px; color: var(--dark); margin-bottom: 8px; font-weight: 800; }
.service-card-body p { color: var(--gray-500); font-size: 14px; line-height: 1.7; }

/* Why Choose - Horizontal */
.why-row { display: flex; gap: 20px; }
.why-item { flex: 1; display: flex; gap: 14px; padding: 24px; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); transition: all 0.3s; }
.why-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.why-icon { width: 48px; height: 48px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-icon svg { width: 24px; height: 24px; color: var(--white); }
.why-text h3 { font-size: 16px; color: var(--dark); margin-bottom: 5px; font-weight: 800; }
.why-text p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

/* Lead Form */
.lead-section { padding: 80px 0; background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); }
.lead-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.lead-info h2 { font-size: 34px; color: var(--white); margin-bottom: 14px; font-weight: 900; }
.lead-info > p { color: rgba(255,255,255,0.75); font-size: 15px; margin-bottom: 32px; line-height: 1.8; }
.lead-contacts { display: flex; flex-direction: column; gap: 14px; }
.lead-contact { display: flex; align-items: center; gap: 12px; color: var(--white); }
.lead-contact-icon { width: 40px; height: 40px; background: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.25); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.lead-contact-icon svg { width: 18px; height: 18px; color: var(--primary); }
.lead-contact span { font-size: 14px; }
.lead-contact a { color: var(--white); }
.lead-contact a:hover { color: var(--primary); }

.lead-form { background: var(--white); border-radius: 14px; padding: 36px; box-shadow: var(--shadow-xl); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 700; color: var(--gray-700); font-size: 13px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 16px; border: 2px solid var(--gray-300); border-radius: 8px; font-size: 14px; transition: all 0.25s; background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.form-check label { font-size: 12px; color: var(--gray-500); line-height: 1.5; }

/* Services Page */
.page-hero { padding: 130px 0 60px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); }
.page-hero h1 { font-size: 42px; color: var(--white); margin-bottom: 12px; font-weight: 900; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.85); }

.service-block { padding: 60px 0; border-bottom: 1px solid var(--gray-300); }
.service-block.alt { background: var(--gray-100); }
.service-block-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: center; }
.service-block:nth-child(even) .service-block-inner { direction: rtl; }
.service-block:nth-child(even) .service-block-inner > * { direction: ltr; }
.service-block-img img { border-radius: 12px; box-shadow: var(--shadow-lg); width: 100%; height: 310px; object-fit: cover; }
.service-block-content h2 { font-size: 26px; color: var(--dark); margin-bottom: 12px; font-weight: 900; }
.service-block-content > p { color: var(--gray-500); font-size: 15px; line-height: 1.8; margin-bottom: 22px; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-700); }
.service-list li::before { content: '●'; color: var(--primary); font-size: 8px; }

/* Gallery */
.gallery-section { padding: 60px 0 80px; background: var(--gray-100); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-card { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--white); transition: all 0.35s; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-card img { width: 100%; height: 180px; object-fit: cover; }
.gallery-card-body { padding: 16px; }
.gallery-card-body h4 { font-size: 15px; color: var(--dark); margin-bottom: 4px; font-weight: 700; }
.gallery-card-body p { font-size: 12px; color: var(--gray-500); }

/* Contact */
.contact-section { padding: 130px 0 90px; background: var(--gray-100); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 45px; }
.contact-info h2 { font-size: 30px; color: var(--dark); margin-bottom: 12px; font-weight: 900; }
.contact-info > p { color: var(--gray-500); margin-bottom: 32px; font-size: 15px; }
.contact-details { margin-bottom: 32px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item-icon { width: 44px; height: 44px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 22px; height: 22px; color: var(--white); }
.contact-item-text h4 { font-size: 14px; color: var(--dark); margin-bottom: 2px; font-weight: 700; }
.contact-item-text p, .contact-item-text a { font-size: 14px; color: var(--gray-500); }

.hours-card { background: var(--white); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.hours-card h4 { font-size: 16px; color: var(--dark); margin-bottom: 16px; font-weight: 700; }
.hours-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-300); font-size: 14px; }
.hours-row:last-child { border-bottom: none; }
.hours-row span:first-child { color: var(--gray-500); }
.hours-row span:last-child { font-weight: 700; color: var(--dark); }

.contact-form-wrap { background: var(--white); border-radius: 14px; padding: 38px; box-shadow: var(--shadow-lg); }
.map-section { padding: 0 0 90px; background: var(--gray-100); }
.map-wrap { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.map-wrap iframe { width: 100%; height: 360px; border: none; display: block; }

/* Legal */
.legal-page { padding: 130px 0 90px; }
.legal-content { max-width: 840px; margin: 0 auto; }
.legal-content h1 { font-size: 34px; color: var(--dark); margin-bottom: 28px; font-weight: 900; }
.legal-content h2 { font-size: 22px; color: var(--dark); margin: 34px 0 14px; font-weight: 800; }
.legal-content p { color: var(--gray-500); margin-bottom: 14px; line-height: 1.85; font-size: 15px; }
.legal-content ul { margin: 14px 0 22px 18px; }
.legal-content ul li { color: var(--gray-500); margin-bottom: 10px; position: relative; padding-left: 18px; }
.legal-content ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }

/* Sitemap */
.sitemap-page { padding: 130px 0 90px; }
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.sitemap-card { background: var(--white); border-radius: 12px; padding: 26px; box-shadow: var(--shadow); }
.sitemap-card h3 { font-size: 18px; color: var(--dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); font-weight: 800; }
.sitemap-card ul li { margin-bottom: 10px; }
.sitemap-card ul li a { color: var(--gray-500); font-size: 14px; transition: all 0.25s; }
.sitemap-card ul li a:hover { color: var(--primary); padding-left: 3px; }

/* Footer */
.footer { background: var(--dark); color: var(--white); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 42px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.8; margin-bottom: 12px; }
.footer-brand address { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.9; font-style: normal; }
.footer-brand address a { color: rgba(255,255,255,0.85); }
.footer-brand address a:hover { color: var(--primary); }
.footer-col h4 { font-size: 15px; margin-bottom: 18px; color: var(--white); font-weight: 700; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 14px; transition: all 0.25s; }
.footer-links a:hover { color: var(--primary); padding-left: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.footer-disclaimer { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 14px 18px; margin-bottom: 16px; }
.footer-disclaimer p { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.7; }
.footer-copyright { font-size: 13px; color: rgba(255,255,255,0.5); }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); padding: 18px 20px; z-index: 9999; box-shadow: 0 -4px 18px rgba(0,0,0,0.1); display: none; }
.cookie-banner.active { display: block; }
.cookie-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cookie-text h4 { font-size: 15px; color: var(--dark); margin-bottom: 4px; }
.cookie-text p { font-size: 13px; color: var(--gray-500); }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.active { display: flex; }
.cookie-modal-box { background: var(--white); border-radius: 14px; padding: 30px; max-width: 440px; width: 100%; }
.cookie-modal-box h3 { font-size: 22px; color: var(--dark); margin-bottom: 10px; font-weight: 800; }
.cookie-modal-box > p { color: var(--gray-500); margin-bottom: 24px; font-size: 14px; }
.cookie-opt { padding: 12px 0; border-bottom: 1px solid var(--gray-300); }
.cookie-opt:last-of-type { border-bottom: none; }
.cookie-opt label { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--gray-700); cursor: pointer; }
.cookie-opt p { color: var(--gray-500); font-size: 12px; margin-top: 5px; }
.cookie-modal-btns { display: flex; gap: 10px; margin-top: 24px; }

/* Skip Link */
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--primary); color: var(--white); padding: 10px 20px; z-index: 99999; border-radius: 6px; font-weight: 700; transition: top 0.3s; }
.skip-link:focus { top: 16px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { padding-right: 0; order: 1; }
  .hero-visual { order: 0; height: 320px; }
  .hero-card.main { width: 240px; height: 280px; }
  .hero-card.back { width: 220px; height: 260px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-a.featured { grid-row: span 1; }
  .why-row { flex-direction: column; }
  .lead-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .service-block-inner { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-block-inner { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-top { display: none; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; gap: 0; box-shadow: var(--shadow-lg); }
  .nav.active { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--gray-300); }
  .nav-btn { margin-top: 12px; display: block; text-align: center; }
  .mobile-toggle { display: flex; }
  
  .hero { padding: 90px 0 50px; }
  .hero-title { font-size: 34px; }
  .hero-stats { flex-direction: column; gap: 14px; }
  .hero-visual { height: 260px; }
  .hero-card.back { display: none; }
  
  .section { padding: 55px 0; }
  .section-title { font-size: 28px; }
  .categories-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .lead-form { padding: 26px; }
  .contact-form-wrap { padding: 26px; }
  
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-buttons { width: 100%; }
  .cookie-buttons .btn { flex: 1; }
}
