/*
Theme Name: MEC Pro Autoparts
Theme URI: https://example.com/mec-pro
Author: MEC Pro
Author URI: https://example.com
Description: Premium single-page WordPress theme for MEC Pro Autoparts — Maruti Suzuki brake pads and diesel filters. Features hero, product catalog with tabs, about, audience, and contact sections. Fully customizable via the WordPress Customizer.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mec-pro
Tags: one-page, business, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ===== Design tokens ===== */
:root{
  --background:#ffffff;
  --foreground:#141414;
  --muted:#f5f5f5;
  --muted-foreground:#666666;
  --border:#e5e5e5;
  --primary:#e60a17;
  --primary-foreground:#ffffff;
  --secondary:#1a1a1a;
  --secondary-foreground:#ffffff;
  --radius:8px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;
  background:var(--background);color:var(--foreground);
  line-height:1.5;-webkit-font-smoothing:antialiased
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}

.container{max-width:1200px;margin:0 auto;padding:0 1rem}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.625rem 1.25rem;border-radius:var(--radius);font-weight:600;font-size:.875rem;
  border:1px solid transparent;cursor:pointer;transition:all .2s;line-height:1}
.btn-primary{background:var(--primary);color:var(--primary-foreground)}
.btn-primary:hover{background:#c20813}
.btn-outline{background:transparent;border-color:var(--border);color:var(--foreground)}
.btn-outline:hover{background:var(--muted)}
.btn-outline-light{background:transparent;border-color:rgba(255,255,255,.3);color:#fff}
.btn-outline-light:hover{background:#fff;color:var(--secondary)}
.btn-lg{padding:.875rem 1.75rem;font-size:1rem}
.btn-sm{padding:.5rem .875rem;font-size:.8125rem}
.btn-block{width:100%}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.85);
  backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding-top:1rem;padding-bottom:1rem}
.site-logo img{height:48px;width:auto}
.main-nav{display:none;gap:1.5rem;font-size:.875rem;color:var(--muted-foreground)}
.main-nav a:hover{color:var(--foreground)}
.header-cta{display:flex;align-items:center;gap:.75rem}
.menu-toggle{background:none;border:0;cursor:pointer;padding:.5rem;color:var(--foreground)}
.menu-toggle svg{width:24px;height:24px}
@media(min-width:768px){.main-nav{display:flex}.menu-toggle{display:none}}

/* Mobile drawer */
.mobile-drawer{position:fixed;inset:0;z-index:100;display:none}
.mobile-drawer.open{display:block}
.mobile-drawer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.mobile-drawer-panel{position:absolute;top:0;right:0;bottom:0;width:75%;max-width:320px;
  background:#fff;padding:2rem 1.5rem;display:flex;flex-direction:column;gap:1.25rem}
.mobile-drawer-panel a{font-size:1.125rem;font-weight:500}
.mobile-drawer-close{align-self:flex-end;background:none;border:0;cursor:pointer;font-size:1.5rem}

/* Hero */
.hero{position:relative;overflow:hidden;background:var(--secondary);color:var(--secondary-foreground);
  padding:5rem 0}
.hero::before{content:"";position:absolute;inset:0;opacity:.2;
  background:radial-gradient(circle at 20% 30%,rgba(230,10,23,.5),transparent 50%),
             radial-gradient(circle at 80% 70%,rgba(230,10,23,.3),transparent 50%)}
.hero-inner{position:relative;max-width:768px;margin:0 auto;text-align:center}
.eyebrow{display:inline-block;font-size:.75rem;font-weight:600;letter-spacing:.3em;
  text-transform:uppercase;color:var(--primary)}
.hero h1{font-size:2.5rem;font-weight:800;line-height:1.1;letter-spacing:-.02em;margin:1.5rem 0}
.hero h1 .accent{color:var(--primary)}
.hero p{font-size:1.125rem;color:rgba(255,255,255,.7);max-width:600px;margin:0 auto 1.5rem}
.hero-actions{display:flex;flex-direction:column;gap:.75rem;justify-content:center;margin-top:1rem}
@media(min-width:640px){.hero{padding:8rem 0}.hero h1{font-size:3.75rem}.hero-actions{flex-direction:row}}

/* Sections */
.section{padding:4rem 0}
.section-muted{background:rgba(245,245,245,.5)}
.section-dark{background:var(--secondary);color:var(--secondary-foreground)}
.section-head{max-width:640px;margin:0 auto 3rem;text-align:center}
.section-head h2{font-size:1.875rem;font-weight:700;margin:.75rem 0}
.section-head p{color:var(--muted-foreground)}
.section-dark .section-head p{color:rgba(255,255,255,.7)}
@media(min-width:768px){.section{padding:6rem 0}.section-head h2{font-size:2.25rem}}

/* Tabs */
.tabs{display:flex;justify-content:center;margin-bottom:2.5rem}
.tabs-list{display:inline-flex;gap:.25rem;background:var(--muted);padding:.25rem;border-radius:var(--radius)}
.tab-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;
  border:0;background:transparent;border-radius:calc(var(--radius) - 2px);
  font-size:.875rem;font-weight:500;cursor:pointer;color:var(--muted-foreground)}
.tab-btn.active{background:var(--primary);color:var(--primary-foreground)}
.tab-btn svg{width:16px;height:16px}
.tab-count{display:inline-flex;align-items:center;padding:0 .375rem;height:1.25rem;border-radius:9999px;
  background:rgba(255,255,255,.25);font-size:.6875rem;margin-left:.25rem}
.tab-btn:not(.active) .tab-count{background:#fff;color:var(--muted-foreground)}
.tab-panel{display:none}.tab-panel.active{display:block}
.tab-tagline{text-align:center;color:var(--muted-foreground);font-size:.875rem;margin-bottom:2rem}

/* Product grid */
.product-grid{display:grid;gap:1.5rem;grid-template-columns:1fr}
@media(min-width:640px){.product-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.product-grid{grid-template-columns:repeat(3,1fr)}}

.card{background:#fff;border:2px solid var(--border);border-radius:var(--radius);
  padding:1.5rem;display:flex;flex-direction:column;gap:1rem;transition:all .2s}
.card:hover{border-color:var(--primary);box-shadow:0 10px 30px rgba(0,0,0,.08)}
.card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}
.card-icon{width:48px;height:48px;border-radius:8px;background:var(--primary);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .2s}
.card:hover .card-icon{transform:scale(1.1)}
.card-icon svg{width:24px;height:24px;color:#fff}
.badge{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:9999px;
  border:1px solid var(--border);font-size:.625rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-weight:600}
.card h3{font-size:1.125rem;font-weight:600;line-height:1.3;margin-bottom:.25rem}
.card .fitment{font-size:.75rem;color:var(--muted-foreground)}
.card .fitment strong{color:var(--foreground)}
.card ul.highlights{display:flex;flex-direction:column;gap:.375rem;flex:1;font-size:.875rem;color:var(--muted-foreground)}
.card ul.highlights li{display:flex;gap:.5rem;align-items:flex-start}
.check{width:16px;height:16px;color:var(--primary);flex-shrink:0;margin-top:2px}
.card-actions{display:flex;gap:.5rem;padding-top:.5rem}
.card-actions .btn{flex:1}

/* About features */
.features{display:grid;gap:2rem;grid-template-columns:1fr;max-width:960px;margin:0 auto}
@media(min-width:768px){.features{grid-template-columns:repeat(3,1fr)}}
.feature{text-align:center}
.feature-icon{width:56px;height:56px;border-radius:9999px;background:var(--secondary);
  display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;
  box-shadow:0 0 0 4px rgba(230,10,23,.2)}
.feature-icon svg{width:28px;height:28px;color:var(--primary)}
.feature h3{font-weight:600;margin-bottom:.5rem}
.feature p{font-size:.875rem;color:var(--muted-foreground)}

/* Audience cards */
.audience-grid{display:grid;gap:1.5rem;grid-template-columns:1fr;max-width:960px;margin:0 auto}
@media(min-width:640px){.audience-grid{grid-template-columns:repeat(3,1fr)}}
.audience-card{text-align:center}
.audience-card .card-icon{background:rgba(230,10,23,.1);margin:0 auto}
.audience-card .card-icon svg{color:var(--primary)}

/* Contact */
.contact-grid{display:grid;gap:1rem;grid-template-columns:1fr;max-width:768px;margin:0 auto}
@media(min-width:640px){.contact-grid{grid-template-columns:repeat(2,1fr)}}
.contact-item{display:flex;align-items:center;gap:1rem;padding:1.25rem;border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);transition:all .2s}
.contact-item:hover{background:rgba(255,255,255,.1);border-color:var(--primary)}
.contact-item svg{width:24px;height:24px;color:var(--primary);flex-shrink:0}
.contact-item .label{font-size:.75rem;color:rgba(255,255,255,.6)}
.contact-item .value{font-weight:500}

/* Footer */
.site-footer{border-top:1px solid var(--border);background:#fff}
.site-footer .container{display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  gap:.75rem;padding-top:1.5rem;padding-bottom:1.5rem;font-size:.875rem;color:var(--muted-foreground)}
.site-footer img{height:32px}
@media(min-width:640px){.site-footer .container{flex-direction:row}}

/* Utility */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
