/* =========================================================
   1) DESIGN TOKENS (Colors, spacing, etc.)
   --------------------------------------------------------- */
:root{
  --brand: #0b5bd3;
  --brand-light: #3478f6;
  --brand-dark: #084298;
  --ink: #1a1a1a;
  --ink-light: #4a5568;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --ok: #10b981;
  --warn: #f59e0b;
  --error: #ef4444;
  --chip: #eff6ff;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
}

/* =========================================================
   2) GLOBAL RESET & BASE
   --------------------------------------------------------- */
* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

body{
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

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

/* Containers & wrappers */
.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

.wrap { 
  max-width: 1000px; 
  margin: 0 auto; 
  padding: 1.5rem;
}

/* =========================================================
   3) TYPOGRAPHY
   --------------------------------------------------------- */
h1, h2, h3, h4 { 
  margin: 0 0 1rem 0; 
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.25rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { 
  margin: 0 0 1rem; 
  line-height: 1.6;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-title {
  text-align: center;
  color: var(--ink);
  margin-bottom: 1rem;
}

/* =========================================================
   4) BUTTONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 44px; /* Better touch target */
  touch-action: manipulation;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-secondary:hover {
  background: var(--brand);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-height: 48px;
}

/* Mobile button improvements */
@media (max-width: 767px) {
  .btn {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
}

/* =========================================================
   5) HEADER & NAV
   --------------------------------------------------------- */
.site-header {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--brand-light) 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.logo {
  height: 100px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.main-nav a {
  color: white;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.main-nav a.active {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

/* Mobile header improvements */
@media (max-width: 767px) {
  .site-header {
    padding: 0.75rem 0;
  }
  
  .logo {
    height: 80px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .main-nav a {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .main-nav ul {
    justify-content: center;
    width: 100%;
  }
}

/* =========================================================
   6) HERO SECTION
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1559827260-dc66d52bef19?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80") center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 91, 211, 0.8) 0%, rgba(8, 66, 152, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem 0;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
  min-width: 100px;
}

.stat-number {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: white;
  line-height: 1;
}

.stat-label {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-top: 0.25rem;
}

/* Mobile hero improvements */
@media (max-width: 767px) {
  .hero {
    min-height: 60vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    padding: 1rem 0;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .hero-background {
    background-attachment: scroll; /* Better mobile performance */
  }
}

/* =========================================================
   7) SECTIONS & STEPS
   --------------------------------------------------------- */
.section {
  padding: 3rem 0;
}

.section:nth-child(even) {
  background: var(--bg-alt);
}

#open-water-steps {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-top: 3px solid var(--brand);
  position: relative;
  overflow: hidden;
}

#open-water-steps::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='20' cy='20' r='2' fill='rgba(59,130,246,0.1)'/><circle cx='80' cy='80' r='2' fill='rgba(59,130,246,0.1)'/><circle cx='40' cy='60' r='1.5' fill='rgba(59,130,246,0.1)'/></svg>") repeat;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-10px) translateX(5px); }
  50% { transform: translateY(0px) translateX(10px); }
  75% { transform: translateY(-5px) translateX(5px); }
}

.steps-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 3rem;
}

.step-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--line);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  color: var(--brand);
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.step-card p {
  color: var(--muted);
  margin: 0;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--brand);
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Mobile steps improvements */
@media (max-width: 767px) {
  .section {
    padding: 2rem 0;
  }
  
  .steps-flow {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
  
  .step-card {
    padding: 1.5rem;
    margin: 0 auto;
    max-width: 350px;
  }
  
  .step-icon {
    font-size: 2.5rem;
  }
}

/* =========================================================
   8) TRUST SECTION
   --------------------------------------------------------- */
.trust-section {
  background: white;
  position: relative;
}

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

.trust-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.trust-icon {
  font-size: 2.5rem;
  color: var(--ok);
  margin-bottom: 1rem;
}

.trust-item h3 {
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.trust-item p {
  color: var(--muted);
  margin: 0;
  font-size: clamp(0.875rem, 1.5vw, 0.9rem);
}

/* Mobile trust grid improvements */
@media (max-width: 767px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
    margin: 2rem auto 0;
  }
  
  .trust-item {
    padding: 1.25rem;
  }
  
  .trust-icon {
    font-size: 2rem;
  }
}

/* =========================================================
   9) LOCATION CARDS
   --------------------------------------------------------- */
.locations-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

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

.location-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--line);
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.location-header {
  background: var(--gradient);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.location-header h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.price {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 800;
  color: white;
  margin: 0;
}

.location-card > p {
  padding: 0 1.5rem;
  margin: 1.5rem 0;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.location-card ul {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0 1.5rem;
}

.location-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: clamp(0.875rem, 1.5vw, 0.9rem);
  line-height: 1.5;
}

.location-card li::before {
  content: "✓";
  color: var(--ok);
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.location-card .btn {
  margin: 1.5rem;
  width: calc(100% - 3rem);
}

/* Mobile location card improvements */
@media (max-width: 767px) {
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .location-header {
    padding: 1.25rem;
  }
  
  .location-card > p,
  .location-card ul {
    padding: 0 1.25rem;
  }
  
  .location-card .btn {
    margin: 1.25rem;
    width: calc(100% - 2.5rem);
  }
}

/* =========================================================
   10) CHECKOUT CARDS ENHANCEMENTS
   --------------------------------------------------------- */
.checkout-card {
  position: relative;
}

.location-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.location-badge.basic {
  background: #dbeafe;
  color: var(--brand);
}

.location-badge.premium {
  background: #fef3c7;
  color: #d97706;
}

.checkout-card.featured {
  border: 2px solid #f59e0b;
  position: relative;
}

.checkout-card.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0 1.5rem;
}

.feature {
  background: var(--chip);
  color: var(--brand);
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  text-align: center;
  font-weight: 500;
}

/* Mobile checkout card improvements */
@media (max-width: 767px) {
  .location-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }
  
  .checkout-card.featured::before {
    position: static;
    transform: none;
    display: block;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 1.25rem;
  }
}

/* =========================================================
   11) TESTIMONIALS
   --------------------------------------------------------- */
.testimonials {
  background: var(--bg-alt);
}

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

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  text-align: center;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stars {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #fbbf24;
}

.testimonial-card p {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.testimonial-author {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.testimonial-author strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Mobile testimonials improvements */
@media (max-width: 767px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
}

/* =========================================================
   12) CTA SECTION
   --------------------------------------------------------- */
.cta-section {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.cta-content p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile CTA improvements */
@media (max-width: 767px) {
  .cta-section {
    padding: 3rem 0;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* =========================================================
   13) FOOTER
   --------------------------------------------------------- */
footer {
  background: var(--ink);
  color: white;
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-section a:hover {
  color: white;
  text-decoration: underline;
}

.footer-section a {
  display: block;
  margin-bottom: 0.5rem;
}

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

/* Mobile footer improvements */
@media (max-width: 767px) {
  footer {
    padding: 2rem 0 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-section a {
    display: inline;
    margin-right: 1rem;
    margin-bottom: 0;
  }
}

/* =========================================================
   14) SECTION DIVIDER
   --------------------------------------------------------- */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 0;
}

/* =========================================================
   15) MOBILE-SPECIFIC IMPROVEMENTS
   --------------------------------------------------------- */

/* Improve touch targets */
@media (max-width: 767px) {
  /* Ensure all clickable elements are at least 44px */
  a, button, .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Better spacing for mobile */
  .section {
    padding: 2rem 0;
  }
  
  /* Remove hover effects on touch devices */
  .step-card:hover,
  .location-card:hover,
  .trust-item:hover,
  .testimonial-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
  
  /* Improve text readability */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Better spacing in containers */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Very small screens */
@media (max-width: 375px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .step-card,
  .location-card,
  .testimonial-card {
    padding: 1rem;
  }
}