/* =========================================================
   GLOBAL / RESET
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #111;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessibility helper */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* =========================================================
   HEADER / NAV (DESKTOP DEFAULT)
   ========================================================= */

/* Header overlays hero */
.site-header {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 0;
}

.page-template .header-inner {
  justify-content: space-between;
}

/* Smaller hero for all inner pages */
.page-template .hero {
  min-height: 35vh;
  max-height: 520px;
}

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

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

/* Force logo left + nav right on inner pages */
.page-template .header-inner {
  display: flex;
  align-items: center;
}

.page-template .nav {
  margin-left: auto;
}

.nav a { color: #fff; opacity: 0.95; }
.nav a:hover { opacity: 1; }

/* Hide mobile controls on desktop */
.nav-toggle,
.mobile-nav {
  display: none;
}

/* =========================================================
   HERO (SHARED)
   ========================================================= */
.hero {
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  place-items: center;
  padding-top: 90px; /* space for header */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px 0;
}

.hero-logo {
  max-width: 520px;
  width: 80%;
  height: auto;
  margin: 0 auto 12px;
}


.hero-tagline { margin: 0; opacity: 0.9; }

/* =========================================================
   HOME PAGE SECTIONS (index.html)
   ========================================================= */

/* Cards */
.cards { padding: 72px 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h2 {
  position: relative;
  margin: 0;
  color: #fff;
  font-weight: 500;
  font-size: 28px;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

/* Purpose */
.purpose { padding: 56px 0 90px; }

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.purpose h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 45px;
  color: #0c1b33;
  letter-spacing: -0.5px;
  margin: 0;
}

.purpose p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  text-align: center;
}

/* Opportunities */
.opportunities {
  position: relative;
  background-image: url("../images/Opportunities Background (Middle).jpg");
  background-size: cover;
  background-position: center;
  padding: 160px 0;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  filter: brightness(1.05) contrast(1.15);
}

.opportunities-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.opportunities-inner {
  position: relative;
  max-width: 850px;
}

.opportunities h2 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 24px;
}

.opportunities p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid #ffffff;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  transition: 0.3s ease;
}

.cta-button:hover {
  background: #ffffff;
  color: #0c1b33;
}

/* Two-card section (below Opportunities) */
.two-cards {
  background: #eef6fb;
  padding: 90px 0;
}

.two-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 520px));
  justify-content: center;
  gap: 30px;
}

.two-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border: 4px solid rgba(255,255,255,0.7);
}

.two-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.two-card h2 {
  position: relative;
  margin: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  color: #111;
  text-shadow: 0 1px 10px rgba(255,255,255,0.35);
}

/* =========================================================
   FIRM OVERVIEW PAGE (firm_overview.html)
   ========================================================= */

/* Smaller hero on firm overview page */
.firm-overview .hero {
  min-height: 35vh;
  max-height: 520px;
}

/* Title sizing in hero */
.firm-overview .hero h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(34px, 6vw, 60px);
}

/* Light blue hero overlay for this page:
   NOTE: keep this selector matching whatever you used in your HTML.
   If your <body> has class="page-template", this applies ONLY there. */
.page-template .hero-overlay {
  background: linear-gradient(
    rgba(80, 170, 210, 0.25),
    rgba(40, 120, 160, 0.45)
  );
}

/* Firm Overview two-column content block */
.firm-content {
  background: #f2f2f2;
  padding: 100px 0;
}

.firm-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.firm-left h2 {
  font-size: 40px;
  font-weight: 600;
  margin: 0;
}

.firm-right {
  max-width: 650px;
}

.firm-right p {
  line-height: 1.8;
  margin-bottom: 28px;
  color: #333;
}

/* Light blue block above footer (firm overview page section) */
.firm-divider {
  height: 120px;
  background: #d6eaf2;
}

/* =========================================================
   INVESTMENT CRITERIA PAGE (investment_criteria.html)
   ========================================================= */
.investment-criteria .hero {
  min-height: 35vh;
  max-height: 520px;
}

.investment-criteria .hero h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(34px, 6vw, 60px);
}

/* =========================================================
   LEADERSHIP TEAM PAGE (leadership_team.html)
   ========================================================= */
.leadership-team .hero {
  min-height: 35vh;
  max-height: 520px;
}

.leadership-team .hero h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(34px, 6vw, 60px);
}

/* =========================================================
   ENVIRONMENTAL RESOURCES PAGE (environmental_resources.html)
   ========================================================= */
.environmental-resources .hero {
  min-height: 35vh;
  max-height: 520px;
}

.environmental-resources .hero h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(34px, 6vw, 60px);
}

/* =========================================================
   CONTACT PAGE (contact.html)
   ========================================================= */
.contact-page .hero {
  min-height: 35vh;
  max-height: 520px;
}

.contact-page .hero h1 {
  font-weight: 500;
  font-size: clamp(34px, 6vw, 60px);
}

/* =========================================================
   FOOTER (SHARED)
   ========================================================= */
.site-footer {
  padding: 64px 0 24px;
  border-top: 1px solid #eee;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  max-width: 220px;
  margin-bottom: 24px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 400;
  color: #6f6f6f;
}

.site-footer p { margin: 0; line-height: 1.8; color: #666; }

.footer-links h3 {
  font-weight: 400;
  margin-bottom: 16px;
  color: #6f6f6f;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: #444;
  transition: 0.2s ease;
}

.footer-links a:hover { color: #2b63ff; }

/* Footer bottom (clean, airy) */
.footer-bottom {
  margin-top: 80px;
  padding: 18px 0 26px;
  border-top: none;
}

.footer-bottom small {
  display: block;
  color: #9a9a9a;
  font-size: 16px;
  letter-spacing: 0.2px;
}

/* =========================================================
   RESPONSIVE (MOBILE)
   ========================================================= */
@media (max-width: 900px) {
      /* Hide logo on mobile */
  .logo {
    display: none;
  }
  /* NAV: hide desktop links, show hamburger */
  .nav > a { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    padding: 10px 12px;
    border: 2px solid rgba(255,255,255,0.8);
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    margin-right: 16px;
  }

  /* Right-aligned header/nav stack */
  .header-inner {
    flex-direction: column;
    align-items: flex-end;
  }

  .nav {
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
  }

  .nav-toggle { align-self: flex-end; }

  /* Mobile dropdown: hidden by default; shown when [hidden] removed by JS */
  .mobile-nav { display: none; }

  .mobile-nav[hidden] { display: none; }
  .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
  }

  .mobile-nav a {
    color: #fff;
    font-size: 16px;
  }

  /* Layout stacks */
  .cards-grid { grid-template-columns: 1fr; }
  .purpose-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .two-cards-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .firm-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .firm-left h2 { font-size: 32px; }

  .firm-divider { height: 80px; }
}