/* ============================================
   OPGA — ONEPLACE Global Academy
   Color Palette: Royal Blue, Gold, White
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Outfit:wght@300;400;500;600&display=swap");

:root {
  --blue-deep: #0d2a6b;
  --blue-royal: #1a3f9f;
  --blue-mid: #2257c5;
  --gold: #dacf30;
  --gold-light: #cfc321;
  --gold-dark: #b5a300;
  --white: #ffffff;
  --off-white: #f7f5ef;
  --text-dark: #0d1b3e;
  --text-muted: #5a6a8a;
  --section-bg: #f0f4ff;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", sans-serif;

  --max-width: 1100px;
  --radius: 4px;
  --transition: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(13, 43, 107, 0.892);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(198, 195, 37, 0.368);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo img {
  height: 42px;
  width: auto;
}

.navbar-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.navbar-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.navbar-links a:hover {
  color: var(--gold-light);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--blue-deep) 0%,
    var(--blue-royal) 55%,
    #1e4db7 100%
  );
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 2rem 60px;
  position: relative;
  overflow: hidden;
}

/* Decorative background geometry */
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 60px solid rgba(201, 168, 76, 0.08);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-left: 20px;
}

.hero-logo {
  flex: 1;
  width: 400px;
  height: 400px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 0 100px rgba(0, 0, 0, 0.252));
  animation: floatLogo 4s ease-in-out infinite;
}

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

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-deep);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--radius);
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

/* Gold divider line at hero bottom */
.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============================================
   SECTION SHARED
   ============================================ */

section {
  padding: 90px 2rem;
}

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

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.section-title em {
  font-style: normal;
  color: var(--gold-dark);
}

.section-body {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}

.gold-rule {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1.6rem;
  border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(13, 42, 107, 0.15);
}

.about-text .section-body + .section-body {
  margin-top: 1rem;
}

/* Founded badge */
.founded-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--section-bg);
  border: 1px solid rgba(26, 63, 159, 0.15);
  border-radius: 100px;
  padding: 6px 16px 6px 10px;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue-royal);
}

.founded-badge span.dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================
   WHAT WE DO
   ============================================ */

.programmes {
  background: var(--blue-deep);
  position: relative;
  overflow: hidden;
}

.programmes::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.programmes .section-label {
  color: var(--gold-light);
}

.programmes .section-title {
  color: var(--white);
}

.programmes .section-title em {
  color: var(--gold-light);
}

.programmes .section-body {
  color: rgba(255, 255, 255, 0.6);
}

.programmes .gold-rule {
  background: var(--gold-light);
}

.programmes-header {
  margin-bottom: 3.5rem;
}

.programmes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.programme-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 2rem;
  transition:
    all var(--transition),
    border-color var(--transition),
    transform var(--transition) !important;
}

.programme-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-4px);
}

.programme-icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.programme-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.7rem;
}

.programme-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
}

/* ============================================
   MISSION / ORG SECTION
   ============================================ */

.mission {
  background: var(--off-white);
}

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

.mission-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.mission-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 8px;
}

.org-box {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
  border-top: 4px solid var(--gold);
  box-shadow: 0 8px 32px rgba(13, 42, 107, 0.08);
}

.org-box h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 0.4rem;
}

.org-box .org-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.2rem;
}

.org-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.org-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--section-bg);
  border: 2px dashed rgba(26, 63, 159, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 8px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  background: linear-gradient(135deg, var(--blue-royal), var(--blue-deep));
  text-align: center;
}

.contact .section-label {
  color: var(--gold-light);
}

.contact .section-title {
  color: var(--white);
}

.contact .gold-rule {
  margin-left: auto;
  margin-right: auto;
}

.contact-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.contact-item .icon {
  width: 36px;
  height: 36px;
  background: rgba(201, 168, 76, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-email-link {
  color: var(--gold-light);
  font-weight: 500;
  transition: color var(--transition);
}

.contact-email-link:hover {
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--blue-deep);
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  padding: 2rem;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

footer .gold-text {
  color: rgba(201, 168, 76, 0.6);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .about-grid,
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .programmes-grid {
    grid-template-columns: 1fr;
  }

  .contact-details {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  section {
    padding: 60px 1.25rem;
  }
}
