/* ==========================================================================
   COUPONSSPHERE - Components & Layout Styles
   ========================================================================== */

/* --- 1. Recommended Navigation Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--brand-orange) 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.logo-text span {
  color: var(--primary);
}

/* Recommended Navigation Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  position: relative;
  transition: all 0.2s ease;
  border: 1px solid var(--border-light);
}

.icon-btn:hover {
  background-color: var(--border-light);
  color: var(--primary);
}

.badge-counter {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--brand-orange);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle {
  display: none;
  font-size: 1.25rem;
  padding: 8px;
}


/* --- 2. Search Bar Section --- */
.search-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-main) 100%);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border-light);
}

.search-container-box {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.search-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-heading);
}

.search-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border-radius: 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  transition: border-color 0.2s ease;
}

.search-input-group:focus-within {
  border-color: var(--primary);
}

.search-main-input {
  width: 100%;
  height: 56px;
  padding: 0 20px 0 54px;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  color: var(--text-main);
  background: transparent;
  outline: none;
}

.search-main-icon {
  position: absolute;
  left: 20px;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.search-btn {
  position: absolute;
  right: 8px;
  height: 42px;
  padding: 0 24px;
  border-radius: 12px;
}

.search-tags-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tag-badge {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
}


/* --- 3. Hero Section --- */
.hero-section {
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero-content-box {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero-main-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--brand-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-supporting-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-item i {
  color: var(--brand-green);
}


/* --- 4. Section Headers --- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-heading {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}


/* --- 5. Shop By Category Grid --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.cat-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex: 1;
}

.cat-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-link:hover {
  color: var(--primary-hover);
}


/* --- 6. Featured Offers / Today's Top Offers --- */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.offer-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-orange);
}

.offer-badge {
  align-self: flex-start;
  background-color: var(--brand-orange);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 6px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.offer-category-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.offer-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 4px 0 16px;
  color: var(--text-heading);
}

.offer-card .btn-primary {
  width: 100%;
  justify-content: center;
}


/* --- 7. Popular Brands Logo Grid --- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}

.brand-card-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  height: 100px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
}

.brand-card-item:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.brand-card-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}


/* --- 8. Why Couponssphere? 5 Pillars Grid --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.why-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}


/* --- 9. How It Works 5-Step Journey --- */
.steps-flex-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.journey-step-card {
  flex: 1;
  min-width: 180px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.journey-step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.journey-step-card p {
  color: var(--text-muted);
  font-size: 0.86rem;
}


/* --- 10. Corporate Solutions & Value Proposition --- */
.corporate-section-box {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 4rem 3rem;
  margin: 4rem 0;
  box-shadow: var(--shadow-lg);
}

.corporate-section-box h2, .corporate-section-box h3 {
  color: #ffffff;
}

.corp-solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 3rem 0;
}

.corp-card {
  background-color: var(--dark-navy-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.corp-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.corp-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.corp-card .cat-link {
  color: var(--brand-orange);
}

.value-prop-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 3rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.checklist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.checklist-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.checklist-list i {
  color: var(--brand-green);
}


/* --- 11. COUPONSSPHERE Ecosystem Flowchart Diagram --- */
.ecosystem-section {
  padding: 4rem 0;
  text-align: center;
}

.ecosystem-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.eco-box {
  background-color: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  min-width: 220px;
  flex: 1;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.eco-box.hub {
  border-color: var(--primary);
  background: var(--primary-light);
}

.eco-box h4 {
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.eco-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.eco-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 800;
}


/* --- 12. Trust Section, Vision & Mission --- */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 3rem 0;
}

.vm-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.vm-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.vm-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 2.5rem;
}

.trust-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.trust-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.trust-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}


/* --- 13. CTA Sections & FAQ Accordion --- */
.cta-banner-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--brand-orange) 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
}

.cta-banner-box h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.cta-banner-box p {
  color: #f1f5f9;
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-heading);
  text-align: left;
}

.faq-answer {
  padding: 0 24px 22px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary);
}


/* --- 14. Modals & Cart Drawer --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--bg-card);
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  padding: 30px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.coupon-code-box {
  background: var(--bg-surface);
  border: 2px dashed var(--primary);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}

.code-text {
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

.denom-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.denom-pill {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border-light);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.denom-pill.active {
  border-color: var(--brand-green);
  background-color: var(--brand-green-light);
  color: var(--brand-green);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-card);
  z-index: 1001;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-surface);
}


/* --- 15. Footer --- */
.site-footer {
  background-color: #0b0f19;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #94a3b8;
  transition: color 0.2s ease;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
}
