/* =========================================
   ROOT / GLOBAL
========================================= */
:root {
  --bg: #0b1020;
  --accent: #ffcc5c;
  --text: #f5f6fb;
  --muted: #c5cadb;
  --radius: 1.25rem;
  --header-h: 68px;
}

html {
  scroll-padding-top: var(--header-h);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 20%, #12182b 0%, #0b1020 65%);
  color: var(--text);
  line-height: 1.6;
}

main {
  width: 100%;
  overflow-x: hidden;
}

/* =========================================
   HEADER / NAV
========================================= */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(11, 16, 32, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.brand strong {
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.1rem;
  margin-top: -0.25rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  margin-left: 1rem;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent);
  border: none;
  color: #000;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

/* =========================================
   SECTION BASE
========================================= */
.full-screen {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: calc(var(--header-h) + 1rem) 1.25rem 2.25rem;
  text-align: left;
}

/* shared section title — every section uses this */
.section-title {
  width: min(1180px, 100%);
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  position: relative;
  z-index: 1; /* stays above dark overlays */
}
/* =========================================
   HERO (bigger text & more presence)
========================================= */
.hero-section {
  background: url("https://venomousracing60006.com/images/IMGalistair.jpg") center/cover no-repeat;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

/* hero title: first + second line */
.hero-title span {
  display: block;
  text-align: center;
  font-size: 0.92em;
  line-height: 1.1;
  margin-top: 0.25rem;
}

/* layout: split left (bubbles) and right (boxes) */
.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 1.5rem;
  align-items: start;
  padding-top: 0.5rem;
}

/* LEFT COLUMN — larger bubbles */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.hero-badge {
  background: rgba(255, 204, 92, 0.12);
  border: 1px solid rgba(255, 204, 92, 0.35);
  font-size: 1rem;             /* up from 0.78rem */
  font-weight: 600;
  line-height: 1.2;
  padding: 0.45rem 0.8rem;     /* a touch more vertical space */
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* RIGHT COLUMN — make text & cards bigger */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.results-card,
.hero-card {
  background: rgba(11, 13, 17, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  padding: 1.4rem 1.6rem;       /* larger boxes */
  width: min(600px, 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.results-card h2 {
  color: #fff;
  margin: 0 0 0.6rem;
  font-size: 1.3rem;            /* up from 1.15rem */
  font-weight: 700;
}

.results-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 1rem;
  font-size: 1.05rem;           /* bigger list items */
  color: var(--muted);
}

.results-card ul li:last-child {
  grid-column: 1 / -1;
}

.hero-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;           /* up from 1rem */
  color: #fff;
  white-space: pre-line;
  line-height: 1.35;
}

.hero-footnote {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: rgba(245,246,251,0.85);
}

.hero-footnote a {
  color: var(--accent);
}

/* MOBILE / TABLET */
@media (max-width: 900px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-left {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-badge {
    flex: 1 1 45%;
    font-size: 0.95rem;
  }

  .results-card,
  .hero-card {
    width: 100%;
  }
}

.results-card h2 {
  color: #fff;
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.results-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 0.8rem;
}

.results-card ul li:last-child {
  grid-column: 1 / -1;
}

.hero-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #fff;
  white-space: pre-line;
}

.hero-footnote {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  color: rgba(245,246,251,0.85);
}

.hero-footnote a {
  color: var(--accent);
}

/* =========================================
   EVENTS
========================================= */
.events-section {
  background: url("https://venomousracing60006.com/images/IMGfastnetrock.jpg?format=auto") center/cover no-repeat;
  position: relative;
}

.events-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
}

.events-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  color: var(--muted);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.3rem;
}

.event-card {
  background: rgba(13, 16, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.event-date {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: #fff;
}

.event-title {
  font-weight: 600;
}

.event-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.event-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  background: rgba(255, 204, 92, 0.06);
  border: 1px solid rgba(255, 204, 92, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  align-self: flex-start;
}

/* =========================================
   BOAT
========================================= */
.boat-section {
  background: url("https://venomousracing60006.com/images/IMGreach.jpg?format=auto") center/cover no-repeat;
  position: relative;
}

.boat-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
}

.boat-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  color: var(--muted);
}

.boat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  margin-top: 1.1rem;
}

.boat-card,
.callout {
  background: rgba(13, 16, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.015);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1rem;
  text-align: left;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.spec {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.01);
  border-radius: 0.8rem;
  padding: 0.5rem 0.55rem 0.4rem;
}

.spec label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

/* mini gallery */
.inline-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  width: min(1180px, 100%);
  margin-top: 1.5rem;
}

.inline-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

/* =========================================
   GALLERY
========================================= */
.gallery-section {
  background: rgba(11, 16, 32, 0.2);
}

.gallery-content {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  width: min(1100px, 100%);
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}
/* REGISTER (tighter so button fits) */
.register-section {
  background: rgba(11, 16, 32, 0.2);
  width: min(1180px, 100%);
  margin: 0 auto;
  /* tighter top/bottom */
  padding: calc(var(--header-h) + 0.4rem) 1rem 1.2rem;
  text-align: left;
  min-height: calc(100vh - var(--header-h)); /* makes it a full page */
  display: flex;
  flex-direction: column;
}

.register-section form {
  background: rgba(10, 13, 22, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.015);
  border-radius: 1rem;
  padding: 0.9rem 0.85rem 0.9rem;
  width: min(850px, 100%);
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  /* if screen is short, scroll INSIDE form */
  max-height: calc(100vh - var(--header-h) - 4.5rem);
  overflow-y: auto;
}

.register-section label {
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.register-section input,
.register-section select,
.register-section textarea {
  padding: 0.4rem 0.55rem;
  font-size: 0.88rem;
}

.register-section textarea {
  min-height: 80px; /* smaller so whole form fits */
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.register-section fieldset {
  padding: 0.55rem 0.55rem 0.4rem;
  margin-bottom: 0.5rem;
}

.options {
  gap: 0.5rem;
}

.btn-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.4rem;
}

.btn-row .btn {
  padding: 0.4rem 0.85rem;
}

.form-success {
  margin-top: 0.4rem;
}

/* =========================================
   FOOTER
========================================= */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1.8rem 1.25rem 2.2rem;
  text-align: center;
  color: var(--muted);
  background: rgba(5, 5, 7, 0.35);
}

footer a {
  color: var(--accent);
}
/* =========================================
   INSTAGRAM BANNER
========================================= */
.instagram-banner {
  background: radial-gradient(circle at 10% 20%, #12182b 0%, #0b1020 65%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 1rem;
  text-align: center;
}

.insta-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #000;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insta-link i {
  font-size: 1.3rem;
}

.insta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 204, 92, 0.35);
}

.insta-banner p,
.insta-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {
  nav {
    flex-wrap: wrap;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-left {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-badge {
    flex: 1 1 47%;
    max-width: none;
  }

  .events-grid,
  .boat-grid {
    grid-template-columns: 1fr;
  }
}

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

  .options {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-grid img {
    height: 180px;
  }

  .register-section {
    padding-inline: 1rem;
  }

  .register-section form {
    padding-inline: 0.8rem;
  }
}