/*
Theme Name: Ambiwari Custom Theme
Theme URI: https://ambiwari.com/
Author: Antigravity AI
Author URI: https://deepmind.google/
Description: A premium, fast, and responsive WordPress theme custom-coded for Ambiwari Traditional Indian Snacks.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ambiwari
*/

/* ==========================================
   1. Design System & CSS Variables
   ========================================== */
:root {
  --primary-red: #8B0000;
  --dark-red: #600000;
  --cream-bg: #FDF8F2;
  --cream-alt: #FAF0E6;
  --gold: #D4AF37;
  --gold-hover: #C5A059;
  --text-dark: #2C1E1A;
  --text-light: #FDF8F2;
  --text-muted: #7E6E6A;
  --border-light: #F2E7DC;

  --font-headings: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(44, 30, 26, 0.05);
  --shadow-md: 0 8px 16px rgba(44, 30, 26, 0.08);
  --shadow-lg: 0 16px 32px rgba(44, 30, 26, 0.12);
  --border-radius: 12px;
}

/* ==========================================
   2. Reset & Base Styles
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--cream-bg);
  margin-left: 10px;
  margin-right: 10px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
}

/* ==========================================
   3. Utility Classes & Layout
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--text-dark);
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--primary-red);
  background-color: transparent;
  color: var(--primary-red);
}

.btn-outline:hover {
  background-color: var(--primary-red);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Section Headers */
.section-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-subtitle::before,
.section-subtitle::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.8rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-red);
  margin-bottom: 16px;
}

.section-desc {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* ==========================================
   4. Site Header
   ========================================== */
.site-header {
  background-color: var(--cream-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

/* Custom logo styling */
.logo-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.logo-image {
  max-height: 95px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  transition: var(--transition-smooth);
}

.logo-link:hover .logo-image {
  transform: scale(1.04);
}

/* Navigation menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-menu .current-menu-item .nav-link {
  color: var(--primary-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-menu .current-menu-item .nav-link::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  margin-bottom: 5px;
  transition: var(--transition-smooth);
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

/* ==========================================
   5. Hero Section
   ========================================== */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  background-color: var(--cream-bg);
  min-height: 550px;
  overflow: hidden;
  position: relative;
}

.hero-content {
  padding: 60px 40px 60px 0;
}

.hero-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-red);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--primary-red);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-taste-title {
  font-size: 1.5rem;
  color: var(--gold);
  font-family: var(--font-headings);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-image-container {
  height: 100%;
  min-height: 450px;
  position: relative;
}

.hero-image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: var(--primary-red);
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-image-wrap:hover .hero-image {
  transform: scale(1.08);
}

/* ==========================================
   6. Our Story Section
   ========================================== */
.story-section {
  background-color: var(--primary-red);
  color: var(--text-light);
}

.story-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.story-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.story-image-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  padding-bottom: 8px;
}

.story-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(253, 248, 242, 0.85);
  margin-bottom: 20px;
}

.story-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.2rem;
  background-color: rgba(212, 175, 55, 0.1);
}

.feature-info h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.feature-info p {
  font-size: 0.9rem;
  color: rgba(253, 248, 242, 0.8);
}

/* ==========================================
   7. Our Products Section
   ========================================== */
.products-section {
  background-color: var(--cream-alt);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.product-card {
  background-color: var(--cream-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.product-image-box {
  height: 300px;
  background-color: #f7ede2;
  position: relative;
  overflow: hidden;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: var(--transition-smooth);
}

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

.product-details {
  padding: 10px 15px 15px 15px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  color: var(--primary-red);
  margin-bottom: 8px;
}

.product-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-meta {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  border-top: 1px dashed var(--border-light);
  padding-top: 12px;
}

.product-sizes {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  background-color: var(--cream-alt);
  border: 1px dashed var(--border-light);
  padding: 2px 6px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  justify-content: center;
}

/* ==========================================
   8. Promise & Vision Section
   ========================================== */
.promise-vision-section {
  background-color: var(--cream-bg);
}

.promise-vision-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 40px;
  align-items: center;
}

.block-title {
  font-size: 1.8rem;
  color: var(--primary-red);
  margin-bottom: 20px;
  position: relative;
}

.promise-list {
  list-style: none;
}

.promise-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 500;
}

.promise-list li::before {
  content: "✔";
  color: var(--primary-red);
  font-size: 1rem;
  font-weight: 900;
  background-color: rgba(139, 0, 0, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.center-image-wrap {
  display: flex;
  justify-content: center;
}

.center-image {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.vision-block {
  background-color: var(--cream-alt);
  padding: 30px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.vision-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================
   9. Footer CTA Band & Footer
   ========================================== */
.footer-cta-band {
  background-color: var(--primary-red);
  color: var(--text-light);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.footer-cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0) 80%);
  pointer-events: none;
}

.footer-cta-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.footer-cta-desc {
  font-size: 1.05rem;
  color: rgba(253, 248, 242, 0.8);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: 40px 0;
  border-top: 1px solid rgba(253, 248, 242, 0.1);
  font-size: 0.9rem;
}

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

.footer-info {
  display: flex;
  gap: 24px;
}

.footer-copy {
  color: rgba(253, 248, 242, 0.6);
}

/* ==========================================
   10. Responsive Media Queries
   ========================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-image-wrap {
    display: none;
  }

  /* Hide center circle on tablet */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .promise-vision-grid {
    grid-template-columns: 1fr 1fr;
  }

  .center-image-wrap {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 80px;
  }

  .logo-image {
    max-height: 70px;
  }

  .nav-menu {
    display: none;
    /* In production a mobile menu script would toggle this */
  }

  .nav-toggle {
    display: block;
  }

  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .hero-subtitle {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image-wrap {
    clip-path: none;
    min-height: 300px;
    height: 350px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promise-vision-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-info {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-line {
    white-space: normal;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 290px;
    margin: 0 auto;
  }

  .product-image-box {
    height: 300px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Contact links in footer and WhatsApp widget styles */
.footer-info a {
  transition: var(--transition-smooth);
}

.footer-info a:hover {
  color: var(--gold);
}

.footer-info .whatsapp-footer-link:hover {
  color: #25D366;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
  color: #fff;
}

.whatsapp-float .whatsapp-icon {
  font-size: 24px;
}

/* Pulse animation behind the floating button */
.whatsapp-float::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50px;
  border: 2px solid #25d366;
  opacity: 0;
  pointer-events: none;
  animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 12px;
    font-size: 0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    gap: 0;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-float::before {
    border-radius: 50%;
  }
}