/* ===== Shared styles across all DFC pages ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #012c46;
  --navy-light: #0a3d5c;
  --primary: #63b3bf;
  --tertiary: #a5dce0;
  --lt-blue: #dff2ff;
  --bone: #f3f6f8;
  --accent: #f6821f;
  --white: #ffffff;
  --charcoal: #2d3239;
  --text: #3a3f47;
  --gray: #5f6672;
  --light-gray: #9ca3af;
  --font: 'Figtree', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .site-footer {
  margin-top: auto;
}

@media (min-width: 769px) {
  body { font-size: 18px; }
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(1, 44, 70, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo img { height: 32px; width: auto; }

nav ul { display: flex; gap: 2.25rem; }

nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  opacity: 0.8;
  transition: opacity 0.2s;
}

nav a:hover, nav a.active { opacity: 1; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  margin-left: auto;
  margin-right: -0.6rem;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-toggle span + span {
  margin-top: 5px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #e5741a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(246,130,31,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: var(--navy);
  padding: 7.5rem 0 3rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.breadcrumb {
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--tertiary);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.breadcrumb a:hover { opacity: 1; }

/* ===== Page Content ===== */
.page-content {
  padding: 3.5rem 0 5rem;
}

.content-body {
  max-width: 800px;
}

.content-body .lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.content-body h2:first-of-type {
  margin-top: 0;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1rem;
}

.content-body a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1.5px solid var(--primary);
  transition: border-color 0.2s;
}

.content-body a:hover {
  border-color: var(--navy);
}

.content-body hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 3rem 0;
}

/* ===== Members section (full-width breakout) ===== */
.members-section {
  padding: 4rem 0;
  background: var(--white);
}

.members-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--bone);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  border: 1px solid transparent;
}

.member-card:hover {
  background: var(--white);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.member-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.member-arrow {
  flex-shrink: 0;
  color: var(--light-gray);
  transition: color 0.2s, transform 0.2s;
  margin-left: 0.75rem;
}

.member-card:hover .member-arrow {
  color: var(--primary);
  transform: translate(2px, -2px);
}

/* ===== Director showcase (full-width breakout) ===== */
.director-showcase {
  background: var(--bone);
  padding: 4rem 0;
}

.director-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.director-img {
  width: 300px;
  height: 370px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.director-info h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.director-role {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.director-info p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.director-contact {
  margin-top: 0.5rem;
  color: var(--gray) !important;
}

.director-contact a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1.5px solid var(--primary);
}

/* ===== Resource list (reusable) ===== */
.resources-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}

.resource-card {
  display: grid;
  grid-template-columns: 5px 1fr auto;
  align-items: center;
  background: var(--white);
  padding: 1.75rem 2rem 1.75rem 0;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
}

.resource-card:last-child { border-bottom: none; }
.resource-card:hover { background: rgba(99,179,191,0.05); }

.resource-card .accent-bar {
  width: 5px;
  align-self: stretch;
}

.resource-card:nth-child(5n+1) .accent-bar { background: var(--primary); }
.resource-card:nth-child(5n+2) .accent-bar { background: var(--accent); }
.resource-card:nth-child(5n+3) .accent-bar { background: var(--navy); }
.resource-card:nth-child(5n+4) .accent-bar { background: var(--tertiary); }
.resource-card:nth-child(5n+5) .accent-bar { background: var(--gray); }

.resource-card-body { padding: 0 2rem; }

.resource-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.resource-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: gap 0.2s, color 0.2s;
  white-space: nowrap;
  padding-right: 0.5rem;
}

.resource-card:hover .card-link { gap: 0.55rem; color: var(--primary); }

/* ===== Project cards ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

a.project-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 2.25rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-card p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.65;
}

.project-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: gap 0.2s, color 0.2s;
}

.project-card:hover .card-link { gap: 0.55rem; color: var(--primary); }

/* Section helpers */
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-logo img {
  height: 64px;
  width: auto;
  opacity: 0.85;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(1,44,70,0.97);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    gap: 0;
  }

  nav ul.open { display: flex; }

  nav li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  nav li:last-child { border: none; }

  nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
    opacity: 1;
  }

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

  .director-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .director-img { width: 200px; height: 250px; }

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

  .resource-card { grid-template-columns: 4px 1fr; grid-template-rows: auto auto; }
  .resource-card .card-link { grid-column: 2; padding: 0.5rem 2rem 0; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
