/*
Theme Name:   Sri Mookambika Traders
Theme URI:    https://www.srimookambika.co.in
Author:       Sri Mookambika Traders
Description:  Custom WordPress theme for Sri Mookambika Traders
Version:      1.0.0
Text Domain:  smt-theme
*/

/* NOTE: Colors are injected dynamically via functions.php from config.php
   CSS variables below are defaults — overridden at runtime per SMT_COLOR_THEME */

:root {
  --primary:      #c72828;
  --primary-dark: #a01f1f;
  --secondary:    #028541;
  --dark:         #1a1a1a;
  --light:        #f8f8f8;
  --gray:         #666666;
  --white:        #ffffff;
  --border:       #e0e0e0;
  --shadow:       0 4px 20px rgba(0,0,0,0.1);
  --font:         'Poppins', sans-serif;
  --radius:       8px;
  --transition:   all 0.3s ease;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; color: var(--dark); background: var(--white); line-height: 1.7; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; transition: var(--transition); }
ul   { list-style: none; }

h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); }
p  { margin-bottom: 1rem; color: var(--gray); }

/* =============================================
   LAYOUT
============================================= */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section        { padding: 80px 0; }
.section-gray   { background: var(--light); }

.section-header         { text-align: center; margin-bottom: 50px; }
.section-header .subtitle { color: var(--primary); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.section-header h2      { margin-bottom: 12px; }
.section-header p       { max-width: 600px; margin: 0 auto; }
.divider                { width: 60px; height: 4px; background: var(--primary); margin: 12px auto 0; border-radius: 2px; }

/* =============================================
   BUTTONS
============================================= */
.btn            { display: inline-block; padding: 13px 30px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.btn-primary    { background: var(--primary);   color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.btn-outline    { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-secondary  { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.btn-secondary:hover { opacity: .9; transform: translateY(-2px); }
.btn-sm         { padding: 9px 20px; font-size: .85rem; }

/* =============================================
   TOP BAR
============================================= */
.top-bar { background: var(--primary); color: var(--white); padding: 8px 0; font-size: .85rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a      { color: var(--white); }
.top-bar a:hover { opacity: .8; }
.top-bar-left,
.top-bar-right  { display: flex; align-items: center; gap: 18px; }
.top-bar-left span,
.top-bar-right span { display: flex; align-items: center; gap: 6px; }

/* Language Switcher */
.lang-switcher  { display: flex; align-items: center; gap: 6px; }
.lang-btn       { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: var(--white); padding: 3px 10px; border-radius: 4px; font-size: .8rem; cursor: pointer; transition: var(--transition); }
.lang-btn:hover,
.lang-btn.active { background: rgba(255,255,255,.3); }

/* =============================================
   HEADER / NAVBAR
============================================= */
.site-header    { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.navbar         { padding: 14px 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.site-logo      { display: flex; align-items: center; gap: 12px; }
.site-logo img  { height: 55px; width: auto; }
.logo-text .company-name { font-size: 1.25rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-text .tagline { font-size: .72rem; color: var(--gray); }

.nav-menu       { display: flex; align-items: center; gap: 4px; }
.nav-menu li    { position: relative; }
.nav-menu a     { display: block; padding: 9px 14px; font-weight: 500; font-size: .92rem; color: var(--dark); border-radius: var(--radius); }
.nav-menu a:hover,
.nav-menu .current-menu-item > a { color: var(--primary); background: rgba(0,0,0,.04); }

.dropdown       { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 220px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 3px solid var(--primary); z-index: 100; }
.nav-menu li:hover .dropdown { display: block; }
.dropdown li a  { padding: 10px 20px; font-size: .88rem; border-radius: 0; }
.dropdown li a:hover { color: var(--primary); padding-left: 26px; }

.nav-cta        { margin-left: 15px; }
.hamburger      { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; background: none; border: none; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--dark); transition: var(--transition); }

/* =============================================
   HERO
============================================= */
.hero           { background: linear-gradient(135deg,#1a1a1a 0%,#2d2d2d 100%); min-height: 90vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before   { content: ''; position: absolute; inset: 0; background: url('images/hero-bg.jpg') center/cover no-repeat; opacity: .25; }
.hero-overlay   { position: absolute; inset: 0; background: linear-gradient(to right, rgba(var(--primary-rgb),.85) 0%, rgba(26,26,26,.7) 100%); }
.hero-content   { position: relative; z-index: 2; max-width: 680px; color: var(--white); }
.hero-badge     { display: inline-block; background: rgba(255,255,255,.15); color: var(--white); padding: 5px 16px; border-radius: 20px; font-size: .82rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,.25); }
.hero h1        { color: var(--white); margin-bottom: 18px; }
.hero h1 span   { color: #ffd700; }
.hero p         { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 32px; }
.hero-buttons   { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats     { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.hero-stat .number { font-size: 2rem; font-weight: 700; color: var(--white); }
.hero-stat .label  { font-size: .78rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: 1px; }

/* =============================================
   TRUST BAR
============================================= */
.trust-bar      { background: var(--white); padding: 22px 0; box-shadow: 0 4px 15px rgba(0,0,0,.05); }
.trust-bar .container { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px; }
.trust-item     { display: flex; align-items: center; gap: 12px; }
.trust-icon     { width: 45px; height: 45px; background: rgba(var(--primary-rgb),.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.trust-text strong { display: block; font-weight: 700; font-size: .93rem; }
.trust-text span   { font-size: .78rem; color: var(--gray); }

/* =============================================
   PRODUCTS GRID
============================================= */
.products-grid  { display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 24px; }
.product-card   { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border); }
.product-card:hover { transform: translateY(-7px); box-shadow: 0 15px 40px rgba(0,0,0,.14); }
.product-card img   { width: 100%; height: 200px; object-fit: cover; }
.product-card-body  { padding: 18px; }
.product-card-body h3 { font-size: 1.05rem; margin-bottom: 7px; }
.product-card-body p  { font-size: .88rem; margin-bottom: 12px; }
.product-price      { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.product-price small { font-size: .78rem; color: var(--gray); font-weight: 400; }

/* =============================================
   FEATURES / WHY US
============================================= */
.features-grid  { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 28px; }
.feature-card   { text-align: center; padding: 32px 22px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); transition: var(--transition); }
.feature-card:hover { transform: translateY(-5px); }
.feature-icon   { width: 68px; height: 68px; background: linear-gradient(135deg,var(--primary),var(--primary-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.7rem; color: var(--white); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 9px; }

/* =============================================
   TESTIMONIALS
============================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 24px; }
.testimonial-card  { background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.testimonial-card::before { content: '"'; position: absolute; top: 12px; right: 22px; font-size: 5rem; color: var(--primary); opacity: .1; font-family: Georgia,serif; line-height: 1; }
.stars             { color: #ffd700; font-size: .95rem; margin-bottom: 12px; }
.testimonial-card p { font-style: italic; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar     { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.author-info strong { display: block; font-size: .93rem; }
.author-info span   { font-size: .78rem; color: var(--gray); }

/* =============================================
   CTA SECTION
============================================= */
.cta-section    { background: linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%); padding: 80px 0; text-align: center; color: var(--white); }
.cta-section h2 { color: var(--white); margin-bottom: 14px; }
.cta-section p  { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 32px; }
.cta-buttons    { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* =============================================
   CONTACT
============================================= */
.contact-grid   { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: start; }
.contact-item   { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-icon   { width: 44px; height: 44px; background: rgba(var(--primary-rgb),.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.05rem; flex-shrink: 0; }
.contact-item strong { display: block; margin-bottom: 2px; }
.contact-item a:hover { color: var(--primary); }

.contact-form   { background: var(--white); padding: 38px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group     { margin-bottom: 18px; }
.form-row       { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label           { display: block; font-weight: 500; margin-bottom: 5px; font-size: .88rem; }
input,select,textarea { width: 100%; padding: 11px 15px; border: 2px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: .9rem; transition: var(--transition); }
input:focus,select:focus,textarea:focus { outline: none; border-color: var(--primary); }
textarea { resize: vertical; min-height: 115px; }

/* =============================================
   FOOTER
============================================= */
.site-footer    { background: #1a1a1a; color: rgba(255,255,255,.7); }
.footer-top     { padding: 65px 0 38px; }
.footer-grid    { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 38px; }
.footer-logo img { height: 50px; margin-bottom: 14px; }
.footer-about p  { font-size: .88rem; margin-bottom: 18px; }
.footer-social   { display: flex; gap: 10px; }
.social-link     { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: .88rem; transition: var(--transition); }
.social-link:hover { background: var(--primary); }
.footer-widget h4 { color: var(--white); font-size: .95rem; margin-bottom: 18px; padding-bottom: 9px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-links li  { margin-bottom: 9px; }
.footer-links a   { font-size: .88rem; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 11px; font-size: .88rem; }
.footer-contact li i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.footer-bottom   { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .83rem; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--primary); }

/* =============================================
   WHATSAPP FLOAT
============================================= */
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; width: 54px; height: 54px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.55rem; box-shadow: 0 4px 15px rgba(37,211,102,.4); z-index: 999; transition: var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); }

/* =============================================
   PAGE HERO
============================================= */
.page-hero      { background: linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%); padding: 55px 0; text-align: center; color: var(--white); }
.page-hero h1   { color: var(--white); margin-bottom: 10px; }
.page-hero p    { color: rgba(255,255,255,.85); }

/* =============================================
   BREADCRUMB
============================================= */
.breadcrumb     { background: var(--light); padding: 13px 0; }
.breadcrumb-list { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.breadcrumb-list li:not(:last-child)::after { content: '/'; color: var(--gray); margin-left: 8px; }
.breadcrumb-list a { color: var(--primary); }

/* =============================================
   PRODUCT SINGLE
============================================= */
.product-single         { padding: 60px 0; }
.product-single-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.product-gallery img    { border-radius: var(--radius); box-shadow: var(--shadow); }
.product-meta           { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0; }
.meta-item              { background: var(--light); padding: 9px 18px; border-radius: 20px; font-size: .88rem; }
.meta-item strong       { color: var(--primary); }
.spec-table             { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table td          { padding: 10px 14px; border: 1px solid var(--border); font-size: .88rem; }
.spec-table td:first-child { background: var(--light); font-weight: 600; width: 40%; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section        { padding: 55px 0; }
  .nav-menu       { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 18px; box-shadow: var(--shadow); z-index: 999; }
  .nav-menu.active { display: flex; }
  .hamburger      { display: flex; }
  .nav-cta        { display: none; }
  .hero           { min-height: 70vh; }
  .hero-stats     { gap: 20px; }
  .trust-bar .container { justify-content: flex-start; }
  .form-row       { grid-template-columns: 1fr; }
  .product-single-grid { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .top-bar .container { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-buttons   { flex-direction: column; }
  .cta-buttons    { flex-direction: column; align-items: center; }
  .products-grid  { grid-template-columns: 1fr; }
  .contact-form   { padding: 24px; }
}
