/* ===========================================
   Aspirar Global – Global Stylesheet
   Brand: Dark Blue #0B3D91 / Gold #F5A623
   =========================================== */

:root {
  --color-primary: #0B3D91;
  --color-primary-dark: #082a66;
  --color-primary-light: #1a55b8;
  --color-gold: #F5A623;
  --color-gold-dark: #d8911a;
  --color-text: #1a1f36;
  --color-text-light: #5a6478;
  --color-bg: #ffffff;
  --color-bg-soft: #f6f8fc;
  --color-border: #e4e8f0;
  --color-success: #1f9d55;
  --color-whatsapp: #25D366;

  --shadow-sm: 0 1px 2px rgba(11, 61, 145, 0.06);
  --shadow-md: 0 4px 14px rgba(11, 61, 145, 0.08);
  --shadow-lg: 0 18px 40px rgba(11, 61, 145, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --max-width: 1200px;
  --header-height: 76px;

  --font-sans: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-gold); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- Headings ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--color-text); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p  { color: var(--color-text-light); }
.section-title { text-align: center; margin-bottom: 14px; }
.section-subtitle { text-align: center; max-width: 680px; margin: 0 auto 48px; color: var(--color-text-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-gold);
  color: #1a1f36;
  box-shadow: 0 8px 22px rgba(245, 166, 35, 0.32);
}
.btn-primary:hover {
  background: var(--color-gold-dark);
  color: #1a1f36;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 166, 35, 0.4);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: #fff; color: var(--color-primary); }
.btn-dark {
  background: var(--color-primary);
  color: #fff;
}
.btn-dark:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); border-color: var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--color-primary); }
.logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold); font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.logo span.brand-accent { color: var(--color-gold); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  align-items: center; justify-content: center;
  color: var(--color-primary);
}
.nav-toggle svg { width: 26px; height: 26px; }

.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 8px;
}
.main-nav a:hover, .main-nav a.active { color: var(--color-primary); background: var(--color-bg-soft); }
.nav-cta { margin-left: 12px; padding: 10px 20px !important; background: var(--color-gold); color: #1a1f36 !important; border-radius: 10px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--color-gold-dark) !important; }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "▾"; margin-left: 6px; font-size: .7rem; opacity: .7;
}
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 10px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: .9rem; }
.dropdown a:hover { background: var(--color-bg-soft); color: var(--color-primary); }
.dropdown-label { padding: 8px 14px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-light); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
  padding: calc(var(--header-height) + 40px) 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-bg, url('https://images.unsplash.com/photo-1543872084-c7bd3822856f?auto=format&fit=crop&w=1800&q=80'));
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8, 30, 70, 0.85) 0%, rgba(11, 61, 145, 0.7) 60%, rgba(11, 61, 145, 0.55) 100%);
  z-index: -1;
}
.hero .container { max-width: 1100px; }
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(245, 166, 35, 0.18);
  color: var(--color-gold);
  border: 1px solid rgba(245, 166, 35, 0.4);
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 20px;
  animation: fadeUp .8s ease both;
}
.hero h1 { color: #fff; max-width: 880px; animation: fadeUp .8s ease .1s both; }
.hero h1 .accent { color: var(--color-gold); }
.hero p.lead {
  margin-top: 18px;
  font-size: 1.18rem;
  color: rgba(255,255,255,0.92);
  max-width: 720px;
  animation: fadeUp .8s ease .2s both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; animation: fadeUp .8s ease .3s both; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.18);
  animation: fadeUp .8s ease .4s both;
}
.hero-stats .stat strong { display: block; font-size: 2.1rem; color: var(--color-gold); font-weight: 700; }
.hero-stats .stat span { color: rgba(255,255,255,0.85); font-size: .93rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--color-bg-soft); }

/* ---------- Services / Country grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(11, 61, 145, 0.2); }
.card-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-bg-soft); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-image img { transform: scale(1.06); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  display: inline-block; padding: 4px 12px;
  background: rgba(11, 61, 145, 0.08);
  color: var(--color-primary);
  border-radius: 50px;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 12px;
}
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: .93rem; margin-bottom: 16px; }
.card-link { margin-top: auto; color: var(--color-primary); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: "→"; transition: transform .2s ease; }
.card-link:hover::after { transform: translateX(4px); }

/* ---------- Job / Course cards ---------- */
.job-card { display: grid; grid-template-columns: 220px 1fr; gap: 0; align-items: stretch; }
.job-card .card-image { aspect-ratio: auto; }
.job-card .card-body { padding: 22px 26px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 12px; font-size: .85rem; color: var(--color-text-light); }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-salary { color: var(--color-success); font-weight: 700; font-size: 1rem; }
.job-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn-sm { padding: 9px 18px; font-size: .87rem; border-radius: 8px; }

@media (max-width: 640px) {
  .job-card { grid-template-columns: 1fr; }
  .job-card .card-image { aspect-ratio: 16/10; }
}

/* ---------- Why us / Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.feature {
  text-align: left;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11,61,145,0.1) 0%, rgba(245,166,35,0.18) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { font-size: .92rem; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}
.step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}
.step-number {
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: var(--color-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute; top: 0; left: 24px;
  font-size: 5rem; line-height: 1;
  color: var(--color-gold);
  opacity: .25;
  font-family: Georgia, serif;
}
.testimonial p { font-size: .98rem; color: var(--color-text); margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
}
.testimonial-person strong { display: block; font-size: .95rem; }
.testimonial-person span { font-size: .82rem; color: var(--color-text-light); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 70px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: rgba(245, 166, 35, 0.15);
  border-radius: 50%;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 28px; max-width: 640px; margin-left: auto; margin-right: auto; position: relative; }
.cta-banner .btn { position: relative; }

/* ---------- Forms ---------- */
.form-wrap {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: .87rem; font-weight: 600; color: var(--color-text); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: .96rem;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none;
  padding: 14px 16px;
  background: #e9f9ef;
  border: 1px solid #b6e9c8;
  color: #126b35;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  font-size: .92rem;
}
.form-success.show { display: block; }

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: calc(var(--header-height) + 60px) 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; top: -100px; left: -100px;
  width: 360px; height: 360px;
  background: rgba(245, 166, 35, 0.12);
  border-radius: 50%;
}
.page-hero::after {
  content: "";
  position: absolute; bottom: -120px; right: -80px;
  width: 320px; height: 320px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}
.page-hero h1 { color: #fff; position: relative; }
.page-hero p { color: rgba(255,255,255,0.9); margin-top: 14px; position: relative; max-width: 720px; margin-left: auto; margin-right: auto; }
.breadcrumbs { font-size: .85rem; color: rgba(255,255,255,0.8); position: relative; margin-bottom: 14px; }
.breadcrumbs a { color: var(--color-gold); }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Country page content ---------- */
.country-overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.country-overview img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.country-overview h2 { margin-bottom: 16px; }
.country-overview p { margin-bottom: 14px; }
@media (max-width: 880px) { .country-overview { grid-template-columns: 1fr; } }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.fact {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  border-left: 3px solid var(--color-gold);
}
.fact strong { display: block; font-size: 1.5rem; color: var(--color-primary); }
.fact span { font-size: .85rem; color: var(--color-text-light); }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card .card-body h3 { font-size: 1.15rem; line-height: 1.4; }
.blog-meta { display: flex; gap: 12px; font-size: .82rem; color: var(--color-text-light); margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #07142e;
  color: #c5cee0;
  padding: 70px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p { color: #9ba9c2; font-size: .92rem; margin-top: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .98rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #9ba9c2; font-size: .9rem; }
.footer-col a:hover { color: var(--color-gold); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: #9ba9c2; font-size: .9rem; margin-bottom: 12px; }
.footer-contact svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--color-gold); margin-top: 3px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: #c5cee0;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-row a:hover { background: var(--color-gold); color: #07142e; transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: #7d8aa3;
}
.footer-bottom a { color: #9ba9c2; }
.footer-bottom a:hover { color: var(--color-gold); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform .25s ease;
  animation: pulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float svg { width: 32px; height: 32px; color: #fff; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50%      { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: var(--header-height); left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 14px; gap: 0; }
  .main-nav a { padding: 14px 16px; border-radius: 8px; }
  .has-dropdown > a::after { float: right; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 4px 14px 8px; min-width: auto;
    background: var(--color-bg-soft); margin: 4px 0 8px;
  }
  .nav-cta { margin: 14px 16px 0; text-align: center; }
}

/* ---------- Animation utilities ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
hr.divider { border: none; border-top: 1px solid var(--color-border); margin: 60px 0; }
