/* ═══════════════════════════════════════════════════════════
   ROSETTA BRANDS - Shared Design System
   rosetta.css
   Loaded by every page. Nav CSS travels with _nav.html.
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */

:root {
  /* Brand Colors */
  --charcoal: #2d2933;
  --orange:   #f17d02;
  --pink:     #e15286;
  --purple:   #7f86c1;
  --grey:     #545454;

  /* Extended palette */
  --orange-light:  #fff4e6;
  --orange-mid:    #fde8cc;
  --pink-light:    #fef0f4;
  --purple-light:  #f0f1f8;
  --charcoal-90:   rgba(45,41,51,0.9);
  --charcoal-70:   rgba(45,41,51,0.7);
  --charcoal-50:   rgba(45,41,51,0.5);
  --charcoal-10:   rgba(45,41,51,0.08);
  --charcoal-05:   rgba(45,41,51,0.04);

  /* Neutrals */
  --white:          #ffffff;
  --off-white:      #fafafa;
  --light-grey:     #f5f5f7;
  --border:         #e8e8ec;
  --text-secondary: #6b6b76;

  /* Typography */
  --font-display: 'DM Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-pad:   120px;
  --container-max: 1200px;
  --nav-height:    72px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ═══════════════════════════════════════════
   SECTION SHARED STYLES
   ═══════════════════════════════════════════ */

section { padding: var(--section-pad) 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}
.section-tag.orange { color: var(--orange); }
.section-tag.pink   { color: var(--pink); }
.section-tag.purple { color: var(--purple); }
.section-tag.white  { color: rgba(255,255,255,0.8); }

.section-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
}

.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 12px 24px;
  box-shadow: 0 1px 3px rgba(241,125,2,0.3);
}
.btn-primary:hover {
  background: #e07200;
  box-shadow: 0 4px 16px rgba(241,125,2,0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--charcoal);
  padding: 12px 24px;
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--charcoal-50);
  box-shadow: 0 2px 8px rgba(45,41,51,0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--orange);
  padding: 12px 0;
}
.btn-ghost:hover { color: #e07200; }

.btn-ghost svg, .btn-primary svg, .btn-secondary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.btn-ghost:hover svg { transform: translateX(3px); }

.btn-lg { font-size: 15px; padding: 14px 32px; border-radius: 12px; }
.btn-sm { font-size: 13px; padding: 10px 20px; border-radius: 8px; }

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */

.cta-section {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.cta-box {
  background: linear-gradient(135deg, var(--charcoal) 0%, #3d3647 100%);
  border-radius: 28px;
  padding: 80px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,125,2,0.15) 0%, transparent 70%);
}
.cta-box::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,82,134,0.1) 0%, transparent 70%);
}
.cta-box > * { position: relative; z-index: 1; }

.cta-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.cta-text {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.cta-note { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 20px; }
.cta-note a { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 3px; }
.cta-note a:hover { color: #fff; }
.cta-actions .btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.cta-actions .btn-secondary:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}

/* variant: dark background (used on some sub-pages) */
.cta-section.dark {
  background: var(--charcoal);
  padding: 80px 0;
}
.cta-section.dark .cta-box {
  max-width: 720px;
  margin: 0 auto;
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.cta-section.dark .cta-box::before,
.cta-section.dark .cta-box::after { display: none; }

/* ═══════════════════════════════════════════
   CERTIFICATION STRIP
   ═══════════════════════════════════════════ */

.cert-strip {
  padding: 56px 0;
  background: var(--off-white);
  border-top: 1px solid var(--charcoal-10);
}
.cert-strip-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-50);
  margin-bottom: 32px;
}
.cert-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--charcoal-70);
  font-size: 14px;
  font-weight: 500;
}
.cert-item img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(20%);
}
.cert-item-text { line-height: 1.4; }
.cert-item-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--charcoal); }
.cert-item-text span  { font-size: 12px; color: var(--charcoal-50); }

/* ═══════════════════════════════════════════
   RELATED CARDS  (shared component)
   ═══════════════════════════════════════════ */

.related-section {
  padding: var(--section-pad) 0;
  background: var(--light-grey);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.related-card:hover { border-color: transparent; box-shadow: 0 8px 32px rgba(45,41,51,0.08); transform: translateY(-2px); }
.related-card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.related-card-icon.orange-bg { background: var(--orange-light); color: var(--orange); }
.related-card-icon.pink-bg   { background: var(--pink-light);   color: var(--pink); }
.related-card-icon.purple-bg { background: var(--purple-light); color: var(--purple); }
.related-card h4 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.related-card p  { font-size: 14px; line-height: 1.6; color: var(--text-secondary); flex: 1; margin-bottom: 20px; }
.related-link,
.related-card-link { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--orange); margin-top: auto; }
.related-link svg,
.related-card-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.related-card:hover .related-link svg,
.related-card:hover .related-card-link svg { transform: translateX(3px); }

/* ═══════════════════════════════════════════
   METRICS STRIP  (shared component)
   ═══════════════════════════════════════════ */

.metrics-strip { padding: 72px 0; background: var(--charcoal); color: var(--white); }
.metrics-grid  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.metric-item   { text-align: center; }
.metric-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 8px;
}
.metric-num span { color: var(--orange); }
.metric-label { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.4; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}
.footer-social-icon:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--orange);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE - shared rules
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .section-title { font-size: 34px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-box { padding: 48px 32px; }
  .cta-title { font-size: 28px; }
}

@media (max-width: 768px) {
  .hamburger   { display: flex; }
  .nav-links   { display: none; }
  .nav-login   { display: none; }
  .footer-top    { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-box   { padding: 48px 24px; }
  .cta-title { font-size: 26px; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════ */
.faq-section { padding: var(--section-pad) 0; background: var(--off-white); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow 0.2s ease; }
.faq-item:hover { box-shadow: 0 2px 12px rgba(45,41,51,0.06); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: none; cursor: pointer; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--charcoal); text-align: left; transition: color 0.2s ease; }
.faq-q:hover, .faq-q[aria-expanded="true"] { color: var(--orange); }
.faq-chevron { flex-shrink: 0; transition: transform 0.25s ease; color: var(--charcoal-50); }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--orange); }
.faq-a { padding: 0 24px 20px; border-top: 1px solid var(--border); }
.faq-a p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); padding-top: 16px; }
