/* ============================================
   AID Group — Shared Styles
   Used across all pages (home + sub-pages)
   ============================================ */

:root {
  --navy: #0F172A;
  --gold: #C5A55A;
  --gold-light: #D4B876;
  --white: #FFFFFF;
  --ivory: #FAFAF8;
  --cream: #F5F3EE;
  --text-dark: #0F172A;
  --text-body: #475569;
  --text-light: #94A3B8;
  --border: #E8E5DE;
  --border-light: #F0EDE6;
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 40px; }

/* ============================================
   NAVIGATION — Base (opaque, used by sub-pages)
   Home page overrides to transparent in home.css
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 80px;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.nav .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav__logo { height: 47px; width: auto; opacity: 0.9; }
.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__link {
  font-size: 14px; font-weight: 400; color: var(--text-light);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--text-dark); }
.nav__link--active { color: var(--text-dark); font-weight: 500; }
.nav__contact {
  font-size: 14px; font-weight: 500; color: var(--text-dark);
  letter-spacing: 0.01em;
}
.nav__back { font-size: 14px; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.nav__back:hover { color: var(--text-dark); }
.nav__back-mobile { display: none; font-size: 14px; color: var(--text-light); margin-left: auto; margin-right: 16px; }

/* Hamburger */
.nav__hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 201; }
.nav__hamburger span { display: block; width: 20px; height: 1.5px; background: var(--text-dark); margin: 4px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif); font-size: 24px; color: var(--text-dark);
  letter-spacing: -0.01em; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu__divider { width: 40px; height: 1px; background: var(--border); }
.mobile-menu__label { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.mobile-menu__sub { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mobile-menu__sub a { font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--text-body); }
.mobile-menu__home { display: inline-block; font-family: var(--sans) !important; font-size: 14px !important; font-weight: 500; letter-spacing: 0.03em; color: var(--white) !important; background: var(--navy); padding: 12px 32px; border-radius: 6px; margin-bottom: 8px; }
.mobile-menu__home:hover { background: #1E293B; color: var(--white) !important; }

/* ============================================
   SUB-PAGE SHARED — Header, Content, Footer
   ============================================ */
.page-header { padding: 160px 0 80px; border-bottom: 1px solid var(--border); }
.page-header__eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.page-header__title { font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); font-weight: 400; color: var(--text-dark); letter-spacing: -0.02em; line-height: 1.15; }

.content { padding: 80px 0; }
.content--bordered { border-bottom: 1px solid var(--border); }
.content--ivory { background: var(--ivory); }
.content__grid { display: grid; grid-template-columns: 280px 1fr; gap: 80px; align-items: start; }
.content__label { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); position: sticky; top: 120px; }
.content__body h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--text-dark); margin-bottom: 20px; letter-spacing: -0.01em; }
.content__body p { font-size: 17px; font-weight: 300; line-height: 1.85; color: var(--text-body); margin-bottom: 24px; max-width: 640px; }
.content__body p:last-child { margin-bottom: 0; }

/* Timeline */
.timeline { position: relative; padding-left: 40px; margin-top: 48px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline__item { position: relative; padding-bottom: 48px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ''; position: absolute; left: -44px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline__year { font-size: 13px; font-weight: 500; color: var(--gold); letter-spacing: 0.05em; margin-bottom: 8px; }
.timeline__title { font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.timeline__desc { font-size: 15px; font-weight: 300; color: var(--text-body); line-height: 1.7; }

/* Values Grid */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); margin-top: 48px; }
.value-item { background: var(--white); padding: 40px; }
.content--ivory .value-item { background: var(--ivory); }
.value-item__name { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--text-dark); margin-bottom: 16px; }
.value-item__desc { font-size: 15px; font-weight: 300; color: var(--text-body); line-height: 1.75; }

/* Sub-page simple footer */
.footer-simple { background: var(--navy); color: rgba(255,255,255,0.5); padding: 64px 0 32px; }
.footer-simple .footer__inner { display: flex; justify-content: space-between; align-items: center; }
.footer-simple .footer__logo { height: 20px; opacity: 0.5; }
.footer-simple p { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ============================================
   SCROLL REVEAL — Subtle
   ============================================ */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   MOBILE — Shared responsive
   ============================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav { height: 64px; }
  .nav__logo { height: 38px; }
  .nav__links { display: none; }
  .nav__hamburger { display: block; }
  .nav__back-mobile { display: block; }

  .page-header { padding: 120px 0 60px; }
  .page-header__title { font-size: 28px; }

  .content { padding: 48px 0; }
  .content__grid { grid-template-columns: 1fr; gap: 24px; }
  .content__label { position: static; }
  .content__body h3 { font-size: 22px; }
  .content__body p { font-size: 15px; }

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

  .footer-simple .footer__inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-simple .footer__logo { height: 16px; }

  .leader-photo { width: 120px; height: 120px; }
}

/* ============================================
   PORTFOLIO CARDS — shared across pages
   ============================================ */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.portfolio__card {
  background: var(--white);
  padding: 48px 40px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  position: relative;
}
.portfolio__card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio__card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.portfolio__card:hover::after { transform: scaleX(1); }
.portfolio__grid:hover .portfolio__card { opacity: 0.6; }
.portfolio__grid:hover .portfolio__card:hover { opacity: 1; }

.portfolio__logo {
  height: 32px; width: auto; max-width: 120px;
  object-fit: contain; margin-bottom: 16px; opacity: 0.85;
}
.portfolio__name {
  font-family: var(--serif);
  font-size: 24px; font-weight: 400;
  color: var(--text-dark); margin-bottom: 6px;
}
.portfolio__name a { color: inherit; }
.portfolio__name a:hover { color: var(--gold); }
.portfolio__sector {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 20px;
}
.portfolio__desc {
  font-size: 15px; font-weight: 300;
  color: var(--text-body); line-height: 1.75;
}

@media (max-width: 768px) {
  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio__card { padding: 32px 24px; }
  .portfolio__name { font-size: 20px; }
  .portfolio__desc { font-size: 14px; }
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  display: flex; align-items: center; gap: 6px;
  margin-left: 20px;
  border-left: 1px solid var(--border-light);
  padding-left: 20px;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.04em; padding: 2px 0;
  transition: color 0.2s ease;
}
.lang-btn:hover { color: var(--text-dark); }
.lang-btn.active { color: var(--text-dark); }
.lang-divider { font-size: 10px; color: var(--border); user-select: none; }
.mobile-lang-switcher {
  display: flex; gap: 24px; align-items: center;
  padding: 8px 0;
}
.mobile-lang-switcher .lang-btn {
  font-size: 15px;
  color: var(--text-body);
}
.mobile-lang-switcher .lang-btn.active {
  color: var(--text-dark); font-weight: 600;
}

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