/* ============================================================
   QUALITY COUNSEL — SITE STYLES
   Shared across all pages
============================================================ */

:root {
  --navy: #0e2148;
  --navy-deep: #081534;
  --navy-soft: #1a2e5a;
  --gold: #c9a55c;
  --gold-light: #e0c389;
  --gold-deep: #a4823f;
  --gold-glow: rgba(201, 165, 92, 0.18);
  --ivory: #faf7f1;
  --ivory-2: #f3eee3;
  --cream: #fffdf8;
  --ink: #1a1a2e;
  --muted: #6b6b6b;
  --line: rgba(14, 33, 72, 0.12);
  --line-light: rgba(14, 33, 72, 0.06);

  /* Warmer accent for student-friendly zing */
  --coral: #e07856;       /* terracotta/coral — student CTA accent */
  --coral-soft: #f3c5b8;
  --coral-deep: #c5613f;
  --warm: #e8927c;       /* terracotta */
  --warm-soft: #f3c5b8;
  --sage: #7a9477;       /* muted green */

  --shadow-sm: 0 2px 8px rgba(14, 33, 72, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 33, 72, 0.10);
  --shadow-lg: 0 20px 60px rgba(14, 33, 72, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Display font */
.serif, h1, h2, h3, .display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===========================================
   NAV BAR
=========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-light);
  transition: padding 0.3s ease;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-emblem {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--navy);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--navy);
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold-deep);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 2px;
  letter-spacing: 0.12em !important;
  font-size: 12px !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
}

/* ===========================================
   GLOBAL CONTAINERS
=========================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 100px 0; position: relative; }

/* ===========================================
   TYPOGRAPHY HELPERS
=========================================== */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}

h1 {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 em { color: var(--gold-deep); font-style: italic; font-weight: 400; }

h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.005em;
}

h2 em { color: var(--gold-deep); font-style: italic; }

h3 {
  font-size: 24px;
  line-height: 1.25;
  color: var(--navy);
}

h3 em { color: var(--gold-deep); font-style: italic; }

.lede {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 400;
  max-width: 640px;
}

.muted-text { color: var(--muted); }

/* ===========================================
   BUTTONS
=========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  border-radius: 2px;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14, 33, 72, 0.2);
}

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

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-arrow::after {
  content: "→";
  transition: transform 0.25s ease;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ===========================================
   FOOTER
=========================================== */
.footer {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold-deep));
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 165, 92, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 165, 92, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .footer-emblem {
  width: 60px;
  margin-bottom: 20px;
}

.footer-brand .footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand .footer-tag {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 360px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.2);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}
.footer-col ul a:hover { color: var(--gold-light); }

.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a.gold { color: var(--gold-light); }

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.footer-bottom .closing {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  text-transform: none;
}

/* ===========================================
   STICKY WHATSAPP BUTTON
=========================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 90;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  padding: 14px 22px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.45);
}

.whatsapp-fab svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* Pulse animation on the WhatsApp button */
.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ===========================================
   FADE-IN ANIMATIONS
=========================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-up { animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.25s; }
.fade-up-3 { animation-delay: 0.4s; }
.fade-up-4 { animation-delay: 0.55s; }
.fade-up-5 { animation-delay: 0.7s; }

/* Reveal on scroll utility */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================
   RESPONSIVE
=========================================== */
@media (max-width: 900px) {
  .nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .container, .container-narrow { padding: 0 24px; }
  section { padding: 70px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* Mobile: icon-only FAB so it doesn't overlap hero CTAs */
  .whatsapp-fab {
    bottom: 18px;
    right: 18px;
    padding: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }
  .whatsapp-fab span { display: none; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
  .whatsapp-fab::before { border-radius: 50%; }
}
