/* ============================================================
   BSiO2 Pty Ltd — Main Stylesheet
   bsio2.com.au | sioh4.com.au
   Design: Natural mineral elegance — deep earth tones, clean science
   ============================================================ */

:root {
  --blue:       #1B4F72;
  --blue-mid:   #2E86C1;
  --teal:       #1A8A8A;
  --teal-light: #48C9B0;
  --green:      #1E8449;
  --gold:       #C8A96E;
  --dark:       #0D1F2D;
  --dark-mid:   #1C2833;
  --grey-dark:  #2E4057;
  --grey:       #6B7280;
  --grey-light: #F0F4F8;
  --white:      #FFFFFF;
  --cream:      #FAF8F4;
  --danger:     #C0392B;
  --success:    #1E8449;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.18);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--dark-mid);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 16px; color: #374151; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue); }
ul { list-style: none; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  border: 2px solid var(--teal);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}
.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--teal);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  border: 2px solid var(--white);
}
.btn-white:hover { background: transparent; color: var(--white); }

/* ── TOP BAR ──────────────────────────────────────────────── */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,0.9); }
.topbar a:hover { color: var(--teal-light); }

/* ── HEADER / NAV ─────────────────────────────────────────── */
.main-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.main-header.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 24px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: 102px;
  width: auto;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
}
.logo-tagline {
  font-size: 0.7rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-link {
  color: var(--dark-mid);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--teal);
  background: var(--grey-light);
}
.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition);
  margin-left: 8px;
}
.nav-cta:hover { background: var(--blue); color: var(--white) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
}

/* ── HERO SLIDER ──────────────────────────────────────────── */
.hero {
  position: relative;
  height: 85vh;
  min-height: 520px;
  max-height: 800px;
  overflow: hidden;
}
.hero-slider { position: relative; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}
.slide.active { opacity: 1; }
.slide-1 { background: linear-gradient(135deg, #0D3B58 0%, #1A6B6B 50%, #1B4F72 100%); }
.slide-2 { background: linear-gradient(135deg, #1E3A2F 0%, #1E8449 50%, #1A5276 100%); }
.slide-3 { background: linear-gradient(135deg, #4A2C0A 0%, #A04000 40%, #1B4F72 100%); }

/* Subtle texture overlay */
.slide-1::before, .slide-2::before, .slide-3::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  color: var(--white);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content h1 .highlight {
  color: var(--teal-light);
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  font-weight: 300;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.slider-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slide-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.slide-btn.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.2);
}
.slider-arrows {
  position: absolute;
  bottom: 20px;
  right: 40px;
  display: flex;
  gap: 12px;
  z-index: 10;
}
.arrow-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.arrow-btn:hover { background: rgba(255,255,255,0.3); }

/* ── STATS BANNER ─────────────────────────────────────────── */
.stats-banner {
  background: var(--blue);
  padding: 28px 0;
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 40px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--teal-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
}

/* ── SECTION HEADERS ──────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-header.light h2,
.section-header.light p {
  color: var(--white);
}
.section-tag {
  display: inline-block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.section-tag.light { color: var(--teal-light); }
.section-header p { color: var(--grey); font-size: 1.05rem; margin-bottom: 0; }

/* ── TWO COLUMN LAYOUT ────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.col-text .section-tag { display: block; }
.col-text h2 { margin-bottom: 20px; }
.key-points { margin: 24px 0 32px; }
.key-point {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 500;
}
.kp-icon {
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
}

/* ── DIATOM CARD ──────────────────────────────────────────── */
.diatom-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid #E5E7EB;
}
.diatom-image-placeholder {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.diatom-circle {
  text-align: center;
  color: rgba(255,255,255,0.9);
}
.diatom-icon { font-size: 4rem; display: block; margin-bottom: 8px; }
.diatom-circle p { color: rgba(255,255,255,0.9); margin: 0; font-weight: 600; }
.diatom-circle small { color: rgba(255,255,255,0.65); }
.mineral-facts { padding: 20px; }
.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F0F0F0;
  font-size: 0.9rem;
}
.fact-row:last-child { border-bottom: none; }
.fact-label { color: var(--grey); font-weight: 500; }
.fact-value { font-weight: 600; color: var(--dark); text-align: right; }
.fact-value.green { color: var(--green); font-weight: 700; }
.highlight-row { background: #F0FBF6; border-radius: var(--radius); padding: 10px 8px; margin: 0 -8px; }

/* ── BACKGROUNDS ──────────────────────────────────────────── */
.bg-dark { background: var(--dark); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.8); }
.bg-light { background: var(--grey-light); }
.bg-teal { background: var(--teal); }
.bg-teal h2 { color: var(--white); }
.bg-teal p { color: rgba(255,255,255,0.9); }
.bg-cream { background: var(--cream); }

/* ── DISTINCTION / COMPARISON ─────────────────────────────── */
.distinction { }
.comparison-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
.comp-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.comp-card.safe {
  background: rgba(30,132,73,0.1);
  border-color: rgba(72,201,176,0.3);
}
.comp-card.danger {
  background: rgba(192,57,43,0.08);
  border-color: rgba(192,57,43,0.2);
}
.comp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.comp-icon { font-size: 1.5rem; }
.comp-card h3 { color: var(--white); margin: 0; }
.comp-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: auto;
}
.comp-tag.good { background: var(--green); color: white; }
.comp-tag.bad  { background: var(--danger); color: white; }
.comp-card ul li {
  color: rgba(255,255,255,0.8);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
  padding-left: 20px;
  position: relative;
}
.comp-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--teal-light);
}
.comp-card.danger ul li::before { color: #E74C3C; }

/* ── GRADES GRID ──────────────────────────────────────────── */
.grades-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grade-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.grade-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}
.grade-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.grade-size {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.grade-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F0F0F0;
}
.grade-apps {
  font-size: 0.88rem;
  color: var(--grey);
  margin-bottom: 12px;
  line-height: 1.5;
}
.grade-buyers { font-size: 0.8rem; color: #9CA3AF; font-style: italic; }
.grades-cta { text-align: center; margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── MARKETS GRID ─────────────────────────────────────────── */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.market-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
}
.market-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}
.market-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.market-card h4 { color: var(--blue); margin-bottom: 10px; font-size: 1rem; }
.market-card p { font-size: 0.85rem; color: var(--grey); margin: 0; }

/* ── E551 CALLOUT ─────────────────────────────────────────── */
.callout-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
}
.callout-text h2 { color: var(--white); }
.callout-text p { color: rgba(255,255,255,0.9); }
.callout-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-width: 320px;
}
.callout-stat {
  text-align: center;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px;
}
.cs-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.cs-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  display: block;
}

/* ── ACKNOWLEDGEMENT ──────────────────────────────────────── */
.acknowledgement { background: var(--cream); }
.acknowledgement-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}
.ack-symbol { font-size: 3rem; margin-bottom: 20px; }
.acknowledgement-box blockquote p {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: #374151;
  margin-bottom: 12px;
  line-height: 1.8;
}
.acknowledgement-box cite {
  display: block;
  margin-top: 20px;
  font-weight: 600;
  color: var(--blue);
  font-style: normal;
}

/* ── CONTACT CTA ──────────────────────────────────────────── */
.contact-cta h2 { color: var(--white); }
.contact-cta p { color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.cta-contacts {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 16px 28px;
  color: var(--white) !important;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
}
.cta-contact-item:hover {
  background: var(--teal);
  border-color: var(--teal);
}
.cta-icon { font-size: 1.2rem; }

/* ── PAGE HERO (internal pages) ───────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--blue) 60%, var(--teal) 100%);
  padding: 80px 0 60px;
  text-align: center;
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin: 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--teal-light); }
.breadcrumb-sep { color: rgba(255,255,255,0.4); }

/* ── CONTENT SECTIONS ─────────────────────────────────────── */
.content-block { padding: 80px 0; }
.content-block:nth-child(even) { background: var(--grey-light); }

/* ── ANALYSIS TAB STYLES ──────────────────────────────────── */
.analysis-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #E5E7EB;
  margin-bottom: 40px;
  overflow-x: auto;
}
.analysis-tab {
  padding: 14px 28px;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.analysis-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.analysis-tab:hover { color: var(--blue); }
.analysis-panel { display: none; }
.analysis-panel.active { display: block; }
.report-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.report-title h3 { color: var(--blue); }
.report-title span { color: var(--grey); font-size: 0.85rem; }
.report-badge {
  background: var(--green);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.result-item {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.result-item.highlight {
  background: #E8F8F0;
  border: 1px solid #A8DFBC;
}
.result-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  display: block;
}
.result-item.highlight .result-value { color: var(--green); }
.result-label { font-size: 0.8rem; color: var(--grey); margin-top: 4px; display: block; }

/* ── FAQ STYLES ───────────────────────────────────────────── */
.faq-item {
  border: 1px solid #E5E7EB;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--white);
  transition: background var(--transition);
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  gap: 16px;
  width: 100%;
  text-align: left;
  border: none;
  font-family: var(--font-body);
}
.faq-question:hover { background: var(--grey-light); }
.faq-question.open { background: var(--grey-light); color: var(--teal); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal);
  transition: transform var(--transition);
}
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 20px 24px 24px;
  background: #FAFAFA;
  border-top: 1px solid #F0F0F0;
  color: #374151;
  line-height: 1.8;
}
.faq-answer.open { display: block; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── BLOG ─────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-img {
  height: 180px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-body { padding: 24px; }
.blog-tag {
  display: inline-block;
  background: var(--grey-light);
  color: var(--teal);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.1rem; color: var(--blue); margin-bottom: 8px; }
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--teal); }
.blog-card p { font-size: 0.9rem; color: var(--grey); margin-bottom: 16px; }
.blog-meta { font-size: 0.8rem; color: #9CA3AF; }

/* ── CONTACT FORM ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.ci-icon {
  width: 44px;
  height: 44px;
  background: var(--grey-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ci-text strong { display: block; color: var(--blue); margin-bottom: 2px; }
.ci-text a { color: var(--dark); font-weight: 500; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--dark);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,138,138,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit .btn-primary { width: 100%; font-size: 1.05rem; padding: 16px; }
.form-success {
  background: #E8F8F0;
  border: 1px solid #A8DFBC;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--green);
  font-weight: 600;
  margin-top: 16px;
  display: none;
}

/* ── TABLES ───────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
}
.data-table th {
  background: var(--blue);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #F0F0F0;
  font-size: 0.9rem;
  color: #374151;
}
.data-table tr:nth-child(even) td { background: #F9FAFB; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .td-highlight { color: var(--green); font-weight: 700; }

/* ── FOOTER ───────────────────────────────────────────────── */
.main-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { }
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; filter: brightness(1.2); }
.footer-desc { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.social-btn {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8) !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--teal); color: white !important; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-family: var(--font-body);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-contact-item {
  margin-bottom: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.footer-contact-item a { color: rgba(255,255,255,0.8); }
.footer-contact-item a:hover { color: var(--teal-light); }
.footer-ack {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.footer-ack p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
}
.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

/* ── ALERT BOXES ──────────────────────────────────────────── */
.alert {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  border-left: 4px solid;
}
.alert-green { background: #E8F8F0; border-color: var(--green); color: #155724; }
.alert-blue  { background: #EBF5FB; border-color: var(--blue);  color: #1B4F72; }
.alert-gold  { background: #FEF9E7; border-color: var(--gold);  color: #7D6608; }

/* ── USES GRID ────────────────────────────────────────────── */
.uses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.use-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.use-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}
.use-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}
.use-card h3 { color: var(--blue); font-size: 1.15rem; margin-bottom: 12px; }
.use-card ul { margin-top: 12px; }
.use-card ul li {
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
  font-size: 0.9rem;
  color: #4B5563;
}
.use-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* ── EDITABLE CONTENT AREAS ───────────────────────────────── */
.editable {
  position: relative;
}
.editable:focus {
  outline: 2px dashed var(--teal);
  outline-offset: 4px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grades-grid { grid-template-columns: repeat(2, 1fr); }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .nav-link, .nav-cta { width: 100%; border-radius: 0; padding: 14px 24px; margin: 0; }
  .nav-cta { border-radius: 0; text-align: left; }
  .nav-inner { position: relative; }

  .hero { height: 70vh; }
  .hero-content { padding: 0 20px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .slider-arrows { display: none; }

  .stats-grid { gap: 0; }
  .stat-item { padding: 12px 16px; }
  .stat-divider { display: none; }

  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .comparison-cards { grid-template-columns: 1fr; }
  .grades-grid { grid-template-columns: 1fr 1fr; }
  .markets-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .callout-inner { grid-template-columns: 1fr; }
  .callout-stats { min-width: auto; }
  .uses-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; gap: 4px; text-align: center; font-size: 0.75rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section-pad { padding: 48px 0; }
  .grades-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease both; }
.fade-in-up-delay-1 { animation-delay: 0.1s; }
.fade-in-up-delay-2 { animation-delay: 0.2s; }
.fade-in-up-delay-3 { animation-delay: 0.3s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── PDF VIEWER ───────────────────────────────────────────── */
.pdf-embed-container {
  width: 100%;
  height: 700px;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0;
}
.pdf-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all var(--transition);
  margin-bottom: 16px;
}
.pdf-download-btn:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}
