/* ------------------------------------------------------------
   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%; vertical-align:baseline; box-sizing:border-box; }
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section { display: block; }
body { line-height:1; }
ol,ul { list-style:none; padding:0; margin:0; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; border:0; }
button { font:inherit; background:none; border:none; cursor:pointer; }
:focus { outline:2px solid #FFD966; outline-offset:1px; }
input,textarea,select,button { box-sizing:inherit; }

/* ------------------------------------------------------------
   Brand Variables & Base Typography
------------------------------------------------------------ */
:root {
  --color-primary: #20406F;
  --color-secondary: #4CAF50;
  --color-accent: #FFD966;
  --color-bg: #FFF7EA;
  --color-surface: #FFFFFF;
  --color-card: #FFEFD2;
  --color-muted: #F8EBCB;
  --color-border: #F3DFA7;
  --color-shadow: rgba(32,64,111,0.07);
  --color-text: #2A2A2A;
  --color-text-dark: #17305C;
  --color-link: #20406F;
  --color-cta-hover: #DBB900;
  --color-btn-secondary: #F6F1DC;
  --border-radius: 18px;
  --border-radius-lg: 32px;
  --shadow-card: 0 4px 24px var(--color-shadow);
  --shadow-header: 0 2px 12px rgba(32,64,111,0.03);
  --font-display: 'Quicksand', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --size-xs: 14px;
  --size-sm: 16px;
  --size-md: 18px;
  --size-lg: 24px;
  --size-xl: 32px;
  --size-xxl: 48px;
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--size-sm);
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: 700;
}
h1 { font-size: var(--size-xxl); margin-bottom: 18px; }
h2 { font-size: var(--size-xl); margin-bottom: 12px; }
h3 { font-size: var(--size-lg); }
h4 { font-size: var(--size-md); }
h5, h6 { font-size: var(--size-sm); }
p, ul, ol, li { font-size: var(--size-md); line-height: 1.7; }
strong { font-weight: 700; }

/* ------------------------------------------------------------
   Container & Section Layout
------------------------------------------------------------ */
.container {
  width:100%;
  max-width:1140px;
  margin:0 auto;
  padding:0 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.section {
  margin-bottom:60px;
  padding:40px 20px;
  background: var(--color-surface);
  border-radius:var(--border-radius-lg);
  box-shadow: var(--shadow-card);
}
.content-wrapper {
  width:100%;
  display:flex;
  flex-direction:column;
  gap:20px;
  align-items:flex-start;
}
.text-section {
  display:flex;
  flex-direction:column;
  gap:15px;
  color: var(--color-text-dark);
}

/* ------------------------------------------------------------
   Header & Navigation
------------------------------------------------------------ */
header {
  background: var(--color-surface);
  box-shadow: var(--shadow-header);
  width:100%;
  position:sticky;
  top:0;
  z-index:99;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding:14px 18px;
}
.logo img { height: 48px; border-radius:var(--border-radius); }

.main-nav {
  display:flex;
  gap:18px;
  align-items:center;
}
.main-nav a {
  color: var(--color-primary);
  font-family:var(--font-display);
  font-size:var(--size-md);
  padding: 9px 14px;
  border-radius: var(--border-radius);
  transition: background 0.22s, color 0.22s;
  font-weight:500;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-text-dark);
}
/* Hamburger menu button */
.mobile-menu-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px; height:46px;
  font-size:32px;
  color: var(--color-primary);
  border-radius:50%;
  background: var(--color-btn-secondary);
  box-shadow:0 2px 6px rgba(32,64,111,0.09);
  margin-left:12px;
  border:none;
  cursor:pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover {
  background: var(--color-accent);
}
.mobile-menu {
  position:fixed;
  left:0;right:0;top:0;bottom:0;
  background: rgba(255, 247, 234, 0.98);
  z-index:200;
  transform: translateX(100%);
  transition: transform 0.27s cubic-bezier(.85,.02,.52,.99);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:30px 20px 20px 22px;
  overflow-y:auto;
  box-shadow:-2px 0 36px rgba(32,64,111,0.07);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position:absolute;
  right:24px;
  top:22px;
  font-size:42px;
  background: none;
  color: var(--color-primary);
  border: none;
  border-radius:50%;
  width:42px; height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background 0.21s;
  z-index:210;
}
.mobile-menu-close:hover {
  background: var(--color-accent);
}
.mobile-nav {
  display:flex;
  flex-direction:column;
  gap:22px;
  width:100%;
  margin-top:36px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family:var(--font-display);
  font-size: var(--size-xl);
  border-radius: var(--border-radius-lg);
  padding:12px 18px;
  transition: background 0.2s, color 0.2s;
  font-weight:600;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-text-dark);
}
@media(min-width: 920px) {
  .mobile-menu-toggle{ display:none; }
  .mobile-menu{ display:none !important; }
  .main-nav{ display: flex; }
}
@media(max-width: 919px) {
  .main-nav{ display:none; }
  .mobile-menu-toggle{ display: flex; }
}

/* ------------------------------------------------------------
   Call To Action Buttons, Links, Hover States
------------------------------------------------------------ */
.cta,
button,
input[type=submit] {
  padding: 13px 32px;
  font-family: var(--font-display);
  font-size: var(--size-md);
  border-radius: var(--border-radius);
  border:none;
  font-weight:600;
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background 0.21s, color 0.21s, box-shadow 0.19s;
  display:inline-block;
  cursor:pointer;
  letter-spacing:0.02em;
}
.cta.primary,
button.primary {
  background: var(--color-secondary);
  color: #fff;
}
.cta:hover, .cta:focus,
button:hover, button:focus {
  background: var(--color-cta-hover);
  color:#20406F;
  box-shadow: 0 2px 20px var(--color-shadow),0 8px 24px #f3dfa777;
}
.cta.primary:hover, .cta.primary:focus,
button.primary:hover,button.primary:focus {
  background: #388D3C;
  color:#fff;
}
/* Special secondary button style */
.btn-secondary {
  background: var(--color-btn-secondary);
  color: var(--color-primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-accent);
  color: var(--color-text-dark);
}

/* Links as buttons */
a.cta {text-decoration: none;}
a.cta:active {transform:scale(0.97);}

a {
  color: var(--color-link);
  transition: color .19s;
}
a:hover { color: var(--color-secondary); }

/* ------------------------------------------------------------
   Section Specific Layout Patterns (Flexbox only)
------------------------------------------------------------ */

.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container {
  display:flex; flex-wrap:wrap; gap:24px;
}
.card {
  background: var(--color-card);
  border-radius: var(--border-radius);
  padding:30px 24px 24px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px; position:relative;
  min-width:220px; flex:1 1 300px; max-width: 340px;
  display:flex;flex-direction:column;gap:12px;
  transition: box-shadow 0.18s;
}
.card:hover { box-shadow: 0 8px 32px var(--color-shadow); }
.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;
  border-radius: var(--border-radius);
  background: var(--color-surface);
  box-shadow: 0 6px 20px var(--color-shadow);
  margin-bottom: 20px;
  color:var(--color-primary);
  min-width:260px;
}
.testimonial-card p {
  font-size:var(--size-lg);
  color: var(--color-text-dark);
  margin-bottom:0;
  font-style:italic;
}
.feature-item {
  display:flex; flex-direction:column; align-items:flex-start; gap:15px;
}
.activity-cards,
.events-calendar {
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  margin-bottom:24px;
  align-items:stretch;
}
.activity-card,
.event-card {
  background: var(--color-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding:24px 20px;
  flex:1 1 280px;
  max-width:330px;
  display:flex;
  flex-direction:column;
  gap:8px;
  transition:box-shadow 0.17s, transform 0.19s;
}
.activity-card:hover, .event-card:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform:translateY(-3px) scale(1.01);
}
.filters {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px;
  margin-top:16px;
}
.filters button {
  background:var(--color-btn-secondary);
  color:var(--color-primary);
  padding:6.5px 20px;
  border-radius:var(--border-radius);
  font-size:var(--size-sm);
  font-family:var(--font-display);
  font-weight:500;
  transition:background .18s;
  box-shadow:0 1px 7px var(--color-shadow);
}
.filters button:hover {
  background:var(--color-accent);
}

.faq-list {
  display:flex;
  flex-direction:column;
  gap:24px;
  width:100%;
}
.faq-item {
  background: var(--color-muted);
  border-radius: var(--border-radius);
  padding:18px 22px;
  box-shadow:0 1px 7px var(--color-shadow);
}

/* Features section icon + text */
.features ul, .about-preview ul, .activities-teaser ul, .contact-teaser ul, .weather-widget ul, .text-section ul {
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:0;
  padding:0;
}
.features ul li,
.about-preview ul li,
.activities-teaser ul li,
.contact-teaser ul li,
.weather-widget ul li,
.text-section ul li {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:var(--size-md);
  transition: background 0.13s;
  border-radius:var(--border-radius);
}
.features ul li img, .contact-teaser ul li img, .weather-widget ul li img {
  width:32px; height:32px; flex-shrink:0;
}

/* --------------------------------------------
   Hero Section
-----------------------------------------------*/
.hero {
  background: linear-gradient(95deg,var(--color-accent) 60%, #fff7ea 98%);
  padding:58px 0;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px var(--color-shadow);
  margin-bottom:64px;
  display:flex;
  align-items: center;
  min-height:300px;
}
.hero .container{
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:46px;
}
.hero .content-wrapper{
  flex:1 1 400px;
  gap:22px;
  align-items:flex-start;
}
.hero h1 {font-size:var(--size-xxl); color:var(--color-primary);}
.hero p {font-size:var(--size-lg); color:var(--color-text-dark);}

@media (max-width:900px){
  .hero {
    padding:42px 0 28px 0;
    flex-direction:column;
    min-height:180px;
  }
  .hero .container{
    flex-direction:column;
    gap:22px;
    align-items:center;
  }
}

/* ----------------------------------------------
   About, Activities, Events and Weather Widgets
-----------------------------------------------*/
.about-preview, .activities-teaser, .weather-widget, .contact-teaser {
  background: var(--color-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom:48px;
  padding:32px 22px 22px 22px;
}
.weather-widget .text-section {
  color:var(--color-text-dark);
  font-size:var(--size-md);
}

/* Events Calendar Cards */
.events-calendar {
  gap:24px;
}
.event-card {
  background:var(--color-card);
}

/* --------------------------------------------
   Footer Layout
-------------------------------------------- */
footer {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0 -2px 10px var(--color-shadow);
  font-size:var(--size-sm);
  width:100%;
  margin-top:45px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}
footer .container {
  padding:28px 14px 21px 14px;
}
.footer-wrapper {
  width:100%;
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  justify-content:space-between;
  align-items:flex-start;
}
.footer-brand img {
  width:58px;
  border-radius:50%;
  box-shadow:0 1px 6px var(--color-shadow);
  background:var(--color-accent);
  padding:3px;
}
.footer-nav {
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  align-items:center;
}
.footer-nav a {
  color:var(--color-primary);
  font-family:var(--font-display);
  font-size:var(--size-md);
  font-weight:500;
  padding:7px 10px;
  border-radius:var(--border-radius);
  transition: background .17s,color .19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background:var(--color-accent);
  color:var(--color-text-dark);
}
.footer-contact {
  color:var(--color-text);
  max-width:240px;
}

/* ------------------------------------------
   Cookie Consent Banner
------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-card);
  color: var(--color-primary);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 20px 14px 20px;
  box-shadow: 0 -6px 30px var(--color-shadow);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  z-index: 4010;
  animation: cookieSlideIn .52s cubic-bezier(.86,.01,.49,.99);
}
@keyframes cookieSlideIn {
  0% {transform:translateY(100%);} 100%{transform:translateY(0)}
}
.cookie-banner .cookie-buttons {
  display:flex;
  flex-direction:row;
  gap: 16px;
  align-items:center;
}
.cookie-banner button {
  font-family:var(--font-display);
  border:none;
  border-radius:var(--border-radius);
  background:var(--color-secondary);
  color:#fff;
  padding: 9px 24px;
  font-size:var(--size-md);
  margin-left:0;
  box-shadow:0 2px 7px var(--color-shadow);
  transition: background 0.17s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #388D3C;
}
.cookie-banner .cookie-settings {
  background:var(--color-accent);
  color:var(--color-primary);
}
.cookie-banner .cookie-settings:hover,.cookie-banner .cookie-settings:focus {
  background:var(--color-btn-secondary);
  color:var(--color-primary);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position:fixed; left:0; right:0; top:0; bottom:0;
  background:rgba(32, 64, 111, 0.14);
  z-index:4100;
  display:flex; align-items:center; justify-content:center;
  animation:modalIn .29s cubic-bezier(.9,.01,.49,.99);
}

@keyframes modalIn {
  from{opacity:0;transform:scale(.98);} to{opacity:1;transform:scale(1);}
}
.cookie-modal {
  background:var(--color-surface);
  border-radius:var(--border-radius-lg);
  box-shadow:var(--shadow-card),0 2px 22px #20406f33;
  padding:38px 28px 26px 28px;
  min-width:290px; max-width:98vw;
  display:flex;
  flex-direction:column;
  gap:26px;
  z-index:4200;
  animation:modalIn .33s;
}
.cookie-modal h3 {color:var(--color-primary); font-size:var(--size-lg);margin-bottom:8px;}
.cookie-categories {
  display:flex;
  flex-direction:column;
  gap:15px;
  margin-bottom:18px;
}
.cookie-category {
  display:flex;
  align-items:center;
  gap:14px;
  justify-content:space-between;
  padding:8px 0;
}
.cookie-category label {
  font-family:var(--font-display); font-size:var(--size-md); color:var(--color-primary); font-weight:700;
}
.cookie-category input[type=checkbox] {
  width:22px; height:22px;
  accent-color:var(--color-secondary);
  border-radius:7px;
}
.cookie-modal .modal-buttons {
  display:flex;
  flex-direction:row;
  gap:14px;
  justify-content:flex-end;
}
.cookie-modal .close-modal {
  position:absolute;
  right:20px; top:14px;
  background:none; color:var(--color-primary);
  font-size:34px; border:none;
  border-radius:50%; width:38px; height:38px;
}
.cookie-modal .close-modal:hover { background:var(--color-card);}

/* ------------------------------------------------------------
   Responsive Styles  (Mobile First!)
------------------------------------------------------------ */
@media (max-width: 768px) {
  .container { padding:0 7px; }
  .section { padding:21px 1px; margin-bottom: 34px; }
  .hero {
    padding:24px 0 10px 0;
    min-height:140px;
    border-radius: var(--border-radius);
  }
  .hero .container {
    flex-direction: column;
    gap: 12px;
    align-items:center;
  }
  .hero h1 {font-size:var(--size-xl);}
  .hero p {font-size:18px;}
  .footer-wrapper {
    flex-direction:column;
    gap:15px;
    align-items:stretch;
  }
  .main-nav {display:none;}
  .mobile-menu { padding:28px 8px; }
  .card-container, .activity-cards, .events-calendar, .content-grid {
    gap:12px;
    flex-direction: column;
  }
  .testimonial-card {
    flex-direction:column;
    gap:10px;
    padding:14px;
  }
  .text-image-section { flex-direction:column; gap:10px; }
}

@media (max-width:540px){
  .hero .content-wrapper {
    gap:12px;
  }
  .footer-contact{max-width:100vw;}
  .cookie-banner{flex-direction:column;gap:10px;align-items:flex-start;padding:10px 5px 6px 9px;}
  .cookie-banner .cookie-buttons {flex-wrap:wrap;}
  .cookie-modal {padding:20px 6px 16px 10px;}
}

/* --------------------------------------------
   Micro-interactions & Subtle Animations
-------------------------------------------- */
.card, .activity-card, .event-card, .testimonial-card, .faq-item {
  transition:box-shadow 0.19s, transform 0.14s;
}
.card:hover, .activity-card:hover, .event-card:hover, .testimonial-card:hover {
  box-shadow: 0 10px 38px var(--color-shadow);
  transform:translateY(-2px) scale(1.012);
}
.cta:active, button:active {transform:scale(0.98);}

/* --------------------------------------------
   Utility & Misc
-------------------------------------------- */
::-webkit-scrollbar {
  width:6px; background:var(--color-muted);
}
::-webkit-scrollbar-thumb {
  background:var(--color-accent); border-radius:8px;
}

/* --- Hide visually but keep accessible for screen readers --- */
.sr-only{
  position:absolute; left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;
}

/* --- Prevent content overlap/padding fix for fixed elements --- */
body { padding-bottom:90px; }

/* --- Add more breathing room on very large screens --- */
@media(min-width:1300px){
  .container{max-width: 1240px;}
  .hero{margin-left:10px;margin-right:10px;}
}
