/* styles.css */

/* ===================================
   VARIABLES & BASE STYLES
   =================================== */
:root {
  --primary-color: #195a9f;
  --accent-color: #d6ac00;
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --light-text: #f5f5f5;
  --medium-text: #aaaaaa;
  --dark-text: #333333;
  --overlay-color: rgba(0, 0, 0, 0.6);
  --transition: all 0.3s ease;

  /* Navigation Variables */
  --headerColor: #1a1a1a;
  --bodyTextColor: #4e4b66;
  --bodyTextColorWhite: #fafbfc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1rem;
}

section {
  padding: 4rem 0;
}

a {
  text-decoration: none;
  color: var(--light-text);
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  margin: 0.5rem 0;
}

.primary-btn {
  background-color: var(--accent-color);
  color: var(--dark-text);
}

.primary-btn:hover {
  background-color: #c19a00;
}

.secondary-btn {
  background-color: transparent;
  border: 2px solid var(--light-text);
}

.secondary-btn:hover {
  background-color: var(--light-text);
  color: var(--dark-bg);
}

/* ===================================
   NAVIGATION
   =================================== */
/* Mobile - 1314px */
@media only screen and (max-width: 64rem) {
  body.cs-open {
    overflow: hidden;
  }

  body.scroll #cs-navigation .cs-ul-wrapper {
    top: 100%;
  }

  #cs-navigation {
    width: 94%;
    max-width: 80rem;
    box-sizing: border-box;
    padding: clamp(0.75rem, 2vw, 1.5rem);
    border-radius: clamp(0.75rem, 2vw, 1.5rem);
    position: fixed;
    top: 2rem;
    left: 50%;
    z-index: 10000;
    transform: translateX(-50%);
    transition:
      top 0.3s,
      border-radius 0.3s,
      width 0.3s,
      max-width 0.3s;
  }

  #cs-navigation:before {
    content: "";
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    opacity: 1;
    border-radius: clamp(0.75rem, 2vw, 1.5rem);
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition:
      transform 0.2s,
      border-radius 0.3s ease-in-out;
  }

  #cs-navigation.cs-active:before {
    transform: translateX(-50%) scale(1.03);
  }

  #cs-navigation.cs-active .cs-toggle {
    transform: rotate(180deg);
  }

  #cs-navigation.cs-active .cs-ul-wrapper {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
  }

  #cs-navigation.cs-active .cs-li {
    opacity: 1;
    transform: translateY(0);
  }

  #cs-navigation .cs-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem; /* Reduced from 1.5rem for tighter mobile layout */
  }

  #cs-navigation .cs-logo {
    width: auto;
    max-width: 12.5rem;
    height: 100%;
    margin: 0 auto 0 0;
    box-sizing: border-box;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
  }

  #cs-navigation .cs-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Add mobile phone icon styles */
  #cs-navigation .cs-mobile-phone {
    display: flex;
    position: relative;
    z-index: 10;
    margin-right: 0.5rem; /* Space between phone and hamburger */
  }

  #cs-navigation .cs-mobile-phone-link {
    text-decoration: none;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-color);
    border-radius: 4px; /* Match the toggle button style */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
  }

  #cs-navigation .cs-mobile-phone-link:hover {
    background-color: var(--accent-color);
  }

  #cs-navigation .cs-mobile-phone-icon {
    font-size: 1rem;
    color: white;
  }

  #cs-navigation .cs-toggle {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    transition: transform 0.6s;
  }

  #cs-navigation .cs-nav {
    order: 1;
  }

  #cs-navigation .cs-contact-group {
    display: none;
    position: relative;
    z-index: 10;
  }

  #cs-navigation .cs-phone {
    font-size: 1rem;
    line-height: 1.5em;
    text-decoration: none;
    margin: 0;
    color: var(--headerColor);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    transition:
      opacity 0.3s,
      color 0.3s;
  }

  #cs-navigation .cs-phone-icon {
    width: 1.5rem;
    height: auto;
    display: block;
  }

  #cs-navigation .cs-social {
    display: none;
  }

  #cs-navigation .cs-active .cs-line1 {
    top: 50%;
    transform: translate(-50%, -50%) rotate(225deg);
  }

  #cs-navigation .cs-active .cs-line2 {
    top: 50%;
    transform: translate(-50%, -50%) translateY(0) rotate(-225deg);
    transform-origin: center;
  }

  #cs-navigation .cs-active .cs-line3 {
    opacity: 0;
    bottom: 100%;
  }

  #cs-navigation .cs-box {
    width: clamp(1.5rem, 2vw, 1.75rem);
    height: 1rem;
    position: relative;
  }

  #cs-navigation .cs-line {
    width: 100%;
    height: 2px;
    background-color: #fafbfc;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  #cs-navigation .cs-line1 {
    top: 0;
    transition:
      transform 0.5s,
      top 0.3s,
      left 0.3s;
    animation-duration: 0.7s;
    animation-timing-function: ease;
    animation-direction: normal;
    animation-fill-mode: forwards;
    transform-origin: center;
  }

  #cs-navigation .cs-line2 {
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    transition:
      top 0.3s,
      left 0.3s,
      transform 0.5s;
    animation-duration: 0.7s;
    animation-timing-function: ease;
    animation-direction: normal;
    animation-fill-mode: forwards;
  }

  #cs-navigation .cs-line3 {
    bottom: 0;
    transition:
      bottom 0.3s,
      opacity 0.3s;
  }

  /* New class for transitions only */
  #cs-navigation .cs-ul-wrapper.nav-transitioning {
    transition:
      transform 0.4s,
      opacity 0.4s,
      visibility 0.4s;
  }

  #cs-navigation .cs-ul-wrapper {
    width: 100%;
    height: auto;
    padding-bottom: 2.4em;
    background-color: #fff;
    border-radius: 0 0 1.5rem 1.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    transform-origin: top center;
    /* No transition here - moved to nav-transitioning class */
  }

  #cs-navigation .cs-ul {
    width: 100%;
    height: auto;
    max-height: 65vh;
    margin: 0;
    padding: 4rem 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    overflow: auto;
  }

  #cs-navigation .cs-li {
    text-align: center;
    list-style: none;
    width: 100%;
    margin-right: 0;
    opacity: 0;
    transform: translateY(-4.375rem);
    /* No transition here */
  }

  /* New class for list item transitions */
  #cs-navigation .cs-li.nav-transitioning {
    transition:
      transform 0.6s,
      opacity 0.9s;
  }

  #cs-navigation .cs-li:nth-of-type(1) {
    transition-delay: 0.05s;
  }

  #cs-navigation .cs-li:nth-of-type(2) {
    transition-delay: 0.1s;
  }

  #cs-navigation .cs-li:nth-of-type(3) {
    transition-delay: 0.15s;
  }

  #cs-navigation .cs-li:nth-of-type(4) {
    transition-delay: 0.2s;
  }

  #cs-navigation .cs-li:nth-of-type(5) {
    transition-delay: 0.25s;
  }

  #cs-navigation .cs-li:nth-of-type(6) {
    transition-delay: 0.3s;
  }

  #cs-navigation .cs-li:nth-of-type(7) {
    transition-delay: 0.35s;
  }

  #cs-navigation .cs-li:nth-of-type(8) {
    transition-delay: 0.4s;
  }

  #cs-navigation .cs-li:nth-of-type(9) {
    transition-delay: 0.45s;
  }

  #cs-navigation .cs-li-link {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.2em;
    text-decoration: none;
    margin: 0;
    color: var(--primary-color);
    display: inline-block;
    position: relative;
  }

  #cs-navigation .cs-li-link.cs-active {
    color: var(--accent-color);
  }

  #cs-navigation .cs-li-link:hover {
    color: var(--accent-color);
  }

  #cs-navigation .cs-button-solid {
    display: none;
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) and (max-width: 64rem) {
  #cs-navigation .cs-contact-group {
    display: block;
  }

  /* Keep mobile phone icon visible on tablets too */
  #cs-navigation .cs-mobile-phone {
    display: flex;
  }
}

/* Desktop - 1315px+ */
@media only screen and (min-width: 64.0625rem) {
  #cs-navigation {
    width: 94%;
    max-width: 90rem;
    height: 6rem;
    box-sizing: border-box;
    padding: clamp(0.75rem, 2vw, 1.5rem) 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: clamp(0.75rem, 2vw, 1.5rem);
    display: flex;
    align-items: center;
    position: fixed;
    top: 2rem;
    left: 50%;
    z-index: 10000;
    transform: translateX(-50%);
    transition:
      top 0.3s,
      border-radius 0.3s,
      width 0.3s,
      max-width 0.3s;
    overflow: visible;
  }

  #cs-navigation .cs-container {
    width: 100%;
    max-width: 90rem;
    margin: auto;
    box-sizing: border-box;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
  }

  /* Nudge the main nav items right on desktop */
  #cs-navigation .cs-nav {
    padding-left: 2.5rem;
  }

  #cs-navigation .cs-toggle {
    display: none;
  }

  /* Hide the mobile phone icon on desktop */
  #cs-navigation .cs-mobile-phone {
    display: none;
  }

  #cs-navigation .cs-logo {
    width: auto;
    max-width: 180px;
    height: 3rem;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    overflow: hidden;
  }

  #cs-navigation .cs-logo img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
  }

  #cs-navigation .cs-contact-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
  }

  #cs-navigation .cs-social {
    height: 2rem;
    opacity: 1;
    display: flex;
    visibility: visible;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition:
      opacity 0.3s,
      visibility 0.3s,
      height 0.3s;
  }

  #cs-navigation .cs-social-link {
    text-decoration: none;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
  }

  #cs-navigation .cs-social-link:hover {
    background-color: var(--accent-color);
  }

  #cs-navigation .cs-social-icon {
    font-size: 1rem;
    color: white;
  }

  #cs-navigation .cs-ul-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    pointer-events: auto;
    transition: none;
  }

  #cs-navigation .cs-ul {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* Increased spacing between items */
    gap: clamp(0.75rem, 1.2vw, 1rem); /* Increased gap between links */
  }

  #cs-navigation .cs-li {
    list-style: none;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    flex: none;
  }

  /* Fix for first navigation item */
  #cs-navigation .cs-li:first-child {
    position: relative;
    isolation: isolate; /* Creates a new stacking context */
    z-index: 1000; /* Very high z-index */
  }

  #cs-navigation .cs-li-link {
    /* Smaller font size */
    font-size: 0.75rem; /* Reduced from 0.875rem */
    line-height: 1.5em;
    text-decoration: none;
    margin: 0;
    color: var(--primary-color);
    display: block;
    position: relative;
    transition: color 0.3s;
    z-index: 100; /* Added to ensure links are above any overlapping elements */
  }

  #cs-navigation .cs-li:first-child .cs-li-link {
    position: relative;
    z-index: 1000; /* Much higher than logo */
    pointer-events: auto !important; /* Force links to be clickable */
  }

  #cs-navigation .cs-li-link:hover {
    color: var(--accent-color);
  }

  #cs-navigation .cs-li-link.cs-active {
    color: var(--accent-color);
  }

  #cs-navigation .cs-button-solid {
    font-size: 0.85rem; /* Further reduced from 0.9rem */
    font-weight: 700;
    line-height: clamp(2.5em, 5vw, 3.25em); /* Reduced line height */
    text-align: center;
    text-decoration: none;
    min-width: 8rem; /* Reduced from 8.5rem */
    margin: 0;
    box-sizing: border-box;
    padding: 0 1.25rem; /* Reduced from 1.5rem */
    color: #fff;
    background-color: var(--primary-color);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition:
      color 0.3s,
      background-color 0.3s;
  }

  #cs-navigation .cs-button-solid:hover {
    background-color: var(--accent-color);
  }
}

/* Hide navbar logo in the cramped desktop range
   (above mobile breakpoint, below where there's room for it) */
@media only screen and (min-width: 64.0625rem) and (max-width: 74.375rem) {
  #cs-navigation .cs-logo {
    display: none;
  }
}

/* Nav font size adjustments for different screen widths */
@media only screen and (min-width: 90rem) {
  #cs-navigation .cs-li-link {
    font-size: 0.875rem;
  }

  #cs-navigation .cs-ul {
    gap: clamp(1.25rem, 1.5vw, 1.75rem);
  }
}

/* Compact desktop nav (narrow desktop range, before mobile breakpoint kicks in) */
@media only screen and (min-width: 64.0625rem) and (max-width: 82rem) {
  /* Hide Home — logo serves the same purpose */
  #cs-navigation .cs-ul .cs-li:first-child {
    display: none;
  }
  #cs-navigation .cs-ul {
    gap: 0.6rem;
  }
  #cs-navigation .cs-li-link {
    font-size: 0.7rem;
  }
  #cs-navigation .cs-button-solid {
    font-size: 0.75rem;
    min-width: 6.5rem;
    padding: 0 1rem;
  }
  #cs-navigation .cs-nav {
    padding-left: 1rem;
  }
  #cs-navigation .cs-contact-group {
    gap: 0.75rem;
  }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  height: 100vh; /* Full viewport height */
  position: relative;
  color: var(--light-text);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden; /* Prevents any video overflow */
  min-height: 600px; /* Ensures minimum height on smaller screens */
}

@media (max-width: 768px) {
  .hero {
    text-align: center;
    justify-content: center;
    align-items: flex-start; /* Align content to the top */
    padding-top: 11rem; /* Reduced from 6rem to 4rem to lower the content position */
  }
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center 80%;
  z-index: -2;
  filter: saturate(1.6) brightness(0.9) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Multiple layers of gradients for the desired effect */
  background: 
    /* Dark gradient from left to right with extended coverage */
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.7) 30%,
      rgba(0, 0, 0, 0.4) 70%,
      rgba(0, 0, 0, 0.1) 100%
    ),
    /* Blue tint overlay */
    linear-gradient(
        to bottom,
        rgba(25, 90, 159, 0.2) 0%,
        rgba(25, 90, 159, 0.1) 100%
      ),
    /* Base overlay color */ rgba(0, 0, 0, 0.2);
  z-index: -1;
}

@media (max-width: 768px) {
  .hero-overlay {
    background: 
      /* Dark-Light-Dark gradient from top to bottom */
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.7) 100%
      ),
      /* Blue tint overlay */
        linear-gradient(
          to bottom,
          rgba(25, 90, 159, 0.25) 0%,
          rgba(25, 90, 159, 0.15) 100%
        ),
      /* Base overlay color */ rgba(0, 0, 0, 0.2);
  }
}

.hero-content {
  max-width: 600px;
  padding: 0 2rem;
  margin-top: 0;
  margin-left: 5%;
  text-align: left;
  position: absolute;
  bottom: 6rem;
  left: 0;
  z-index: 3;
  animation: hero-slide-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes hero-slide-in {
  from {
    opacity: 0;
    transform: translateX(-3rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }
}

@media (max-width: 768px) {
  .hero-content {
    margin-left: 0;
    bottom: 5rem;
    left: 0;
    right: 0;
    padding: 0 1.5rem;
    text-align: left;
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  text-align: left;
  line-height: 1.1;
  text-transform: none;
  white-space: nowrap;
  max-width: none;
}

.hero-content {
  max-width: none !important;
}

@media (max-width: 640px) {
  .hero h1 {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
    text-align: left;
  }
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  text-align: left;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.3rem;
    text-align: left;
  }
}

.hero h2::after {
  display: none;
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  text-align: left;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 440px;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.hero-buttons {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.75rem;
  justify-content: start;
  align-items: stretch;
}

.hero-buttons .btn {
  font-size: 0.75rem;
  padding: 0.6rem 1.2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-buttons {
    justify-content: start;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

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

  .hero-buttons .btn {
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ===================================
   FLOATING CONTACT BUTTON
   =================================== */
.floating-contact {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px;
  height: 56px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition:
    background-color 0.3s,
    transform 0.3s;
  opacity: 1;
  pointer-events: auto;
}

.floating-contact.visible {
  opacity: 1;
  pointer-events: auto;
}

.floating-contact:hover {
  background-color: var(--accent-color);
  color: var(--dark-text);
  transform: scale(1.1);
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background-color: var(--primary-color);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background-color 0.3s,
    visibility 0.25s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--accent-color);
  color: var(--dark-text);
  transform: translateY(-3px);
}

@media (max-width: 64rem) {
  .back-to-top {
    bottom: 5.5rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
  }
}

/* ===================================
   HERO BANNER (bottom of hero)
   =================================== */
.hero-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(25, 90, 159, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.9rem 0;
  z-index: 2;
  overflow: hidden;
}

.hero-banner-track {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  padding: 0 1.5rem;
}

.hero-banner-item {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 1.2rem;
  white-space: nowrap;
  position: relative;
  transition: color 0.3s;
}

.hero-banner-item:hover {
  color: var(--accent-color);
}

.hero-banner-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 0.75rem 0;
  }

  .hero-banner-track {
    justify-content: center;
    gap: 0.25rem 0;
    padding: 0 0.75rem;
  }

  .hero-banner-item {
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 0.25rem 0.6rem;
  }

  .hero-banner-item:not(:last-child)::after {
    height: 10px;
  }
}

@media (max-width: 480px) {
  .hero-banner-item {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    letter-spacing: 0.5px;
  }
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
  background-color: #14212b;
  text-align: center;
  padding: 0;
  position: relative;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.feature {
  min-width: 250px;
  padding: 1.5rem;
  background-color: rgba(25, 90, 159, 0.8);
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /* Set fixed height for all features */
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Combined image + text overlay card */
.feature-overlay {
  position: relative;
  padding: 0;
  background: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  height: 320px;
  display: block;
}

.feature-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: 1;
}

.feature-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.55) 35%,
    rgba(0, 0, 0, 0.05) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.feature-overlay:hover img {
  transform: scale(1.06);
}

.feature-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1.5rem 1.4rem 1.4rem;
  color: #fff;
}

.feature-overlay-content i {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 0.6rem;
  display: block;
}

.feature-overlay-content h3 {
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.feature-overlay-content p {
  font-size: 0.95rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Legacy: photo-only feature card */
.feature-photo {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: transparent;
  /* Adjust content layout */
  display: block;
}

.feature-photo img {
  width: 100%;
  height: 300px; /* Match the height of text features */
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.feature-photo:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-photo:hover img {
  transform: scale(1.05);
}

/* About Media Queries */
@media (max-width: 992px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .about {
    background-size: 200% auto;
  }
}

/* ===================================
   MEGA MENU
   =================================== */
.cs-li-dropdown {
  position: static;
  text-align: center;
  width: 100%;
}

@media only screen and (min-width: 64.0625rem) {
  .cs-li-dropdown {
    position: relative;
    text-align: left;
    width: auto;
  }

  #cs-navigation .cs-ul-wrapper {
    overflow: visible;
  }

  #cs-navigation .cs-ul {
    overflow: visible;
  }
}

.cs-dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.cs-drop-icon {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.cs-li-dropdown:hover .cs-drop-icon,
.cs-li-dropdown.cs-dropdown-active .cs-drop-icon {
  transform: rotate(180deg);
}

.cs-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: scaleY(0);
  transform-origin: top left;
  width: 90vw;
  max-width: 960px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 10001;
  /* overflow: hidden removed so the invisible hover-bridge below isn't clipped */
  margin-top: 0.75rem;
}

/* Invisible hover-bridge: fills the gap between the nav link and the mega
   menu so the mouse can travel across without losing :hover. */
.cs-mega-menu::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
  background: transparent;
  pointer-events: auto;
}

/* Clip the inner content to keep rounded corners, since we removed
   overflow:hidden on the wrapper above. */
.cs-mega-content {
  border-radius: 1rem;
  overflow: hidden;
}

.cs-li-dropdown:hover .cs-mega-menu,
.cs-li-dropdown.cs-dropdown-active .cs-mega-menu {
  transform: scaleY(1);
  opacity: 1;
  visibility: visible;
}

.cs-mega-content {
  display: grid;
  grid-template-columns: 240px 1fr 1fr;
  min-height: 340px;
}

/* Left column: program tabs */
.cs-mega-tabs {
  background: #f8f9fa;
  padding: 2rem 0;
  border-right: 1px solid #eee;
}

.cs-mega-tabs h4 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 1.25rem;
  padding: 0 1.5rem;
  font-weight: 600;
}

.cs-mega-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
  font-family: inherit;
}

.cs-mega-tab:hover {
  color: #1a1a1a;
  background: rgba(25, 90, 159, 0.04);
}

.cs-mega-tab.cs-mega-tab-active {
  color: var(--primary-color);
  background: #fff;
  border-left: 3px solid var(--primary-color);
}

.cs-mega-tab i:first-child {
  font-size: 0.9rem;
  width: 1.25rem;
  text-align: center;
  color: inherit;
}

.cs-mega-tab .cs-tab-arrow {
  margin-left: auto;
  font-size: 0.6rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.cs-mega-tab.cs-mega-tab-active .cs-tab-arrow {
  opacity: 1;
}

/* Middle column: detail panels */
.cs-mega-details {
  padding: 2rem;
  border-right: 1px solid #eee;
}

.cs-mega-panel {
  display: none;
}

.cs-mega-panel.cs-mega-panel-active {
  display: block;
}

.cs-mega-panel h4 {
  font-size: 1.15rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.cs-mega-panel > p {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.cs-mega-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-mega-panel ul li {
  margin-bottom: 0.15rem;
}

.cs-mega-panel ul li a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.cs-mega-panel ul li a:hover {
  background: rgba(25, 90, 159, 0.06);
  color: var(--primary-color);
}

.cs-mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1.25rem;
  background: var(--primary-color);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.cs-mega-cta:hover {
  background: var(--accent-color);
  color: #1a1a1a !important;
}

.cs-mega-cta i {
  font-size: 0.7rem;
}

/* Right column: feature images */
.cs-mega-feature {
  position: relative;
  overflow: hidden;
}

.cs-mega-img {
  display: none;
  width: 100%;
  height: 100%;
}

.cs-mega-img.cs-mega-img-active {
  display: block;
}

.cs-mega-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile mega menu */
@media only screen and (max-width: 64rem) {
  .cs-mega-menu {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    background: rgba(25, 90, 159, 0.1);
    border-radius: 8px;
    box-shadow: none;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      opacity 0.3s ease,
      visibility 0.3s ease;
    min-height: 0;
  }

  .cs-li-dropdown.cs-dropdown-active .cs-mega-menu {
    transform: none;
    opacity: 1;
    visibility: visible;
    max-height: 600px;
  }

  .cs-li-dropdown:hover .cs-mega-menu {
    transform: none;
    opacity: 0;
    visibility: hidden;
  }

  .cs-li-dropdown.cs-dropdown-active:hover .cs-mega-menu {
    opacity: 1;
    visibility: visible;
  }

  .cs-mega-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .cs-mega-tabs {
    background: none;
    border: none;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .cs-mega-tabs h4 {
    display: none;
  }

  .cs-mega-tab {
    color: var(--primary-color);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    padding: 0.6rem 1rem;
    border-radius: 0;
    justify-content: center;
    width: auto;
  }

  .cs-mega-tab:hover {
    background: none;
    color: var(--accent-color);
  }

  .cs-mega-tab.cs-mega-tab-active {
    background: none;
    color: var(--primary-color);
    border-left: none;
  }

  .cs-mega-tab i:first-child {
    display: none;
  }

  .cs-mega-tab .cs-tab-arrow {
    display: none;
  }

  .cs-mega-details {
    display: none;
  }

  .cs-mega-feature {
    display: none;
  }
}

/* ===================================
   PROGRAMS STRIP
   =================================== */
.programs-strip {
  background-color: var(--darker-bg);
  padding: 4rem 0;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.program-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: block;
  text-decoration: none;
}

.program-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.program-card:hover img {
  transform: scale(1.05);
}

.program-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.program-card-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.program-card-overlay p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.program-card-overlay .btn {
  align-self: flex-start;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .program-card {
    aspect-ratio: 16 / 9;
  }
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
  background-color: var(--dark-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column */
  gap: 1rem;
}

.service-item {
  background-color: rgba(25, 90, 159, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  width: 100%; /* Ensure full width */
}

/* Hover effect only on larger screens */
@media (min-width: 769px) {
  .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
}

.service-item:hover .service-header {
  background-color: rgba(25, 90, 159, 0.2);
  color: var(--accent-color);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: rgba(25, 90, 159, 0.3);
  cursor: pointer;
}

.service-header h3 {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.5rem); /* Responsive font size */
}

.toggle-icon {
  font-size: 1.2rem;
  transition: var(--transition);
}

.service-content {
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  padding: 0;
  max-height: 0;
  opacity: 0;
}

.service-item.active .service-content {
  padding: 1.5rem;
  max-height: 2000px; /* Adjust based on your content */
  opacity: 1;
}

.service-item.active .toggle-icon i {
  transform: rotate(45deg);
}

.service-content p,
.service-content li {
  font-size: clamp(0.875rem, 1.5vw, 1rem); /* Smaller font for content */
}

.service-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.service-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-content ul li::before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.rates {
  background-color: rgba(25, 90, 159, 0.2);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.rates h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  font-size: clamp(1rem, 1.8vw, 1.25rem); /* Responsive font size */
}

/* Additional responsive styles for medium to small screens */
@media (max-width: 768px) {
  .services-grid {
    gap: 1.25rem; /* Reduced gap on smaller screens */
  }
}

/* Additional responsive styles for extra small screens */
@media (max-width: 480px) {
  .services-grid {
    gap: 0.75rem; /* Even smaller gap on tiny screens */
  }

  .service-header {
    padding: 1rem;
  }

  .service-header h3 {
    font-size: 1rem; /* Even smaller on tiny screens */
  }

  .toggle-icon {
    font-size: 1rem;
  }

  .service-item.active .service-content {
    padding: 1rem;
  }

  .service-content p,
  .service-content li {
    font-size: 0.875rem;
  }

  .rates h4 {
    font-size: 0.95rem;
  }
}

/* ===================================
   CTA SECTION
   =================================== */
.cta {
  position: relative;
  text-align: center;
  padding: 6rem 0;
  color: var(--light-text);
  overflow: hidden;
}

.cta-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/images/set-sail-cta-bg.jpg");
  background-size: cover;
  background-position: center bottom;
  z-index: -999;
}

.cta-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.cta-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.cta-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.cta .container {
  position: relative;
  z-index: 2;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta h2::after {
  display: none;
}

.cta p {
  margin-bottom: 2rem;
}

/* ===================================
   PICK YOUR DAY CTA (homepage)
   =================================== */
.cta-pick {
  padding: 7rem 0 8rem;
  margin: 2.5rem;
  border-radius: 1.75rem;
  box-shadow:
    0 8px 20px rgba(8, 18, 55, 0.18),
    0 60px 120px rgba(8, 18, 55, 0.45);
}

.cta-pick .cta-video-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(8,18,55,0.78) 70%, rgba(8,18,55,0.85) 100%);
}

.cta-pick .container {
  max-width: 1100px;
  text-align: center;
}

.cta-eyebrow {
  display: inline-block;
  font-family: "Helvetica Neue", "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-color, #cfae39);
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(207, 174, 57, 0.5);
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.cta-headline {
  font-family: "Charter", "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 0.95;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.cta-headline-line {
  display: inline-block;
}

.cta-headline-accent {
  font-style: italic;
  color: var(--accent-color, #cfae39);
}

.cta-headline-period {
  color: var(--accent-color, #cfae39);
  font-style: normal;
}

.cta-pick .cta-sub {
  max-width: 620px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.cta-stickers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 0 auto 2.5rem;
}

.cta-sticker {
  --rot: 0deg;
  --accent: #cfae39;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.1rem 1.1rem 1rem;
  background: #fff;
  border-radius: 0.85rem;
  text-decoration: none;
  color: #1a2540;
  text-align: left;
  transform: rotate(var(--rot));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.04),
    0 12px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  isolation: isolate;
}

.cta-sticker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
  opacity: 0.12;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.cta-sticker::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--accent);
}

.cta-sticker-icon {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-sticker-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.cta-sticker-label {
  font-family: "Charter", "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
  color: #1a2540;
}

.cta-sticker-pitch {
  font-size: 0.78rem;
  color: #6a7384;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.cta-sticker-arrow {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cta-sticker:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.06),
    0 24px 50px rgba(0, 0, 0, 0.32);
  background: #fff;
}

.cta-sticker:hover::before {
  opacity: 0.22;
}

.cta-sticker:hover .cta-sticker-icon {
  transform: rotate(-8deg) scale(1.05);
}

.cta-sticker:hover .cta-sticker-arrow {
  opacity: 1;
  transform: translateX(0);
}

.cta-sticker:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Per-sticker accent colors */
.cta-sticker-blue { --accent: #283e94; }
.cta-sticker-gold { --accent: #cfae39; }
.cta-sticker-red { --accent: #c1272d; }
.cta-sticker-green { --accent: #09a129; }

.cta-secondary {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.cta-secondary a {
  color: var(--accent-color, #cfae39);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
}

.cta-secondary a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .cta-stickers {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .cta-pick {
    margin: 1rem 1rem 3rem;
    border-radius: 1.25rem;
  }
}

@media (max-width: 540px) {
  .cta-pick {
    padding: 5rem 0 5.5rem;
  }
  .cta-stickers {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }
  .cta-sticker {
    --rot: 0deg !important;
  }
  .cta-pick .cta-sub {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-sticker,
  .cta-sticker-icon,
  .cta-sticker-arrow {
    transition: none;
  }
  .cta-sticker {
    transform: none;
  }
  .cta-sticker:hover {
    transform: translateY(-2px);
  }
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
  background-color: var(--darker-bg);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .contact-info .info-item {
    flex-direction: column;
    align-items: center;
  }
}

.contact-info .info-item i {
  width: 30px;
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 1rem;
}

@media (max-width: 768px) {
  .contact-info .info-item i {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .social-links {
    justify-content: center;
  }
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--light-text);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--dark-text);
  transform: translateY(-3px);
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--light-text);
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--medium-text);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
}

@media (max-width: 768px) {
  .contact-form button {
    align-self: center;
    width: 100%;
  }
}

/* ===================================
   FOOTER
   =================================== */
footer {
  background-color: var(--darker-bg);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 3rem;
}

/* Non-mobile - logo left, links right, both naturally sized */
@media (min-width: 769px) {
  .footer-content {
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2rem;
    text-align: left;
  }

  .footer-logo {
    flex: 0 1 auto;
    min-width: 0;
    text-align: left;
    margin-bottom: 0;
    align-items: flex-start;
  }

  .footer-links {
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: clamp(1rem, 2.5vw, 3rem);
  }
}

/* Small screens - stacked vertically */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.footer-logo img {
  height: auto;
  width: auto;
  margin-bottom: 1rem;
}

/* Logo size for non-mobile widths */
@media (min-width: 769px) {
  .footer-logo img {
    height: clamp(60px, 7vw, 90px);
    width: auto;
    max-width: 100%;
    margin-left: 0;
  }
}

/* Logo size for mobile */
@media (max-width: 768px) {
  .footer-logo {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
    align-items: center;
  }

  .footer-logo img {
    margin-left: 0;
    width: 300px;
  }

  .footer-social {
    justify-content: center;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-links {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

.footer-column h4 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .footer-column {
    width: 100%;
    max-width: 300px;
    margin-bottom: 2rem;
    text-align: center;
  }

  .footer-column ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.footer-column ul li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--medium-text);
}

.footer-bottom a {
  color: var(--accent-color);
}

.footer-legal {
  text-align: center;
  padding: 1rem 0 0;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

@media (min-width: 769px) {
  .footer-bottom {
    text-align: left;
  }
  .footer-legal {
    justify-content: flex-start;
  }
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--accent-color);
}

.footer-legal-sep {
  color: rgba(255, 255, 255, 0.25);
}

.scroll-init {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  will-change: opacity, transform;
}

.scroll-init.scroll-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-init {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===================================
   RESPONSIVE GLOBAL STYLES
   =================================== */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }

  .container {
    width: 95%;
  }
}

/* ===================================
   GLOBAL: CTA button rows stay side-by-side on all screens
   Overrides per-page stacking rules for hero and CTA button pairs.
   =================================== */
.hero-buttons,
.ab-cta-buttons,
.sc-hero-buttons,
.sl-hero-buttons,
.sl-cta-buttons,
.camp-hero .hero-buttons,
.registration-cta .cta-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.6rem;
}

.hero-buttons .btn,
.ab-cta-buttons .btn,
.sc-hero-buttons .btn,
.sl-hero-buttons .btn,
.sl-cta-buttons .btn,
.camp-hero .hero-buttons .btn,
.registration-cta .cta-buttons .btn,
.sc-join-actions .btn,
.cta .btn,
.faq-cta .btn,
.pricing-cta .btn,
.sc-schedule .btn,
.sc-bring .btn,
.sc-weather .btn,
.sc-price-main .btn,
.sl-cta .btn,
.ab-cta .btn {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  /* Unified button sizing — match the hero buttons everywhere */
  font-size: 0.75rem !important;
  padding: 0.6rem 1.2rem !important;
}

@media (max-width: 480px) {
  .hero-buttons .btn,
  .ab-cta-buttons .btn,
  .sc-hero-buttons .btn,
  .sl-hero-buttons .btn,
  .sl-cta-buttons .btn,
  .camp-hero .hero-buttons .btn,
  .registration-cta .cta-buttons .btn,
  .sc-join-actions .btn,
  .cta .btn,
  .faq-cta .btn,
  .pricing-cta .btn,
  .sc-schedule .btn,
  .sc-bring .btn,
  .sc-weather .btn,
  .sc-price-main .btn,
  .sl-cta .btn,
  .ab-cta .btn {
    font-size: 0.72rem !important;
    padding: 0.55rem 0.75rem !important;
    white-space: normal;
  }
}

/* =========================
   HOMEPAGE FEATURE CARDS — MOBILE CAROUSEL
   ========================= */
@media (max-width: 768px) {
  .features {
    display: flex !important;
    grid-template-columns: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    /* proximity is less rigid than mandatory — releases the scroll so
       vertical gestures on the page don't get captured and bounced */
    scroll-snap-type: x proximity;
    /* only capture horizontal gestures; vertical passes through to page */
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    gap: 1rem;
    padding: 0 1rem 1rem;
    margin: 1.5rem -1rem 0;
    scroll-padding-left: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .features::-webkit-scrollbar {
    display: none;
  }
  .features > .feature,
  .features > .feature-overlay {
    flex: 0 0 85%;
    scroll-snap-align: start;
    height: 320px;
  }
}

/* ===================================
   SHARED .ab-cta (used on About, Facilities, Fleet, Current Conditions)
   Originally in about.css — moved here so any page can use it.
   =================================== */
.ab-cta {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}
.ab-cta .container {
  position: relative;
  z-index: 2;
}
.ab-cta h2 {
  color: #fff;
  font-size: 2.5rem;
}
.ab-cta p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.ab-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .ab-cta {
    padding: 4rem 1rem;
  }
  .ab-cta h2 {
    font-size: 2rem;
  }
}

/* ===================================
   SPLIT CTA (used on About, Facilities, Sailboat Fleet, Current Conditions)
   =================================== */
.split-cta {
  position: relative;
  margin: 2.5rem;
  border-radius: 1.75rem;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(207, 174, 57, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(144, 194, 231, 0.22) 0%, transparent 45%),
    linear-gradient(135deg, #1a2a6c 0%, var(--main-color, #283e94) 55%, #0f1a4d 100%);
  box-shadow:
    0 8px 20px rgba(8, 18, 55, 0.18),
    0 60px 120px rgba(8, 18, 55, 0.45);
}

.split-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85), transparent 75%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.split-cta-decor {
  position: absolute;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 0;
  animation: split-cta-float 8s ease-in-out infinite;
}

.split-cta-decor-a {
  top: 8%;
  left: 4%;
  font-size: 7rem;
  animation-delay: 0s;
}
.split-cta-decor-b {
  bottom: 10%;
  left: 14%;
  font-size: 4.5rem;
  animation-delay: 2s;
}
.split-cta-decor-c {
  top: 48%;
  left: 40%;
  font-size: 3rem;
  animation-delay: 4s;
}

@keyframes split-cta-float {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

.split-cta-accent {
  font-style: italic;
  color: var(--accent-color, #cfae39);
}

@media (prefers-reduced-motion: reduce) {
  .split-cta-decor {
    animation: none;
  }
}

.split-cta > .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4.5rem 4rem;
  max-width: 1200px;
}

.split-cta-text {
  max-width: 520px;
  text-align: left;
}


.split-cta-eyebrow {
  display: inline-block;
  font-family: "Helvetica Neue", "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-align: left;
}

.split-cta-headline {
  font-family: "Charter", "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 4.5rem);
  line-height: 1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.025em;
  text-align: left;
}

.split-cta-headline::after {
  display: none;
}

.split-cta-body {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.85rem;
  opacity: 0.92;
}

.split-cta-body i {
  margin-right: 0.5rem;
  color: var(--accent-color, #cfae39);
}

.split-cta-body a {
  color: var(--accent-color, #cfae39);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.split-cta-body a:hover {
  color: #fff;
}

.split-cta-buttons {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.75rem;
  justify-content: start;
  align-items: stretch;
}

.split-cta-buttons .btn {
  font-size: 0.75rem;
  padding: 0.6rem 1.2rem;
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  .split-cta-buttons {
    grid-template-columns: 1fr 1fr;
  }
  .split-cta-buttons .btn {
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
  }
}

.split-cta-media {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.split-cta-media img,
.split-cta-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tiles variant for Current Conditions */
.split-cta-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.split-cta-tile {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.85rem;
  padding: 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.split-cta-tile:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.split-cta-tile i {
  font-size: 1.35rem;
  color: var(--accent-color, #cfae39);
}

.split-cta-tile-label {
  font-family: "Charter", "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.02rem;
}

.split-cta-tile-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.split-cta-eyebrow {
  color: var(--accent-color, #cfae39);
  border-color: rgba(207, 174, 57, 0.55);
}

.split-cta-headline {
  color: #fff;
}

.split-cta > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 880px) {
  .split-cta > .container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 2rem;
  }
  .split-cta-media {
    order: -1;
    aspect-ratio: 16 / 9;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .split-cta {
    margin: 1rem 1rem 3rem;
    border-radius: 1.25rem;
  }
  .split-cta > .container {
    padding: 2.5rem 1.5rem;
  }
  .split-cta-headline {
    font-size: 1.85rem;
  }
  .split-cta-body {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .split-cta-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .split-cta-tile {
    padding: 1rem 0.75rem;
  }
}

/* ===================================
   FOOTER CONTACT STRIP (above the columns)
   =================================== */
.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.footer-contact-item > i {
  color: var(--accent-color);
  font-size: 1rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.footer-contact-item strong {
  display: block;
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.footer-contact-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  line-height: 1.5;
}
.footer-contact-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.footer-contact-item a:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .footer-contact {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-contact-item {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
  .footer-contact-item > i {
    margin-top: 0;
  }
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-social {
  display: flex;
  gap: 0.6rem;
}
.footer-social a {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}
.footer-social a:hover {
  background: var(--accent-color);
  color: #000;
}
