/* -------------------------------
   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,
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  background: #FFFFFF;
}
ol, ul {
  list-style: none;
  padding-left: 0;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img {
  display: block;
  max-width: 100%;
}

/* ---------------------------------------------
   BRAND COLORS & FONTS (Playful Dynamic)
---------------------------------------------- */
:root {
  --color-primary: #0C4F71;
  --color-secondary: #F5F3EF;
  --color-accent: #D19B43;
  --color-accent-dark: #946305;
  --color-white: #FFFFFF;
  --color-black: #222233;
  --color-bg-1: #FFFDF8;
  --color-bg-2: #F6E487;
  --color-bg-3: #BEE0F1;
  --color-shadow: rgba(28,44,94,0.09);
  --color-success: #72BD47;
  --color-info: #47B0BD;
  --color-warning: #FFD966;
  --color-error: #DD6472;
}

@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&display=swap');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
  font-display: swap;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-black);
  background: var(--color-bg-1);
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: 16px;
  line-height: 1.14;
}
h1 {
  font-size: 2.6rem;
  color: var(--color-accent-dark);
  margin-bottom: 18px;
  text-shadow: 2px 4px 0 var(--color-bg-3), 0 2px 16px #0001;
}
h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-top: 8px;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.3rem;
  color: var(--color-accent);
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
}
p, ul, ol, table, .text-section {
  font-size: 1.06rem;
  color: var(--color-black);
  margin-bottom: 12px;
}
p.subheadline {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
}
strong {
  color: var(--color-accent-dark);
}
em {
  color: var(--color-primary);
  font-style: italic;
}
/* Fun, playful font for accents */
.cta-button, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

/* -----------------------------------
   LAYOUT CONTAINERS & SPACING
-------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 22px;
  box-shadow: 0 4px 20px var(--color-shadow);
  transition: background 0.3s ease;
  /* playful accent shapes as bg? */
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* can be made more playful via colored circles */
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Cards & card container styles */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-2);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  transition: box-shadow 0.2s, transform 0.18s;
  min-width: 0;
  flex: 1 1 240px;
}
.card:hover {
  box-shadow: 0 8px 24px var(--color-shadow);
  transform: translateY(-8px) scale(1.02) rotate(-1.5deg);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Testimonial Cards */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--color-bg-3);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px var(--color-shadow);
  color: var(--color-black);
  font-size: 1.08em;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card strong {
  font-size: 1em;
  color: var(--color-primary);
  margin-top: 2px;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px var(--color-shadow);
  transform: translateY(-4px) scale(1.01) rotate(1.3deg);
}

/* BUTTONS: Playful, bold, animated */
.cta-button {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 16px 34px;
  font-size: 1.15rem;
  border-radius: 28px 12px 28px 14px;
  border: 0px;
  box-shadow: 0 4px 14px var(--color-shadow);
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.18s, color 0.18s, transform 0.13s;
  margin-top: 16px;
  margin-bottom: 10px;
  outline: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.cta-button:after {
  content: "";
  position: absolute;
  left: -40px;
  top: 0;
  bottom: 0;
  width: 38px;
  background: var(--color-primary);
  opacity: 0.18;
  border-radius: 28px 12px 28px 14px;
  animation: playful-shine 2s infinite linear;
}
@keyframes playful-shine {
  0% { left: -40px; opacity:0.22; }
  80% { left: 140%; opacity:0.16; }
  100% { left: 140%; opacity:0; }
}
.cta-button:hover,
.cta-button:focus {
  background: var(--color-primary);
  color: var(--color-bg-2);
  transform: scale(1.065) rotate(-2deg);
}

/* Table Styles */
table {
  width: 100%;
  background: var(--color-bg-2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 24px;
}
th, td {
  padding: 12px 12px;
  border-bottom: 1px solid #ece7dd;
  text-align: left;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: var(--color-bg-3);
  letter-spacing: 0.4px;
  color: var(--color-black);
}
tr:last-child td {
  border-bottom: none;
}

/* ------------------------------------
   HEADER & MAIN NAVIGATION
---------------------------------------*/
header {
  background: var(--color-bg-3);
  box-shadow: 0 4px 16px var(--color-shadow);
  padding-top: 12px;
  position: sticky;
  top: 0;
  z-index: 99;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 0 8px 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 1.08em;
  padding: 8px 14px;
  border-radius: 18px;
  transition: background 0.12s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-white);
}
.main-nav img {
  height: 38px;
  margin-right: 16px;
}

/* BURGER MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 16px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  font-size: 1.9em;
  padding: 10px 16px 10px 14px;
  border-radius: 10px 24px 12px 16px;
  cursor: pointer;
  z-index: 103;
  box-shadow: 0px 4px 14px var(--color-shadow);
  transition: background 0.2s;
}
.mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-bg-2);
}

/* -------------------------------------
   MOBILE MENU OVERLAY
-------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-bg-3);
  z-index: 120;
  transform: translateX(-110%);
  transition: transform 0.35s ease;
  box-shadow: 3px 0 16px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 16px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
  animation: mobileSlideIn 0.42s cubic-bezier(.44,0,.28,1.2);
}
@keyframes mobileSlideIn {
  from { transform: translateX(-110%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.mobile-menu-close {
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-size: 2em;
  padding: 8px 20px 8px 19px;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 124;
  border-radius: 30px 14px 12px 26px;
  cursor: pointer;
  box-shadow: 0px 4px 14px var(--color-shadow);
  transition: background 0.18s;
}
.mobile-menu-close:hover {
  background: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 62px 0 0 32px;
}
.mobile-nav a {
  font-size: 1.25em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  padding: 14px 28px 14px 0;
  border-radius: 18px;
  transition: background 0.16s, color 0.18s;
  min-width: 90vw;
  margin-bottom: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ------------------------------------
   FOOTER
---------------------------------------*/
footer {
  background: var(--color-bg-3);
  border-top: 4px solid var(--color-primary);
  padding: 32px 20px 32px 20px;
  margin-top: 50px;
  text-align: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 18px;
}
footer nav a {
  color: var(--color-primary);
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 12px;
  border-radius: 14px;
  transition: background 0.17s, color 0.17s;
}
footer nav a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}
.footer-contact {
  margin-top: 13px;
  font-size: 0.96em;
  color: var(--color-black);
}
.footer-contact p {
  margin-bottom: 4px;
}

/* -----------------------------------
   COOKIE CONSENT BANNER & MODAL
-------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-bg-2);
  box-shadow: 0 -8px 20px var(--color-shadow);
  padding: 30px 22px 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 2000;
  font-size: 1.01em;
  animation: cookieBannerIn 0.6s cubic-bezier(.44,0,.28,1.2);
  border-radius: 22px 22px 0 0;
}
@keyframes cookieBannerIn {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 0;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
}
.cookie-banner button {
  font-size: 1.05em;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 24px 10px 24px 14px;
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 0;
  transition: background 0.15s, color 0.15s, transform 0.13s;
}
.cookie-banner .accept {
  background: var(--color-success);
  color: #fff;
}
.cookie-banner .settings {
  background: var(--color-accent);
  color: #fff;
}
.cookie-banner .reject {
  background: var(--color-error);
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  transform: scale(1.07);
  filter: brightness(1.1);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 54%;
  transform: translate(-50%,-50%) scale(0.93);
  background: var(--color-bg-3);
  z-index: 3100;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 12px 46px var(--color-shadow);
  border-radius: 22px;
  padding: 34px 20px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.21s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
  animation: cookieModalIn 0.26s cubic-bezier(.44,0,.28,1.2);
}
@keyframes cookieModalIn {
  from { opacity:0; transform: translate(-50%,-50%) scale(0.93); }
  to   { opacity:1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-weight: 700;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}
.cookie-category.essential label {
  color: var(--color-success);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  background: var(--color-error);
  color: #fff;
  border-radius: 22px 10px 24px 18px;
  font-size: 1em;
  padding: 8px 22px;
}

/* -----------------------------
   MISC & UTILITIES
----------------------------- */
.location-map {
  background: var(--color-bg-2);
  border-radius: 12px;
  padding: 12px 20px;
  font-style: italic;
  color: var(--color-primary);
  box-shadow: 0 1px 6px var(--color-shadow);
  margin: 14px 0 10px 0;
}

/* List bullets for playful feel */
ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 13px;
  height: 13px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 1px 1px 0 2px var(--color-bg-3);
  display: inline-block;
  transform: rotate(-6deg);
}
ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
ol li::before {
  content: counter(item) '. ';
  counter-increment: item;
  position: absolute;
  left: 0px;
  top: 0;
  font-weight: bold;
  color: var(--color-primary);
}
ol {
  counter-reset: item;
}

/* Responsive text size scale */
@media (max-width: 991px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
  .cta-button { font-size: 1rem; }
  .main-nav a { font-size: 1em; }
}
@media (max-width: 767px) {
  h1 { font-size: 1.40rem; }
  h2 { font-size: 1.05rem; }
  .cta-button { font-size: 0.97rem; }
  body { font-size: 15px; }
}

/* --------------
   RESPONSIVE FLEXBOX BREAKPOINTS
---------------- */
@media (max-width: 991px) {
  .main-nav {
    gap: 14px;
    padding-right: 40px;
  }
  .container {
    max-width: 97vw;
    padding: 0 8px;
  }
}
@media (max-width: 820px) {
  .main-nav {
    gap: 10px;
  }
  .section {
    margin-bottom: 32px;
    padding: 24px 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-grid,
  .card-container,
  .text-image-section,
  .testimonial-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .section {
    padding: 18px 2vw;
  }
  .card {
    min-width: 90vw;
    flex: 1 1 95vw;
  }
  .footer-contact {
    font-size: 0.85em;
    padding: 0 4vw;
  }
}

/* --------------
   SCROLLBAR
-------------- */
/* playful, round, soft scrollbar */
body::-webkit-scrollbar {
  width: 11px;
  background: var(--color-bg-1);
}
body::-webkit-scrollbar-thumb {
  background: var(--color-bg-3);
  border-radius: 8px;
  border: 3px solid var(--color-bg-1);
}

/* ---------------------------
   FOCUS & INTERACTIONS
---------------------------- */
a:focus, .cta-button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .mobile-nav a:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* Micro-interaction: bouncy icon in CTA */
.cta-button::before {
  content: '\1F389'; /* 🎉 Emoji */
  font-size: 1.05em;
  margin-right: 8px;
  animation: ctaEmojiBounce 2.4s infinite cubic-bezier(.27,1,.36,.82) 0.22s;
  display: inline-block;
  vertical-align: -4px;
  transition: transform .18s;
}
@keyframes ctaEmojiBounce {
  0%, 85%, 100% { transform: translateY(0) scale(1); }
  8% { transform: translateY(-10px) scale(1.15); }
  12% { transform: translateY(-6px) scale(0.92); }
  16% { transform: translateY(-3px) scale(1.06); }
}
.cta-button:hover::before {
  transform: scale(1.24) rotate(-8deg);
}
/* Optional: Remove on print */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; }
}

/* ------------------------
   FORM ELEMENTS (if used)
------------------------ */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.03em;
  padding: 12px;
  border-radius: 9px;
  border: 1.4px solid var(--color-bg-3);
  margin-bottom: 16px;
  margin-top: 2px;
  background-color: var(--color-bg-2);
  color: var(--color-black);
  box-shadow: 0 1px 4px var(--color-shadow);
  outline: none;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
}
button:disabled, .cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --------------
   Misc element fixes
--------------- */
.content-wrapper > * + * {
  margin-top: 0 !important;
}

/* For the rare .card-content inside cards */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
}

/* --------------------------
   ANIMATED DECOR - playful dynamic dots
-------------------------- */
.section {
  position: relative;
}
.section::before, .section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.section::before {
  width: 70px; height: 70px;
  background: var(--color-bg-3);
  left: 0; top: 8px;
  filter: blur(1.2px);
  animation: bounce-dot 2.4s infinite alternate;
}
.section::after {
  width: 36px; height: 36px;
  background: var(--color-accent);
  right: 18px; top: -6px;
  filter: blur(.6px);
  animation: bounce-dot-sm 1.84s infinite alternate;
}
@keyframes bounce-dot {
  0% { transform: translateY(0px) scale(1); }
  60% { transform: translateY(4px) scale(1.04); }
  100% { transform: translateY(9px) scale(1.08); }
}
@keyframes bounce-dot-sm {
  0% { transform: translateY(0px) scale(1); }
  80% { transform: translateY(3px) scale(1.06); }
  100% { transform: translateY(8px) scale(1.12); }
}

/* hide section dots decoration for mobile to avoid cramps */
@media (max-width: 599px) {
  .section::before, .section::after { display: none; }
}

/* --------------
   Z-INDEX GUIDELINE
-------------- */
header { z-index: 99; }
.mobile-menu { z-index: 120; }
.cookie-banner { z-index: 2000; }
.cookie-modal { z-index: 3100; }


/* ------------------
   ACCESSIBILITY
------------------ */
:focus {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 1px;
}

/* -----------
   PRINT HIDING
------------ */
@media print {
  header, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, footer { display: none !important; }
  html, body { background: #fff !important; }
}
