/* ============================================
   Bywater Marine - Landing Page Styles
   Brand: Navy #164773 | Plum #46224A | Teal #1B6566
   Typography: Roboto Flex
   ============================================ */

:root {
  --navy: #164773;
  --navy-dark: #0f3255;
  --plum: #46224a;
  --plum-light: #5c3360;
  --teal: #1b6566;
  --teal-light: #238182;
  --sand: #f7f5f2;
  --ink: #1a2a3a;
  --muted: #546778;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 12px rgba(22, 71, 115, 0.08);
  --shadow-md: 0 12px 40px rgba(22, 71, 115, 0.12);
  --shadow-lg: 0 24px 60px rgba(22, 71, 115, 0.18);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto Flex', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

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

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

/* Layout */
.container {
  width: min(1140px, 90vw);
  margin: 0 auto;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 71, 115, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(22, 71, 115, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.brand-sub {
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  transition: color var(--transition);
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--teal);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 999px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 1.25rem;
  font-weight: 500;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--navy);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--teal);
}

.mobile-menu .nav-cta {
  margin-top: 8px;
  padding: 14px 32px;
  font-size: 1.1rem;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero-bg.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(22, 71, 115, 0.82) 0%,
    rgba(27, 101, 102, 0.7) 40%,
    rgba(70, 34, 74, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 60px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 28px;
}

.hero-eyebrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero h1 span {
  font-weight: 400;
  display: block;
  opacity: 0.92;
}

.hero-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  fill: var(--teal-light);
  flex-shrink: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; height: 36px; }
  50% { opacity: 1; height: 48px; }
}

/* ============================================
   Section shared styles
   ============================================ */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================
   Services
   ============================================ */
.services {
  background: var(--sand);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:nth-child(2)::before { background: var(--plum); }
.service-card:nth-child(3)::before { background: var(--navy); }
.service-card:nth-child(4)::before { background: var(--teal); }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(27, 101, 102, 0.08);
}

.service-card:nth-child(2) .service-icon { background: rgba(70, 34, 74, 0.08); }
.service-card:nth-child(3) .service-icon { background: rgba(22, 71, 115, 0.08); }

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--teal);
  stroke-width: 1.8;
  fill: none;
}

.service-card:nth-child(2) .service-icon svg { stroke: var(--plum); }
.service-card:nth-child(3) .service-icon svg { stroke: var(--navy); }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================
   Process / How it Works
   ============================================ */
.process {
  background: var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

/* Connecting line between steps */
.process-steps::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(to right, var(--teal), var(--plum), var(--navy));
  opacity: 0.2;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--teal);
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 20px rgba(27, 101, 102, 0.25);
}

.step:nth-child(2) .step-number {
  background: var(--plum);
  box-shadow: 0 6px 20px rgba(70, 34, 74, 0.25);
}

.step:nth-child(3) .step-number {
  background: var(--navy);
  box-shadow: 0 6px 20px rgba(22, 71, 115, 0.25);
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================
   Coverage
   ============================================ */
.coverage {
  background: linear-gradient(135deg, rgba(22, 71, 115, 0.04), rgba(27, 101, 102, 0.06));
}

.coverage-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.coverage-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.coverage-text {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.location-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.location-pill {
  padding: 10px 20px;
  background: rgba(22, 71, 115, 0.08);
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.coverage-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--teal);
}

.coverage-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.coverage-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.65;
}

.btn-solid {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-solid:hover {
  background: var(--navy-dark);
  box-shadow: var(--shadow-md);
}

/* ============================================
   Contact
   ============================================ */
.contact {
  background: var(--white);
}

.contact-wrapper {
  background: var(--navy);
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(27, 101, 102, 0.15);
  pointer-events: none;
}

.contact-wrapper::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(70, 34, 74, 0.1);
  pointer-events: none;
}

.contact-info {
  position: relative;
  z-index: 1;
}

.contact-info .section-label {
  color: rgba(255, 255, 255, 0.6);
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}

.contact-info p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.contact-methods {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: transform var(--transition), background var(--transition);
}

.contact-method:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  stroke-width: 1.8;
  fill: none;
}

.contact-method-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-method-value {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #0c1e2d;
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
}

.footer-brand strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.footer p {
  font-size: 0.85rem;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.35s; }

/* Hero entrance animations */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-in 0.8s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.35s; }
.hero-content > *:nth-child(3) { animation-delay: 0.5s; }
.hero-content > *:nth-child(4) { animation-delay: 0.65s; }
.hero-content > *:nth-child(5) { animation-delay: 0.8s; }

@keyframes hero-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    max-width: 100%;
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 40px 32px;
  }

  .process-steps::before {
    display: none;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step {
    text-align: left;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
  }

  .step-number {
    margin: 0;
    grid-row: 1 / 3;
  }

  .step h3 {
    align-self: end;
    margin-bottom: 2px;
  }

  .step p {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

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

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .hero-trust {
    flex-direction: column;
    gap: 12px;
  }

  .contact-wrapper {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .location-pills {
    gap: 8px;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: 0 -4px 24px rgba(22, 71, 115, 0.12);
  border-top: 1px solid rgba(22, 71, 115, 0.08);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-inner {
  width: min(1140px, 90vw);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-inner p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-banner-inner a {
  color: var(--teal);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn-accept {
  background: var(--navy);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background: var(--navy-dark);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(22, 71, 115, 0.15);
}

.cookie-btn-reject:hover {
  background: rgba(22, 71, 115, 0.04);
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}
