/* The Villages Triathlon Club – simple static styles */

:root {
  --green: #1a5c3a;
  --green-dark: #0f3d26;
  --gold: #c9a06a;
  --sand: #f7f3eb;
  --ink: #1c1c1c;
  --muted: #5a5a5a;
  --card: #ffffff;
  --border: #e6dfd2;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  font-size: 1.05rem;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-dark);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

.logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--green);
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--sand) 100%);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 0.6rem;
  line-height: 1.15;
  color: var(--green-dark);
}

.lede {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--green-dark);
}

/* Schedule */
.schedule {
  padding: 2.5rem 0 3rem;
}

.schedule h2,
.races h2,
.contact h2 {
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
  color: var(--green-dark);
}

.section-note {
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.day-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.day-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
  color: var(--green);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.activity-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.activity-list strong {
  font-size: 1.05rem;
}

.detail,
.lead {
  font-size: 0.9rem;
  color: var(--muted);
}

.run-note {
  margin-top: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.run-note h3 {
  margin: 0 0 0.4rem;
  color: var(--green);
}

.run-note p {
  margin: 0.35rem 0;
}

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

/* Races */
.races {
  padding: 2.5rem 0;
  background: #fff;
  border-block: 1px solid var(--border);
}

.race-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.race-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.race-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
}

.location,
.member {
  font-size: 0.9rem;
  color: var(--muted);
}

.more-races {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Contact */
.contact {
  padding: 2.5rem 0 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card p {
  margin: 0.2rem 0;
}

.contact-card a {
  display: block;
  font-weight: 600;
  margin: 0.15rem 0;
}

.role {
  font-size: 0.88rem;
  color: var(--muted);
}

.volunteer-note {
  font-size: 0.95rem;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: #e8f0ea;
  text-align: center;
  padding: 2rem 0;
}

.footer-logo {
  width: 538px;
  height: 150px;
  max-width: 100%;   /* keeps it from overflowing on small screens */
  height: auto;      /* maintains aspect ratio if you only set width */
  margin: 0 auto 0.75rem;
  filter: brightness(1.1);
  display: block;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer .small {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    width: 56px;
    height: 56px;
  }

  .hero {
    padding: 2rem 0;
  }

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

/* ===== Hero side-by-side layout ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: block;
}

.hero-text {
  text-align: left;
}

/* Stack on phones */
@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-text {
    text-align: center;
  }
}/* ===== Hero side-by-side layout ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: block;
}

.hero-text {
  text-align: left;
}

/* Stack on phones */
@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-text {
    text-align: center;
  }
}
/* Make section titles land just below the sticky header */
#schedule,
#races,
#contact {
  scroll-margin-top: 90px;   /* adjust this number if needed */
}

/* Make the Running section columns line up in the middle */
#running .hero-grid {
  align-items: center;
}

#running .run-note {
  margin-top: 0;          /* removes any extra top spacing */
  height: fit-content;    /* keeps the box only as tall as its content */
}


/* ===== Simple slideshow ===== */
.slideshow {
  position: relative;
  width: 100%;
  height: 320px;          /* adjust height if you like */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow .slide.active {
  opacity: 1;
}
