/* ── CONTENT PAGES (about, terms, privacy, contact) — teal theme ── */

:root {
  --pg-bg:      #02060A;
  --pg-surface: #060d14;
  --pg-border:  rgba(0, 200, 150, 0.14);
  --pg-accent:  #00c896;
  --pg-text:    rgba(255, 255, 255, 0.82);
  --pg-muted:   rgba(255, 255, 255, 0.40);
  --pg-dim:     rgba(255, 255, 255, 0.20);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--pg-bg);
  color: var(--pg-text);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── PAGE LAYOUT ── */
.page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--pg-accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 2.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 200, 150, 0.35);
  border-radius: 8px;
  background: rgba(0, 200, 150, 0.06);
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.02em;
}
.back-link:hover {
  background: rgba(0, 200, 150, 0.14);
  border-color: var(--pg-accent);
}

/* ── PAGE HEADER ── */
.page-eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--pg-accent);
  letter-spacing: 0.16em;
  text-shadow: 0 0 14px rgba(0, 200, 150, 0.4);
  margin-bottom: 0.8rem;
}

.page-title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.page-meta {
  font-size: 0.82rem;
  color: var(--pg-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--pg-border);
}

/* ── SECTION BLOCKS ── */
.page-section {
  margin-bottom: 2.75rem;
}

.page-section h2 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pg-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}

.page-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

.page-section p {
  font-size: 0.96rem;
  color: var(--pg-text);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.page-section ul,
.page-section ol {
  padding-left: 1.3rem;
  margin-bottom: 0.9rem;
}

.page-section li {
  font-size: 0.96rem;
  color: var(--pg-text);
  line-height: 1.8;
  margin-bottom: 0.35rem;
}

.page-section a {
  color: var(--pg-accent);
  text-decoration: none;
}
.page-section a:hover { text-decoration: underline; }

hr.page-divider {
  border: none;
  border-top: 1px solid var(--pg-border);
  margin: 2.25rem 0;
}

/* ── HIGHLIGHT BOX ── */
.page-highlight {
  background: rgba(0, 200, 150, 0.06);
  border: 1px solid rgba(0, 200, 150, 0.18);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.page-highlight p { margin-bottom: 0; }

/* ── ABOUT GRID ── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.about-card {
  background: var(--pg-surface);
  border: 1px solid var(--pg-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.about-card .card-icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.about-card .card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.about-card .card-body {
  font-size: 0.82rem;
  color: var(--pg-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── PRICING CARDS ── */
.pricing-row {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.price-card {
  flex: 1;
  min-width: 190px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.price-card .amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pg-accent);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.price-card .period {
  font-size: 0.78rem;
  color: var(--pg-muted);
  margin-bottom: 0.7rem;
}

.price-card .desc {
  font-size: 0.87rem;
  color: var(--pg-text);
  margin: 0;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.contact-info-item .ci-icon {
  width: 38px;
  height: 38px;
  background: rgba(0, 200, 150, 0.08);
  border: 1px solid var(--pg-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-info-item .ci-icon-fb {
  background: #1877F2;
  border-color: #1877F2;
  color: #fff;
  font-size: 1.1rem;
}

.contact-info-item .ci-icon-ig {
  background: linear-gradient(160deg, #f09433, #e6683c 30%, #dc2743 55%, #cc2366 75%, #bc1888);
  border-color: transparent;
  color: #fff;
  font-size: 1.1rem;
}

.contact-info-item .ci-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.contact-info-item .ci-value {
  font-size: 0.93rem;
  color: var(--pg-text);
  margin: 0;
}

.contact-info-item .ci-value a {
  color: var(--pg-accent);
  text-decoration: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(0, 200, 150, 0.04);
  border: 1px solid var(--pg-border);
  border-radius: 8px;
  padding: 0.82rem 1rem;
  color: var(--pg-text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(0, 200, 150, 0.45);
}

.form-group select option {
  background: #060d14;
  color: rgba(255, 255, 255, 0.88);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #00c896;
  color: #02060A;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.88rem 2.2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}

.contact-submit:hover {
  background: #00e0aa;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 200, 150, 0.28);
}

/* ── LANGUAGE TOGGLE ── */
body.lang-en .af { display: none; }
body.lang-af .en { display: none; }

#lang-btn {
  background: transparent;
  border: 1px solid rgba(0, 200, 150, 0.3);
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
}
#lang-btn:hover { border-color: #00c896; color: #00c896; }

/* ── FOOTER OVERRIDE ── */
footer { margin-top: 0; }

/* ── ENROL_C CREME THEME OVERRIDE ──
   Applied only when this shared page (about/terms/privacy/contact) is reached
   via ?from=enrolc-index or ?from=enrolc-builder — see back-link script above,
   which also sets body.theme-enrolc. Keeps enrol/enrol_a/enrol_b on the default
   dark-teal theme untouched. */
body.theme-enrolc {
  --pg-bg:      #fffdf9;
  --pg-surface: #fff;
  --pg-border:  rgba(169, 132, 103, 0.18);
  --pg-accent:  #a98467;
  --pg-text:    #5b4a3f;
  --pg-muted:   #7a6a5e;
  --pg-dim:     #b0a194;
  --bg2:        #f6ece2; /* footer bg, read from global style.css */
}

body.theme-enrolc .back-link {
  border-color: rgba(169, 132, 103, 0.35);
  background: rgba(169, 132, 103, 0.06);
}
body.theme-enrolc .back-link:hover {
  background: rgba(169, 132, 103, 0.14);
  border-color: var(--pg-accent);
}

body.theme-enrolc .page-eyebrow { text-shadow: none; }

body.theme-enrolc .page-title,
body.theme-enrolc .page-section h3,
body.theme-enrolc .about-card .card-title {
  color: #5b4a3f;
}

/* Inline `style="color:#fff"` accents baked into about/terms/privacy copy */
body.theme-enrolc .page-section strong[style*="color:#fff" i] {
  color: inherit !important;
}

body.theme-enrolc .page-highlight {
  background: rgba(169, 132, 103, 0.06);
  border-color: rgba(169, 132, 103, 0.18);
}

body.theme-enrolc .about-card,
body.theme-enrolc .price-card {
  background: var(--pg-surface);
}

body.theme-enrolc .contact-info-item .ci-icon:not(.ci-icon-fb):not(.ci-icon-ig) {
  background: rgba(169, 132, 103, 0.08);
}

body.theme-enrolc .form-group input,
body.theme-enrolc .form-group textarea,
body.theme-enrolc .form-group select {
  background: rgba(169, 132, 103, 0.04);
}
body.theme-enrolc .form-group input:focus,
body.theme-enrolc .form-group textarea:focus,
body.theme-enrolc .form-group select:focus {
  border-color: rgba(169, 132, 103, 0.45);
}
body.theme-enrolc .form-group select option {
  background: #fff;
  color: #5b4a3f;
}

body.theme-enrolc .contact-submit {
  background: var(--pg-accent);
  color: #fffdf9;
}
body.theme-enrolc .contact-submit:hover {
  background: #93704f;
  box-shadow: 0 6px 22px rgba(169, 132, 103, 0.28);
}

body.theme-enrolc #lang-btn {
  border-color: rgba(169, 132, 103, 0.3);
  color: rgba(91, 74, 63, 0.7);
}
body.theme-enrolc #lang-btn:hover { border-color: var(--pg-accent); color: var(--pg-accent); }

body.theme-enrolc footer { border-top-color: rgba(169, 132, 103, 0.14); }
body.theme-enrolc .flogo { color: #5b4a3f; }
body.theme-enrolc .flogo span { color: var(--pg-accent); }
body.theme-enrolc .ftag { color: rgba(91, 74, 63, 0.55); }
body.theme-enrolc .flinks a { color: rgba(91, 74, 63, 0.65); }
body.theme-enrolc .flinks a:hover { color: var(--pg-accent); }
body.theme-enrolc .fcopy { color: rgba(91, 74, 63, 0.4); border-top-color: rgba(169, 132, 103, 0.1); }
