/* ==========================================================================  
   CSS RESET & FOUNDATION
   ========================================================================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details,
embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #1A2733;
  background: #F7F9FB;
  min-height: 100vh;
  line-height: 1.66;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  vertical-align: middle;
  border-style: none;
}
a {
  color: #17405E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #59A45D;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 10px;
}
strong {
  font-weight: 600;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================  
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', Arial, Helvetica, sans-serif;
  color: #17405E;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem; /* 40px */
  line-height: 1.2;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem; /* 32px */
  line-height: 1.25;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.375rem; /* 22px */
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 18px;
  color: #26323C;
  font-size: 1rem;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 16px rgba(23,64,94,0.06);
}
.content-wrapper:not(:last-child) {
  margin-bottom: 24px;
}

/* ==========================================================================  
   HEADER & NAVIGATION
   ========================================================================== */
header {
  background: #fff;
  border-bottom: 1px solid #E5E9EE;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 7px 12px;
  font-size: 1rem;
  border-radius: 6px;
  color: #17405E;
  font-weight: 500;
  transition: background 0.18s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  background: #17405E;
  color: #fff;
}
.btn-primary {
  background: #17405E;
  color: #fff;
  border: 0;
  outline: 0;
  padding: 11px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-left: 18px;
  box-shadow: 0 2px 7px rgba(23,64,94,0.08);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.15s;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #59A45D;
  color: #fff;
  box-shadow: 0 4px 16px rgba(89,164,93,0.17);
}

/* mobile burger button */
.mobile-menu-toggle {
  display: none;
  background: #17405E;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 10px;
  z-index: 2300;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #59A45D;
  color: #fff;
}

/* ==========================================================================  
   MOBILE MENU
   ========================================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #17405E;
  color: #fff;
  z-index: 2400;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.61,.12,.39,.94);
  box-shadow: 0 8px 32px rgba(23,64,94,0.34);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 0 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #59A45D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 20px;
  gap: 10px;
  padding: 0 32px;
}
.mobile-nav a {
  padding: 15px 0;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.18s, color 0.17s;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #59A45D;
  color: #fff;
  border-radius: 6px;
}

@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  header nav {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    gap: 5px;
  }
  nav, header nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}

/* ==========================================================================  
   MAIN SECTIONS AND LAYOUT FLEX CONTAINERS
   ========================================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 11px rgba(23,64,94,0.08);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.14s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px rgba(23,64,94,0.11);
  transform: translateY(-2px) scale(1.025);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F2F5F8;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(89,164,93,0.09);
  border: 1px solid #E0E6EB;
  font-size: 1rem;
  max-width: 650px;
  transition: box-shadow 0.14s;
}
.testimonial-card .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-card p {
  color: #17405E;
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.6;
}
.testimonial-card strong {
  color: #26323C;
  font-size: 0.96rem;
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 4px 20px rgba(23,64,94,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==========================================================================  
   SPECIAL FLEX LAYOUTS
   ========================================================================== */
.feature_grid, .category_grid, .short_story_grid, .team_list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 28px 0 0 0;
  list-style: none;
  padding: 0;
}
.feature_grid li {
  background: #F2F5F8;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(23,64,94,.07);
  padding: 22px 20px 20px;
  flex: 1 1 210px;
  min-width: 206px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.18s;
}
.feature_grid li img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}
.feature_grid li:hover, .feature_grid li:focus-within {
  box-shadow: 0 5px 18px rgba(89,164,93,0.13);
}
.category_grid > div, .short_story_grid > div {
  background: #F2F5F8;
  border-radius: 10px;
  padding: 24px 19px;
  flex: 1 1 220px;
  min-width: 190px;
  box-shadow: 0 2px 10px rgba(23,64,94,0.07);
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
  transition: box-shadow 0.18s;
}
.category_grid > div:hover, .short_story_grid > div:hover {
  box-shadow: 0 6px 20px rgba(89,164,93,0.11);
}
.short_story_grid a {
  color: #59A45D;
  font-weight: 600;
  margin-top: 6px;
  transition: color 0.15s;
}
.short_story_grid a:hover, .short_story_grid a:focus {
  color: #17405E;
  text-decoration: underline;
}

.city_filter, .category_filter, .route_filters {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 26px 0;
}
.city_filter label, .category_filter label, .route_filters label {
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #17405E;
}
select {
  border: 1px solid #CCD6DF;
  border-radius: 7px;
  padding: 8px 22px 8px 10px;
  background: #F7F9FB;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #26323C;
  transition: border-color 0.16s;
}
select:focus {
  border-color: #59A45D;
  outline: none;
}

.unique_city_features, .quick_advice, .tip_boxes, .short_bios, .value_descriptions, .feedback_message {
  background: #F2F5F8;
  border-radius: 10px;
  padding: 20px 20px;
  font-size: 1rem;
  color: #26323C;
  margin-top: 18px;
  box-shadow: 0 1px 8px rgba(23,64,94,0.05);
}
.mission_statement {
  padding: 16px 18px;
  background: #EAF1F7;
  border-radius: 8px;
  margin-bottom: 16px;
}
.vision_points, .value_points {
  list-style: disc inside;
  margin-left: 14px;
}

/* Feedback Message */
.feedback_message p {
  color: #B85036;
  margin: 0;
  font-weight: 500;
  font-size: 0.96rem;
}

.address, address {
  margin-bottom: 14px;
  color: #26323C;
  font-size: 1rem;
  font-style: normal;
}
address a {
  color: #17405E;
  text-decoration: underline;
  transition: color 0.16s;
}
address a:hover {
  color: #59A45D;
}

/* Legal (Policy) Texts */
.legal_text {
  background: #F7F9FB;
  border: 1px solid #E0E6EB;
  border-radius: 13px;
  padding: 22px 24px 18px;
  color: #26323C;
  font-size: 1rem;
}
.legal_text h2 {
  font-size: 1.2rem;
  margin-top: 20px;
  color: #17405E;
  font-family: 'Montserrat', Arial, sans-serif;
}
.legal_text ul {
  margin-left: 14px;
}

/* ==========================================================================  
   FOOTER
   ========================================================================== */
footer {
  width: 100%;
  background: #17405E;
  color: #fff;
  padding: 38px 0 28px 0;
  font-size: 1rem;
  border-top: 4px solid #59A45D;
  box-shadow: 0 -8px 40px rgba(23,64,94,0.05);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #fff;
  opacity: 0.92;
  font-size: 1rem;
  margin-bottom: 2px;
  transition: color 0.14s, opacity 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #59A45D;
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e3e7ed;
  font-size: 1rem;
  margin-bottom: 0;
}
.footer-contact img {
  width: 19px;
  height: 19px;
}

/* ==========================================================================  
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .feature_grid, .category_grid, .short_story_grid, .team_list, .content-grid {
    gap: 17px;
  }
  .section {
    padding: 28px 6px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.375rem;
  }
  .feature_grid, .category_grid, .short_story_grid, .team_list {
    flex-direction: column;
    gap: 15px;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card {
    padding: 13px 11px;
  }
  .section {
    padding: 22px 3vw 18px 3vw;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
  .footer-contact p {
    font-size: 0.98rem;
  }
}
@media (max-width: 490px) {
  .section {
    padding: 7vw 1vw 10vw 1vw;
  }
}

/* ==========================================================================  
   TRANSITIONS, SHADOWS, EFFECTS
   ========================================================================== */
.section, .card, .feature_grid li, .category_grid > div, .short_story_grid > div, .testimonial-card {
  box-shadow: 0 2px 10px rgba(23,64,94,0.06);
  transition: box-shadow 0.15s, transform 0.16s;
}
.section:hover, .card:hover, .testimonial-card:hover, .feature_grid li:hover, .category_grid > div:hover, .short_story_grid > div:hover {
  box-shadow: 0 8px 22px rgba(23,64,94,0.13);
}

/* Button transitions */
.btn-primary, .cookie-banner button, .cookie-modal button {
  transition: background 0.16s, color 0.16s, box-shadow 0.13s;
}

/* ==========================================================================  
   COOKIE BANNER & MODAL
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #17405E;
  color: #fff;
  padding: 24px 20px 18px 20px;
  z-index: 5000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -3px 30px rgba(23,64,94,0.15);
  border-top: 3px solid #59A45D;
  font-size: 1rem;
  animation: cookie-slideup 0.38s cubic-bezier(.62,.09,.24,1.22);
}
@keyframes cookie-slideup {
  from { 
      transform: translateY(60px); opacity: 0;
  } 
  to {
      transform: translateY(0); opacity: 1;
  }
}
.cookie-banner p {
  flex: 1 1 200px;
  margin: 0;
  color: #fff;
  font-size: 0.99rem;
}
.cookie-banner button {
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  margin-right: 8px;
  min-width: 120px;
  padding: 10px 24px;
  cursor: pointer;
  font-weight: 600;
  outline: 0;
}
.cookie-banner .accept {
  background: #59A45D;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #47B063;
}
.cookie-banner .reject {
  background: #fff;
  color: #17405E;
  border: 1.5px solid #17405E;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #FDF6EC;
  color: #17405E;
}
.cookie-banner .settings {
  background: #E5E9EE;
  color: #17405E;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #17405E;
  color: #fff;
}

/* COOKIES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(23,64,94,0.47);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5100;
  animation: fade-in 0.3s;
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(23,64,94,0.15);
  padding: 37px 26px 24px 26px;
  min-width: 320px;
  max-width: 95vw;
  color: #17405E;
  animation: modal-popin 0.32s cubic-bezier(.53,1.74,.38,.76);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
}
@keyframes modal-popin {
  from { transform: scale(0.92) translateY(65px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
  color: #17405E;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 13px; top: 11px;
  font-size: 1.55rem;
  background: none;
  border: none;
  color: #17405E;
  cursor: pointer;
  opacity: 0.67;
  transition: color 0.13s, opacity 0.13s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: #59A45D; opacity: 1;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F7F9FB;
  border-radius: 7px;
  padding: 14px 12px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  flex: 1;
  font-weight: 600;
  color: #17405E;
}
.cookie-modal .cookie-toggle {
  position: relative;
  width: 46px;
  height: 26px;
}
.cookie-modal .cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 46px;
  height: 26px;
  position: absolute;
  left: 0; top: 0;
  margin: 0;
}
.cookie-modal .cookie-toggle span {
  display: block;
  width: 46px;
  height: 26px;
  background: #E5E9EE;
  border-radius: 13px;
  position: absolute;
  left: 0; top: 0;
  transition: background 0.18s;
}
.cookie-modal .cookie-toggle input:checked + span {
  background: #59A45D;
}
.cookie-modal .cookie-toggle span:after {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(23,64,94,0.10);
  transition: left 0.18s;
}
.cookie-modal .cookie-toggle input:checked + span:after {
  left: 22px;
}
.cookie-modal .cookie-desc {
  font-size: 0.97rem;
  color: #557;
  padding-left: 1px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-actions button {
  border-radius: 8px;
  padding: 8px 21px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  outline: 0;
}
.cookie-modal .cookie-actions .accept {
  background: #59A45D;
  color: #fff;
}
.cookie-modal .cookie-actions .accept:hover, .cookie-modal .cookie-actions .accept:focus {
  background: #17405E;
}
.cookie-modal .cookie-actions .close {
  background: #E5E9EE;
  color: #17405E;
}
.cookie-modal .cookie-actions .close:hover, .cookie-modal .cookie-actions .close:focus {
  background: #17405E;
  color: #fff;
}

@media (max-width: 500px) {
  .cookie-modal {
    padding: 20px 5vw 15px 5vw;
    min-width: 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 18px 8px 12px 8px;
    font-size: 0.97rem;
  }
}

/* ==========================================================================  
   FORM CONTROLS (for accessible cookie modal interaction)
   ========================================================================== */
input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
}
input[type="text"], input[type="email"], textarea {
  border: 1px solid #CCD6DF;
  border-radius: 7px;
  padding: 10px 12px;
  background: #F7F9FB;
  color: #26323C;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.16s;
}
input:focus, textarea:focus {
  border-color: #59A45D;
  outline: none;
}

/* ==========================================================================  
   MISC UTILITIES & ACCESSIBILITY
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ==========================================================================  
   Z-INDEX HIERARCHY
   ========================================================================== */
header { z-index: 100; }
.mobile-menu { z-index: 2400; }
.cookie-banner { z-index: 5000; }
.cookie-modal-overlay { z-index: 5100; }

/* ==========================================================================  
   PRINT STYLE
   ========================================================================== */
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay, .mobile-menu { display: none !important; }
  .section { box-shadow: none; background: #fff; }
}
