/* ═══════════════════════════════════════════════
   GLOBAL STYLES — Tech-Academy
   Shared across all pages
   ═══════════════════════════════════════════════ */


/* ─── VARIABLES ──────────────────────────────── */
:root {
  --cobalt:      #F46832;
  --cobalt-dark: #C35328;
  --cobalt-mid:  #FF8555;
  --cobalt-pale: #FFF0E8;
  --lime:        #FFD84D;
  --lime-dark:   #E6BB00;
  --bg:          #FAF8F6;
  --card:        #FFFFFF;
  --ink:         #0C0E1A;
  --muted:       #687085;
  --rule:        rgba(12,14,26,0.08);
  --rule-mid:    rgba(12,14,26,0.14);
  --shadow-sm:   0 1px 4px rgba(12,14,26,0.06), 0 4px 16px rgba(12,14,26,0.06);
  --shadow-md:   0 2px 8px rgba(12,14,26,0.06), 0 12px 36px rgba(12,14,26,0.10);
  --r:           12px;
  --r-lg:        20px;
}


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

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}


/* ─── CONTAINER ──────────────────────────────── */
.container {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding-inline: 3rem;
}


/* ─── FADE-UP ANIMATION ─────────────────────── */
[data-anim="fadeUp"] {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-anim="fadeUp"].visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.17s; }
[data-delay="3"] { transition-delay: 0.26s; }
[data-delay="4"] { transition-delay: 0.35s; }


/* ─── OVERLINE ───────────────────────────────── */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 1rem;
}

.overline::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--cobalt);
  flex-shrink: 0;
}


/* ─── SECTION SPACING ───────────────────────── */
.section    { padding-block: 6rem; }
.section-sm { padding-block: 4rem; }

/* ─── SECTION HEADINGS ───────────────────────── */
.section-heading {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.section-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--cobalt);
  border-radius: 2px;
  margin-bottom: 3rem;
  margin-top: 0.75rem;
}


/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
}

.btn-cobalt {
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt);
}

.btn-cobalt:hover {
  background: var(--cobalt-dark);
  border-color: var(--cobalt-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244,104,50,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--cobalt);
  border-color: var(--cobalt);
}

.btn-outline:hover {
  background: var(--cobalt-pale);
  transform: translateY(-1px);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.btn-lime:hover {
  background: var(--lime-dark);
  border-color: var(--lime-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,216,77,0.4);
}

.btn-white {
  background: #fff;
  color: var(--cobalt-dark);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-1px);
}


/* ─── NAV ────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--rule);
  height: 70px;
  display: flex;
  align-items: center;
}

nav .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

nav .container .nav-cta-wrap {
  display: flex;
  justify-content: flex-end;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-wordmark {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav-wordmark span { color: var(--cobalt); }

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

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.3rem 0.75rem;
  position: relative;
  transition: color 0.15s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 1.5px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--cobalt);
  color: #fff !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.15s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--cobalt-dark) !important;
  transform: translateY(-1px) !important;
}

.nav-cta::after { display: none !important; }

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
}


/* ─── PAGE HERO (simple) ─────────────────────── */
.page-hero {
  background: var(--bg);
  padding-block: 5rem 4rem;
  border-bottom: 1px solid var(--rule);
}

.page-hero .overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 1rem;
}

.page-hero .overline::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--cobalt);
  flex-shrink: 0;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}


/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: var(--cobalt);
  color: #fff;
  padding-top: 2.5rem;
}

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

.f-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.f-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.f-wordmark {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.f-wordmark span { color: #fff; }

.footer-tagline {
  font-size: 0.87rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-address {
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col li a {
  font-size: 0.88rem;
  color: #fff;
  transition: color 0.15s;
}

.footer-col li a:hover { color: var(--lime); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.8;
}

.footer-bottom {
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p { font-size: 0.78rem; color: #fff; }
.footer-bottom a { color: #fff; font-size: 0.78rem; }
.footer-bottom a:hover { color: var(--lime); }


/* ─── CONTENT SECTION & GRID ─────────────────── */
.content-section { padding-block: 5rem; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 5rem;
  align-items: start;
}


/* ─── WHY CARDS ──────────────────────────────── */
.why-title {
  font-size: 1.4rem;
  margin-bottom: 1.75rem;
}

.why-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.why-card {
  background: #fff;
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.why-card-icon {
  width: 40px;
  height: 40px;
  background: var(--cobalt-pale);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.why-card-icon svg { width: 18px; height: 18px; color: var(--cobalt); }
.why-card h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.why-card p  { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

.contact-note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.contact-note a { color: var(--cobalt); }
.contact-note a:hover { text-decoration: underline; }


/* ─── FORM STYLES ────────────────────────────── */
.form-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-card h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.form-card > p { font-size: 0.87rem; color: var(--muted); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--rule);
  border-radius: var(--r);
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cobalt);
  background: #fff;
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23687085' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-submit {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--cobalt);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--cobalt-dark);
  transform: translateY(-1px);
}

.form-checkbox-row {
  margin-bottom: 1.25rem;
}
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cobalt);
  cursor: pointer;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success .success-icon {
  width: 56px;
  height: 56px;
  background: #dcfce7;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.form-success h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.form-success p   { font-size: 0.9rem; color: var(--muted); }


/* ─── UTILITY: Footer CTA wrap ───────────────── */
.footer-cta-wrap {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


/* ─── UTILITY: Button sizes & variants ───────── */
.btn-sm {
  font-size: 0.82rem;
  padding: 0.55rem 1.2rem;
}

.btn-ghost {
  font-size: 0.82rem;
  padding: 0.55rem 1.2rem;
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-outline-white {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}


/* ─── UTILITY: Footer separator ──────────────── */
.footer-separator {
  margin-inline: 0.5rem;
  opacity: 0.4;
}


/* ─── UTILITY: Footer contact link ───────────── */
.footer-contact-item a { color: inherit; }


/* ─── UTILITY: reCAPTCHA notice ──────────────── */
.recaptcha-notice {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
}

.recaptcha-notice a { color: var(--cobalt); }


/* ─── UTILITY: Label optional ────────────────── */
.label-optional {
  font-weight: 400;
  color: var(--muted);
}


/* ─── UTILITY: Hide reCAPTCHA badge ──────────── */
.grecaptcha-badge { visibility: hidden; }


/* ═══════════════════════════════════════════════
   RESPONSIVE — shared breakpoints
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .content-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ─── MOBILE NAV MENU ───────────────────────── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 199;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.15s;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu a.active { color: var(--ink); }
.nav-mobile-menu .nav-mobile-cta {
  margin-top: 1rem;
  background: var(--cobalt);
  color: #fff;
  text-align: center;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: none;
  transition: background 0.15s;
}
.nav-mobile-menu .nav-mobile-cta:hover {
  background: var(--cobalt-dark);
  color: #fff;
}

@media (max-width: 768px) {
  nav .container  { grid-template-columns: 1fr auto; }
  .nav-links      { display: none; }
  nav .container .nav-cta-wrap { display: none; }
  .nav-mobile-btn { display: block; }
  .container      { padding-inline: 1.5rem; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; gap: 0.5rem; text-align: center; }
}
