/* ---------------------------------------------------
   Scandinavian Clean CSS for Phantasm Haven
   --------------------------------------------------- */
/* 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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F7FAFB;
  color: #193447;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}
a {
  color: #22577A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #57CC99;
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 16px;
  padding-left: 1.2em;
}
li {
  margin-bottom: 8px;
}

/* Typography */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.75rem; /* 44px */
  font-weight: 700;
  color: #193447;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem; /* 32px */
  font-weight: 600;
  color: #22577A;
  margin-bottom: 20px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem; /* 20px */
  color: #22577A;
  font-weight: 500;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem; /* 18px */
  color: #22577A;
  font-weight: 500;
}
p, blockquote, ul, ol, dl {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem; /* 16px */
  margin-bottom: 18px;
  color: #193447;
}
blockquote {
  font-size: 1.125rem;
  font-style: italic;
  border-left: 4px solid #57CC99;
  background: #f2f6f7;
  padding: 16px 24px;
  margin: 0 0 8px 0;
  color: #193447;
  border-radius: 12px 4px 4px 12px;
}
strong {
  font-weight: 600;
}
.subheadline {
  font-size: 1.25rem;
  color: #326070;
  margin-bottom: 20px;
}

/* Containers, Sections, Layouts */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 rgba(34,87,122,0.07);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
    border-radius: 10px;
  }
}

/* Flex Layout Patterns (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(34,87,122,0.06);
  padding: 24px 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 24px 0 rgba(34,87,122,0.12);
  transform: translateY(-4px) scale(1.02);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f5f8f7;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(34,87,122,0.05);
  margin-bottom: 24px;
  border-left: 5px solid #57CC99;
}
.testimonial-card p {
  margin-bottom: 0;
  font-weight: 500;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #22577A;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature Grid Example (Used on multiple pages) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
}
.feature-grid > div {
  flex: 1 1 280px;
  min-width: 230px;
  background: #FAFBFB;
  border-radius: 14px;
  padding: 28px 18px 24px 18px;
  box-shadow: 0 2px 10px 0 rgba(34,87,122,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover, .feature-grid > div:focus {
  box-shadow: 0 4px 18px 0 rgba(34,87,122,0.10);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

/* Buttons & CTA Styles */
.cta, .primary, button, input[type="submit"] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 30px;
  background: #22577A;
  color: #fff;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(24,60,70,0.08);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  letter-spacing: 0.5px;
}
.cta.primary:hover, .cta:hover, button:hover, .cta:focus, button:focus {
  background: #57CC99;
  color: #193447;
  outline: none;
}
.cta.primary {
  background: #57CC99;
  color: #193447;
  border: none;
  box-shadow: 0 4px 12px 0 rgba(87,204,153,0.08);
  margin-left: 18px;
}
.cta.primary:hover, .cta.primary:focus {
  background: #22577A;
  color: #fff;
}
button {
  outline: none;
}

/* Header & Navigation */
header {
  background: #fff;
  border-bottom: 1px solid #E7ECEF;
  box-shadow: 0 1px 8px 0 rgba(34,87,122,0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1024px;
  margin: 0 auto;
  padding: 16px 12px 14px 12px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #22577A;
  padding: 7px 14px;
  border-radius: 18px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #DFF6FF;
  color: #22577A;
}
.main-nav .logo img {
  vertical-align: middle;
  width: 38px;
  height: 38px;
  margin-right: 6px;
}
.main-nav .logo {
  margin-right: 18px;
  padding: 0;
}
@media (max-width: 992px) {
  .main-nav {
    gap: 9px;
    padding: 12px 6px 10px 6px;
  }
  .main-nav .cta.primary {
    margin-left: 4px;
    padding: 9px 16px;
  }
}
/* Hide main nav on mobile */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
}

/* Mobile Menu Burger */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 22px;
  right: 28px;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #22577A;
  cursor: pointer;
  z-index: 101;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #57CC99;
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
}
/* Mobile Menu Overlay & Content */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,87,122,0.95);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.45s cubic-bezier(.4,1.2,.22,1);
  will-change: transform;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 2.4rem;
  margin: 20px 30px 0 0;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 999;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #57CC99;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  margin: 52px 0 0 0;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: 0.2px;
  padding: 11px 0;
  border-radius: 12px;
  transition: background 0.16s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #57CC99;
  color: #193447;
}
@media (max-width: 400px) {
  .mobile-nav {
    padding: 0 12px;
    gap: 18px;
  }
  .mobile-menu-close {
    margin: 16px 12px 0 0;
  }
}

/* Main + Section Responsive Spacing */
main {
  min-height: 70vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(34,87,122,0.04);
}
@media (max-width: 768px) {
  section {
    padding: 22px 4px;
    margin-bottom: 34px;
    border-radius: 8px;
  }
}

/* Misc Content Styles */
.descriptive-stories, .report-teasers, .privacy-policy-text, .gdpr-details, .terms-of-use-text, .cookie-policy-text, .confirmation-message, .next-steps-info, .writing-philosophy, .editorial-highlights, .location-map-info {
  background: #F7FAFB;
  border-radius: 10px;
  padding: 18px 18px 10px 18px;
  margin-bottom: 20px;
}
.opening-hours, .contact-details, .contact-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #FAFBFB;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .opening-hours, .contact-details, .contact-info {
    flex-direction: column;
    gap: 7px;
  }
}
.social-links {
  display: flex;
  gap: 16px;
}
.social-links a img {
  width: 34px;
  height: 34px;
  filter: grayscale(80%);
  transition: filter 0.16s, transform 0.2s;
}
.social-links a:hover img, .social-links a:focus img {
  filter: none;
  transform: scale(1.14);
}

/* CARD + Visitor Quotes (for gallery, reports) */
.visitor-quotes, .traveler-quotes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Lists + Links */
dt, dd {
  font-size: 1rem;
}
hr {
  border: 0;
  border-top: 1px solid #e7ecef;
  margin: 36px 0;
}

/* Footer */
footer {
  background: #FAFBFB;
  border-top: 1px solid #E7ECEF;
  padding: 32px 0 10px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #22577A;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.14s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #DFF6FF;
  color: #22577A;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #44667f;
  font-size: 0.95rem;
  letter-spacing: 0.09px;
  margin-bottom: 4px;
}
.footer-brand img {
  width: 28px;
  height: 28px;
}

@media (max-width: 700px) {
  .footer-brand {
    flex-direction: column;
    gap: 7px;
    text-align: center;
  }
}

/* Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  color: #193447;
  border-top: 2px solid #E7ECEF;
  box-shadow: 0 -2px 22px 0 rgba(34,87,122,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10vw 16px 10vw;
  gap: 16px;
  font-size: 1rem;
  animation: cookieslidein 0.40s cubic-bezier(.24,1.7,.32,1.18);
}
@keyframes cookieslidein {
  0% { transform: translateY(120%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 10px 25px;
  font-size: 1rem;
  border-radius: 19px;
  background: #57CC99;
  color: #193447;
  border: none;
  margin: 0 4px;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  box-shadow: 0 2px 7px 0 rgba(87,204,153,0.10);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #22577A;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.cookie-banner .cookie-settings-btn {
  background: #DFF6FF;
  color: #22577A;
  border: 1px solid #57CC99;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #57CC99;
  color: #22577A;
}
@media (max-width: 600px) {
  .cookie-banner {
    padding: 16px 3vw 16px 3vw;
    font-size: 0.96rem;
  }
  .cookie-banner .cookie-buttons {
    gap: 10px;
  }
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,87,122,0.37);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #193447;
  border-radius: 18px;
  max-width: 390px;
  min-width: 300px;
  padding: 34px 28px 22px 28px;
  box-shadow: 0 12px 48px 0 rgba(34,87,122,0.15);
  animation: cookiemodalpop 0.45s cubic-bezier(.4,1.35,.14,.95);
}
@keyframes cookiemodalpop {
  from { opacity:0; transform: scale(0.85) translateY(40px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.45rem;
  color: #22577A;
  margin-bottom: 24px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #E7ECEF;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal label {
  font-size: 1rem;
  color: #193447;
}
.cookie-modal input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #57CC99;
  margin-right: 6px;
}
.cookie-modal .cookie-essential {
  opacity: 0.6;
}
.cookie-modal .category-desc {
  font-size: 0.96rem;
  color: #44667f;
  margin-top: 2px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 22px;
}
.cookie-modal button {
  background: #57CC99;
  color: #193447;
  border: none;
  border-radius: 13px;
  padding: 7px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 rgba(87,204,153,0.12);
  transition: background 0.13s, color 0.14s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #22577A;
  color: #fff;
}
.cookie-modal .modal-close {
  background: transparent;
  color: #22577A;
  border: none;
  font-size: 1.8rem;
  position: absolute;
  top: 28px;
  right: 33px;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: #57CC99;
}

/* Accessibility (focus states) */
a:focus, button:focus, .cta:focus, input:focus {
  outline: 2px solid #57CC99;
  outline-offset: 2px;
}

/* Utility Classes for Margin, Gap, Flex, etc. */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-column { display: flex; flex-direction: column; }

/* Extra Responsive Tweaks */
@media (max-width: 700px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .container {
    padding: 0 6px;
  }
}
@media (max-width: 570px) {
  h1 { font-size: 1.57rem; }
  h2 { font-size: 1.22rem; }
}

/* Special Styles - Scandinavian Accents */
section, .card, .testimonial-card, .feature-grid > div {
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(34,87,122,0.03);
}
.card {
  background: #F7FAFB;
}

/* Highlight (Accent) */
.accent {
  color: #57CC99;
}
.bg-accent {
  background: #DFF6FF;
}

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Prevent overlapping on all content containers */
.section + .section, .container + .container, .content-wrapper + .content-wrapper,
.feature-grid + .feature-grid, .testimonial-card + .testimonial-card,
.card-container + .card-container {
  margin-top: 20px;
}

/* Form Fields (for possible contact forms) */
input, textarea, select {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  border-radius: 10px;
  border: 1px solid #E7ECEF;
  padding: 10px 13px;
  margin-bottom: 15px;
  background: #F7FAFB;
  color: #193447;
  font-size: 1rem;
  width: 100%;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #57CC99;
  background: #DFF6FF;
}

/* Hide native scrollbars on mobile menu */
.mobile-menu {
  scrollbar-width: thin;
  scrollbar-color: #DFF6FF #22577A;
}
.mobile-menu::-webkit-scrollbar {
  width: 6px;
  background: #22577A;
}
.mobile-menu::-webkit-scrollbar-thumb {
  background: #DFF6FF;
  border-radius: 8px;
}

/* Card Shadows & Subtle Animations */
.card, .feature-grid > div, .testimonial-card, section {
  transition: box-shadow 0.24s, transform 0.17s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover, section:hover {
  box-shadow: 0 10px 35px 0 rgba(34,87,122,0.10);
  transform: translateY(-3px) scale(1.015);
}

/* Ensuring no content overlap and large enough tap/click areas */
button, .cta, .cookie-banner button, .cookie-modal button {
  min-width: 48px;
  min-height: 44px;
}

/* End of Scandinavian Clean Style CSS */
