/* ==========================================================================
   Moroccan Nila Powder Lumps - Custom B2B Stylesheet
   Canonical: moroccannilapowderlumps.com
   ========================================================================== */

:root {
  --primary-navy: #0b1d3a;
  --primary-blue: #0f2c59;
  --royal-blue: #16396e;
  --indigo-accent: #1e3a8a;
  --gold-accent: #d4af37;
  --gold-hover: #b58c1b;
  --gold-light: #fef9e7;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(11, 29, 58, 0.05);
  --shadow-md: 0 6px 18px rgba(11, 29, 58, 0.08);
  --shadow-lg: 0 15px 35px rgba(11, 29, 58, 0.12);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.2;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem auto;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-accent), #c59b27);
  color: #0b1d3a;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #e5be48, var(--gold-accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.4);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn--secondary:hover {
  background: #ffffff;
  color: var(--primary-navy);
  transform: translateY(-2px);
}

.btn--outline-blue {
  background: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn--outline-blue:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

.btn--whatsapp {
  background-color: #25D366;
  color: #ffffff;
}

.btn--whatsapp:hover {
  background-color: #1ebd59;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 29, 58, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}

.header.scrolled {
  padding: 0;
  box-shadow: var(--shadow-md);
}

.nav__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.brand__logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--indigo-accent), var(--primary-navy));
  border: 2px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  text-decoration: none;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-accent);
  transition: var(--transition);
}

.nav__links a:hover {
  color: #ffffff;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__links a.active {
  color: var(--gold-accent);
  font-weight: 600;
}

.nav__links a.active::after {
  width: 100%;
}

/* Hide mobile drawer CTA button on desktop */
.nav__links .mobile-drawer-cta {
  display: none !important;
}

.nav__cta-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-accent);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #ffffff;
}

/* Page Sub-Header */
.page-header {
  background: linear-gradient(135deg, #07152b 0%, var(--primary-navy) 60%, var(--royal-blue) 100%);
  color: #ffffff;
  padding: 9rem 0 4rem 0;
  text-align: center;
  position: relative;
}

.page-header h1 {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(7, 21, 43, 0.82) 0%, rgba(11, 29, 58, 0.85) 60%, rgba(22, 57, 110, 0.82) 100%), url('../img/hero-bg.png') center/cover no-repeat;
  color: #ffffff;
  padding: 10.5rem 0 5.5rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.35) 0%, rgba(11, 29, 58, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero__text h1 {
  color: #ffffff;
  font-size: 3.1rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero__lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.hero__sublead {
  font-size: 1.05rem;
  color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.1);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold-accent);
  border-radius: 0 8px 8px 0;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.trust-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-bar__item i {
  color: var(--gold-accent);
}

.hero__card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.hero__card-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-box {
  background: rgba(11, 29, 58, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 1.15rem;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 1.75rem;
  font-family: var(--font-serif);
  color: var(--gold-accent);
}

.stat-box span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Sections General */
section {
  padding: 2.5rem 0;
}

.bg-subtle {
  background-color: #f1f5f9;
}

/* What We Supply */
.supply-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.product-card__img {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-navy);
  color: var(--gold-accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--gold-accent);
}

.product-card__content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card__content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.product-card__desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.product-feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.product-feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.product-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-accent);
  font-weight: bold;
}

.product-card__cta {
  margin-top: auto;
}

/* Who Buys From Us */
.buyers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.buyer-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.buyer-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.buyer-card__icon {
  width: 60px;
  height: 60px;
  background: var(--gold-light);
  color: var(--gold-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.buyer-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.buyer-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Quality Check Block */
.quality-check-block {
  background: var(--primary-navy);
  color: #ffffff;
  border-radius: 20px;
  padding: 3.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
}

.quality-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.quality-check-text h3 {
  color: var(--gold-accent);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.quality-check-text p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 12px;
  border-left: 3px solid var(--gold-accent);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-accent);
  min-width: 30px;
}

.step-content h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.step-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
}

/* Comparison Table (Plant vs Mineral Nila) */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.comp-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.comp-card--plant {
  border-top: 4px solid #10b981;
}

.comp-card--mineral {
  border-top: 4px solid var(--indigo-accent);
}

.comp-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.comp-badge--plant {
  background: #d1fae5;
  color: #065f46;
}

.comp-badge--mineral {
  background: #dbeafe;
  color: #1e40af;
}

.comp-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.comp-inci {
  font-family: monospace;
  font-size: 0.9rem;
  background: #f1f5f9;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  display: inline-block;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

/* Paperwork Section */
.paperwork-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.doc-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
}

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

.doc-card i {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.doc-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

/* Pricing / Order Matrix Table */
.matrix-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-top: 2.5rem;
}

.matrix-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
}

.matrix-table th, .matrix-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.matrix-table th {
  background: var(--primary-navy);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table tbody tr:hover {
  background: #f8fafc;
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-button {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
}

.faq-button i {
  font-size: 1rem;
  color: var(--gold-accent);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-button i {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
}

.faq-item.active .faq-content {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Contact Page & Form Responsiveness */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.contact-info-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.contact-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Contact / Modal CTA Section */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-navy), var(--royal-blue));
  color: #ffffff;
  border-radius: 24px;
  padding: 4rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

.cta-banner__btns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 29, 58, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.25rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modal-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--primary-navy);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.1);
}

/* Footer */
.footer {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 2rem;
}

.quick-links-grid p {
  margin-bottom: 0 !important;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-accent);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.partner-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 95px;
  right: 32px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-navy);
  color: var(--gold-accent);
  border: 1px solid var(--gold-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 998;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top-btn:hover {
  background-color: var(--gold-accent);
  color: var(--primary-navy);
}

/* ==========================================================================
   Comprehensive Full Site Responsive Styles
   Breakpoints: 1200px | 992px | 768px | 576px | 400px
   ========================================================================== */

/* Large Tablets & Small Laptops (<= 1200px) */
@media (max-width: 1200px) {
  .container {
    width: 94%;
  }

  .hero__text h1 {
    font-size: 2.75rem;
  }

  .nav__links {
    gap: 1.25rem;
  }
}

/* Medium Tablets & Mobile (<= 992px) */
@media (max-width: 992px) {
  section {
    padding: 4rem 0;
  }

  .hero {
    padding: 8.5rem 0 4rem 0;
  }

  .hero__grid, 
  .supply-grid, 
  .buyers-grid, 
  .quality-check-grid, 
  .comparison-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__card {
    margin-top: 1rem;
  }

  .paperwork-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .quality-check-block {
    padding: 2.5rem 1.75rem;
  }

  .cta-banner {
    padding: 2.75rem 1.75rem;
  }

  .cta-banner h2 {
    font-size: 2.2rem;
  }

  /* Responsive Header Rules for <= 992px */
  .nav__wrap {
    padding: 0.65rem 0;
  }

  .brand {
    font-size: 1.15rem;
    gap: 0.5rem;
    max-width: 75%;
  }

  .brand__logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .brand span {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide desktop header CTA button to prevent double buttons and overflow */
  .nav__cta-btn .btn--primary {
    display: none !important;
  }

  /* Show mobile toggle button */
  .mobile-toggle {
    display: flex !important;
  }

  .nav__links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(11, 29, 58, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1002;
    overflow-y: auto;
  }

  .nav__links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__links a {
    font-size: 1.15rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
  }

  .nav__links .mobile-drawer-cta {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    display: block !important;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  section {
    padding: 1.25rem 0;
  }

  .page-header {
    padding: 7.5rem 0 3rem 0;
  }

  .page-header h1 {
    font-size: 2.1rem;
  }

  .hero__text h1 {
    font-size: 2rem;
  }

  .hero__lead {
    font-size: 1.05rem;
  }

  .hero__sublead {
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .trust-bar {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .trust-bar__item {
    font-size: 0.82rem;
  }

  .product-card__img {
    height: 220px;
  }

  .product-card__content {
    padding: 1.5rem;
  }

  .buyer-card {
    padding: 1.75rem;
  }

  .quality-check-block {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }

  .quality-check-text h3 {
    font-size: 1.75rem;
  }

  .step-item {
    padding: 1rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .cta-banner {
    padding: 2.25rem 1.25rem;
    border-radius: 16px;
  }

  .cta-banner h2 {
    font-size: 1.85rem;
  }

  .cta-banner__btns {
    flex-direction: column;
  }

  .cta-banner__btns .btn {
    width: 100%;
  }

  .modal-box {
    padding: 1.5rem;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.75rem;
    bottom: 20px;
    right: 20px;
  }

  .scroll-top-btn {
    bottom: 82px;
    right: 24px;
    width: 40px;
    height: 40px;
  }
}

/* Extra Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
  .container {
    width: 95%;
  }

  .brand span {
    font-size: 22px;
  }

  .hero__text h1 {
    font-size: 1.7rem;
  }

  .section-title h2 {
    font-size: 1.9rem;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-box {
    padding: 0.85rem 0.5rem;
  }

  .stat-box strong {
    font-size: 1.4rem;
  }

  .stat-box span {
    font-size: 0.78rem;
  }

  .matrix-table th, 
  .matrix-table td {
    padding: 0.85rem 0.75rem;
    font-size: 0.85rem;
  }

  .faq-button {
    font-size: 1.1rem;
    padding: 1.15rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.25rem;
  }
}
