/* ==========================================================================
   1. Theming & Variables
   ========================================================================== */
:root {
  /* Colors */
  --navy-dark: #0d1b2a;
  --navy-medium: #1b263b;
  --navy-light: #415a77;
  --silver: #e0e1dd;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-300: #e9ecef;
  --accent-primary: #007bff; /* A brighter, more standard blue */
  --accent-secondary: #6c757d;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;

  /* Typography */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;
}

/* ==========================================================================
   2. Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background-color: var(--navy-dark);
  color: var(--silver);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--navy-dark);
  text-decoration: underline;
}

.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;
}

/* ==========================================================================
   3. Layout & Helpers
   ========================================================================== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container-narrow {
  max-width: 800px;
}

.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--accent-primary);
  color: white; padding: var(--space-2) var(--space-3); z-index: 1000;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--silver);
  margin-bottom: 1.5rem;
}

.eyebrow-text {
  display: block; font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent-primary);
}

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

/* ==========================================================================
   4. Header / Navigation (White Theme)
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background-color: var(--white);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-300);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  padding: var(--space-2) 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand .logo-text {
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--navy-dark); /* Dark text for white background */
}

.menu {
  display: flex;
  align-items: center;
}

.menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-4);
}

.nav-link {
  color: var(--navy-dark); /* Dark text */
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
}

.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
  color: var(--accent-primary); /* Hover color */
  text-decoration: none;
}

.nav-link:hover::after, .nav-link:focus::after {
  width: 100%;
}

.menu-toggle {
  display: none; /* Hidden on desktop */
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 120px 0 100px;
  background-image: radial-gradient(circle at 80% 50%, var(--navy-medium), var(--navy-dark) 60%);
  overflow: hidden;
}

.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 100px; background-color: var(--navy-dark);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  align-items: center; gap: var(--space-6); position: relative; z-index: 2;
}

.hero-copy h1 {
  font-size: 3.2rem; font-weight: 800; line-height: 1.15; letter-spacing: -1.5px;
  background: linear-gradient(180deg, var(--white) 80%, var(--silver));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin: var(--space-4) 0;
}

.hero-copy .lead {
  font-size: 1.2rem; color: var(--silver); max-width: 55ch;
}

.hero-pane-image {
  display: flex; align-items: center; justify-content: center; height: 100%;
}

.hero-pane-image img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   6. Content Sections (About, Cards, etc.)
   ========================================================================== */
#main {
  flex-grow: 1;
  padding-top: 80px; /* Adjust for fixed header height */
}

.card {
  background-color: var(--navy-medium); padding: var(--space-4);
  border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card p:last-child {
  margin-bottom: 0;
}

.about-me {
  padding: 4rem 0;
}

.about-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  align-items: flex-start; gap: 3rem;
}

.about-image-wrapper {
  border-radius: 12px; overflow: hidden; border: 4px solid var(--navy-light);
}

.about-image-wrapper img {
  display: block; width: 100%; height: auto;
}

.about-content p {
  max-width: 65ch; margin-bottom: 1rem;
}

.why-work-with-me {
  background-color: var(--navy-medium); padding: 4rem 0;
  border-top: 1px solid var(--navy-light); border-bottom: 1px solid var(--navy-light);
}

.why-work-with-me .section-title {
  margin-bottom: 3rem;
}

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center; padding: 2rem; background-color: var(--navy-dark);
  border-radius: 8px; border: 1px solid var(--navy-light);
}

.feature-icon {
  width: 50px; height: 50px; margin: 0 auto 1.5rem auto; color: var(--accent-primary);
}

.feature-card h3 {
  font-size: 1.25rem; font-weight: 600; color: var(--white); margin: 0 0 0.5rem;
}

.feature-card p {
  color: var(--silver); line-height: 1.6; margin: 0;
}

/* ==========================================================================
   7. Buttons & Forms
   ========================================================================== */
.btn {
  display: inline-block; font-weight: 600; text-align: center;
  vertical-align: middle; cursor: pointer; user-select: none;
  background-color: transparent; border: 1px solid transparent;
  padding: 0.65rem 1.25rem; font-size: 0.9rem; line-height: 1.5;
  border-radius: 6px; transition: all 0.2s ease-in-out;
}

.btn:hover {
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem; font-size: 0.8rem;
}

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

.btn-primary:hover {
  opacity: 0.9;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.footer {
  background-color: var(--navy-medium); color: var(--silver);
  padding: var(--space-4) 0; border-top: 4px solid var(--navy-light);
}

.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}

.footer-heading {
  display: block; font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: var(--space-3);
}

.footer p, .footer address {
  margin: 0 0 var(--space-3); font-style: normal;
}

.footer .tiny {
  font-size: 0.75rem; opacity: 0.7; line-height: 1.4;
}

.disclosure-text {
  font-weight: 600;
}

.link-list {
  list-style: none; padding: 0; margin: 0;
}

.link-list li {
  margin-bottom: var(--space-2);
}

.link-list a {
  color: var(--silver);
}

.link-list a:hover {
  color: var(--accent-primary);
}

.footer-col-logo {
  display: flex; align-items: center; justify-content: center;
}

.ehl-badge-footer {
  display: block; height: 80px; width: auto;
}

.footer-bottom-row {
  grid-column: 1 / -1; text-align: center; margin-top: var(--space-4);
  padding-top: var(--space-4); border-top: 1px solid var(--navy-light);
}

/* ==========================================================================
   9. Media Queries
   ========================================================================== */
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 899px) {
  /* --- Header --- */
  .menu-list {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background-color: var(--white);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--gray-300);
  }
  .menu-list.open {
    max-height: 500px;
  }
  .menu-list li {
    margin: 0; border-bottom: 1px solid var(--gray-300);
  }
  .menu-list a {
    display: block; padding: var(--space-3) var(--space-4); width: 100%;
  }
  .btn {
    width: 100%; border-radius: 0; text-align: left;
  }
  .menu-toggle {
    display: block; position: relative; width: 24px; height: 20px;
    background: none; border: none; padding: 0; cursor: pointer;
  }
  .menu-bars, .menu-bars::before, .menu-bars::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 2px;
    background-color: var(--navy-dark); /* Dark bars for white background */
    transition: transform 0.3s ease, top 0.3s ease;
  }
  .menu-bars { top: 50%; transform: translateY(-50%); }
  .menu-bars::before { top: -8px; }
  .menu-bars::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] .menu-bars { background-color: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-bars::before { transform: rotate(45deg); top: 0; }
  .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: rotate(-45deg); top: 0; }

  /* --- Hero --- */
  .hero { padding: 80px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { font-size: 2.5rem; }
  .hero-copy .lead { font-size: 1.1rem; margin-left: auto; margin-right: auto; }

  /* --- About Page --- */
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrapper { max-width: 300px; margin: 0 auto 2rem auto; }
  .about-content { text-align: center; }
}


/* ==========================================================================
   Logo Styling
   ========================================================================== */
  .brand { display:flex; align-items:center; gap:.6rem; }
  .brand .logo-text { order:1; }

  /* Bigger logo */
  .brand .brand-mark {
    order:2;
    width:56px;
    height:56px;
    object-fit:contain;
  }
  @media (min-width:768px){
    .brand .brand-mark {
      width:72px;
      height:72px;
    }
  }
