/* =====================================================================
   Tooly — Shared stylesheet for SEO content pages
   Cream/blue/orange brand system extracted from the homepage.
   Drop this file at /css/pages.css alongside index.html.
   ===================================================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #F5F0E6;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
em { font-style: italic; }
a { color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ============ HEADER + NAV ============ */
.header { background: #3A6EA5; }
/* Nav is sticky — pins to the top of the viewport as the user scrolls, on
   every screen size. z-index sits above content but below modals. */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  background: #3A6EA5;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-logo { height: 36px; width: auto; display: block; flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 12px;
  color: #F5F5F0;
  letter-spacing: 1px;
}
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: #FFD37E; }
.nav-cta {
  background: #2A6B5D;
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Varela Round', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 #1A4D42;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #1A4D42;
}

/* ============ PAGE HERO ============ */
.page-hero {
  padding: 64px 32px 56px;
  max-width: 1100px;
  margin: 0 auto;
}
.page-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: #FFD37E;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.page-hero h1 {
  font-size: 48px;
  line-height: 1.05;
  color: #FFFFFF;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -1.5px;
  max-width: 780px;
}
.page-hero .lede {
  font-size: 17px;
  line-height: 1.55;
  color: #F5F5F0;
  max-width: 680px;
  margin: 0 0 28px;
}
.page-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn-primary {
  background: #F58041;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 3px 3px 0 #C94A1F;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #C94A1F;
}
.btn-secondary {
  background: transparent;
  border: 1.5px solid #FFD37E;
  color: #FFD37E;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(255,211,126,0.1); }

/* ============ BODY SECTIONS ============ */
.section {
  padding: 56px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-alt { background: #FFFFFF; }
.section-alt-wrap { background: #FFFFFF; }
.section-dark { background: #0E0E0E; color: #F5F5F0; }
.section-dark-wrap { background: #0E0E0E; }
.section-dark h2,
.section-dark h3,
.section-dark p { color: #F5F5F0; }
.section-dark .lede-sub { color: #B3B0A8; }

.section h2 {
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 500;
  letter-spacing: -1px;
  max-width: 720px;
}
.section h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 28px 0 10px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.section p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 720px;
}
.section ul, .section ol {
  font-size: 16px;
  line-height: 1.65;
  max-width: 720px;
  padding-left: 22px;
  margin: 0 0 18px;
}
.section li { margin-bottom: 6px; }
.section a {
  color: #C94A1F;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.section a:hover { color: #F58041; }

.section .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: #C94A1F;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 12px;
}

/* ============ FACT CHIPS ============ */
.fact-chip-wrap { padding: 24px 32px 40px; background: #3A6EA5; }
.fact-chip {
  background: #F58041;
  border-radius: 12px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  box-shadow: 6px 6px 0 #C94A1F;
  max-width: 1100px;
  margin: 0 auto;
}
.fact-chip .label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #FAEEDA;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.fact-chip .value {
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.6px;
  line-height: 1.1;
}
.fact-chip .sub { font-size: 12px; color: #FAEEDA; margin-top: 3px; }

/* ============ CARD GRID ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(26,26,26,0.08);
  box-shadow: 0 1px 0 rgba(26,26,26,0.05);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.card p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #3F3E3A;
}
.card a {
  font-size: 13px;
  color: #C94A1F;
  text-decoration: underline;
  font-weight: 500;
}

/* ============ TABLE ============ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(26,26,26,0.12);
  vertical-align: top;
}
.data-table th {
  font-weight: 600;
  background: #FAEEDA;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5F5E5A;
}
.data-table tr:last-child td { border-bottom: none; }

/* ============ CALLOUT ============ */
.callout {
  background: #FAEEDA;
  border-left: 4px solid #F58041;
  padding: 18px 22px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
}
.callout strong { color: #C94A1F; }

/* ============ FAQ ============ */
.faq-item {
  border-bottom: 1px solid rgba(26,26,26,0.12);
  padding: 18px 0;
  max-width: 820px;
}
.faq-item:first-child { padding-top: 0; }
.faq-item summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #1A1A1A;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: #C94A1F;
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
  padding-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #3F3E3A;
}
.faq-item .faq-body p { margin: 0 0 10px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ============ CTA STRIP ============ */
.cta-strip {
  background: #2A6B5D;
  padding: 56px 32px;
  text-align: center;
}
.cta-strip h2 {
  color: #FFFFFF;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 500;
  letter-spacing: -0.8px;
}
.cta-strip p {
  color: #C5E5DB;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 auto 24px;
  max-width: 600px;
}

/* ============ INTERNAL LINK CLUSTER ============ */
.related-links {
  background: #F5F0E6;
  padding: 48px 32px;
  border-top: 1px solid rgba(245,128,65,0.25);
}
.related-links-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.related-links h3 {
  font-size: 18px;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
  font-weight: 600;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related-grid a {
  background: #FFFFFF;
  border: 1px solid rgba(26,26,26,0.1);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: #1A1A1A;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 120ms ease, transform 120ms ease;
}
.related-grid a:hover {
  border-color: #F58041;
  transform: translateY(-1px);
}
.related-grid a .arrow { color: #C94A1F; margin-left: 6px; }

/* ============ FOOTER ============ */
.footer { background: #1A1A1A; padding: 48px 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-logo { height: 44px; width: auto; margin-bottom: 16px; display: block; }
.footer-info {
  font-size: 13px;
  color: #888780;
  line-height: 1.6;
  margin: 0;
  max-width: 300px;
}
.footer-info a { color: #FFD37E; text-decoration: none; }
.footer-tagline { text-align: right; }
.footer-tagline .big {
  font-size: 22px;
  color: #FFD37E;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.footer-sublinks {
  font-size: 12px;
  color: #6B6963;
  letter-spacing: 0.5px;
  margin-top: 14px;
}
.footer-sublinks a {
  color: #888780;
  text-decoration: none;
  margin-right: 16px;
}
.footer-sublinks a:hover { color: #FFD37E; }

/* ============ MARQUEE ============ */
.marquee {
  background: #F5F0E6;
  color: #F58041;
  padding: 13px 0;
  font-size: 12px;
  letter-spacing: 4px;
  text-align: center;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(245,128,65,0.3);
  border-bottom: 1px solid rgba(245,128,65,0.3);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .page-hero { padding: 48px 24px 40px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero .lede { font-size: 16px; }
  .section { padding: 40px 24px; }
  .section h2 { font-size: 26px; }
  .fact-chip { grid-template-columns: 1fr; }
  .fact-chip-wrap { padding: 24px; }
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-tagline { text-align: left; }
  .cta-strip { padding: 48px 24px; }
  .cta-strip h2 { font-size: 24px; }
}

/* Hamburger button — declared BEFORE the @media override so source-order
   correctly resolves to display:none on desktop, display:inline-flex on mobile. */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #FFFFFF;
  position: relative;
}
.nav-hamburger span::before,
.nav-hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #FFFFFF;
}
.nav-hamburger span::before { top: -6px; }
.nav-hamburger span::after  { top: 6px; }

@media (max-width: 768px) {
  .nav { padding: 14px 20px; gap: 12px; position: sticky; top: 0; }
  .nav-logo { height: 30px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #3A6EA5;
    padding: 12px 20px 20px;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    z-index: 100;
    font-size: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-hamburger { display: inline-flex; }
  .container { padding: 0 20px; }
}
