/*────────────────────────────────────────────────────────────────────────
  0. DARK MODE OVERRIDES
────────────────────────────────────────────────────────────────────────*/
html.dark {
  background: var(--color-surface);
  color: var(--color-sand);
}
html.dark .card {
  background: var(--color-surface-raised);
  box-shadow: none;
}

html:not(.dark) .site-header {
  background: transparent; /* or var(--color-sand), etc. */
}

html.dark .site-header {
  background: transparent;
}

#mode-toggle {
  background: none;      /* no default grey/white fill */
  border: none;          /* no border */
  padding: 0;            /* no extra padding */
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: inherit;        /* pick up the page’s current text color */
}

/* remove any default focus outline in light mode if you don’t want it: */
#mode-toggle:focus {
  outline: none;
}


/*────────────────────────────────────────────────────────────────────────
  1. CUSTOM PROPERTIES & BASE TYPOGRAPHY
────────────────────────────────────────────────────────────────────────*/
:root {
  --font-sans:     'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --color-sand:    #d5ccc7;
  --color-ink:     #333333;
  --color-cyan:    #22d3ee;
  --color-orange:  #f97316;
  --color-stone:   #9ca3af;
  --color-surface:        #1d1d1d;
  --color-surface-raised: #262626;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background: var(--color-sand);
  color: var(--color-ink);
}

/*────────────────────────────────────────────────────────────────────────
  1a. HEADINGS & TYPE
────────────────────────────────────────────────────────────────────────*/
h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
p.intro {
  max-width: 48rem;
  margin: 1rem auto 2rem;
  font-size: 1.125rem;
}

/*────────────────────────────────────────────────────────────────────────
  2. SKIP LINK (if needed)
────────────────────────────────────────────────────────────────────────*/
.skip-link {
  position: absolute; width:1px; height:1px;
  padding: 0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}
.skip-link:focus {
  position: absolute; top:0.5rem; left:0.5rem;
  width:auto; height:auto; margin:0;
  padding:0.25rem 0.5rem;
  background:var(--color-cyan); color:var(--color-ink);
  clip:auto; overflow:visible; white-space:normal;
  border-radius:0.25rem; z-index:999;
}

/*────────────────────────────────────────────────────────────────────────
  3. CONTAINER BREAKPOINTS
────────────────────────────────────────────────────────────────────────*/
.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (max-width: 1023px) {
  .container { max-width: 40rem; }
}
@media (max-width: 639px) {
  .container { max-width: 100%; }
}

/* 3a. Editorial Article Image Layouts */

/* Flex row layout for image + content */
.editorial-image-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
}

/* Image container styles */
.editorial-image-container {
  flex: 0 0 320px;
  max-width: 320px;
}

.editorial-image-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #d5ccc7;
  box-shadow: 0 4px 24px rgba(51,51,51,0.08);
}

/* Content block styles */
.editorial-content {
  flex: 2;
}

/* Responsive stacking for mobile */
@media (max-width: 900px) {
  .editorial-image-row {
    flex-direction: column;
    gap: 1rem;
  }
  .editorial-image-container {
    max-width: 100%;
    margin-bottom: 1rem;
  }
}

/*────────────────────────────────────────────────────────────────────────
  4. TYPOGRAPHY HELPERS
────────────────────────────────────────────────────────────────────────*/
.text-center   { text-align: center; }
.text-orange   { color: var(--color-orange); }
.hover-underline:hover { text-decoration: underline; }

/*────────────────────────────────────────────────────────────────────────
  Global link reset: inherit site colors + orange on hover
────────────────────────────────────────────────────────────────────────*/

/*a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--color-orange);
}*/

a,
a:visited {
  color: var(--color-link, #7C7C7C); /* default blue, easily swapped for brand */
  text-decoration: underline;
  transition: color 0.15s, text-decoration 0.15s;
}
a:hover,
a:focus {
  color: var(--color-orange, #FF9900); /* brand orange on hover/focus */
  text-decoration: underline;
}
a:active {
  color: #b35f00;
}


/*────────────────────────────────────────────────────────────────────────
  CASE STUDIES LIST (bullet-spacing)
────────────────────────────────────────────────────────────────────────*/
.case-studies-list {
  display: inline-block;
  list-style-position: inside;
  padding-left: 1rem;
  margin: 0 auto;       /* center the inline-block */
  text-align: left;     /* keep text aligned left */
}
.case-studies-list li + li {
  margin-top: 0.5rem;   /* spacing between items */
}

/*────────────────────────────────────────────────────────────────────────
  Text-Area & Input styling (base reset)
────────────────────────────────────────────────────────────────────────*/
input, textarea {
  font-family: var(--font-sans);
  background: none;
  color: inherit;
}

/*────────────────────────────────────────────────────────────────────────
  5. BUTTONS
────────────────────────────────────────────────────────────────────────*/
button,.btn-accent, .btn-accent:visited,
.btn-accent:active {
   font-family: var(--font-sans), sans-serif;
  font-weight: 600;  /* Or exact weight you want! */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  background: var(--color-orange);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
  border: none !important;
  outline: none;
  box-shadow: none;
}
.btn-accent:hover {
  background: #ea580c;
  color: #fff !important;
}

/*────────────────────────────────────────────────────────────────────────
  6. CARDS
────────────────────────────────────────────────────────────────────────*/
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.founder-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.2rem 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) {
  .founder-card {
    flex-direction: column;
    align-items: left;
    text-align: left;
  }
  .founder-card img {
    margin-bottom: 1rem;
  }
  .founder-card > div {
    max-width: 100%;
  }
}

/*────────────────────────────────────────────────────────────────────────
  7. GRID LAYOUT & TEAM GRID
────────────────────────────────────────────────────────────────────────*/
.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
}

.team-section {
  padding: 2rem 1rem 3rem 1rem;
  max-width: 1000px;
  margin: auto;
}

.team-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -.5px;
  text-align: left;
}

.team-grid {
  display: grid;
  gap: 2.2rem 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.team-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border-radius: 0.8rem;
  padding: 1.1rem 1rem;
  transition: box-shadow 0.2s;
}
.team-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.10);
}

.team-avatar {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 0.16rem;
}

.team-name {
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}
.team-role {
  font-size: 0.97rem;
  color: var(--color-stone, #a0acc1);
  margin-bottom:0.4rem;
}
.team-bio {
  font-size: .99rem;
  line-height: 1.5;
}
@media (max-width: 740px) {
  .team-grid {
    gap: 1.3rem 0;
    grid-template-columns: 1fr;
  }
  .team-section {
    padding: 1.2rem 2vw 2rem 2vw;
  }
}

/*────────────────────────────────────────────────────────────────────────
  8. SPACING UTILITIES
────────────────────────────────────────────────────────────────────────*/
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.mt-24 { margin-top: 6rem; }
.space-y-24 > * + * { margin-top: 6rem; }

/*────────────────────────────────────────────────────────────────────────
  9. HEADER & NAV (mobile dropdown sits just under header; icons closer)
────────────────────────────────────────────────────────────────────────*/
/* 1) Base header layout */
.site-header {
  position: relative;      /* so that absolute children (dropdown) are positioned relative to this */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--color-surface); /* ensure header stays dark even in light mode */
  z-index: 1000;            /* float above page content */
}

/* Logo/brand on the left */
.site-header .brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: bold;
  color: inherit;
  text-decoration: none;
}

/* Container around hamburger + nav + dark-mode toggle */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 2) Hamburger (only visible on mobile) */
.nav-toggle {
  display: none;             /* hidden by default; shown below 640px */
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
}

/* 3) Dark-mode toggle (always visible) */
.mode-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  padding: 0;
  line-height: 1;
}

/* 4) Mobile dropdown menu (hidden by default) */
#nav-container .nav-menu {
  display: none;             /* hide until “.open” is added */
  position: absolute;        /* position below the header */
  top: 100%; 
  /* left: 0; */
  right: 0;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 1rem;
  background: var(--color-surface-raised);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  list-style: none;
  z-index: 999;
}

/* 4a) When the menu has the “open” class, show it */
#nav-container .nav-menu.open {
  display: flex;
}

/* 5) Mobile dropdown link styling */
#nav-container .nav-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-sand);
  text-decoration: none;
}
#nav-container .nav-menu a:hover {
  color: var(--color-orange);
}

/* 6) Desktop layout (≥640px): show menu horizontally, hide hamburger */
@media (min-width: 640px) {
  .nav-toggle {
    display: none;
  }

  /* Override mobile rules: show horizontally, remove absolute, reset background */
  #nav-container .nav-menu {
    display: flex !important;
    position: static;
    top: auto; left: auto; right: auto;
    flex-direction: row;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    list-style: none;
  }

  /* Desktop link appearance (inherit site colors) */
  #nav-container .nav-menu a {
    display: inline-block;
    padding: 0; /* no extra padding on desktop */
    color: inherit;
  }
  /* Active (current) page link */
  #nav-container .nav-menu a[aria-current="page"] {
    font-weight: 600;               /* boldish */
    border-bottom: 3px solid currentColor;
    text-underline-offset: 4px;     /* keeps underline from kissing text */
    color: var(--color-orange);
}

/* 7) Breadcrumb Trail */

.breadcrumb { margin: 0 0 1rem; padding: 0; list-style: none; font-size: .875rem; }
.breadcrumb li { display: inline; }
.breadcrumb li+li::before { content: "›"; margin: 0 .4em; color: #777; }
.breadcrumb a { text-decoration: none; }

}
/* Breadcrumb spacing / typography tweak */
#breadcrumb {                /* <nav> itself */
  margin-top: 1rem;          /* push it away from the nav-bar */
}

.breadcrumb {                /* <ol> */
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  line-height: 1.2;          /* keeps it compact */
}

.breadcrumb li { display: inline; }
.breadcrumb li + li::before {
  content: "›";
  margin: 0 .4em;
  color: #777;
}
.breadcrumb a { text-decoration: none; }

/*────────────────────────────────────────────────────────────────────────
  10. CONTACT FORM LAYOUT
────────────────────────────────────────────────────────────────────────*/
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
}
.contact-form .form-row {
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .contact-form .form-row.half-width {
    grid-column: span 1;
  }
  .contact-form .form-row.message {
    grid-column: 1 / -1;
  }
  .contact-form .form-row.actions {
    grid-column: 1 / -1;
    text-align: center;
  }
}
.contact-form label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-stone);
  border-radius: 0.5rem;
  background: var(--color-sand);
  color: var(--color-ink);  
  font-family: var(--font-sans);
}

/* Optional: make placeholder text slightly lighter */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-stone);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}
.contact-form .btn-accent {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/*────────────────────────────────────────────────────────────────────────
  11. NEWSLETTER (Footer)
────────────────────────────────────────────────────────────────────────*/
.newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 24rem;
  margin: 0 auto;
  padding: 1rem 0;
}
.newsletter label {
  display: block;
  font-weight: 600;
}
.newsletter input {
  padding: 0.5rem;
  border: 1px solid var(--color-stone);
  border-radius: 0.5rem;
  background: var(--color-sand);
  color: var(--color-ink);  
  font-family: var(--font-sans);
  width: 100%;
  padding: 0.75rem; 
}

/* Optional: make placeholder text slightly lighter */
.newsletter input::placeholder,
.newsletter textarea::placeholder {
  color: var(--color-stone);
}

/*.newsletter .btn-accent {
  margin-top: 0.5rem;
}*/

.newsletter button.btn-accent {
  width: 100%;
  margin-top: 0.75rem;
}

.newsletter .powered {
  font-size: 0.75rem;
  color: var(--color-stone);
  margin-top: 0.5rem;
}

.newsletter .powered a {
  text-decoration: underline;
  color: inherit;
}

/*────────────────────────────────────────────────────────────────────────
  12. CUSTOM SPACING OVERRIDES
────────────────────────────────────────────────────────────────────────*/

/* Give each direct child inside main some vertical gap */
main.container > * + * {
  margin-top: 3rem;
}
/* Tweak headings & text rhythm */
main.container h1 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-size: 2.5rem;
}
main.container p {
  margin-bottom: 2rem;
  line-height: 1.6;
}
main.container h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
/* Lists inside any page container: breathing room */
main.container ul {
  margin-bottom: 2rem;
  line-height: 1.6;
}
main.container ul li {
  margin-bottom: 1rem;
}
main.container ul li:last-child {
  margin-bottom: 0;
}

/*────────────────────────────────────────────────────────────────────────
  13. FOOTER SPACING TWEAK
────────────────────────────────────────────────────────────────────────*/
footer {
  margin-top: 3rem;
}
/* ──────────────────────────────────────────────────────────────────────────
   HEADER & NAV (vanilla-CSS replacement for your Tailwind version)
   Copy/paste this entire block into your styles.css (below everything else).
─────────────────────────────────────────────────────────────────────────── */

/* 1. SITE HEADER: horizontal container, brand on left, controls on right */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
}

/* Brand/logo */
.site-header .brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  color: inherit;
}

/* 2. HEADER ACTIONS: group hamburger, nav-links, and dark-mode toggle */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 3. HAMBURGER BUTTON: hidden on large screens, visible on mobile */
.nav-toggle {
  display: none;        /* hidden by default (desktop) */
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  color: inherit;
}

/* 4. NAV MENU (desktop style by default: flex row) */
.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Nav links inherit color + underline on hover */
.nav-menu a {
  text-decoration: none;
  color: inherit;
}
.nav-menu a:hover {
  color: var(--color-orange);
}

/* 5. DARK-MODE BUTTON (pure emoji, no background) */
.mode-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  color: inherit;
}

/* 6. MOBILE-ONLY LAYOUT: hide desktop nav, show hamburger, stack links */
@media (max-width: 639px) {
  /* (a) Show hamburger on small screens */
  .nav-toggle {
    display: inline-block;
  }

  /* (b) Hide the desktop nav-menu by default */
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  /* (c) When .nav-menu has class="open", show it as a vertical list */
  .nav-menu.open {
    display: flex;
  }

  /* (d) Full-width hit area for mobile links */
  .nav-menu a {
    display: block;
    padding: 0.5rem 0;
  }
}
/*────────────────────────────────────────────────────────────────────────
  PATCH: Fix header height + hamburger/dropdown positioning
────────────────────────────────────────────────────────────────────────*/

/* 1) Reduce the site-header vertical padding back to what it was before */
.site-header {
  /* If you had changed this to 1rem automatically, reduce to 0.5rem now: */
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* 2) Nudge the hamburger and dark-mode buttons closer on mobile */
.header-actions {
  gap: 0.5rem;  /* shrink gap between ☰ and 🌙 */
}

/* 3) Force the dropdown menu to align directly under the header,
      not out in the middle of the page                           */
#nav-container .nav-menu {
  top: 100%;     /* keep this exactly under “.site-header” */
  transform: none; 
}

/* 4) When open, allow the close-click on the hamburger to hide again */
#nav-container .nav-menu.open {
  display: flex !important;  /* ensure it shows/hides properly */
}

/* ------------ NAV MENU LINK STATES (consolidated) ------------ */

.nav-menu a {                       /* 1. base state */
  text-decoration: none;
  color: inherit;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {         /* 2. hover + keyboard focus */
  color: var(--color-orange);
}

.nav-menu a[aria-current="page"] {  /* 3. active page — keep last */
  font-weight: 600;
  color: var(--color-orange);
  border-bottom: 3px solid currentColor;
  text-underline-offset: 4px;
}

.nav-menu a[aria-current="page"]:hover,
.nav-menu a[aria-current="page"]:focus-visible { /* keep colour */
  color: var(--color-orange);
}
/* ------------ /NAV MENU LINK STATES ------------ */
