/* ===== 1. RESET & BASE STYLES ===== */
html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ===== 2. HEADER & STICKY NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #000;
  color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  transition: 0.3s;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.logo img { height: 70px; width: auto; display: block; }

.company-name {
  color: #f4c16d;
  font-size: 18px;
  font-weight: 700;
  margin-left: 10px;
  white-space: nowrap;
}

/* DESKTOP NAV */
.nav { margin-left: auto; }
.nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
}

.nav a:hover { color: #ff6a00; }

/* DESKTOP DROPDOWN */
.nav ul li { position: relative; }

.nav ul li .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 200px;
  padding: 10px 0;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
}

.dropdown:hover > .submenu { display: block; }

.submenu li a {
  color: #333 !important;
  padding: 8px 20px;
  font-size: 14px;
  display: block;
}

.arrow {
  font-size: 11px;
  margin-left: 5px;
  transition: transform 0.3s ease;
  display: inline-block;
  line-height: 1;
}
.dropdown:hover .arrow { transform: rotate(180deg); }

/* HEADER CTA */
.header-cta { display: flex; gap: 10px; margin-left: 20px; }
.call-btn, .whatsapp-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
}
.call-btn { background: #ff6a00; }
.whatsapp-btn { background: #25d366; }

/* ===== 3. COMPONENTS (HERO & FLOATING) ===== */
.hero {
  height: 400px;
  background: gray;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 80px;
}

.floating-buttons {
  position: fixed;
  right: 20px; bottom: 20px;
  display: flex; flex-direction: column;
  gap: 12px; z-index: 9999;
}

.float-call, .float-whatsapp {
  width: 55px; height: 55px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2); transition: 0.3s;
}
.float-call { background: #ff6a00; }
.float-whatsapp { background: #25d366; }

/* ===== 4. FOOTER & CONTACT FIX ===== */
.footer { background: #111; color: #fff; padding: 60px 0 0; }
.footer-container {
  width: 100%; max-width: 1320px; margin: 0 auto;
  padding: 0 40px; display: flex; justify-content: space-between; gap: 50px;
}
.footer-logo img { max-width: 140px; margin-bottom: 18px; }
.footer-about p, .footer-contact p { color: #ccc; font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.footer-links h3, .footer-contact h3 { margin-bottom: 18px; font-size: 22px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-links ul li a:hover { color: #ff6a00; }
.footer-contact p { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact p i { color: #ff6a00; margin-top: 5px; }

/* Contact Link Color Fix (Removing Blue Links) */
.footer-contact a, 
[href^="tel:"], 
[href^="mailto:"] {
  color: #ccc !important;
  text-decoration: none !important;
  pointer-events: auto;
}

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; background: rgba(255,255,255,0.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; transition: 0.3s;
}
.footer-social a:hover { background: #ff6a00; }

.footer-bottom {
  margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 40px; text-align: center; font-size: 14px; color: #ccc;
}

/* ===== 5. MOBILE & TABLET OPTIMIZED ===== */
@media (max-width: 991px) {
  .footer-container { flex-direction: column; gap: 30px; }
}

@media (max-width: 768px) {
  body { padding-top: 80px; }
  .company-name { font-size: 14px; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }

  /* Burger Animation */
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

  /* Drawer Menu */
  .nav {
    position: fixed; top: 0; right: -100%;
    width: 75%; height: 100vh;
    background: #111; display: flex;
    flex-direction: column; align-items: flex-start;
    padding-top: 80px; transition: 0.4s ease;
    z-index: 1000; overflow-y: auto;
  }
  .nav.active { right: 0; }

  .nav ul {
    flex-direction: column; width: 100%;
    gap: 0 !important; padding-top: 20px;
  }
  .nav ul li { margin: 0 !important; width: 100%; text-align: center; }
  .nav ul li a {
    font-size: 18px; padding: 12px 0; display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* Submenu Mobile Fix (Merged & Relative) */
  .dropdown:hover .submenu { display: none; } 
  
  .nav ul li .submenu {
    position: relative; 
    top: 0; width: 100%;
    background: #222; 
    display: none; 
    padding: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .dropdown.open > .submenu { display: block !important; }

  .submenu li a {
    color: #ccc !important;
    font-size: 16px;
    padding: 10px 20px !important;
    border-bottom: 1px solid #333;
    text-align: center;
  }

  .dropdown.open > a .arrow { transform: rotate(180deg); }

  /* Overlay */
  body.menu-open::after {
    content: ""; position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 998;
  }
}

/* ===== BURGER ICON FIX START ===== */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

/* LINES (IMPORTANT 🔥) */
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;   /* header black hai, isliye white */
  display: block;
  transition: 0.3s;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
}

/* ===== BURGER ICON FIX END ===== */
/* ===== MOBILE DRAWER FIX ===== */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%; /* Shuruat mein screen se bahar */
    width: 250px; /* Ek fixed width dein */
    height: 100vh;
    background: #111;
    display: block !important; /* Display ko block rakhein */
    transition: 0.4s ease-in-out;
    z-index: 1000;
    padding-top: 80px;
  }

  /* Jab menu open ho */
  .nav.active {
    right: 0 !important;
  }

  .nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  /* Dropdown setup for mobile */
  .nav ul li .submenu {
    position: relative;
    display: none; /* Default hidden */
    background: #222;
    width: 100%;
  }

  .nav ul li.open .submenu {
    display: block; /* JS se toggle hoga */
  }
}
/* Purana sara extra code (aakhri wala) hata kar ise copy-paste karein */

@media (max-width: 768px) {
  /* Menu Toggle Button Visibility */
  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    z-index: 10001; /* Isse header ke upar rakhein */
  }

  .menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    display: block;
    transition: 0.3s;
  }

  /* Drawer Menu Fix */
  .nav {
    position: fixed !important;
    top: 0;
    right: -100% !important; /* Default hidden */
    width: 280px;
    height: 100vh;
    background: #111 !important;
    display: block !important; 
    transition: 0.4s ease-in-out;
    z-index: 10000 !important;
    padding-top: 100px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
  }

  /* Jab 'active' class add ho tab menu dikhe */
  .nav.active {
    right: 0 !important;
  }

  .nav ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }

  .nav ul li {
    width: 100%;
    border-bottom: 1px solid #222;
  }

  .nav ul li a {
    padding: 15px 25px;
    display: block;
    color: #fff !important;
    text-align: left;
  }

  /* Mobile Dropdown Fix */
  .nav ul li .submenu {
    position: relative;
    display: none;
    background: #1a1a1a;
    width: 100%;
    padding-left: 20px;
  }

  .nav ul li.open .submenu {
    display: block !important;
  }
}

/* ===== GLOBAL RESPONSIVE IMPROVEMENTS ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
}

body {
  width: 100%;
}

main {
  display: block;
  width: 100%;
}

section {
  width: 100%;
}

.container,
.footer-container,
.hero-inner,
.about-short-container,
.categories-container,
.featured-products-container,
.process-container,
.contact-form-container,
.contact-info-container,
.gallery-container,
.team-container,
.story-grid,
.infra-container,
.intro-container,
.collection-grid,
.specialization-container,
.fc-container,
.full-blog-container {
  width: 100%;
}

.nav a,
.hero-btn,
.about-btn,
.category-btn,
.product-btn,
.btn,
.collection-btn,
.spec-btn,
.cta-btn,
.feature-btn,
.why-btn {
  word-break: break-word;
}

.contact-right,
.blog-post,
.product-card,
.category-card,
.collection-card,
.contact-card,
.why-card,
.team-box,
.option-card,
.process-card {
  min-width: 0;
}

@media (max-width: 1199px) {
  .about-short-container,
  .hero-inner,
  .footer-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 991px) {
  .header {
    height: 74px;
  }

  body {
    padding-top: 74px;
  }

  .container {
    padding: 0 16px;
    gap: 12px;
  }

  .logo img {
    height: 58px;
  }

  .company-name {
    font-size: 15px;
    white-space: normal;
    line-height: 1.25;
    max-width: 220px;
  }

  .footer-container,
  .about-short-container,
  .contact-form-container,
  .intro-container,
  .team-container,
  .story-grid,
  .infra-container,
  .feature-flex,
  .why-flex,
  .collection-grid {
    gap: 28px;
  }

  .about-short-container,
  .contact-form-container,
  .intro-container,
  .feature-flex,
  .why-flex {
    flex-direction: column;
  }

  .story-grid,
  .team-container,
  .infra-container,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner,
  .about-hero,
  .contact-hero,
  .gallery-hero,
  .blog-hero,
  .heritage-hero,
  .decorative-hero,
  .temple-hero {
    min-height: 420px;
    height: auto;
  }

  .hero-inner,
  .about-hero-content,
  .contact-hero-content,
  .gallery-hero-content,
  .blog-hero-content,
  .heritage-hero-content,
  .decorative-hero-content,
  .temple-hero-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-text h1,
  .about-hero-content h1,
  .contact-hero-content h1,
  .gallery-hero-content h1,
  .blog-hero-content h1,
  .heritage-hero-content h1,
  .decorative-hero-content h1,
  .temple-hero-content h1 {
    font-size: 38px;
    line-height: 1.15;
  }

  .hero-text p,
  .about-hero-content p,
  .contact-hero-content p,
  .gallery-hero-content p,
  .blog-hero-content p,
  .heritage-hero-content p,
  .decorative-hero-content p,
  .temple-hero-content p {
    font-size: 15px;
    line-height: 1.7;
  }

  .categories-grid,
  .featured-products-grid,
  .why-grid,
  .product-grid,
  .gallery-container,
  .decor-grid,
  .specialization-grid,
  .fc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-filter-container,
  .filter-buttons,
  .cta-buttons,
  .hero-buttons,
  .footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-right,
  .blog-post {
    padding: 24px;
  }
}

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

  body {
    padding-top: 70px;
  }

  .container {
    padding: 0 14px;
  }

  .logo img {
    height: 52px;
  }

  .company-name {
    font-size: 13px;
    max-width: 160px;
  }

  .nav {
    width: min(84vw, 320px);
    padding-top: 84px;
  }

  .nav ul {
    padding-top: 10px;
  }

  .nav ul li a {
    padding: 14px 20px;
    font-size: 16px;
    text-align: left;
  }

  .submenu li a {
    padding-left: 32px !important;
    text-align: left;
  }

  .hero-banner,
  .about-hero,
  .contact-hero,
  .gallery-hero,
  .blog-hero,
  .heritage-hero,
  .decorative-hero,
  .temple-hero {
    min-height: 360px;
  }

  .hero-inner,
  .about-short-container,
  .footer-container,
  .gallery-main,
  .contact-form-section,
  .contact-info-section,
  .specialization,
  .god-collection,
  .temple-collection,
  .custom-intro,
  .custom-process,
  .custom-options,
  .custom-gallery,
  .decorative-collection,
  .decor-feature,
  .why-feature,
  .cta-section,
  .full-blog {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-text,
  .about-short-content,
  .intro-content,
  .story-content,
  .feature-content,
  .why-content,
  .contact-left,
  .contact-right {
    max-width: 100%;
  }

  .hero-text h1,
  .hero-text p,
  .about-short-content,
  .about-hero-content,
  .contact-hero-content,
  .gallery-hero-content,
  .blog-hero-content,
  .heritage-hero-content,
  .decorative-hero-content,
  .temple-hero-content,
  .section-header,
  .collection-header,
  .intro-header,
  .why-header,
  .gallery-intro-container,
  .contact-form-header,
  .specialization-header,
  .fc-header {
    text-align: center;
  }

  .hero-text h1,
  .about-short-content h2,
  .section-header h2,
  .collection-header h2,
  .intro-header h2,
  .why-header h2,
  .contact-form-header h2,
  .specialization-header h2,
  .fc-header h2,
  .cta-container h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .hero-text p,
  .about-short-content p,
  .intro-content p,
  .story-content p,
  .contact-left p,
  .contact-form-header p,
  .collection-header .desc,
  .gallery-intro p,
  .cta-container p,
  .specialization-header p {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-buttons,
  .cta-buttons {
    gap: 12px;
  }

  .hero-btn,
  .about-btn,
  .category-btn,
  .product-btn,
  .cta-btn,
  .collection-btn,
  .feature-btn,
  .why-btn,
  .spec-btn,
  .btn-whatsapp,
  .btn-call {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  .categories-grid,
  .featured-products-grid,
  .why-grid,
  .product-grid,
  .gallery-container,
  .decor-grid,
  .specialization-grid,
  .fc-grid,
  .contact-info-container {
    grid-template-columns: 1fr;
  }

  .category-card,
  .product-card,
  .contact-card,
  .blog-post,
  .collection-card,
  .specialization-card,
  .why-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .gallery-item img,
  .decor-item img,
  .product-card img,
  .collection-card img,
  .fc-item img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .footer {
    padding-top: 40px;
  }

  .footer-container {
    padding-left: 16px;
    padding-right: 16px;
    gap: 22px;
  }

  .footer-bottom {
    padding: 18px 16px;
  }

  .floating-buttons {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }

  .float-call,
  .float-whatsapp {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .company-name {
    font-size: 12px;
    max-width: 130px;
  }

  .hero-banner,
  .about-hero,
  .contact-hero,
  .gallery-hero,
  .blog-hero,
  .heritage-hero,
  .decorative-hero,
  .temple-hero {
    min-height: 320px;
  }

  .hero-text h1,
  .about-short-content h2,
  .section-header h2,
  .collection-header h2,
  .intro-header h2,
  .why-header h2,
  .contact-form-header h2,
  .specialization-header h2,
  .fc-header h2,
  .cta-container h2 {
    font-size: 25px;
  }

  .hero-subtitle,
  .section-tag {
    font-size: 12px;
    letter-spacing: 0.6px;
  }

  .highlight-item,
  .filter-btn,
  .filter-buttons button {
    width: 100%;
  }

  .contact-right,
  .blog-post {
    padding: 18px;
  }

  .gallery-filter-container,
  .filter-buttons {
    gap: 8px;
  }
}