/* =========================================================
   Christ Academy — Study Abroad Consultancy
   Design system: Green / Grey / White / Black
   ========================================================= */

:root {
  /* Greens */
  --green-900: #0e3b2b;
  --green-800: #145239;
  --green-700: #1a6b47;
  --green-600: #217a4f;
  --green-500: #2f9463;
  --green-400: #4caf7d;
  --green-100: #e3f1e8;
  --green-50:  #f2f8f4;

  /* Greys */
  --grey-900: #1c1f1e;
  --grey-800: #2b2f2e;
  --grey-700: #3f4543;
  --grey-600: #5a615f;
  --grey-500: #7a827f;
  --grey-300: #b7bdbb;
  --grey-200: #d8dcda;
  --grey-100: #eef1ef;
  --grey-50:  #f7f9f8;

  /* Base */
  --black: #14161a;
  --white: #ffffff;

  /* Semantic */
  --color-bg: var(--white);
  --color-bg-alt: var(--grey-50);
  --color-text: var(--grey-900);
  --color-text-muted: var(--grey-600);
  --color-primary: var(--green-700);
  --color-primary-dark: var(--green-900);
  --color-primary-light: var(--green-500);
  --color-accent: var(--green-400);
  --color-border: var(--grey-200);

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(20, 22, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 22, 26, 0.10);
  --shadow-lg: 0 16px 40px rgba(20, 22, 26, 0.14);

  --container-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--grey-900);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

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

button { font-family: var(--font-body); cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding: 88px 0; }

@media (max-width: 768px) {
  section { padding: 56px 0; }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--green-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

.bg-alt { background: var(--color-bg-alt); }
.bg-dark { background: var(--color-primary-dark); color: var(--grey-100); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark p { color: var(--grey-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--white);
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--green-800); border-color: var(--green-800); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: var(--white); color: var(--color-primary-dark); border-color: var(--white); }

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-dark:hover { background: var(--grey-800); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
}

.topbar {
  background: var(--grey-900);
  color: var(--grey-300);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contacts a:hover { color: var(--green-400); }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { color: var(--grey-300); }
.topbar-social a:hover { color: var(--green-400); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 42px; width: auto; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--grey-900);
  line-height: 1.15;
  white-space: nowrap;
}
.brand-name span { display: block; font-size: 0.66rem; font-weight: 500; color: var(--color-primary); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--grey-700);
  position: relative;
  padding-block: 4px;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--grey-900); border-radius: 2px; transition: 0.25s; }

@media (max-width: 1180px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 22px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 600;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .topbar-contacts span:nth-child(2) { display: none; }
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,22,26,0.5);
  z-index: 550;
}
.nav-overlay.open { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-600) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 90px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.10) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08) 0, transparent 35%);
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p.lead { color: var(--grey-200); font-size: 1.1rem; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-heading); font-size: 1.7rem; color: var(--white); }
.hero-stats div span { font-size: 0.82rem; color: var(--grey-300); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--green-500), var(--green-800));
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-visual .placeholder-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  border: 1.5px dashed rgba(255,255,255,0.4);
  border-radius: var(--radius-md);
  margin: 20px;
}
.hero-visual .floating-card {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  background: rgba(255,255,255,0.95);
  color: var(--grey-900);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.floating-card .icon-badge { background: var(--green-100); color: var(--color-primary); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.breadcrumbs { font-size: 0.9rem; color: var(--grey-300); }
.breadcrumbs a:hover { color: var(--green-400); }

/* ---------- Icon badges ---------- */
.icon-badge {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-badge.dark { background: var(--grey-800); color: var(--green-400); }
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin: 18px 0 10px; }
.card p { font-size: 0.95rem; }
.card .card-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--color-primary); font-size: 0.9rem; }

.card-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--grey-200), var(--grey-100));
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-500);
  font-size: 0.78rem;
  text-align: center;
  padding: 12px;
  border: 1.5px dashed var(--grey-300);
  margin-bottom: 18px;
}

/* Destination card */
.destination-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/3.6;
  background: linear-gradient(160deg, var(--green-600), var(--grey-800));
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.destination-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,59,43,0.92) 0%, rgba(14,59,43,0.15) 65%, rgba(14,59,43,0.05) 100%);
  z-index: 0;
}
.destination-card > * { position: relative; z-index: 1; }
.destination-card .flag { font-size: 2rem; margin-bottom: 8px; }
.destination-card h3 { color: var(--white); margin-bottom: 4px; }
.destination-card p { color: var(--grey-200); font-size: 0.85rem; margin-bottom: 10px; }
.destination-card .tag { font-size: 0.75rem; background: rgba(255,255,255,0.18); padding: 4px 10px; border-radius: 999px; display: inline-block; }

/* Stat block */
.stats-strip {
  background: var(--color-primary-dark);
  color: var(--white);
}
.stats-strip .grid-4 { text-align: center; }
.stats-strip strong { display: block; font-family: var(--font-heading); font-size: 2.4rem; color: var(--white); }
.stats-strip span { color: var(--grey-300); font-size: 0.9rem; }

/* Process steps */
.step {
  position: relative;
  padding-left: 0;
}
.step-number {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 18px;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.testimonial-card .quote-mark { font-size: 2.4rem; color: var(--green-400); font-family: Georgia, serif; line-height: 0.5; display: block; margin-bottom: 10px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.avatar-placeholder {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-100); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-heading);
  flex-shrink: 0;
}
.stars { color: var(--green-500); letter-spacing: 2px; margin-bottom: 10px; }

/* Destination pill list (compact country links, e.g. secondary destinations) */
.destination-pill-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.destination-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--grey-800);
  background: var(--white);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.destination-pill:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--green-50); }
.destination-pill .flag { font-size: 1.1rem; }

/* Logo strip */
.logo-strip { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.logo-chip {
  flex: 1 1 150px;
  height: 84px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-500);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--grey-50);
}

/* CTA band */
.cta-band {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: var(--grey-300); }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--grey-800); }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--grey-900);
  transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--color-primary); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--grey-500); margin-top: 6px; }
.form-success { display: none; background: var(--green-100); color: var(--green-800); padding: 14px 18px; border-radius: var(--radius-sm); margin-top: 16px; font-size: 0.9rem; font-weight: 600; }
.form-success.show { display: block; }

/* Contact info cards */
.contact-info-card { display: flex; gap: 16px; align-items: flex-start; }

/* Accordion (FAQ) */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--grey-900);
  text-align: left;
}
.accordion-trigger .plus { font-size: 1.4rem; color: var(--color-primary); transition: transform 0.2s; }
.accordion-item.open .plus { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion-panel p { padding-bottom: 20px; }

/* Blog */
.blog-card { display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--grey-500); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.blog-meta .cat { color: var(--color-primary); font-weight: 700; }

/* Table (fees / eligibility) */
.styled-table { width: 100%; border-collapse: collapse; }
.styled-table th, .styled-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
.styled-table th { background: var(--grey-900); color: var(--white); font-family: var(--font-heading); }
.styled-table tr:nth-child(even) td { background: var(--grey-50); }

/* Footer */
.site-footer { background: var(--grey-900); color: var(--grey-300); }
.footer-top { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { color: var(--grey-500); margin-top: 14px; font-size: 0.92rem; }
.footer-col h4 { color: var(--white); margin-bottom: 18px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: var(--grey-400); font-size: 0.92rem; }
.footer-col a:hover { color: var(--green-400); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grey-800);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-300);
}
.footer-social a:hover { background: var(--color-primary); color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--grey-800);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--grey-500);
}
.footer-bottom a:hover { color: var(--green-400); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; flex-direction: column; text-align: center; }
}

/* WhatsApp floating button */
.float-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 400;
}
.float-whatsapp svg { width: 28px; height: 28px; fill: var(--white); }

/* Reveal animation — progressive enhancement only.
   Content is visible by default; it is hidden-then-faded-in ONLY when the
   early inline script in <head> has confirmed JS is running (adds .js to
   <html>). This means the animation never hides content from users whose
   JS fails to load/run, or from crawlers that don't execute JS. */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
