/* 
 * GLOBAL CSS - AWWWARDS MODE 
 * --------------------------
 */
:root {
  /* Palette */
  --color-primary: #003d73;
  --color-secondary: #f28e1c;
  --color-accent: #0097d8;
  --color-bg-light: #ffffff;
  --color-bg-alt: #e6e6e6; /* Beige/Crema from DET */
  --color-text-main: #000000;
  --color-text-muted: #555555;
  --color-text-light: #ffffff;

  /* Typography */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Montserrat", sans-serif;

  /* Spacing */
  --spacing-section: 80px;
  --spacing-container: 1200px;

  /* Effects */
  --shadow-soft: 0 10px 30px rgba(0, 61, 115, 0.08);
  --shadow-hover: 0 20px 40px rgba(0, 61, 115, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-blur: blur(12px);
  --radius-card: 16px;
  --radius-btn: 8px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
}
h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}
h3 {
  font-size: 1.5rem;
}
p {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 90%;
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: var(--spacing-section) 0;
}
.bg-alt {
  background-color: var(--color-bg-alt);
}
.text-center {
  text-align: center;
}
.text-white {
  color: var(--color-text-light);
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Components */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn:hover {
  background-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(242, 142, 28, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-text-light);
}
.btn-outline:hover {
  background-color: var(--color-text-light);
  color: var(--color-primary);
}

.card {
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo img {
  height: 60px;
  width: auto;
}
.logo-text {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* Desktop Navigation */
.main-nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 500;
  color: var(--color-primary);
  position: relative;
  font-size: 1rem;
  padding: 5px 0;
}
.main-nav a.active {
  color: var(--color-secondary);
  font-weight: 700;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: var(--transition);
}
.main-nav a:hover::after {
  width: 100%;
}

@media (max-width: 992px) {
  .site-header {
    overflow: visible !important;
  }
}

/* Mobile Toggle Button (Hidden on Desktop) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}
.mobile-menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: var(--transition);
}
.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Utility Classes */
.mobile-only {
  display: none !important;
}
.desktop-only {
  display: block !important;
}

/* RESPONSIVE HEADER STYLES */
@media (max-width: 992px) {
  /* Show Toggle */
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide Desktop Elements */
  .desktop-only {
    display: none !important;
  }
  
  /* Mobile Navigation Container */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    padding: 80px 20px 20px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000; /* Behind toggle button */
    display: block; /* Ensure it's rendered but off-screen */
    overflow-y: auto;
  }
  
  .main-nav.active {
    transform: translateX(0);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }

  /* Mobile List Items */
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  
  .main-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  .main-nav a {
    display: block;
    padding: 15px 0;
    font-size: 1.2rem;
    width: 100%;
  }
  
  .main-nav a::after {
    display: none;
  }

  /* Show Mobile Only Elements */
  .mobile-only {
    display: block !important;
    border-bottom: none !important;
    margin-top: 20px;
  }
  
  /* Prevent body scroll when menu open */
  body.menu-open {
    overflow: hidden;
  }
}

/* HOME SPECIFIC */
.hero {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 61, 115, 0.9) 0%,
    rgba(0, 61, 115, 0.4) 100%
  );
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  width: 95%;
  max-width: 1400px;
  padding-left: 5%; /* Responsive spacing */
  text-align: left;
}
.hero-content h1 {
  color: white;
  margin-bottom: 20px;
  line-height: 1.3; /* Improve readability */
  max-width: 900px; /* Limit text width for readability */
}
.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}
.pillar-card {
  background: white;
  padding: 40px;
  text-align: center;
  border-bottom: 4px solid var(--color-secondary);
}
.pillar-icon {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
  display: block;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.product-card {
  background: white;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.product-img {
  height: 250px;
  background-color: #eee;
  position: relative;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}
.product-info {
  padding: 25px;
}
.product-tag {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}
.product-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.event-banner {
  background: var(--color-primary);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.event-banner-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* CATEGORY SPECIFIC */
.page-header {
  background: var(--color-bg-alt);
  padding: 60px 0;
  text-align: center;
}
.layout-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 50px;
  padding: 60px 0;
}
.filters-sidebar h4 {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 10px;
  display: inline-block;
}
.filter-group {
  margin-bottom: 30px;
}
.filter-item {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
  color: var(--color-text-muted);
}
.filter-item:hover {
  color: var(--color-secondary);
}

/* PRODUCT DETAIL */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 0;
}
.pdp-gallery {
  display: grid;
  gap: 20px;
}
.pdp-main-img {
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 500px;
}
.pdp-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp-thumbs {
  display: flex;
  gap: 15px;
}
.pdp-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
}
.pdp-thumb.active {
  opacity: 1;
  border: 2px solid var(--color-secondary);
}

.pdp-info h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.pdp-price {
  font-size: 1.5rem;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 30px;
}
.pdp-meta {
  margin-bottom: 30px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}
.pdp-meta-item {
  display: flex;
  margin-bottom: 10px;
}
.pdp-meta-label {
  font-weight: 600;
  width: 120px;
  color: var(--color-primary);
}

/* CONTACT */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: white;
}
.contact-wrapper .contact-info {
  background: var(--color-primary);
  color: white;
  padding: 60px;
}
.contact-wrapper .contact-info h2 {
  color: white;
}
.contact-wrapper .contact-info p {
  color: rgba(255, 255, 255, 0.8);
}
.info-item {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.contact-form-box {
  padding: 60px;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 142, 28, 0.1);
}

/* FOOTER */
.site-footer {
  background: var(--color-primary);
  color: white;
  padding: 60px 0 20px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.2rem;
}
.footer-desc {
  color: #ffffff !important; /* Force white */
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 20px;
  opacity: 0.9;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-icon {
  width: 45px; /* Increased size */
  height: 45px; /* Increased size */
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: all 0.3s;
}
.social-icon:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
}
.social-icon svg {
  width: 24px; /* Explicit icon size */
  height: 24px; /* Explicit icon size */
  fill: white; /* Ensure fill is white */
}
.footer-links li,
.contact-info li {
  margin-bottom: 12px;
}
.footer-links a,
.contact-info a {
  color: rgba(255, 255, 255, 0.9); /* Increased contrast */
  display: flex;
  align-items: center;
  transition: color 0.3s;
}
.footer-links a:hover,
.contact-info a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}
.contact-info svg {
  fill: none;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  color: var(--color-secondary);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7); /* Increased contrast */
}

/* WHATSAPP BUTTON */
.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.3s;
}
.btn-whatsapp:hover {
  transform: scale(1.1);
}
.btn-whatsapp svg {
  width: 35px;
  height: 35px;
  fill: white;
}

/* Visibility Logic */
.mobile-only-social {
  display: none !important;
}

/* Responsive */
/* Responsive */
@media (max-width: 992px) {
  /* HIDE DESKTOP ELEMENTS FORCEFULLY */
  .desktop-only {
    display: none !important;
  }
  .header-actions {
    display: none !important;
  }
  
  /* WhatsApp Button Logic */
  .btn-whatsapp {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .mobile-only-social {
    display: flex !important;
  }

  .header-inner {
    padding: 0 15px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-only {
    display: block;
  }
  
  /* Mobile Navigation */
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    border-top: 1px solid #eee;
    z-index: 999;
  }
  .main-nav.active {
    display: block !important; /* Show when active */
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .main-nav a {
    font-size: 1.2rem;
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }
  .main-nav a::after {
    display: none;
  }
  
  .btn-mobile {
    width: 100%;
    text-align: center;
    margin-top: 20px;
  }
  
  .layout-grid,
  .pdp-grid,
  .contact-wrapper,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .social-links {
    justify-content: center;
    width: 100%;
  }
  .footer-links a {
    justify-content: center;
  }
  .contact-info li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .contact-info svg {
    margin-right: 0;
    margin-bottom: 5px;
    width: 24px;
    height: 24px;
  }
  
  .hero {
    height: auto;
    min-height: 500px;
    padding: 100px 0;
  }
  .hero-content {
    padding-left: 0;
    text-align: center;
    width: 100%;
  }
  .hero-content h1 {
    font-size: 2.5rem;
    margin: 0 auto 20px;
  }
  
  .contact-info,
  .contact-form-box {
    padding: 30px;
  }
  
  .event-banner-bg {
    width: 100%;
    opacity: 0.15;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr; /* Force 1 column on very small screens */
  }
  .pdp-main-img {
    height: 300px;
  }
  .pdp-info h1 {
    font-size: 2rem;
  }
}

/* UTILITIES & COMPONENTS ADDITIONS */
.section-header {
  margin-bottom: 50px;
}
.btn-sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}
.full-width {
  width: 100%;
  text-align: center;
}
.text-white {
  color: white !important;
}
.border-white {
  border-color: white !important;
}
.badge-new {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.8rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.empty-state {
  text-align: center;
  padding: 60px;
  background: #f9f9f9;
  border-radius: 16px;
}

/* EVENT BANNER CONTENT */
.event-content {
  max-width: 500px;
}
.event-content p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
}

/* TESTIMONIALS */
.testimonials-grid {
  margin-top: 40px;
}
.testimonial-card {
  text-align: left;
  display: flex;
  flex-direction: column;
}
.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}
.author-avatar {
  width: 50px;
  height: 50px;
  background: #ccc;
  border-radius: 50%;
}
.testimonial-author span {
  font-size: 0.8rem;
  color: #777;
}

/* BREADCRUMBS */
.breadcrumbs {
  margin-bottom: 30px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.breadcrumbs a:hover {
  color: var(--color-secondary);
}

/* PRODUCT FORM */
.product-form {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 16px;
}
.btn-block {
  width: 100%;
  margin-top: 10px;
  font-size: 1.1rem;
  padding: 18px;
}
