/* GLOBAL VARIABLES */
:root {
  --brand: #0f9d58;
  --ink: #1f1f1f;
  --muted: #555;
  --bg: #f8fafc;
  --card: #fafafa;
  --border: #e5e7eb;
}

/* RESET & BODY */
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  line-height: 1.6;
}

/* LAYOUT CONTAINERS - CONSISTENT WIDTH */
.wrap {
  max-width: 1080px; /* Match the original design */
  margin: 0 auto;
  padding: 24px 20px;
}

.section, section {
  padding: 25px 0; /* Remove horizontal padding here */
  max-width: 1080px; /* Match .wrap width */
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

/* PARAGRAPH CONSISTENCY - KEY FIX */
p, .sub {
  max-width: none; /* Remove the 70ch constraint */
  width: 100%;
  margin: 1rem 0;
  line-height: 1.65;
}

/* Only apply max-width to specific hero/intro text if needed */
.hero .sub {
  max-width: 70ch; /* Keep constraint only for hero sections */
}

/* HEADER - FIXED LAYOUT */
.main-header {
  background-color: #fff;
  padding: 20px 30px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px; /* Match content width */
  margin: 0 auto;
  padding: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-placeholder {
  background: var(--brand);
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
}

/* TEXT STYLES */
.header-text h1,
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem 0; /* Match original spacing */
}

.header-text .tagline {
  font-size: 16px;
  color: var(--brand);
  font-style: italic;
  margin: 0;
}

h2, .section h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0; /* Match original spacing */
  color: var(--brand);
}

.kicker {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .9rem;
}

/* BUTTONS */
.btn {
  background: var(--brand);
  color: #fff;
  padding: 12px 18px; /* Match original button size */
  font-weight: 700; /* Match original weight */
  font-size: 16px;
  text-decoration: none;
  border-radius: 8px; /* Match original radius */
  border: 0;
  display: inline-block;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.btn:hover {
  background: #0b7f46;
}

.btn.alt {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

/* HAMBURGER MENU - POSITIONED ON RIGHT */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  flex-shrink: 0;
}
.hamburger-menu span {
  width: 100%;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* MOBILE MENU */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}
.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu li {
  border-bottom: 1px solid #f0f0f0;
}
.mobile-menu a {
  display: block;
  padding: 15px 30px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.mobile-menu a:hover {
  background-color: var(--bg);
  color: var(--brand);
}

/* FLEX & GRID UTILITIES */
.hero {
  display: grid;
  gap: 12px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media(min-width:860px) {
  .cols { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: repeat(3,1fr);}
}

/* LISTS & BADGES */
ul {
  padding-left: 1.1rem;
  line-height: 1.65;
}
.badgebar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .95rem;
}

/* CARD/STYLES */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.note, .footer-note {
  font-size: .92rem;
  color: var(--muted);
}

/* FIXED CTA BAR */
.fixed-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #e6fcf5;
  border-top: 1px solid #ccc;
  padding: 15px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 9999;
  font-size: 16px;
}
.fixed-cta p { 
  margin: 4px 0;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 420px;
  margin: 10% auto;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}
.modal-content input[type="email"] {
  width: 90%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 20px;
}

/* DETAILS */
details summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-text h1, h1 {
    font-size: 20px;
  }
  .header-text .tagline {
    font-size: 14px;
  }
  .logo-container {
    gap: 15px;
  }
  .logo-placeholder {
    padding: 10px 15px;
    font-size: 16px;
  }
  .header-container {
    flex-wrap: nowrap;
  }
  html, body {
    padding-bottom: 70px;
  }
  
  .wrap, .section {
    padding: 20px 15px; /* More mobile-friendly padding */
  }
}
.site-footer {
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  margin-top: 40px;
  text-align: center;    /* ensure footer content is centered */
}

.site-footer p {
  margin: 0 auto;        /* center the paragraph block */
  color: var(--muted);
  font-size: 0.92rem;
}

/* ==================================================
   Terms & Conditions Page Overrides
   ================================================== */

/* Container */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;  /* top, horizontal, bottom */
  background: var(--bg);
  color: var(--text);
}

/* Heading & Meta */
.container header h1 {
  font-size: 2rem;
  margin: 0 0 0.25rem;    /* bottom gap */
}
.container header .meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.container header .notice {
  display: block;
  font-size: 0.95rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Table of Contents */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
}
.toc a {
  display: inline-block;
  margin: 0.15rem 0.5rem 0.15rem 0;
  font-size: 0.95rem;
  color: var(--brand);
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}

/* Section Headings */
h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
}

/* Body Text & Lists */
.container p,
.container ul,
.container ol {
  line-height: 1.65;
  margin: 1rem 0;
}
.container ul,
.container ol {
  padding-left: 1.25rem;
}
.container li + li {
  margin-top: 0.25rem;
}

/* Code & Preformatted */
code,
pre {
  font-family: ui-monospace, Menlo, Consolas, 'Courier New', monospace;
}

/* Notice Blocks */
.notice {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Footer within this page (if not using global footer.php) */
.container footer,
footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}
footer hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

