/* ==========================================================================
   SuccessReady global stylesheet
   ========================================================================== */

:root {
  --navy: #14304d;
  --navy-dark: #0c1f33;
  --teal: #2a9d8f;
  --teal-dark: #218074;
  --amber: #e9a23b;
  --amber-dark: #cf8926;
  --bg: #f7f5f0;
  --card-bg: #ffffff;
  --text: #1f2933;
  --text-light: #52606d;
  --border: #e4e7eb;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(20, 48, 77, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 48, 77, 0.14);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1rem; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

img, svg { max-width: 100%; display: block; }

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

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand:hover { text-decoration: none; opacity: 0.9; }

.brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #dfe7ef;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  text-decoration: none;
  border-bottom-color: var(--amber);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open {
    max-height: 520px;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid transparent;
  }

  .nav-links a.active,
  .nav-links a:hover {
    border-bottom-color: rgba(255,255,255,0.08);
    border-left-color: var(--amber);
    background: rgba(255,255,255,0.03);
  }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
}

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

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-art { max-width: 320px; margin: 0 auto; }
}

.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: var(--amber);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hero h1 { color: #fff; margin-bottom: 1rem; }

.hero p.lead {
  color: #cfd9e4;
  font-size: 1.1rem;
  max-width: 46ch;
}

@media (max-width: 900px) {
  .hero p.lead { margin: 0 auto 1.5rem; }
}

.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--amber);
  color: var(--navy-dark);
  box-shadow: 0 8px 20px rgba(233,162,59,0.35);
}
.btn-primary:hover { background: var(--amber-dark); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: #fff; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
@media (max-width: 900px) { .hero-actions { justify-content: center; } }

/* ---------- Sections & cards ---------- */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 60ch;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head p { color: var(--text-light); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.topic-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.topic-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff;
}

.topic-card h3 { margin-bottom: 0.5rem; }
.topic-card p { color: var(--text-light); flex-grow: 1; }
.topic-card .card-link { font-weight: 600; margin-top: 0.75rem; display: inline-block; }

/* ---------- Stats / why section ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat .num {
  font-family: "Poppins", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.stat .label {
  color: var(--text-light);
  font-size: 0.92rem;
}

.mission-box {
  background: linear-gradient(135deg, #fff 0%, #f0ede4 100%);
  border: 1px solid var(--border);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* ---------- Page header (interior pages) ---------- */

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 3rem 0;
}

.page-hero .eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p { color: #cfd9e4; max-width: 65ch; margin: 0; }

.breadcrumb {
  font-size: 0.85rem;
  color: #a9bad0;
  margin-bottom: 1rem;
}
.breadcrumb a { color: #a9bad0; }

/* ---------- Content blocks ---------- */

.content-block {
  max-width: 820px;
  margin: 0 auto;
}

.content-block + .content-block {
  margin-top: 2.5rem;
}

.info-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.info-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tip-list li::marker { color: var(--teal-dark); }

.callout {
  background: #eaf6f4;
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}

.callout.amber {
  background: #fdf3e3;
  border-left-color: var(--amber);
}

.callout strong { color: var(--navy); }

/* ---------- Outfit cards (dress code page) ---------- */

.outfit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.outfit-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.outfit-figure {
  background: #eef2f6;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.outfit-figure svg { width: 140px; height: 200px; }

.outfit-body { padding: 1.5rem; }

.outfit-body h3 { margin-bottom: 0.35rem; }
.outfit-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--navy);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #f5f8fa; }

kbd {
  background: #eef2f6;
  border: 1px solid #cbd5e0;
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--navy-dark);
}

/* ---------- Comparison blocks (communication) ---------- */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

@media (max-width: 640px) {
  .compare-grid { grid-template-columns: 1fr; }
}

.compare-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.compare-card.bad {
  background: #fdecec;
  border-color: #f3c4c4;
}

.compare-card.good {
  background: #eaf6ee;
  border-color: #bfe3c9;
}

.compare-label {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  display: block;
}

.compare-card.bad .compare-label { color: #c0392b; }
.compare-card.good .compare-label { color: #1e8449; }

.compare-card p:last-child { margin-bottom: 0; font-style: italic; }

/* ---------- Steps ---------- */

.step-list {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.35rem;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.step-list h4 { margin-bottom: 0.25rem; }
.step-list p { color: var(--text-light); margin-bottom: 0; }

/* ---------- Cheat sheet / print ---------- */

.cheatsheet-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2rem 0;
}

.cheatsheet-cta h3 { color: #fff; margin-bottom: 0.25rem; }
.cheatsheet-cta p { color: #cfd9e4; margin: 0; }

/* ---------- Section nav (prev/next) ---------- */

.section-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pager-link {
  flex: 1;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pager-link:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}

.pager-link.next { text-align: right; }
.pager-link .pager-dir {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.pager-link .pager-title { color: var(--navy); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: #b6c3d1;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: #b6c3d1; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.9rem; color: var(--text-light); }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
}
