@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* HARBOR PATHWAY Color System */
  --primary-background: #F2F7F5;
  --ocean-surface: #FFFFFF;
  --deep-harbor: #12303A;
  --navigation-blue: #176B87;
  --sea-glass: #42C2B8;
  --sun-accent: #F4B942;
  --coral-route: #E76F51;
  --fresh-leaf: #70C36B;
  --soft-sand: #E9D8A6;
  --dark-text: #102A32;
  --secondary-text: #52656B;
  --muted-text: #84949A;
  --border: #D7E3E1;
  --shadow: rgba(16, 42, 50, 0.12);
  
  /* Layout */
  --nav-height: 80px;
  --max-width: 1400px;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--primary-background);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--deep-harbor);
  line-height: 1.2;
  font-weight: 700;
}

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

a:hover {
  color: var(--sea-glass);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 100px 0;
  position: relative;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* HARBOR PATHWAY™ Route Lines */
.route-line {
  position: relative;
}
.route-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background-image: linear-gradient(to bottom, var(--sea-glass) 50%, transparent 50%);
  background-size: 2px 16px;
  z-index: -1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  gap: 8px;
}

.btn-primary {
  background-color: var(--navigation-blue);
  color: var(--ocean-surface);
}

.btn-primary:hover {
  background-color: var(--deep-harbor);
  color: var(--ocean-surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--navigation-blue);
  color: var(--navigation-blue);
}

.btn-outline:hover {
  background-color: var(--navigation-blue);
  color: var(--ocean-surface);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 15px var(--shadow);
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--deep-harbor);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--secondary-text);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--navigation-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--sea-glass);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* New Dropdown CSS */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown > .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: var(--ocean-surface);
    min-width: 220px;
    box-shadow: 0 10px 30px var(--shadow);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border);
    padding: 12px 0;
    z-index: 1000;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--secondary-text);
    padding: 10px 24px;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--primary-background);
    color: var(--navigation-blue);
    padding-left: 30px;
}

.dropdown-content a.active {
    color: var(--navigation-blue);
    background-color: var(--primary-background);
    border-left: 3px solid var(--navigation-blue);
    padding-left: 21px;
}

.dropdown-content a.active:hover {
    padding-left: 27px;
}

.nav-btn {
    margin-left: 8px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--deep-harbor);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--ocean-surface) 0%, var(--primary-background) 100%);
  position: relative;
  overflow: hidden;
}

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

.hero h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  color: var(--deep-harbor);
}

.hero p {
  font-size: 1.25rem;
  color: var(--secondary-text);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--sea-glass) 0%, transparent 60%);
  opacity: 0.1;
  z-index: 1;
  border-radius: 50%;
}

/* Route Cards */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.route-card {
  background: var(--ocean-surface);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.route-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow);
  border-color: var(--sea-glass);
}

.route-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--navigation-blue), var(--sea-glass));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.route-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--navigation-blue);
}

.route-icon svg {
  width: 28px;
  height: 28px;
}

.route-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.route-card p {
  color: var(--secondary-text);
  margin-bottom: 24px;
}

.route-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--navigation-blue);
  gap: 8px;
}

.route-link:hover {
  color: var(--coral-route);
}

/* Journey Timeline */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-image: linear-gradient(to bottom, var(--sea-glass) 50%, transparent 50%);
  background-size: 2px 16px;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
  z-index: 1;
}

.timeline-step {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.timeline-step:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-step:nth-child(even) {
  left: 50%;
}

.timeline-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  right: -12px;
  background-color: var(--ocean-surface);
  border: 4px solid var(--navigation-blue);
  border-radius: 50%;
  top: 15px;
  z-index: 2;
}

.timeline-step:nth-child(even) .timeline-marker {
  left: -12px;
}

.timeline-content {
  padding: 24px;
  background-color: var(--ocean-surface);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 12px var(--shadow);
  border: 1px solid var(--border);
}

.timeline-content h4 {
  color: var(--deep-harbor);
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--secondary-text);
  font-size: 0.95rem;
}

/* UK Driving Conditions */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.condition-card {
  background: var(--ocean-surface);
  padding: 30px;
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--fresh-leaf);
  box-shadow: 0 2px 10px var(--shadow);
}
.condition-card:nth-child(2n) { border-left-color: var(--sun-accent); }
.condition-card:nth-child(3n) { border-left-color: var(--coral-route); }

.condition-card h4 {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--ocean-surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 24px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-harbor);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--navigation-blue);
  transition: transform 0.3s ease;
}

.faq-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--primary-background);
}

.faq-answer-inner {
  padding: 0 24px 24px;
  color: var(--secondary-text);
}

/* Contact Form */
.form-container {
  background: var(--ocean-surface);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 30px var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--deep-harbor);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--dark-text);
  background-color: var(--primary-background);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--sea-glass);
  box-shadow: 0 0 0 3px rgba(66, 194, 184, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-top: 16px;
  text-align: center;
}

/* Footer */
.site-footer {
  background-color: var(--deep-harbor);
  color: var(--ocean-surface);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h2 {
  color: var(--ocean-surface);
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--muted-text);
  max-width: 300px;
}

.footer-heading {
  color: var(--sea-glass);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted-text);
}

.footer-links a:hover {
  color: var(--ocean-surface);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted-text);
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--ocean-surface);
  padding: 24px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 40px var(--shadow);
  z-index: 9999;
  width: 90%;
  max-width: 600px;
  border: 1px solid var(--border);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-content h4 {
  margin-bottom: 8px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--secondary-text);
  margin-bottom: 16px;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  flex: 1;
  min-width: 120px;
  font-size: 0.9rem;
  padding: 10px 16px;
}

/* Internal Page Headers */
.page-header {
  background: var(--deep-harbor);
  padding: 160px 0 80px;
  text-align: center;
  color: var(--ocean-surface);
}

.page-header h1 {
  color: var(--ocean-surface);
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--muted-text);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Informational Disclaimers */
.disclaimer-box {
  background: rgba(244, 185, 66, 0.1);
  border-left: 4px solid var(--sun-accent);
  padding: 20px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin: 30px 0;
}

.disclaimer-box p {
  color: var(--dark-text);
  font-size: 0.95rem;
  margin: 0;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1600px) {
  .container { max-width: 1140px; }
}

@media (max-width: 1200px) {
  .container { max-width: 960px; }
  .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 992px) {
  .container { max-width: 720px; }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--ocean-surface);
    flex-direction: column;
    padding: 40px 20px;
    transition: var(--transition);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-toggle {
    display: flex;
  }

  .nav-dropdown {
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
  }
  
  .dropdown-content {
      position: static;
      visibility: visible;
      opacity: 1;
      box-shadow: none;
      border: none;
      background: transparent;
      padding: 0;
      margin-top: 10px;
      transform: none;
      min-width: 100%;
      border-left: 2px solid var(--border);
      border-radius: 0;
      margin-left: 10px;
      display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .timeline::after { left: 31px; }
  .timeline-step { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-step:nth-child(odd), .timeline-step:nth-child(even) { left: 0; text-align: left; }
  .timeline-marker { left: 15px !important; }
}

@media (max-width: 768px) {
  .container { max-width: 540px; }
  .hero h1 { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cookie-buttons { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 60px 0; }
  .page-header { padding: 120px 0 60px; }
}

@media (max-width: 360px) {
  .hero p { font-size: 1rem; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
}