/* ============================================
   AID Group — Home Page Styles
   ============================================ */

/* Nav override: transparent on load, scrolled = opaque */
.nav {
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 0 var(--border);
}

/* ============================================
   HERO — Restrained, authoritative
   ============================================ */
.hero {
  padding: 200px 0 160px;
  border-bottom: 1px solid var(--border);
}

.hero__eyebrow {
  font-size: 24px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  max-width: 680px;
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__desc {
  font-size: 18px; font-weight: 300;
  color: var(--text-body);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero__cta {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 16px 40px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.3s ease, transform 0.3s ease;
}
.hero__cta:hover { background: #1E293B; transform: translateY(-1px); }

/* ============================================
   METRICS — Horizontal, understated
   ============================================ */
.metrics {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  background: var(--ivory);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.metric:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 48px;
  background: var(--border);
}

.metric__number {
  font-family: var(--serif);
  font-size: 48px; font-weight: 400;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.metric__label {
  font-size: 13px; font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .metric:nth-child(2)::after { display: none; }
}

/* ============================================
   SECTIONS — Shared home section styles
   ============================================ */
.section { padding: 120px 0; }
.section--bordered { border-bottom: 1px solid var(--border); }
.section--ivory { background: var(--ivory); }

.section__eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section__desc {
  font-size: 17px; font-weight: 300;
  color: var(--text-body);
  max-width: 560px;
  line-height: 1.8;
}

/* ============================================
   PHILOSOPHY — Three columns, elegant
   ============================================ */
.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 80px;
  background: var(--border);
}

.philosophy__item {
  background: var(--white);
  padding: 48px 40px;
  transition: background 0.4s ease;
}
.philosophy__item:hover { background: #FDFCF8; }
.section--ivory .philosophy__item { background: var(--ivory); }

.philosophy__letter {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 24px;
}

.philosophy__name {
  font-size: 18px; font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.philosophy__text {
  font-size: 15px; font-weight: 300;
  color: var(--text-body);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .philosophy__grid { grid-template-columns: 1fr; }
}

/* ============================================
   PORTFOLIO — Clean cards
   ============================================ */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 80px;
  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); }

/* Dim siblings on hover */
.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; }
}

/* ============================================
   CTA — Centered, minimal
   ============================================ */
.cta { text-align: center; padding: 140px 0; }

.cta__rule {
  width: 48px; height: 1px;
  background: var(--gold);
  margin: 0 auto 40px;
  animation: ruleGrow 1s ease 0.3s both;
}
@keyframes ruleGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.cta__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.cta__desc {
  font-size: 17px; font-weight: 300;
  color: var(--text-body);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.cta__btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 16px 48px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.3s ease, transform 0.3s ease, letter-spacing 0.4s ease;
}
.cta__btn:hover {
  background: #1E293B;
  transform: translateY(-1px);
  letter-spacing: 0.06em;
}

/* ============================================
   FOOTER — Navy, restrained (full version)
   ============================================ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer__logo { height: 24px; margin-bottom: 24px; opacity: 0.7; }

.footer__brand-text {
  font-size: 14px; font-weight: 300;
  line-height: 1.7; max-width: 280px;
  color: rgba(255,255,255,0.4);
}

.footer__col h4 {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.footer__col a {
  display: block;
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.45);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer__col a:hover { color: rgba(255,255,255,0.8); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__bottom p {
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,0.25);
}

.footer__stock {
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================
   ENHANCED EFFECTS — Hero stagger, hover effects
   ============================================ */

/* Hero staggered load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow { animation: fadeUp 0.8s ease 0.2s both; }
.hero__title { animation: fadeUp 0.8s ease 0.4s both; }
.hero__desc { animation: fadeUp 0.8s ease 0.6s both; }
.hero__cta { animation: fadeUp 0.8s ease 0.8s both; }

/* Nav link underline slide */
.nav__link { position: relative; }
.nav__link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav__link:hover::after { transform: scaleX(1); }

/* Text reveal styles for GSAP SplitType */
[data-split-reveal] .word { display: inline-block; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* ============================================
   MOBILE — Home-specific responsive
   ============================================ */
@media (max-width: 768px) {
  .hero { padding: 140px 0 80px; }
  .hero__eyebrow { font-size: 22px; margin-bottom: 20px; }
  .hero__title { font-size: 32px; margin-bottom: 20px; }
  .hero__desc { font-size: 16px; margin-bottom: 32px; }
  .hero__cta { padding: 14px 32px; font-size: 13px; }

  .metrics { padding: 48px 0; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .metric__number { font-size: 36px; }
  .metric:not(:last-child)::after { display: none; }

  section { padding: 64px 0; }
  .section__eyebrow { font-size: 11px; }
  .section__title { font-size: 28px; }
  .section__desc { font-size: 16px; }

  .philosophy__grid { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .philosophy__item { padding: 32px 24px; }
  .philosophy__letter { font-size: 40px; margin-bottom: 16px; }
  .philosophy__name { font-size: 16px; }
  .philosophy__text { font-size: 14px; }

  .portfolio__grid { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .portfolio__card { padding: 32px 24px; }
  .portfolio__name { font-size: 20px; }
  .portfolio__desc { font-size: 14px; }

  .cta { padding: 80px 0; }
  .cta__title { font-size: 28px; }
  .cta__desc { font-size: 16px; }
  .cta__btn { padding: 14px 36px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand-text { max-width: 100%; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
