/* =====================================================
   CSS RESET & NORMALIZE
   ===================================================== */
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 {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  background: #FFFFFF;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Lato', Arial, sans-serif;
  color: #24302e;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, button:focus {
  outline: 2px solid #E2C278;
  outline-offset: 2px;
}

/* Accessibility: Remove tap highlight and improve focus */
*:focus-visible {
  outline: 2px solid #E2C278;
}

/* Fonts */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  color: #395451;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; font-weight: 600; }
p, ul, ol, blockquote { margin-bottom: 16px; }
strong { font-weight: 700; color: #395451; }

/* Default layout containers */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}


/* =====================================================
   NAVIGATION & HEADER
   ===================================================== */
header {
  background: #fff;
  border-bottom: 1px solid #f3f3f3;
  position: relative;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.main-nav > a {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 1rem;
  color: #395451;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav > a:hover, .main-nav > a.active {
  background: #F6F5F0;
  color: #24302e;
}
.main-nav img {
  height: 36px;
  margin-right: 10px;
  vertical-align: middle;
}
.cta-primary {
  background: #395451;
  color: #fff;
  font-weight: 700;
  border-radius: 32px;
  padding: 9px 26px;
  margin-left: 16px;
  box-shadow: 0 2px 10px 0 rgba(57,84,81,0.06);
  transition: background 0.22s, color 0.22s, box-shadow 0.18s;
  border: none;
  text-align: center;
}
.cta-primary:hover, .cta-primary:focus {
  background: #E2C278;
  color: #24302e;
  box-shadow: 0 2px 14px 0 rgba(57,84,81,0.12);
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

/* ===============================
   MOBILE MENU
   =============================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.30s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  box-shadow: -2px 0 28px 0 rgba(38, 64, 54, 0.12);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #395451;
  background: transparent;
  border: none;
  margin: 18px 18px 0 0;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-close:hover {
  background: #f5f2ea;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 36px 0 0 36px;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #395451;
  padding: 10px 6px 10px 0;
  border-radius: 0 24px 24px 0;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover {
  background: #F6F5F0;
  color: #E2C278;
}

/* ===============================
   HERO SECTION
   =============================== */
.hero {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #F6F5F0;
  display: flex;
  align-items: center;
  min-height: 320px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 670px;
  margin: 0 auto;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 22px;
  color: #42514f;
}
.hero .cta-primary {
  margin-left: 0;
  font-size: 1rem;
}

/* =====================================================
   SECTIONS, FEATURES, SERVICES, CTA, ETC
   ===================================================== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px 40px 20px;
}
.features, .services, .cta, .about, .contact-info, .legal, .thank-you {
  width: 100%;
}
.features .container,
.services .container,
.cta .container,
.about .container,
.legal .container,
.thank-you .container {
  padding: 0 20px;
}

/* Feature grids, align to brief */
.feature-grid, .feature-list, .borghi-list, .itinerary-grid, .feature-icons, .service-list, .service-packages, .service-highlights, .service-offers, .faq-accordion {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}
.feature-grid li, .feature-list li, .borghi-list li, .itinerary-grid li, .feature-icons li, .value-list li, .service-list li, .service-packages li, .service-highlights li, .service-offers li, .faq-accordion li {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 18px 0 rgba(38,64,54,0.07);
  padding: 30px 22px;
  flex: 1 1 260px;
  min-width: 210px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.21s, transform 0.16s;
  border: 1px solid #F5F2EA;
}
.feature-grid li:hover,
.feature-list li:hover,
.borghi-list li:hover,
.itinerary-grid li:hover,
.value-list li:hover,
.feature-icons li:hover,
.service-list li:hover,
.service-packages li:hover,
.service-highlights li:hover,
.service-offers li:hover {
  box-shadow: 0 10px 32px 0 rgba(38,64,54,0.11);
  transform: translateY(-3px) scale(1.015);
}
.feature-grid h3, .feature-list h3, .borghi-list h3, .itinerary-grid h3, .value-list h3, .service-list h3 {
  color: #395451;
  font-size: 1.18rem;
  margin-bottom: 6px;
}
.feature-grid p, .feature-list p, .borghi-list p, .itinerary-grid .route-highlights, .value-list p, .service-list p {
  color: #42514f;
}
.feature-grid img, .feature-list img, .feature-icons img, .service-list img, .service-highlights img {
  height: 36px;
  width: 36px;
  margin-bottom: 8px;
  display: block;
}

.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}
.value-list li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px 0 rgba(38,64,54,0.07);
  padding: 24px 18px;
  flex: 1 1 200px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #F5F2EA;
}

.unique-features, .wellness-spa-highlight, .support-icons, .open-hours, .success-message {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #F6F5F0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 16px;
  margin-bottom: 18px;
  font-size: 1.07rem;
  color: #395451;
}
.unique-features img, .wellness-spa-highlight img, .support-icons img, .open-hours img, .footer-contact img {
  height: 24px;
  width: 24px;
  margin-right: 10px;
}
.unique-features ul {
  list-style-type: disc;
  margin-left: 22px;
  color: #42514f;
  font-size: 0.97rem;
}

.route-highlights {
  color: #395451;
  font-size: 0.98rem;
  margin-top: 6px;
  margin-bottom: 0;
}

.theme-tag, .city-highlight, .location-tag {
  display: inline-block;
  font-size: 0.92rem;
  background: #E2C278;
  color: #24302e;
  padding: 4px 14px;
  border-radius: 14px;
  font-weight: 500;
  margin-bottom: 7px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
  margin-bottom: 12px;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  background: #F6F5F0;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(38,64,54,0.07);
  padding: 24px 24px;
  margin: 0 0 20px 0;
  color: #395451;
  font-size: 1.08rem;
  border: 1px solid #ECE5DA;
  min-width: 0;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #42514f;
  font-style: italic;
  margin-top: 4px;
}
.trust-row, .content-row.trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff8ea;
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 16px;
  font-size: 1.01rem;
  color: #395451;
}
.trust-row img {
  width: 30px;
  height: 30px;
  margin-right: 12px;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: #f9f8f4;
  color: #395451;
  padding-top: 36px;
  border-top: 1px solid #ECE5DA;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid #ECE5DA;
}
.footer-top > a img {
  height: 48px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-direction: column;
}
.footer-nav a {
  color: #395451;
  font-size: 1rem;
  opacity: 0.86;
  padding: 6px 0;
  transition: color 0.14s, opacity 0.18s;
}
.footer-nav a:hover {
  color: #E2C278;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #395451;
  font-size: 0.97rem;
  margin: 12px 0;
}
.footer-contact a {
  color: #395451;
  text-decoration: underline;
  transition: color 0.16s;
}
.footer-contact a:hover { color: #E2C278; }
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
.footer-social a img {
  height: 28px;
  width: 28px;
  filter: grayscale(0.2) contrast(0.95);
  transition: filter 0.21s, opacity 0.18s;
  opacity: 0.7;
}
.footer-social a:hover img {
  filter: grayscale(0) contrast(1.08);
  opacity: 1;
}
.footer-bottom {
  text-align: center;
  padding: 18px 0;
  color: #42514f;
  font-size: 0.98rem;
}


/* =====================================================
   THANK YOU, SUCCESS, & LEGAL
   ===================================================== */
.success-message {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #F6F5F0;
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 1.09rem;
  color: #395451;
  margin-bottom: 18px;
}
.success-message img {
  width: 38px;
  height: 38px;
}
.next-steps {
  margin-top: 12px;
}
.next-steps ul {
  list-style-type: disc;
  margin-left: 22px;
}
.legal ul {
  list-style: disc;
  margin-left: 25px;
}

/* =====================================================
   FLEXBOX LAYOUT: SPECIALIZED CLASSES FROM BRIEF
   ===================================================== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
/* Ensure gap between all .card elements */
.card + .card { margin-left: 20px; }

/* =====================================================
   FAQ ACCORDION
   ===================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-accordion h3 {
  cursor: pointer;
  position: relative;
  padding-right: 32px;
}
.faq-accordion p {
  margin: 8px 0 0 0;
  color: #42514f;
  font-size: 1rem;
}

/* =====================================================
   BUTTONS
   ===================================================== */
button, .btn, input[type="submit"], .cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, border-color 0.12s;
}
button {
  background: none;
  border: none;
}

/* =====================================================
   FORMS (if any - ensure consistency)
   ===================================================== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid #DDD8CC;
  background: #fff;
  color: #395451;
  margin-bottom: 12px;
  max-width: 100%;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #E2C278;
}

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 -2px 18px 0 rgba(38,64,54,0.10);
  border-top: 1px solid #ECE5DA;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 16px 16px 16px;
  z-index: 99999;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.24s, transform 0.32s;
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  margin-top: 6px;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(38,64,54,0.08);
  transition: background 0.18s, color 0.18s;
  margin: 0 2px;
}
.cookie-banner .cookie-btn.accept {
  background: #395451;
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover {
  background: #E2C278;
  color: #24302e;
}
.cookie-banner .cookie-btn.reject {
  background: #ECE5DA;
  color: #395451;
}
.cookie-banner .cookie-btn.reject:hover {
  background: #DCD7C7;
}
.cookie-banner .cookie-btn.settings {
  background: transparent;
  color: #395451;
  border: 1px solid #395451;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #F3F1E3;
}

/* Cookie Preferences Modal */
#cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(38, 64, 54, 0.16);
  z-index: 100010;
  display: none;
  align-items: center;
  justify-content: center;
}
#cookie-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.24s;
}
#cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 40px 0 rgba(38,64,54,0.16);
  padding: 38px 32px 26px 32px;
  max-width: 420px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
#cookie-modal h2 {
  font-size: 1.28rem;
  color: #395451;
  font-weight: 700;
}
#cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.7rem;
  background: none;
  color: #395451;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 7px;
  transition: background 0.16s;
}
#cookie-modal .modal-close:hover {
  background: #F6F5F0;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #F6F5F0;
  border-radius: 8px;
  padding: 12px 14px;
}
.cookie-category .switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cookie-category .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-category .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #DCD7C7;
  border-radius: 18px;
  transition: background 0.26s;
}
.cookie-category .slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: transform 0.24s;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(38,64,54,0.10);
}
.cookie-category .switch input:checked + .slider {
  background: #E2C278;
}
.cookie-category .switch input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-category .essential-label {
  font-size: 1.02rem;
  color: #395451;
  font-weight: 600;
  opacity: 0.7;
}
#cookie-modal .modal-btns {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}
#cookie-modal .modal-btns .cookie-btn {
  padding: 8px 22px;
  font-size: 0.97rem;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* =====================================================
   RESPONSIVE DESIGN (Mobile-first)
   ===================================================== */
/* Default: Mobile layout (column first, wrap elements) */
body, .container, .content-wrapper, .features .container, .services .container, .cta .container, .about .container {
  width: 100%;
  max-width: 100vw;
}
.main-nav, .footer-top {
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
  align-items: flex-start;
}
.footer-top { gap: 22px; }

/* Hide desktop nav, show burger, on mobile */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 22px; right: 26px;
    background: #fff;
    border: 1px solid #ECE5DA;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 2rem;
    color: #395451;
    z-index: 11000;
    cursor: pointer;
    transition: background 0.16s, box-shadow 0.16s;
    box-shadow: 0 2px 8px 0 rgba(38,64,54,0.10);
  }
  .mobile-menu { display: flex; }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* Feature grids, etc.: Stack columns */
@media (max-width: 700px) {
  .feature-grid, .feature-list, .borghi-list, .itinerary-grid, .feature-icons, .service-list, .service-packages, .service-highlights, .service-offers, .value-list, .faq-accordion {
    flex-direction: column;
    gap: 17px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .footer-top {
    gap: 16px;
  }
}

/* Text-image, testimonial, card layouts on mobile */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
  .testimonial-card { flex-direction: column; gap: 12px; align-items: flex-start; }
  .container { padding: 0 10px; }
  section, .section { padding: 26px 8px; }
  .hero { min-height: 220px; padding: 18px 0; }
  .hero h1 { font-size: 1.55rem; }
  h2 { font-size: 1.19rem; }
  h1 { font-size: 1.7rem; }
  .cta-primary, .cookie-banner .cookie-btn { font-size: 0.91rem; padding: 8px 16px; }
}

/* Larger screens: horizontal nav, grid flex-row, wider content */
@media (min-width: 992px) {
  .main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
  }
  .mobile-menu-toggle,
  .mobile-menu { display: none !important; }
  .footer-top {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
  .testimonial-card {
    flex-direction: row;
    align-items: center;
  }
}

/* Extra-wide - cap max width, increase padding */
@media (min-width: 1200px) {
  .container { max-width: 1100px; }
  section, .section { padding: 46px 0; }
}
