/* ============================================================
   DANIELS MEDIATION — Global Styles
   Shared layout, typography, utilities, and UI components.
   Tokens:  css/tokens.css
   Reset:   css/reset.css
   Navbar:  css/navbar.css
   Footer:  css/footer.css
   ============================================================ */

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-ink);
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- Focus ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ---- Container ---- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
  flex-shrink: 0;
}
.eyebrow.on-light         { color: var(--blue-royal); }
.eyebrow.on-light::before { background: var(--blue-royal); }

/* ---- Section heads ---- */
.section-head {
  max-width: 620px;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-top: 0.6rem;
  line-height: 1.1;
}
.section-head p {
  color: var(--slate);
  font-size: 1.1rem;
  margin-top: 1.1rem;
  line-height: 1.75;
  max-width: 56ch;
}
.section-navy .section-head h2 { color: var(--white); }
.section-navy .section-head p  { color: rgba(248, 244, 233, 0.7); }

/* ---- Section backgrounds ---- */
.section-ivory { background: var(--ivory);      padding: var(--section-pad) 0; }
.section-navy  { background: var(--navy-ink);   padding: var(--section-pad) 0; }
.section-white { background: var(--white);      padding: var(--section-pad) 0; }
.section-light { background: var(--ivory-deep); padding: var(--section-pad) 0; }

/* ---- Gold rule divider ---- */
.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 3rem;
}

/* ---- Chevron divider ---- */
.chevron-divider {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
  background: var(--white);
}
.chevron-divider svg { width: 20px; height: 12px; }
.chevron-gold { color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease,
              border-color 0.22s ease, transform 0.18s ease,
              box-shadow 0.22s ease;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-ink);
  box-shadow: 0 2px 8px rgba(217, 165, 33, 0.25);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 165, 33, 0.35);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(248, 244, 233, 0.3);
  color: var(--ivory);
}
.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(217, 165, 33, 0.06);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--line-mid);
  color: var(--navy-primary);
}
.btn-outline-dark:hover {
  border-color: var(--blue-royal);
  color: var(--blue-royal);
  background: rgba(21, 76, 158, 0.04);
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.68rem; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy-ink);
  color: var(--ivory);
  padding: clamp(7.5rem, 15vw, 11rem) 0 clamp(4rem, 7.5vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(21, 76, 158, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold-light) 60%, transparent 100%);
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  max-width: 20ch;
  margin-bottom: 1.1rem;
  position: relative;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.page-hero p {
  color: rgba(248, 244, 233, 0.75);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 54ch;
  line-height: 1.75;
  position: relative;
}
.page-hero .eyebrow { margin-bottom: 1.1rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.5rem 2.1rem 2.25rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-card);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-mid);
}
.card:hover::before { transform: scaleX(1); }

.card-tag {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-royal);
  font-weight: 600;
  display: block;
  margin-bottom: 0.8rem;
}
.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  line-height: 1.22;
}
.card p {
  color: var(--slate);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
.card-link {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--navy-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease, gap 0.2s ease;
}
.card-link svg { width: 11px; height: 11px; flex-shrink: 0; }
.card:hover .card-link { color: var(--blue-royal); gap: 0.75rem; }

/* ---- Grid layouts ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.25rem 2rem;
  position: relative;
  box-shadow: var(--shadow-card);
}
.testimonial::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.25;
  position: absolute;
  top: 1.25rem;
  left: 1.75rem;
  line-height: 1;
  pointer-events: none;
}
.testimonial p {
  font-size: 1.05rem;
  color: var(--navy-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.75;
  padding-top: 1.25rem;
}
.testimonial .who {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.testimonial .who::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--navy-primary);
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(21, 76, 158, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  max-width: 22ch;
  line-height: 1.15;
}
.cta-banner .sub {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.9;
}
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 760px) {
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SCROLL FAB (scroll-to-top)
   ============================================================ */
.fab-wrap {
  position: fixed;
  bottom: 2rem;
  right: 1.75rem;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.fab-wrap.visible { opacity: 1; pointer-events: auto; }
.fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.fab-up { background: var(--navy-primary); color: var(--gold); }
.fab-up:hover { background: var(--blue-royal); transform: translateY(-2px); }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-on-navy);
  border-top: 1px solid var(--line-on-navy);
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}
.stat {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 244, 233, 0.48);
}
@media (max-width: 640px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   FORM ELEMENTS — shared across booking + contact
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-primary);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy-primary);
  background: var(--ivory);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--slate-light); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.about-cta         { margin-top: 1.75rem; }
.service-btn       { margin-top: 1rem; }
.signup-sub        { color: var(--slate); margin-top: 1rem; max-width: 48ch; line-height: 1.75; }
.training-hero-sub { color: rgba(248, 244, 233, 0.7); margin-top: 1rem; max-width: 48ch; line-height: 1.75; }
.faq-phase-2       { margin-top: 0.75rem; }

/* Visually hidden, still read by screen readers and counted as link text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  border: 0;
}
