/* LinkedIn hyperlink styling for team section */
.linkedin-link {
  color: #0074cc;
  text-decoration: underline;
  font-weight: 500;
}
/* =========================
   Theme variables
   ========================= */
:root {
  --blue-dark: #003d6a;
  --blue-light: #1a73e8;
  --orange: #ff7a00;

  --gray-50: #f9fbff;
  --gray-75: #f7f9fc;
  --gray-100: #eef3fa;

  --text-dark: #1e2329;
  --text-muted: #4b5563;
  --text-light: #ffffff;

  --max-width: 1100px;
  --radius: 14px;
  --radius-lg: 20px;
  --transition-speed: 0.35s;

  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 24px rgba(0,0,0,0.08);

  --h-font: "Playfair Display", Georgia, serif;
  --b-font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* =========================
   Base reset
   ========================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--b-font);
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 16px; top: 16px;
  width: auto; height: auto; padding: 8px 12px;
  background: var(--blue-dark); color: var(--text-light);
  border-radius: 8px; z-index: 9999;
}

/* Utility container */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }

/* =========================
   Header and navigation
   ========================= */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(0, 61, 106, 0.94);
  backdrop-filter: saturate(120%) blur(6px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex; justify-content: space-between; align-items: center;
}

.logo-link { display: flex; align-items: center; gap: 0.6rem; }
.logo-img {
  max-height: 42px; width: auto; display: block;
  filter: brightness(0) invert(1); /* make black logo white on dark header */
}
.logo-text {
  display: none;
  font-weight: 700; color: var(--text-light); font-size: 1.1rem;
  letter-spacing: 0.2px;
}

@media (min-width: 768px) {
  .logo-img { max-height: 48px; }
  .logo-text { display: inline; font-size: 1.2rem; }
}

.nav-links { display: none; }
.nav-links a {
  color: var(--text-light); font-weight: 600;
  transition: color var(--transition-speed), opacity var(--transition-speed);
  opacity: 0.95;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--orange); opacity: 1; }
}

.nav-toggle {
  background: transparent; border: none; color: var(--text-light);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  transition: background var(--transition-speed), transform var(--transition-speed);
}
.nav-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.nav-toggle:active { transform: scale(0.98); }

.nav-links.open {
  display: flex; position: absolute; left: 0; right: 0; top: 56px;
  background: var(--blue-dark); flex-direction: column; gap: 0.75rem;
  padding: 0.75rem 1rem 1rem; border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius); box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}
.nav-links.open a { padding: 0.5rem 0.5rem; border-radius: 8px; }
.nav-links.open a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.no-scroll { overflow: hidden; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex; align-items: center; gap: 1.4rem; position: static;
  }
}

/* =========================
   Buttons
   ========================= */
.btn {
  padding: 0.7rem 1.4rem; border-radius: var(--radius-lg);
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed), color var(--transition-speed);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange); color: var(--text-light); border: none;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #e06900; box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.9);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* =========================
   Hero
   ========================= */
.hero {
  position: relative; min-height: 80vh;
  display: grid; place-items: center; text-align: center; color: var(--text-light);
  background-image: url('assets/hero-bg.png'); background-size: cover; background-position: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgba(0,0,0,0.45);
}
.hero-gradient {
  position: absolute; inset: auto 0 0 0; height: 220px; z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,61,106,0.55) 60%, rgba(0,61,106,0.85) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 740px; padding: 0 1rem; }
.hero h1 {
  font-family: var(--h-font); font-weight: 700;
  font-size: clamp(2.25rem, 3.8vw, 3.25rem);
  letter-spacing: 0.3px;
}
.hero .subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  margin: 1rem 0 2rem; line-height: 1.5; opacity: 0.95;
}
.hero-ctas { display: flex; gap: 0.75rem; align-items: center; justify-content: center; flex-wrap: wrap; }

@media (min-width: 768px) {
  .hero { min-height: 86vh; }
}

/* =========================
   Sections
   ========================= */
section { padding: 5rem 0; }
section h2 {
  text-align: center; font-family: var(--h-font); font-weight: 700;
  font-size: clamp(1.8rem, 2.4vw, 2.25rem); margin-bottom: 2.25rem; color: var(--blue-dark);
}
.section-alt { background: linear-gradient(180deg, var(--gray-75), var(--gray-50)); }

/* =========================
   Content blocks
   ========================= */
.cards, .steps, .team-cards { display: grid; gap: 2rem; }
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .team-cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff; border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-sm); text-align: left;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.65rem; color: var(--blue-dark); font-weight: 700; }
.card p { font-size: 1rem; line-height: 1.6; color: var(--text-muted); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 0.9rem;
  color: var(--blue-light); background: var(--gray-100);
}

/* About */
.about .about-body { max-width: 800px; margin: 0 auto; }
.about p { margin-bottom: 1rem; font-size: 1.05rem; }

/* Philosophy */
.philosophy-container { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .philosophy-container { grid-template-columns: 1.1fr 0.9fr; }
}
.philosophy .text-content p { margin-bottom: 1rem; color: var(--text-muted); }
.philosophy .image-content img {
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* Steps */
.step h3 { margin-bottom: 0.5rem; color: var(--blue-dark); }
.step p { font-size: 1rem; }

/* Team */
.team-card {
  background: #fff; padding: 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-align: center; display: flex; flex-direction: column; align-items: center;
}

/* Photo frame wraps an <img>; shows initials if image fails */
.team-photo {
  position: relative;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--gray-100);
  overflow: hidden; /* circular crop */
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 4px #fff, var(--shadow-sm); /* subtle ring */
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Hidden by default; displayed only if JS adds .fallback */
.team-photo .initials {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; letter-spacing: 0.5px;
  color: var(--text-light); background: var(--blue-light);
}
.team-photo.fallback .initials { display: flex; }

.team-card p { color: var(--text-muted); }

/* CTA */
.cta {
  background: var(--blue-dark); color: var(--text-light); text-align: center; padding: 4rem 1rem;
}
.cta h2 { color: var(--text-light); margin-bottom: 1rem; }
.cta p { margin: 0 auto 2rem; max-width: 680px; font-size: 1.05rem; }

/* Footer */
footer {
  background: var(--blue-dark); color: var(--text-light); padding: 2rem 1rem;
}
.footer-container {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
@media (min-width: 600px) {
  .footer-container { flex-direction: row; justify-content: space-between; }
}
.footer-info p { margin-bottom: 0.25rem; opacity: 0.9; }
.footer-links a { margin-left: 1rem; color: var(--text-light); font-weight: 600; opacity: 0.95; }
.footer-links a:hover { color: var(--orange); opacity: 1; }

/* =========================
   Reveal on scroll (micro-interactions)
   ========================= */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: translateY(0);
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
