/* ==========================================================================
   FILFIL IP — Global stylesheet
   Palette: deep navy base, warm gold accent, light neutral surfaces
   Fonts:   Playfair Display (display), Inter (body) — loaded via Google Fonts
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-deep: #071527;
  --navy-soft: #14304f;
  --gold: #c9a227;
  --gold-soft: #e3c565;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f5f7fa;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 1140px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(7, 21, 39, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */

h1, h2, h3, .display { font-family: var(--font-display); color: var(--navy); font-weight: 600; line-height: 1.2; }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 21, 39, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 38px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-links a.active { color: #fff; border-bottom-color: var(--gold); }
.nav-links .nav-cta {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 8px 20px;
  color: var(--gold-soft);
}
.nav-links .nav-cta:hover { background: var(--gold); color: var(--navy-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(201, 162, 39, 0.16), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(7, 21, 39, 0.55) 0%, rgba(11, 31, 58, 0.35) 55%, rgba(20, 48, 79, 0.55) 100%);
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 20%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 24px 120px;
}
.hero h1 { color: #fff; max-width: 15em; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero .lead { color: rgba(255, 255, 255, 0.82); margin: 1.4rem 0 2.2rem; }
.hero-page { text-align: left; }
.hero-page .hero-inner { padding: 70px 24px 64px; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-deep); box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35); }
.btn-outline { border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff; margin-left: 12px; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); color: #fff; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section-alt { background: var(--surface-alt); }
.section-navy { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255, 255, 255, 0.82); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 0.9rem; color: var(--ink-soft); }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201, 162, 39, 0.5); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card .card-link { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: 0.9rem; color: var(--gold); }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}
.section-navy .chip { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #fff; }

/* ---------- Stats band ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--gold-soft); }
.stat-label { font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.team-card { text-align: left; overflow: hidden; padding: 0; }
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.team-card .team-meta { padding: 22px 24px 26px; }
.team-card h3 { margin-bottom: 0.2rem; }
.team-role { color: var(--gold); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.team-card p { margin-top: 0.6rem; }

/* ---------- Profile page ---------- */

.profile-layout { display: grid; grid-template-columns: 340px 1fr; gap: 54px; align-items: start; }
.profile-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.profile-contact { margin-top: 1.6rem; font-size: 0.95rem; }
.profile-contact li { list-style: none; margin-bottom: 0.55rem; color: var(--ink-soft); }
.profile-contact a { font-weight: 600; }
.profile-body h2 { margin: 2.4rem 0 0.9rem; font-size: 1.45rem; }
.profile-body h2:first-child { margin-top: 0; }
.profile-body ul { padding-left: 1.2rem; color: var(--ink-soft); }
.profile-body li { margin-bottom: 0.45rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.badge {
  background: rgba(11, 31, 58, 0.06);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- FAQ ---------- */

.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: var(--surface); }
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- Publications ---------- */

.pub-list { list-style: none; }
.pub-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.pub-list li strong { color: var(--navy); }

/* ---------- Contact ---------- */

.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 54px; align-items: start; }
.contact-info h3 { margin: 1.6rem 0 0.4rem; font-size: 1.05rem; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p, .contact-info a { color: var(--ink-soft); }
.contact-info a { font-weight: 600; color: var(--navy); }
.contact-info a:hover { color: var(--gold); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-field label .req { color: var(--gold); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
  background: #fff;
}
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); }
.form-consent input { margin-top: 4px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Insights ---------- */

.article-card { display: flex; flex-direction: column; }
.article-card .article-date { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 20em; margin: 0 auto 1.2rem; }
.cta-band p { max-width: 38em; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); padding: 60px 0 30px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-logo { height: 30px; width: auto; margin-bottom: 0.9rem; }
.footer-tagline { font-style: italic; color: rgba(255, 255, 255, 0.55); margin-bottom: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-photo { max-width: 340px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero-inner { padding: 80px 24px 88px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1rem; }
  .nav-links .nav-cta { display: inline-block; margin-top: 10px; padding: 10px 24px; }
}
