/* --------------------------------------------------------------------------
   Fizzclean Independent Evaluation Portal - styles.css
   Design Archetype: Airy Ceramic & Mineral Editorial Workbench
   Color Palette Family: Soft Mineral Sage & Clean Ceramic White
   -------------------------------------------------------------------------- */

:root {
  --bg-primary: #F4F6F4;
  --bg-card: #FFFFFF;
  --accent-moss: #2E5A44;
  --accent-ink: #1E2824;
  --accent-soft-sage: #E2EBE5;
  --text-primary: #19221E;
  --text-muted: #5A6862;
  --border-subtle: #D5E0DA;
  --border-focus: #2E5A44;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Mono', SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --radius-card: 12px;
  --radius-pill: 24px;
  --radius-btn: 8px;
  --shadow-subtle: 0 4px 16px rgba(30, 40, 36, 0.05);
  --shadow-elevated: 0 8px 24px rgba(30, 40, 36, 0.08);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Machine readable markers container (hidden visually, clean structured metadata) */
[data-machine-marker] {
  display: none !important;
}

/* Container Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Floating Navigation Bar */
.navbar-wrapper {
  position: sticky;
  top: 16px;
  z-index: 1000;
  padding: 0 16px;
  margin-bottom: 24px;
}

.navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent-ink);
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-moss);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-mono);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--accent-soft-sage);
  color: var(--accent-moss);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--accent-moss);
}

.nav-cta {
  background: var(--accent-moss);
  color: #FFFFFF !important;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: #234635;
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.btn-primary {
  background: var(--accent-moss);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(46, 90, 68, 0.25);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: #234635;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(46, 90, 68, 0.35);
  outline: none;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 40px 0 60px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-moss);
  background: var(--accent-soft-sage);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent-ink);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-intro {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.hero-visual-mobile {
  display: none;
  margin-bottom: 24px;
}

.hero-visual-desktop {
  display: block;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevated);
  object-fit: cover;
  background: #fff;
}

.hero-cta-block {
  margin-bottom: 24px;
}

.hero-proof-microcopy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

.hero-bullets {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 1.02rem;
  color: var(--text-primary);
  font-weight: 500;
}

.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--accent-soft-sage);
  color: var(--accent-moss);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-offer-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
}

/* Sections Rhythm & Cards */
.section-block {
  padding: 48px 0;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-subtle);
}

.section-header {
  margin-bottom: 24px;
}

.section-number-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-moss);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--accent-ink);
  line-height: 1.3;
}

.section-content {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.section-content p {
  margin-bottom: 16px;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* Visual Media Container */
.visual-container {
  margin: 28px 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  background: #fff;
}

.visual-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.visual-caption {
  padding: 12px 18px;
  background: var(--bg-primary);
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

/* Tables & Grid Matrices */
.matrix-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.98rem;
  background: #fff;
}

.matrix-table th {
  background: var(--accent-soft-sage);
  color: var(--accent-ink);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-subtle);
}

.matrix-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

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

.matrix-table tr:nth-child(even) {
  background: var(--bg-primary);
}

/* FAQ Section & Accordions */
.faq-section {
  padding: 56px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: var(--accent-moss);
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}

.faq-question-btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: -2px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft-sage);
  color: var(--accent-moss);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-moss);
  color: #fff;
}

.faq-answer-panel {
  padding: 0 24px 20px;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: none;
}

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

.faq-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.badge-verified {
  background: var(--accent-soft-sage);
  color: var(--accent-moss);
}

.badge-unknown {
  background: #FEE2E2;
  color: #991B1B;
}

/* Mid section CTA Banner */
.cta-banner-card {
  background: linear-gradient(135deg, var(--accent-ink) 0%, #293832 100%);
  color: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 48px 40px;
  text-align: center;
  margin: 48px 0;
  box-shadow: var(--shadow-elevated);
}

.cta-banner-card h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner-card p {
  font-size: 1.1rem;
  color: #D5E0DA;
  max-width: 680px;
  margin: 0 auto 28px;
}

.cta-banner-card .btn-primary {
  background: #FFFFFF;
  color: var(--accent-ink);
}

.cta-banner-card .btn-primary:hover {
  background: var(--accent-soft-sage);
  color: var(--accent-moss);
}

/* Sticky Mobile CTA Bar */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 16px;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

/* Footer */
.site-footer {
  background: var(--accent-ink);
  color: #A3B5AC;
  padding: 60px 0 40px;
  margin-top: 60px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.footer-disclaimer {
  line-height: 1.6;
  font-size: 0.88rem;
}

.footer-title {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: #A3B5AC;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #7E948A;
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Legal Document Styles */
.legal-page {
  padding: 40px 0 80px;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 48px;
  box-shadow: var(--shadow-subtle);
}

.legal-card h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--accent-ink);
}

.legal-card h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 28px 0 12px;
  color: var(--accent-ink);
}

.legal-card p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text-primary);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-intro {
    font-size: 1.05rem;
  }

  .hero-visual-desktop {
    display: none;
  }

  .hero-visual-mobile {
    display: block;
  }

  .section-card {
    padding: 24px;
  }

  .nav-links:not(.nav-cta-item) {
    display: none;
  }

  .sticky-mobile-bar {
    display: block;
  }

  body {
    padding-bottom: 72px; /* Space for sticky bar */
  }

  .cta-banner-card {
    padding: 32px 20px;
  }

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

  .matrix-table-wrapper {
    max-width: 100%;
    overflow-x: hidden;
  }

  .matrix-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    font-size: 0.82rem;
  }

  .matrix-table th,
  .matrix-table td {
    min-width: 0;
    padding: 10px 8px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .matrix-table .faq-badge {
    max-width: 100%;
    white-space: normal;
    padding: 2px 4px;
    font-size: 0.64rem;
  }
}

@media (max-width: 390px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.75rem;
  }
}
