/* Edulex Consulting – Dark blue + light blue palette */
:root {
  --navy: #0a1628;          /* deep dark blue */
  --navy-mid: #132f4a;
  --teal: #1e3a5f;          /* mid dark blue */
  --teal-light: #3b82c4;    /* bright light blue accent */
  --gold: #60a5fa;          /* light sky blue */
  --gold-soft: #dbeafe;     /* very light blue */
  --coral: #38bdf8;         /* soft cyan-blue */
  --coral-soft: #e0f2fe;
  --sky: #eff6ff;
  --lilac: #f0f7ff;
  --grey: #334155;
  --grey-light: #64748b;
  --white: #ffffff;
  --bg: #f8fafc;
  --shadow: 0 10px 40px rgba(10, 22, 40, 0.09);
  --shadow-strong: 0 18px 50px rgba(10, 22, 40, 0.14);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  line-height: 1.65;
  background: var(--bg);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
.header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(10,22,40,0.06);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 58px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img { transform: scale(1.05) rotate(-2deg); }

.nav {
  display: flex;
  gap: 1.9rem;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after { width: 100%; }

.nav a:hover { color: var(--teal-light); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ========== HERO / HOME TOP ========== */
.home-hero {
  position: relative;
  background: linear-gradient(165deg, #0a1628 0%, #0f2744 45%, #1e3a5f 100%);
  padding: 4.5rem 1.75rem 5rem;
  text-align: center;
  overflow: hidden;
  color: white;
}

.home-hero .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
}

.home-hero .shape-1 {
  width: 320px; height: 320px;
  background: var(--gold);
  top: -80px; right: -60px;
}

.home-hero .shape-2 {
  width: 180px; height: 180px;
  background: var(--coral);
  bottom: 40px; left: -40px;
}

.home-hero .shape-3 {
  width: 90px; height: 90px;
  background: white;
  top: 30%; left: 12%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.home-hero .shape-4 {
  width: 60px; height: 60px;
  background: var(--teal-light);
  bottom: 20%; right: 18%;
  border-radius: 40% 60% 60% 40%;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.home-hero .logo-large {
  height: 150px;
  width: auto;
  margin: 0 auto 1.8rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
  background: white;
  padding: 12px 20px;
  border-radius: 20px;
  border: 4px solid var(--gold);
}

.home-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.home-hero .tagline {
  font-size: 1.55rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 0.7rem;
}

.home-hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82c4 0%, #60a5fa 100%);
  color: white;
  box-shadow: 0 6px 22px rgba(59,130,196,0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(59,130,196,0.5);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: white;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-2px);
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(10,22,40,0.3);
  border-radius: 50px;
}

.btn-navy:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(10,22,40,0.4);
}

/* ========== SECTIONS ========== */
.section {
  padding: 4.5rem 1.75rem;
  position: relative;
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.section-title p {
  color: var(--grey-light);
  font-size: 1.1rem;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  margin: 0.7rem auto 0;
  border-radius: 4px;
}

/* ========== SERVICE CARDS ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #1e3a5f, #3b82c4, #60a5fa);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  border-color: var(--gold);
}

.service-card:hover::before { opacity: 1; }

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #0a1628, #1e3a5f);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 14px;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 14px rgba(10,22,40,0.3);
}

.service-card:nth-child(2) .service-number {
  background: linear-gradient(135deg, #1e3a5f, #3b82c4);
  box-shadow: 0 4px 14px rgba(30,58,95,0.35);
}

.service-card:nth-child(3) .service-number {
  background: linear-gradient(135deg, #3b82c4, #60a5fa);
  box-shadow: 0 4px 14px rgba(59,130,196,0.35);
}

.service-card:nth-child(4) .service-number {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  box-shadow: 0 4px 14px rgba(2,132,199,0.3);
}

.service-card:nth-child(5) .service-number {
  background: linear-gradient(135deg, #0c4a6e, #0ea5e9);
  box-shadow: 0 4px 14px rgba(12,74,110,0.3);
}

.service-card h3 {
  font-size: 1.28rem;
  color: var(--navy);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.service-card ul { list-style: none; padding: 0; }

.service-card ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--grey);
  font-size: 0.98rem;
}

.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.service-card p { color: var(--grey); font-size: 0.98rem; }

.service-note {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: #1e3a5f;
  font-style: italic;
  background: var(--gold-soft);
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border-left: 4px solid var(--gold);
}

/* ========== DIRECTORS ========== */
.directors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.3rem;
}

.director-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.4rem 2rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 3px solid transparent;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.director-card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  background: var(--gold-soft);
  border-radius: 50%;
  opacity: 0.7;
  z-index: 0;
}

.director-card:nth-child(2)::after {
  background: var(--coral-soft);
}

.director-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-strong);
}

.director-photo {
  width: 175px; height: 175px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.4rem;
  border: 5px solid var(--gold-soft);
  box-shadow: 0 10px 28px rgba(10,22,40,0.12);
  position: relative;
  z-index: 1;
  transition: border-color 0.3s;
}

.director-card:hover .director-photo {
  border-color: var(--gold);
}

.director-card h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.director-card .role {
  font-size: 0.88rem;
  color: var(--teal-light);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.director-card p {
  color: var(--grey);
  font-size: 0.98rem;
  text-align: left;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ========== BIO (About) ========== */
.bio-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--white);
  border-radius: 22px;
  padding: 2.3rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 3px solid transparent;
  transition: border-color 0.3s;
}

.bio-section:hover {
  border-color: var(--gold);
}

.bio-photo {
  width: 220px; height: 220px;
  border-radius: 18px;
  object-fit: cover;
  border: 4px solid var(--gold-soft);
  box-shadow: 0 8px 24px rgba(10,22,40,0.1);
}

.bio-content h3 {
  font-size: 1.55rem;
  color: var(--navy);
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.bio-content p {
  color: var(--grey);
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.8rem;
}

.contact-person {
  background: var(--white);
  border-radius: 16px;
  padding: 1.7rem 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 22px rgba(10,22,40,0.06);
  border-left: 6px solid var(--gold);
  transition: transform 0.25s;
}

.contact-person:nth-child(2) {
  border-left-color: var(--coral);
}

.contact-person:hover {
  transform: translateX(6px);
}

.contact-person h4 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.contact-person p {
  color: var(--grey);
  font-size: 0.96rem;
  margin-bottom: 0.2rem;
}

.contact-form {
  background: var(--white);
  border-radius: 22px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
  border: 3px solid var(--gold-soft);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--navy);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: #f8fafc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(96,165,250,0.2);
  background: white;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, #0a1628 0%, #0f2744 100%);
  color: rgba(255,255,255,0.75);
  padding: 2.8rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -50px; left: 10%;
  width: 140px; height: 140px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.08;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer p { font-size: 0.95rem; }
.footer a { color: #93c5fd; font-weight: 600; }
.footer a:hover { text-decoration: underline; }

/* ========== BACKGROUNDS ========== */
.bg-light {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 50%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.bg-light::before {
  content: '';
  position: absolute;
  top: 10%; right: -80px;
  width: 220px; height: 220px;
  background: var(--gold-soft);
  border-radius: 40% 60% 60% 40%;
  opacity: 0.6;
}

.bg-light::after {
  content: '';
  position: absolute;
  bottom: 5%; left: -60px;
  width: 180px; height: 180px;
  background: var(--coral-soft);
  border-radius: 60% 40% 30% 70%;
  opacity: 0.5;
}

.cta-band {
  text-align: center;
  padding: 4rem 1.75rem;
  position: relative;
}

.cta-band h2 {
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 0.55rem;
  font-weight: 800;
}

.cta-band p {
  color: var(--grey-light);
  margin-bottom: 1.6rem;
  font-size: 1.15rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0f2744 50%, #1e3a5f 100%);
  padding: 3.6rem 1.75rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: 8%;
  width: 160px; height: 160px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.15;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 2;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    padding: 1.4rem 1.75rem;
    border-bottom: 3px solid var(--gold);
    gap: 1rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  }
  .mobile-toggle { display: block; }

  .home-hero h1 { font-size: 2.4rem; }
  .home-hero .logo-large { height: 110px; }

  .directors-grid,
  .contact-grid,
  .bio-section { grid-template-columns: 1fr; }

  .bio-photo { margin: 0 auto; }
  .bio-section { text-align: center; }
  .bio-content p { text-align: left; }

  .section { padding: 3.5rem 1.4rem; }
}

@media (max-width: 768px) {
  section[style*="grid-template-columns: 1fr 1fr"],
  section[style*="grid-template-columns: 1.1fr 0.9fr"] {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  section[style*="grid-template-columns"] > div[style*="background: url"] {
    min-height: 260px;
  }
}
