/* ============================================================================
   Chamunda Trading House - Full CSS (Mobile Responsive - Final 2026)
   Colors: #2d2a6f (deep blue), #e46629 (orange), #060606 (black)
   Header & Footer: light white-ish (#f8f9ff)
   Hero: soft white-to-light-blue
   ============================================================================ */

/* 1. Variables */
:root {
  --primary:     #2d2a6f;
  --primary-dark:#1e1d4f;
  --accent:      #e46629;
  --dark:        #060606;
  --light-bg:    #fdfdff;
  --header-footer-bg: #f8f9ff;
  --gray:        #555577;
  --border-light:#e8eaff;
  --white:       #ffffff;
}

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

body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark);
  background: var(--light-bg);
  line-height: 1.7;
}

/* 3. Typography */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
}

/* 4. Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 25px;
}

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

.section-intro {
  text-align: center;
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.bg-light {
  background: #f8f9ff;
}

/* 5. Header */
header {
  background-color: var(--header-footer-bg);
  color: var(--dark);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(232,234,255,0.8);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3rem;
}

.logo-img {
  max-height: 65px;
  width: auto;
  transition: transform 0.4s ease;
}

.logo a:hover .logo-img {
  transform: scale(1.06);
}

/* 6. Navigation */
nav ul {
  display: flex;
  flex-direction: row;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -8px;
  left: 0;
  background: var(--accent);
  transition: width 0.4s ease;
  border-radius: 3px;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* 7. Hero */
.hero {
  min-height: 80vh;
  background: linear-gradient(to bottom, #ffffff, #f0f4ff);
  color: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  display: none;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}

.hero h1 {
  font-size: 4.2rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 2.2rem;
  color: #333;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

/* 8. Buttons */
.btn {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.35s ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(228,102,41,0.35);
}

.btn.primary:hover {
  background: #c95a24;
  transform: translateY(-4px);
}

.btn.outline {
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn.outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn.large {
  padding: 16px 48px;
  font-size: 1.15rem;
}

/* 9. Headings & Sections */
h2 {
  text-align: center;
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 4rem;
  position: relative;
}

h2::after {
  content: '';
  width: 100px;
  height: 5px;
  background: var(--accent);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

/* 10. Cards / Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
}

.card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(45,42,111,0.07);
  transition: all 0.4s ease;
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-14px);
  box-shadow: 0 28px 70px rgba(45,42,111,0.14);
}

.card-img-wrapper {
  overflow: hidden;
  height: 220px;
}

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

.card:hover img {
  transform: scale(1.10);
}

.card-content {
  padding: 24px 26px;
  text-align: center;
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.card p {
  color: var(--gray);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Featured Equipment - 4 in row + button below */
.featured-products .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
}

.featured-products .card-img-wrapper {
  height: 180px;
}

.featured-products .card-content {
  padding: 18px 20px;
}

.featured-products .card h3 {
  font-size: 1.32rem;
}

.featured-products .card p {
  font-size: 0.94rem;
}

.view-all-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* 11. CTA Section - Centered text & button */
.cta-section {
  text-align: center;
}

.cta-section .container {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  margin-bottom: 1.5rem;
}

.cta-section p {
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn.primary.large {
  display: inline-block;
}

/* 12. Footer */
footer {
  background-color: var(--header-footer-bg);
  color: var(--dark);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-light);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

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

.footer-logo-img {
  max-height: 80px;
  margin-bottom: 15px;
}

.tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--primary);
  opacity: 0.9;
}

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

.footer-contact h4 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.footer-contact p {
  margin-bottom: 12px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-contact i {
  color: var(--accent);
}

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

.footer-social h4 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(228,102,41,0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(45,42,111,0.12);
  font-size: 0.95rem;
  color: var(--gray);
}

/* ============================================================================
   RESPONSIVE DESIGN (Mobile & Tablet)
   ============================================================================ */

/* Large screens (desktops) - 4 columns for featured */
@media (min-width: 1200px) {
  .featured-products .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Medium screens (tablets) - 3 or 2 columns */
@media (max-width: 1199px) {
  .featured-products .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .header-flex {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 1.8rem;
    justify-content: center;
    text-align: center;
  }

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

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Small screens (mobile) - 1 column, larger touch targets */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  header {
    padding: 1rem 0;
  }

  .logo-img {
    max-height: 55px;
  }

  nav ul {
    gap: 1.2rem;
    font-size: 1rem;
  }

  .hero {
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .grid, .featured-products .grid, .contact-grid, .values-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  h2 {
    font-size: 2.4rem;
  }

  .card-img-wrapper {
    height: 200px;
  }

  .card h3 {
    font-size: 1.35rem;
  }

  .card p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 12px 32px;
    font-size: 1rem;
  }

  .btn.large {
    padding: 14px 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact p {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

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

  h2 {
    font-size: 2rem;
  }
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;                    /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--primary);       /* #2d2a6f blue */
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hide menu on mobile by default */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  nav ul#nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-footer-bg);
    padding: 20px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }

  nav ul#nav-menu.active {
    display: flex;
  }

  nav ul li {
    margin: 15px 0;
    text-align: center;
  }

  nav ul li a {
    font-size: 1.1rem;
    padding: 10px;
    display: block;
  }
}

/* Optional: Close menu when clicking outside */
body.menu-open {
  overflow: hidden;
}

/* Contact Page - Info left, Form right */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2,
.contact-form h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--gray);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(228,102,41,0.15);
}

.contact-form button.btn.primary {
  align-self: flex-start;  /* Align button to left or center as needed */
  margin-top: 1rem;
}

/* Mobile: Stack left-right columns */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}