/* ======================================================
   ROOT VARIABLES
====================================================== */
:root {
  --cream: #f7f4ee;
  --maroon: #8b1e2d;
  --navy: #1f2a44;
  --text: #2b2b2b;
  --navy-rgb: 31, 42, 68;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

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

/* ======================================================
   HEADER / NAVIGATION
====================================================== */
header {
  background: var(--cream);
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--maroon);
}

/* ---------- Desktop Nav ---------- */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link,
.dropdown-toggle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover,
.dropdown-toggle:hover {
  color: var(--maroon);
}

/* ---------- Connect Dropdown ---------- */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: "▾";
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--cream);
  border-radius: 8px;
  min-width: 160px;

  display: flex;
  flex-direction: column;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  padding: 0.75rem 1rem;
  color: var(--navy);
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: #6f1723;
}

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Mobile Dropdown ---------- */
.mobile-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--maroon);
}

.mobile-dropdown.open {
  display: flex;
}

.mobile-dropdown a {
  padding: 1rem 2rem;
  color: var(--cream);
  font-weight: 600;
}

.mobile-dropdown a:hover {
  background: #6f1723;
}

/* ======================================================
   HERO (HOME PAGE)
====================================================== */
.hero {
  width: 100%;
  height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("/photos/norn-bigger-background.png") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 5%;
  color: white;
}

.hero h2 {
  font-size: 3rem;
  margin: 0 0 0.5rem 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero .hero-btn {
  background: var(--maroon);
  color: var(--cream);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.hero .hero-btn:hover {
  background: #6f1723;
}

/* ======================================================
   PAGE HERO (INTERIOR PAGES)
====================================================== */
.page-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 150px;
  background:
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    url("/photos/waves.jpeg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.page-hero h2 {
  font-size: 1.75rem;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* ======================================================
   SECTIONS
====================================================== */
section {
  padding: 4rem 3rem;
  margin: auto;
}

section h3 {
  font-size: 2rem;
  color: var(--maroon);
  margin-bottom: 1rem;
}

/* ======================================================
   TEAM CARDS
====================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.card {
  background: #f3f0eb;
  padding: 0.25rem;
  border-radius: 6px;
  text-align: center;
}

.card img {
  width: 100%;
  height: 260px;        /* pick a consistent height you like */
  object-fit: cover;    /* crops instead of stretching */
  object-position: center;
  border-radius: 6px;
  display: block;       /* removes inline-image baseline gap */
}

.card h3 {
  color: var(--maroon);
}
.card p {
  margin-top: 0.1rem;
  margin-bottom: 0.4rem;
}
/* ---------- Ultra-tight Card Divider ---------- */
.card h3 {
  margin-bottom: 0.15rem;
}

.card-divider {
  display: flex;
  justify-content: center;
  margin: 0.05rem 0 0.1rem;
}

.card-divider svg {
  width: 20px;
  fill: var(--navy);
  opacity: 0.85;
}
/* ---------- TEAM INTRO ---------- */
.team-intro-wrapper {
  display: flex;
  justify-content: center;

}

.team-intro {
  max-width: 1000px;
  background: #f3f0eb;
  padding: 0.25rem 0.25rem;
  border-radius: 6px;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.team-section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem; /* <-- add this */
}
/* ======================================================
   BOAT PAGE
====================================================== */
.boat-layout {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.boat-card {
  flex: 1;
  background: #f3f0eb;
  padding: 2rem;
  border-radius: 6px;
}

.boat-card p {
  max-width: 30rem;
}

.boat-image img {
  height: 100%;
  max-height: 500px;
  border-radius: 6px;
}

/* ======================================================
   FOOTER
====================================================== */
footer {
  background: var(--navy);
  color: white;
  padding: 2rem 3rem;
  text-align: center;
  margin-top: auto;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .boat-layout {
    flex-direction: column;
    align-items: center;
  }

  .boat-image img {
    max-width: 100%;
    height: auto;
  }

  .hero h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Donate Button ---------- */
.donate-btn {
  display: inline-block;
  margin-top: 1.25rem;
  background: var(--maroon);
  color: var(--cream);
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.donate-btn:hover {
  background: #6f1723;
  transform: translateY(-1px);
}


/* ---------- Donate Button (Nav) ---------- */
.nav-donate-btn {
  margin-left: 1rem;
  background: var(--maroon);
  color: var(--cream);
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-donate-btn:hover {
  background: #6f1723;
  transform: translateY(-1px);
}

/* Container for both cards */
.causes-container {
  display: flex;
  gap: 2rem;              /* space between cards */
  flex-wrap: wrap;         /* wrap on smaller screens */
  justify-content: center; /* center horizontally */
  margin-top: 2rem;
}

/* Each card styling */
.cause-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  flex: 1 1 350px;        /* responsive width, min 350px */
  max-width: 400px;       /* prevents them from getting too wide */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Header with logo and title side by side */
.cause-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Constrain logo size */
.cause-logo {
  width: 60px;  /* adjust as needed */
  height: 60px;
  object-fit: contain;
}

/* Headings */
.cause-card h3 {
  margin: 0;
}

/* Paragraphs */
.cause-card p {
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}

/* Specific colors for donate buttons */
.donate-brown {
  background-color: #8B5E3C;
}

.donate-magenta {
  background-color: #D81B60;
}

/* Responsive tweak for very small screens */
@media (max-width: 768px) {
  .causes-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Reduce spacing below the hero banner */
.page-hero {
  margin-bottom: 0rem; /* adjust as needed */
  text-align: center;    /* optional, center the banner text */
}

/* Reduce spacing above the causes paragraph */
.causes-section {
  padding: 1.5rem 3rem 4rem 3rem; /* top, right, bottom, left */
}

.team-origin {
  width: 100%;
  margin: 2rem 0 2rem; /* smaller top, normal bottom */
  padding: 0 3rem;
}

.team-origin-title {
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  margin: 0 0 1.25rem; /* remove top margin */
}

.team-origin-text {
  line-height: 1.7;
}
/* ---------- Header Countdown Pill ---------- */
.countdown-pill {
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 3m;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(31, 42, 68, 0.08); /* navy tint */
  border: 1px solid rgba(31, 42, 68, 0.18);
  color: var(--navy);
  /* font-weight: 700; */
  white-space: nowrap;
}

.countdown-label {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(31, 42, 68, 0.8);
}

.countdown-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  font-size: 3m;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  color: var(--navy);
}

/* Make sure it fits nicely in header layout */
header {
  gap: 1rem;
}

/* Hide pill on small screens and use the mobile dropdown version instead */
@media (max-width: 800px) {
  .countdown-pill {
    display: none;
    color: var(--navy);
  }

  .countdown-pill.countdown-pill--mobile {
    display: flex;
    margin: 0.75rem 2rem 0.25rem;
    background: rgba(247, 244, 238, 0.12); /* cream tint on maroon */
    border: 1px solid rgba(247, 244, 238, 0.25);
    color: var(--navy);
  }

  /* .countdown-pill--mobile .countdown-label,
  .countdown-pill--mobile .countdown-time {
    color: var(--cream);
  }

  .countdown-pill--mobile .countdown-label {
    opacity: 0.9;
  } */
}

.header-logo {
  height: 48px;       /* adjust as needed */
  width: auto;
  display: block;
}
.title-logo {
  height: 150px;       /* adjust as needed */
  width: auto;
  display: block;
}

/* ======================================================
   DONOR CARDS (REFINED)
====================================================== */

.donor-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  
}

.donor-card {
  background: white;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(31, 42, 68, 0.08);
  
  font-weight: 600;
  color: var(--navy);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.donor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.donor-subtext {
  margin-top: -0.5rem;
  opacity: 0.65;
  font-size: 0.95rem;
}
/* ======================================================
   SPONSORS STRIP (HOME)
====================================================== */
.sponsors {
  padding: 2.5rem 3rem;
  background: var(--cream);
  text-align: center;
}

.sponsors-title {
  margin: 0 0 1.25rem 0;
  color: var(--navy);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sponsors-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.sponsors-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.sponsors-logos img {
  height: 44px;      /* <-- equal logo height */
  width: auto;       /* maintain aspect ratio */
  max-width: 180px;  /* prevents super-wide logos from dominating */
  object-fit: contain;
  display: block;

  /* Optional: subtle “muted” look */
  /* filter: grayscale(100%); */
  opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.sponsors-logos a:hover img {
  /* filter: grayscale(0%); */
  opacity: 1;
  transform: translateY(-1px);
}

/* Responsive tweak */
@media (max-width: 600px) {
  .sponsors {
    padding: 2rem 1.5rem;
  }

  .sponsors-logos {
    gap: 1.25rem;
  }

  .sponsors-logos img {
    height: 38px;
    max-width: 150px;
  }
}