/* =====================================================
   MARGWAY INSTITUTE – style.css
   Premium career counselling website for Classes 6-12
   ===================================================== */

/* ---- DESIGN TOKENS ---- */
:root {
  --navy:       #0D1B3E;
  --navy-mid:   #162040;
  --navy-light: #1E2D5A;
  --saffron:    #FF9500;
  --saffron-lt: #FFB340;
  --saffron-glow: rgba(255,149,0,0.18);
  --sky-bg:     #EEF4FF;
  --white:      #FFFFFF;
  --slate:      #64748B;
  --slate-lt:   #94A3B8;
  --text-dark:  #0F172A;
  --text-body:  #334155;
  --border:     #E2E8F0;
  --success:    #10B981;

  --font-display: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(13,27,62,0.06);
  --shadow-md:  0 8px 28px rgba(13,27,62,0.11);
  --shadow-lg:  0 20px 56px rgba(13,27,62,0.16);
  --shadow-saffron: 0 8px 28px rgba(255,149,0,0.28);

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --navbar-h:   72px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h);
  font-size: 16px;
}

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

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

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

ul { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---- UTILITIES ---- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 88px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.7;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-xl);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--saffron);
  color: var(--navy);
  box-shadow: var(--shadow-saffron);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--saffron-lt);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255,149,0,0.38);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline-white:hover, .btn-outline-white:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}

.btn-call {
  background: var(--navy-light);
  color: var(--white);
  padding: 10px 18px;
  font-size: 0.82rem;
}
.btn-call:hover { background: var(--navy); }

.btn-lg { padding: 15px 34px; font-size: 0.95rem; }

.btn-full { width: 100%; justify-content: center; padding: 15px; font-size: 1rem; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--navbar-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--saffron), #E07800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.logo-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--navy);
  background: var(--sky-bg);
}

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--font-display);
  transition: all var(--transition);
}

.lang-toggle:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- HERO ---- */
.hero {
  min-height: 100svh;
  background: linear-gradient(160deg, var(--navy) 0%, #162040 55%, #0D2B5E 100%);
  display: flex;
  align-items: center;
  padding-top: var(--navbar-h);
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-compass {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  opacity: 0.7;
  animation: rotateCompass 40s linear infinite;
  pointer-events: none;
}

@keyframes rotateCompass {
  to { transform: translateY(-50%) rotate(360deg); }
}

.compass-svg { width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-block: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,149,0,0.14);
  border: 1px solid rgba(255,149,0,0.3);
  border-radius: var(--radius-xl);
  color: var(--saffron-lt);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeSlideDown 0.6s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 22px;
  animation: fadeSlideDown 0.7s 0.1s ease both;
}

.hero-highlight {
  color: var(--saffron);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 38px;
  animation: fadeSlideDown 0.7s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
  animation: fadeSlideDown 0.7s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeSlideDown 0.7s 0.4s ease both;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--saffron);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.15);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-dot {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  position: relative;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 10px;
  background: var(--saffron);
  border-radius: 4px;
  animation: scrollBounce 1.8s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  60% { transform: translateX(-50%) translateY(14px); opacity: 0.2; }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- ABOUT ---- */
.about-section { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 380px;
}

.about-blob {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 60%, rgba(255,149,0,0.09), transparent 70%),
              radial-gradient(ellipse at 70% 20%, rgba(13,27,62,0.07), transparent 60%);
  border-radius: var(--radius-xl);
  background-color: var(--sky-bg);
}

.about-card-stack {
  position: relative;
  height: 100%;
}

.about-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  border: 1px solid var(--border);
  transition: transform var(--transition);
}

.about-card:hover { transform: translateY(-4px); }

.ac-icon { font-size: 1.4rem; }

.ac1 { top: 18%; left: 10%; animation: floatCard 3.5s ease-in-out infinite; }
.ac2 { top: 44%; left: 28%; animation: floatCard 3.5s 0.8s ease-in-out infinite; }
.ac3 { top: 68%; left: 12%; animation: floatCard 3.5s 1.6s ease-in-out infinite; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.about-text .section-title { text-align: left; }
.about-text .section-eyebrow { text-align: left; }

.about-desc {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 28px;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 34px;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-body);
}

.check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(255,149,0,0.12);
  color: var(--saffron);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 1px;
}

/* ---- PROGRAMS ---- */
.programs-section { background: var(--sky-bg); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  cursor: pointer;
  outline: none;
}

.program-card:hover, .program-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,149,0,0.25);
}

.program-card--highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-color: var(--navy);
  color: white;
}

.program-card--highlight .pc-title { color: var(--saffron); }
.program-card--highlight .pc-desc  { color: rgba(255,255,255,0.75); }
.program-card--highlight .tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.15); }

.pc-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}

.pc-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.pc-desc {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 18px;
}

.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--sky-bg);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate);
}

/* ---- WHY US ---- */
.why-section { background: var(--navy); }

.why-section .section-eyebrow { color: var(--saffron); }
.why-section .section-title    { color: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.why-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
}

.why-card:hover {
  background: rgba(255,149,0,0.06);
  border-color: rgba(255,149,0,0.2);
  transform: translateY(-4px);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ---- SUCCESS STORIES ---- */
.stories-section { background: var(--white); }

.stories-track-wrapper {
  overflow: hidden;
  position: relative;
  margin-bottom: 32px;
}

.stories-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}

.story-card {
  min-width: calc(33.333% - 16px);
  background: var(--sky-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition);
}

.story-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.story-quote {
  font-size: 5rem;
  line-height: 0.7;
  font-family: Georgia, serif;
  color: var(--saffron);
  opacity: 0.4;
  position: absolute;
  top: 20px;
  left: 24px;
  pointer-events: none;
}

.story-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.story-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), #E07800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.story-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.story-class {
  font-size: 0.78rem;
  color: var(--slate);
}

.story-stars {
  margin-left: auto;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.stories-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.snav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  font-size: 1.1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.snav-btn:hover {
  border-color: var(--saffron);
  background: var(--saffron);
  color: var(--navy);
}

.stories-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.dot.active {
  background: var(--saffron);
  width: 22px;
  border-radius: 4px;
}

/* Google Reviews */
.google-reviews {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 44px;
  padding: 18px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--sky-bg);
  width: fit-content;
  margin-inline: auto;
  gap: 14px;
  flex-wrap: wrap;
}

.google-logo { height: 20px; width: auto; }

.gr-rating {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.gr-stars {
  color: #FBBC04;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.gr-count {
  font-size: 0.88rem;
  color: var(--slate);
}

/* ---- FAQ ---- */
.faq-section { background: var(--sky-bg); }

.faq-container { max-width: 800px; }
.faq-container .section-header { margin-bottom: 44px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-align: left;
  transition: all var(--transition);
}

.faq-q:hover { background: var(--sky-bg); }
.faq-q[aria-expanded="true"] { color: var(--saffron); background: var(--sky-bg); }

.faq-icon {
  font-size: 1.3rem;
  font-weight: 400;
  flex-shrink: 0;
  color: var(--saffron);
  transition: transform var(--transition);
}

.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1), padding 0.25s ease;
  padding: 0 24px;
}

.faq-a.open {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-a p {
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ---- CONTACT ---- */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-info .section-title  { text-align: left; }
.contact-info .section-eyebrow { text-align: left; }

.contact-desc {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  color: inherit;
}

a.contact-item:hover {
  border-color: var(--saffron);
  background: rgba(255,149,0,0.04);
  transform: translateX(4px);
}

.ci-icon { font-size: 1.3rem; flex-shrink: 0; }

.ci-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.ci-value {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  transition: all var(--transition);
}

.social-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(255,149,0,0.2);
}

.social-btn--wa:hover {
  border-color: #25D366;
  color: #25D366;
  box-shadow: 0 4px 14px rgba(37,211,102,0.2);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ---- FORM ---- */
.contact-form-wrap {
  background: var(--sky-bg);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-sub {
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 28px;
  line-height: 1.6;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--font-display);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,149,0,0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

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

.form-note {
  font-size: 0.78rem;
  color: var(--slate);
  text-align: center;
  margin-top: 4px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon { font-size: 3rem; margin-bottom: 16px; }

.form-success h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.form-success p { font-size: 0.95rem; color: var(--slate); line-height: 1.65; }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-name, .footer-brand .logo-sub { color: white; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-socials a:hover {
  background: var(--saffron);
  color: var(--navy);
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--saffron); }

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.footer-contact a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-contact a:hover { color: var(--saffron); }

.footer-bottom {
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ---- FLOATING BUTTONS ---- */
.float-wa, .float-call {
  position: fixed;
  bottom: 88px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: var(--radius-xl);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 900;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  color: white;
}

.float-wa {
  bottom: 148px;
  background: #25D366;
}

.float-wa:hover {
  background: #1AAE55;
  transform: translateY(-3px) scale(1.04);
}

.float-call {
  background: var(--saffron);
}

.float-call:hover {
  background: var(--saffron-lt);
  transform: translateY(-3px) scale(1.04);
}

.float-label {
  white-space: nowrap;
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  z-index: 900;
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--saffron);
  color: var(--navy);
  transform: translateY(-3px);
}

/* ---- REVEAL ON SCROLL ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */

/* ---- TABLET (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .about-grid     { grid-template-columns: 1fr; }
  .about-visual   { height: 280px; order: -1; }
  .contact-grid   { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 36px; }

  .hero-compass   { width: 380px; height: 380px; right: -100px; opacity: 0.5; }
  .story-card     { min-width: calc(50% - 12px); }
}

/* ---- MOBILE (≤ 768px) ---- */
@media (max-width: 768px) {
  :root { --navbar-h: 64px; }

  .section { padding-block: 60px; }
  .section-title { font-size: 1.65rem; }

  /* Nav */
  .nav-links {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 998;
  }

  .nav-links.open { transform: translateY(0); }

  .nav-link { width: 100%; padding: 12px 16px; }

  .nav-actions .btn-primary,
  .nav-actions .btn-call { display: none; }

  .hamburger { display: flex; }

  .lang-toggle { padding: 8px 12px; font-size: 0.8rem; }

  /* Hero */
  .hero-compass   { display: none; }
  .hero-content   { padding-block: 40px; }
  .hero-stats     { gap: 20px; }
  .stat-divider   { height: 36px; }

  /* Programs */
  .programs-grid { grid-template-columns: 1fr; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Stories */
  .story-card { min-width: 100%; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 22px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Floats */
  .float-label { display: none; }
  .float-wa, .float-call {
    padding: 14px;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
  }
  .float-wa  { bottom: 144px; }
  .float-call { bottom: 84px; }
  .back-to-top { bottom: 24px; }
}

/* ---- SMALL MOBILE (≤ 420px) ---- */
@media (max-width: 420px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { justify-content: space-between; gap: 12px; }
  .stat-num { font-size: 1.5rem; }
  .about-card { font-size: 0.82rem; padding: 14px 16px; }
}
