/* Friendly, upbeat design and responsive layout */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");

:root {
  --bg: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --accent: #ff7a59; /* warm coral */
  --accent-2: #36c6b5; /* teal */
  --accent-rgb: 255, 122, 89;
  --accent-2-rgb: 54, 198, 181;
  --card: #fbfbfe;
  --shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  font-family: "Montserrat", sans-serif;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Headings and titles use Boldonse */
h1,
h2,
h3,
h4,
h5,
h6,
.brand span {
  font-family: "Boldonse", system-ui;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

/* Header */
.site-header {
  background: #F95738; /* top nav matches banner orange */
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  margin: 0;
  padding: 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.4rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  color: #ffffff;
  font-weight: 700;
}
/* nav-toggle hover/focus styling for mobile */
.nav-toggle:hover,
.nav-toggle:focus {
  background: #002b3e;
  color: #fff;
  border-radius: 6px;
  outline: none;
}
.nav-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav-menu a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
}
.nav-menu a:hover {
  background: #002b3e; /* updated hover color */
  color: #fff;
}

/* Hero */
.hero {
  padding: 4rem 0;
  border-radius: 14px;
  margin-top: 1.5rem;
}
.hero h2 {
  margin: 0 0 0.5rem;
  font-size: 2.25rem;
  line-height: 1.05;
}
.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}
.hero .cta-row {
  margin-top: 1rem;
}

/* brand and logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #ffffff;
}
.site-logo {
  width: 44px;
  height: 44px;
  display: inline-block;
  border-radius: 8px;
}
.brand span {
  font-weight: 700;
}

/* hero split layout */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: center;
  gap: 1rem;
}
.hero-img {
  width: 100%;
  max-width: 240px;
  border-radius: 12px;
}
/* ensure text inside hero has comfortable padding and readable width */
.hero-content > div {
  padding: 0 1.25rem;
}
.hero .hero-lead {
  margin-top: 0.5rem;
  max-width: 60ch;
  color: var(--muted);
}

/* Quick links / cards */
.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.card {
  background: var(--card);
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 0.5rem;
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* Board member photos: constrain to card width and preserve aspect ratio */
.card .member-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  object-fit: cover;
}

/* Social-style card (OG/Twitter preview) */
.social-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 24, 40, 0.04);
}
.social-card__img {
  width: 160px;
  flex: 0 0 160px;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  align-self: stretch;
}
.social-card__content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.social-card__site {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.social-card__title {
  margin: 0;
  font-size: 1rem;
}
.social-card__desc {
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.social-card__link {
  margin-top: 0.5rem;
  align-self: flex-start;
}

@media (max-width: 600px) {
  .social-card {
    flex-direction: column;
  }
  .social-card__img {
    width: 100%;
    height: 180px;
    flex: none;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 0;
    border-top-right-radius: 12px;
    align-self: stretch;
  }
  .social-card__content {
    padding: 0.75rem;
  }
}

/* content sections */
.content-section .container {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* page hero for inner pages */
.page-hero {
  background: rgba(255, 255, 255, 0.92);
}
.page-hero h1 {
  margin: 0;
  font-size: 1.5rem;
}
.page-hero p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

/* Board page diagonal gradient: warm orange -> white (45deg) */
body.board {
  /* fallback */
  background-color: #fff;
  background-image: linear-gradient(
    150deg,
    #ff9f5a 0%,
    #ffd9bf 30%,
    #ffffff 100%
  );
  /* ensure the gradient covers the viewport */
  background-attachment: fixed;
  background-size: cover;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #f95738; /* CTA matches banner title */
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
}
.btn:hover {
  background: rgba(249, 87, 56, 0.92);
}
.btn:focus {
  outline: 3px solid rgba(249, 87, 56, 0.18);
  outline-offset: 2px;
}

/* Forms */
form label {
  display: block;
  margin: 0.5rem 0;
  font-weight: 500;
}
input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e6eef8;
  border-radius: 8px;
  background: #fff;
}
textarea {
  min-height: 120px;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  background: #002b3e; /* updated footer background */
  color: #fff;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 0;
}

/* Footer inner layout: full-bleed footer bar with centered container columns */
.site-footer .container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-contact {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}
.footer-nav {
  display: flex;
  gap: 1rem;
  align-items: start;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-nav a {
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .site-footer .container {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Mobile */
@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    right: 1rem;
    top: 64px;
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem;
    flex-direction: column;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .quick-links {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 1.75rem;
  }
  .hero-content > div {
    padding: 0;
  }
  .hero-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0.75rem;
  }
  .hero h2 {
    font-size: 1.25rem;
  }
}

/* Gallery styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.gallery__figure {
  margin: 0;
}
.gallery__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
@media (max-width: 420px) {
  .gallery__img {
    height: 140px;
  }
}

/* Homepage carousel banner */
.carousel {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(var(--accent-rgb), 0.03),
    rgba(var(--accent-2-rgb), 0.02)
  );
  aspect-ratio: 16/9;
  min-height: 220px; /* fallback for older browsers */
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
}
.carousel-track {
  position: absolute;
  inset: 0;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide.active {
  opacity: 1;
  transform: translateZ(0);
}
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  padding: 0.4rem;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  z-index: 60;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 0;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.carousel-dot.active {
  background: #002b3e; /* active dot color per request */
  box-shadow: 0 2px 8px rgba(0, 43, 62, 0.18);
}
.carousel-dot:focus {
  outline: 2px solid rgba(var(--accent-2-rgb), 0.18);
  outline-offset: 3px;
}

/* Ensure carousel is keyboard accessible */
.carousel {
  outline: none;
}

/* Prev/Next nav buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.36);
  border: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 70;
}
.carousel-prev {
  left: 12px;
}
.carousel-next {
  right: 12px;
}
.carousel-nav:focus {
  outline: 3px solid rgba(var(--accent-2-rgb), 0.18);
}
.carousel-nav svg {
  width: 14px;
  height: 14px;
  display: block;
}
.carousel-nav svg path {
  stroke: #fff;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.48);
}

/* Caption / title overlay shown on top of the carousel (bottom-left boxed overlay) */
.carousel-caption {
  position: absolute;
  left: 16px;
  bottom: 52px; /* lift caption above dots/navigation */
  top: auto;
  transform: none;
  z-index: 85;
  padding: 1.25rem 1.5rem; /* increased padding */
  background: #f95738; /* banner title background color per request */
  border-radius: 0; /* square corners per request */
  max-width: 54%;
}
.carousel-org {
  color: #fff;
  margin: 0 0 0.4rem 0;
  font-family: "Boldonse", system-ui;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  text-align: left;
  letter-spacing: 0.2px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.68);
}
.carousel-title {
  color: #fff;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.05;
  text-align: left;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}
@media (min-width: 900px) {
  .carousel-title {
    font-size: 1.5rem;
  }
}
@media (max-width: 820px) {
  .carousel-caption {
    max-width: 62%;
    padding: 1rem 1.15rem;
    bottom: 64px;
  }
}
@media (max-width: 480px) {
  .carousel-caption {
    left: 12px;
    right: 12px;
    bottom: 72px;
    max-width: none;
    padding: 0.85rem 1rem;
  }
  .carousel-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 560px) {
  .carousel-nav {
    width: 36px;
    height: 36px;
  }
}
