/* ===============================
   Reset & Base Normalize
   =============================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #B35A3E; outline-offset: 2px; }

/* ===============================
   Theme Variables (with fallbacks)
   =============================== */
:root {
  --color-primary: #1F4836;
  --color-primary-dark: #183a2c;
  --color-secondary: #B35A3E;
  --color-secondary-dark: #9a4c35;
  --color-accent: #F6F0E6;
  --color-bg: #FFFFFF;
  --color-text: #1A1A1A;
  --color-muted: #5b6a64;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --gap-12: 12px; --gap-16: 16px; --gap-20: 20px; --gap-24: 24px; --gap-30: 30px; --gap-40: 40px; --gap-60: 60px;
  --transition: 200ms ease;
}

/* ===============================
   Base Typography
   =============================== */
body {
  font-family: Verdana, Arial, sans-serif; /* brand body */
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: linear-gradient(135deg, rgba(31,72,54,0.04), rgba(179,90,62,0.04));
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--color-primary); margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p, li { font-size: 16px; color: var(--color-text); }
strong { color: var(--color-primary); }
.small { font-size: 14px; color: var(--color-muted); }

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
}

/* ===============================
   Buttons
   =============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 600; line-height: 1.1;
  transition: background-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.btn.primary {
  background-color: var(--color-primary);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.06));
  color: #FFFFFF; border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.btn.primary:hover { background-color: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.primary:active { transform: translateY(0); }

.btn.secondary {
  background-color: var(--color-accent); color: var(--color-primary);
  border-color: rgba(31,72,54,0.25);
}
.btn.secondary:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); transform: translateY(-1px); }

.btn.link { color: var(--color-secondary); padding: 0; border: none; background: none; }
.btn.link:hover { color: var(--color-secondary-dark); text-decoration: underline; }

/* ===============================
   Containers & Sections (Flex-only)
   =============================== */
.container {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
}
.content-wrapper {
  width: 100%; display: flex; flex-direction: column; gap: var(--gap-20);
  align-items: flex-start; justify-content: flex-start;
}
/* Mandatory spacing pattern */
.section { margin-bottom: 60px; padding: 40px 20px; }
/* Apply similar rhythm to all sections in this project */
section { margin-bottom: 60px; padding: 40px 20px; }

/* Generic cards */
.card { margin-bottom: 20px; position: relative; background: #fff; border: 1px solid rgba(31,72,54,0.12); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ===============================
   Header & Navigation
   =============================== */
header { position: relative; z-index: 50; background: #ffffff; border-bottom: 1px solid rgba(31,72,54,0.08); }
header .content-wrapper { padding: 16px 0; }
.logo img { height: 36px; }
.tagline { color: var(--color-muted); font-size: 14px; }

.main-nav { display: none; gap: 16px; flex-wrap: wrap; }
.main-nav a { padding: 8px 10px; border-radius: 8px; color: var(--color-primary); transition: background-color var(--transition), color var(--transition); }
.main-nav a:hover { background: var(--color-accent); color: var(--color-primary); }

.header-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Mobile toggle */
.mobile-menu-toggle { margin-left: auto; font-size: 22px; line-height: 1; color: var(--color-primary); background: var(--color-accent); border-radius: 10px; padding: 8px 12px; box-shadow: var(--shadow-sm); }
.mobile-menu-toggle:hover { background: #fff; border: 1px solid rgba(31,72,54,0.15); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  background: #ffffff; padding: 20px; gap: 16px; transform: translateX(100%);
  transition: transform 280ms ease; box-shadow: var(--shadow-lg); z-index: 1000;
}
.mobile-menu.open, .mobile-menu.active, .mobile-menu[aria-hidden="false"], .mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; font-size: 22px; color: var(--color-primary); background: var(--color-accent); border-radius: 10px; padding: 8px 12px; }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; }
.mobile-nav a { padding: 12px 10px; border-radius: 8px; background: #fff; border: 1px solid rgba(31,72,54,0.12); color: var(--color-primary); font-weight: 600; }
.mobile-nav a:hover { background: var(--color-accent); }

/* Desktop header layout */
@media (min-width: 992px) {
  header .content-wrapper { flex-direction: row; align-items: center; gap: 20px; }
  .tagline { margin-left: 8px; }
  .main-nav { display: flex; margin-left: auto; }
  .header-ctas { margin-left: 12px; }
  .mobile-menu-toggle { display: none; }
}

/* ===============================
   Hero Section (Gradient Modern)
   =============================== */
.hero { border-radius: 0; background-color: var(--color-accent);
  background-image: linear-gradient(135deg, rgba(31,72,54,0.10), rgba(179,90,62,0.12));
  padding-top: 60px; padding-bottom: 60px; }
.hero .subheadline { color: #2b2b2b; max-width: 70ch; }
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust-badges li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid rgba(31,72,54,0.12); border-radius: 30px; padding: 8px 12px; box-shadow: var(--shadow-sm); font-size: 14px; color: var(--color-primary); }
.trust-badges img { width: 18px; height: 18px; }

/* ===============================
   Lists, Grids & Content Blocks (Flex-only)
   =============================== */
.text-section { background: #fff; border: 1px solid rgba(31,72,54,0.10); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.text-section:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); transition: transform var(--transition), box-shadow var(--transition); }

.usp-list, .region-list, .article-teasers { display: flex; flex-wrap: wrap; gap: 12px; }
.usp-list li, .region-list li, .article-teasers li { flex: 1 1 280px; background: #fff; border: 1px solid rgba(31,72,54,0.10); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-sm); }

.icon-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.icon-grid li { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid rgba(31,72,54,0.10); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.icon-grid img { width: 22px; height: 22px; }

.trip-teasers, .trip-list, .experience-list { display: flex; flex-wrap: wrap; gap: 20px; }
.trip-teasers > article, .trip-list > article, .experience-list > article { flex: 1 1 280px; min-width: 260px; }

.article-teasers li em { color: var(--color-secondary); font-style: italic; }

/* ===============================
   Testimonials (High contrast, light bg)
   =============================== */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--color-accent); color: var(--color-primary); border: 1px solid rgba(31,72,54,0.18); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.testimonial-card p { margin: 0; color: var(--color-primary); }
.rating { color: var(--color-secondary); font-weight: 700; }

/* ===============================
   Steppers
   =============================== */
.stepper { display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.stepper li { position: relative; padding-left: 42px; background: #fff; border: 1px solid rgba(31,72,54,0.10); border-radius: var(--radius-sm); padding-top: 12px; padding-bottom: 12px; }
.stepper li::before { counter-increment: step; content: counter(step); position: relative; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; left: -34px; top: 0; }

/* ===============================
   Stats & Helpers
   =============================== */
.stats { color: var(--color-muted); }
.stats strong { color: var(--color-secondary); }
.map-embed { display: flex; flex-direction: row; gap: 10px; align-items: center; }
.map-embed img { width: 22px; height: 22px; }

/* ===============================
   Footer
   =============================== */
footer { background: #0f2820; color: #eaf1ee; padding-top: 24px; padding-bottom: 24px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 24px; }
footer a { color: #d9efe7; }
footer a:hover { color: #ffffff; text-decoration: underline; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .logo img { height: 34px; filter: brightness(1) contrast(1.1); }
.footer-nav, .footer-legal, .footer-newsletter { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h3, .footer-legal h3, .footer-newsletter h3 { color: #ffffff; margin-bottom: 4px; }
.social { display: flex; gap: 10px; align-items: center; }
.social a { display: inline-flex; background: rgba(255,255,255,0.06); padding: 8px; border-radius: 8px; }
.social a:hover { background: rgba(255,255,255,0.12); }

@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 32px; }
  .footer-brand { flex: 1 1 28%; }
  .footer-nav, .footer-legal, .footer-newsletter { flex: 1 1 20%; }
}

/* ===============================
   Links & Micro-interactions
   =============================== */
a { color: var(--color-secondary); transition: color var(--transition), opacity var(--transition); }
a:hover { color: var(--color-secondary-dark); }

/* ===============================
   Responsive Flex Adjustments
   =============================== */
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; align-items: center; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

/* ===============================
   Mobile-first tweaks for lists width
   =============================== */
@media (min-width: 768px) {
  .trip-teasers > article, .trip-list > article, .experience-list > article { flex: 1 1 45%; }
}
@media (min-width: 1100px) {
  .trip-teasers > article, .trip-list > article, .experience-list > article { flex: 1 1 30%; }
}

/* ===============================
   Accessibility & Form-ish elements (toggles in cookie modal)
   =============================== */
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-primary); }

/* ===============================
   Cookie Consent Banner & Modal
   =============================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200;
  display: flex; flex-direction: column; gap: 12px;
  background: #ffffff; border: 1px solid rgba(31,72,54,0.18); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px 16px;
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform 260ms ease, opacity 260ms ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .cookie-text { display: flex; flex-direction: column; gap: 6px; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn { padding: 10px 14px; }
.cookie-buttons .btn.reject { background-color: #ffffff; border: 1px solid rgba(31,72,54,0.25); color: var(--color-primary); }
.cookie-buttons .btn.settings { background-color: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }
.cookie-buttons .btn.settings:hover { background-color: var(--color-secondary-dark); }

/* Modal */
.cookie-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; z-index: 1300; }
.cookie-backdrop.show { display: flex; align-items: center; justify-content: center; }
.cookie-modal { width: min(720px, 92vw); background: #fff; border-radius: var(--radius-lg); border: 1px solid rgba(31,72,54,0.18); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px; padding: 20px; transform: translateY(20px); opacity: 0; transition: transform 240ms ease, opacity 240ms ease; }
.cookie-backdrop.show .cookie-modal { transform: translateY(0); opacity: 1; }
.cookie-modal .cookie-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .cookie-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid rgba(31,72,54,0.12); border-radius: var(--radius-sm); }
.cookie-modal .cookie-footer { display: flex; gap: 10px; justify-content: flex-end; }

/* ===============================
   Utility classes
   =============================== */
.hidden { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ===============================
   Additional required class hooks (even if not present in HTML everywhere)
   =============================== */
.content-grid > * { flex: 1 1 260px; }

/* ===============================
   Page-specific fine-tuning
   =============================== */
/* Make hero titles standout with subtle gradient text effect for modern vibe (with solid color fallback) */
.hero h1 { color: var(--color-primary); background-image: linear-gradient(180deg, var(--color-primary), #0f2820); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1::selection, .hero .subheadline::selection { color: #fff; background: var(--color-secondary); -webkit-text-fill-color: #fff; }

/* Ensure adequate spacing between stacked sections */
main > section + section { margin-top: 0; }

/* ===============================
   Readability for legal pages
   =============================== */
main .text-section p, main .text-section li { color: #2a2a2a; }

/* ===============================
   Prevent overlap and keep breathing room
   =============================== */
section > .container > .content-wrapper > * { margin-right: 0; }

/* ===============================
   Desktop refinements for hero padding
   =============================== */
@media (min-width: 992px) {
  .hero { padding-top: 90px; padding-bottom: 90px; border-radius: 24px; }
}

/* ===============================
   Header layout stacking for mobile-first
   =============================== */
header .content-wrapper > * { /* rows stacked on mobile */ }

/* ===============================
   Ensure minimum gaps between any content cards/blocks
   =============================== */
.content-wrapper > * + * { margin-top: 0; }

/* ===============================
   Misc visual polish
   =============================== */
.text-section a { color: var(--color-secondary); font-weight: 600; }
.text-section a:hover { color: var(--color-secondary-dark); }

/* ===============================
   Touch target sizing for mobile nav
   =============================== */
.mobile-nav a { min-height: 44px; }

/* ===============================
   Print basics
   =============================== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-backdrop { display: none !important; }
  a { text-decoration: underline; color: #000; }
}
