/* ==========================================================================
   Aquifer Capital — Main Stylesheet
   Brand colors from style guide:
     Navy primary:   #15224A (PMS 280 C)
     Near-black:     #090B25 (PMS 296 C)
     Tan/khaki:      #BBB2A4 (PMS 7534)  — accent only, not background
     Blue:           #248DC1 (PMS 2925 C) — accent & call-outs
     White:          #FFFFFF
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts & Reset
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #090B25;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #248DC1;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
  color: #15224A;
  outline: none;
}

a:focus-visible {
  outline: 2px solid #248DC1;
  outline-offset: 3px;
}

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   2. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: #15224A;
  letter-spacing: 0.04em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: 0.08em; text-transform: uppercase; }
h3 { font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; }
h4 { font-size: 1rem; letter-spacing: 0.04em; }

.section-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #248DC1;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  color: #15224A;
  margin-bottom: 0.5rem;
}

.section-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #6b7280;
  letter-spacing: 0.02em;
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: #f6f7f9;
}

.section-dark {
  background-color: #15224A;
  color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.title-rule {
  width: 48px;
  height: 3px;
  background: #248DC1;
  border: none;
  margin: 1.25rem auto 1.5rem;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   4. Navigation / Header
   -------------------------------------------------------------------------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(21, 34, 74, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}

#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(9, 11, 37, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo {
  display: flex;
  align-items: center;
  border: none;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.header-logo.logo-visible {
  opacity: 1;
}

.header-logo img {
  height: 40px;
  width: auto;
}

/* Primary nav */
#primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

#primary-nav a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #15224A;
  border: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

#primary-nav a:hover,
#primary-nav a.active {
  color: #248DC1;
  border-bottom-color: #248DC1;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  aria-label: "Toggle navigation";
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #15224A;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
#home {
  position: relative;
  min-height: 100vh;
  background-color: #15224A;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px; /* header height */
}

/* Decorative background SVG — brand chevron pattern */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg svg {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 58%;
  max-width: 780px;
  opacity: 0.12;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-logo {
  width: 280px;
  margin-bottom: 2.5rem;
}

.hero-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #BBB2A4;
  margin-bottom: 1.25rem;
  display: block;
}

.hero-tagline {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
  max-width: 22ch;
}

.hero-tagline strong {
  font-weight: 600;
  color: #ffffff;
}

.hero-rule {
  width: 48px;
  height: 2px;
  background: #248DC1;
  border: none;
  margin: 0 0 2.5rem;
}

.hero-description {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  max-width: 48ch;
  line-height: 1.75;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.35; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.6; }
}

/* --------------------------------------------------------------------------
   6. About Us Section
   -------------------------------------------------------------------------- */
#aboutus {
  background: #ffffff;
}


.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #e5e7eb;
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.pillar-card {
  background: #ffffff;
  padding: 2.5rem;
  position: relative;
  transition: background 0.2s ease;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #248DC1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-card:hover {
  background: #fafbff;
}

.pillar-number {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #BBB2A4;
  display: block;
  margin-bottom: 0.75rem;
}

.pillar-card h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #15224A;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   7. Investment Approach Section
   -------------------------------------------------------------------------- */
#invapproach {
  background-color: #f6f7f9;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.approach-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 2.75rem;
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.approach-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #248DC1, #15224A);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.approach-card:hover::after {
  transform: scaleX(1);
}

.approach-card:hover {
  border-color: #248DC1;
  box-shadow: 0 4px 24px rgba(36, 141, 193, 0.08);
}

.approach-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: #248DC1;
}

.approach-card h3 {
  color: #15224A;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.approach-subtitle {
  font-size: 0.88rem;
  color: #248DC1;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.approach-card p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   8. Strategies Section
   -------------------------------------------------------------------------- */
#services {
  background: #ffffff;
}

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

.strategy-card {
  border-top: 3px solid #BBB2A4;
  padding: 2.25rem 0 0;
  transition: border-color 0.2s ease;
}

.strategy-card:hover {
  border-color: #248DC1;
}

.strategy-card h3 {
  color: #15224A;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.strategy-card p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   9. Contact Section
   -------------------------------------------------------------------------- */
#contact {
  background: #090B25;
  color: #ffffff;
  text-align: center;
}

#contact .section-eyebrow {
  color: #BBB2A4;
}

#contact .section-title {
  color: #ffffff;
}

.contact-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  margin: 0 auto 3.5rem;
  max-width: 44ch;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact-group h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #BBB2A4;
  margin-bottom: 0.75rem;
}

.contact-group p,
.contact-group a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  border: none;
  display: block;
  transition: color 0.2s ease;
}

.contact-group a:hover {
  color: #248DC1;
}

.contact-rule {
  width: 48px;
  height: 1px;
  background: rgba(187, 178, 164, 0.3);
  border: none;
  margin: 0 auto 3rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  border-color: #248DC1;
  color: #248DC1;
  background: rgba(36, 141, 193, 0.06);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
#site-footer {
  background: #090B25;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.75rem 0;
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #248DC1;
}

/* --------------------------------------------------------------------------
   11. Fade-in animations
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   12. Print — force all animated elements visible
   -------------------------------------------------------------------------- */
@media print {
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   13. Responsive — Tablet (max 900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .approach-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-details {
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   13. Responsive — Mobile (max 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .section { padding: 4rem 0; }

  /* Header */
  .nav-toggle { display: flex; }

  #primary-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(21,34,74,0.1);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px rgba(9,11,37,0.08);
  }

  #primary-nav.open {
    display: block;
  }

  #primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  /* Hero */
  .hero-bg svg {
    width: 90%;
    opacity: 0.07;
    right: -20%;
  }

  .hero-logo { width: 200px; }
  .hero-tagline { font-size: 1.5rem; }

  /* About */
  .about-pillars {
    grid-template-columns: 1fr;
  }

  /* Strategies */
  .strategies-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-details {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-group {
    text-align: center;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
