/* ===== CSS RESET & BASE ===== */
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;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #1e293b;
}
ul,ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img,svg {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
}
button {
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* ===== ROOT & BRAND VARIABLES ===== */
:root {
  --primary: #205375;
  --secondary: #F6C065;
  --accent: #FFD38D;
  --white: #fff;
  --black: #222B36;
  --shadow: 0 4px 24px 0 rgba(40, 80, 128, 0.10);
  --radius: 20px;
}

/* ===== TYPOGRAPHY ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  text-shadow: 0 2px 0 var(--accent), 2px 2px 6px rgba(245,198,101,0.12);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.18;
}
h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.22;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary);
}
h4 {
  font-size: 1rem;
  font-weight: 700;
}
.tagline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.07em;
}
p, ul, li,
.text-section {
  font-size: 1rem;
  color: var(--black);
  line-height: 1.73;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
strong {
  font-weight: 700;
  color: var(--primary);
}
ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
}
ul li:before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 1.2em;
  color: var(--secondary);
  font-weight: bold;
}

/* ===== CONTAINER & SPACING SYSTEM ===== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-top: 14px;
}
.feature-grid > div {
  flex: 1 1 210px;
  min-width: 220px;
  max-width: 245px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.18s cubic-bezier(0.6,1,0.7,1), box-shadow 0.21s;
  position: relative;
}
.feature-grid > div:hover {
  transform: translateY(-3px) scale(1.035) rotate(-2deg);
  box-shadow: 0 8px 36px rgba(32,83,117,.13);
  z-index: 2;
}
.feature-grid img {
  height: 40px;
  width: 40px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: var(--secondary);
  box-shadow: 0 2px 8px rgba(32,83,117,.09);
}
.text-section {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 24px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

/* ===== CARDS & FLEX CONTAINERS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  min-width: 230px;
  padding: 28px 22px;
  transition: box-shadow 0.16s, transform 0.17s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(32,83,117,.18);
  transform: scale(1.022) rotate(1.2deg);
}
.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;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.17s;
  min-width: 250px;
  flex-direction: column;
  align-items: flex-start;
}
.testimonial-card p {
  font-size: 1em;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 10px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
}
.testimonial-card span {
  font-size: 0.97em;
  color: var(--black);
  font-style: normal;
  font-family: 'Open Sans', Arial, sans-serif;
}
.rating-summary {
  background: var(--secondary);
  color: var(--primary);
  font-weight: bold;
  border-radius: 18px;
  padding: 16px 25px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 11px rgba(32,83,117,.07);
}

/* ====== BUTTONS & INTERACTIVES ====== */
.cta-btn, .btn, .cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  padding: 14px 32px;
  border-radius: 50px;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform 0.14s;
  box-shadow: 0 2px 10px rgba(32,83,117,.05);
  margin-bottom: 4px;
  outline: none;
  border: none;
  letter-spacing: 0.05em;
  display: inline-block;
  cursor: pointer;
  min-width: 170px;
}
.cta-btn:hover, .btn:hover, .cookie-btn:hover {
  background: var(--primary);
  color: var(--accent);
  transform: scale(1.035) rotate(-2deg);
  box-shadow: 0 5px 28px rgba(32,83,117,.16);
}
.cta-btn:active, .btn:active {
  background: var(--accent);
  color: var(--primary);
}

/* ===== MAIN NAVIGATION ===== */
header {
  background: var(--accent);
  box-shadow: var(--shadow);
  padding: 0 0 5px 0;
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 10px;
  /* No gaps - main gap is in nav */
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.03rem;
  padding: 6px 0;
  transition: color 0.15s, border-bottom 0.18s;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: var(--secondary);
  transition: width .2s;
  position: absolute;
  bottom: -5px;
  left: 0;
  border-radius: 2px;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary);
}
.main-nav a:hover:after,
.main-nav a.active:after {
  width: 100%;
}
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--accent);
  font-size: 2.2rem;
  border-radius: 16px;
  padding: 0 16px;
  height: 52px;
  width: 52px;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(32,83,117,0.12);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(32,83,117,0.95);
  z-index: 1002;
  display: flex;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.41,1.04,.54,1.07);
  flex-direction: column;
  align-items: flex-start;
  overflow-y: auto;
  min-height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--primary);
  font-size: 2rem;
  border-radius: 14px;
  margin: 22px 22px 14px 22px;
  padding: 6px 18px;
  align-self: flex-end;
  border: none;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-left: 34px;
  margin-top: 30px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 18px 0;
  min-height: 50px;
  min-width: 250px;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
  text-shadow: 1px 2px 8px rgba(32,83,117,0.18);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: var(--accent);
  border-radius: 40px 40px 0 0;
  padding: 38px 0 20px 0;
  box-shadow: 0 -4px 22px rgba(32,83,117,0.06);
  margin-top: 60px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.footer-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.01rem;
  font-weight: 700;
  padding: 2px 0;
  transition: color 0.14s, text-decoration 0.13s;
}
.footer-nav a:hover {
  color: var(--secondary);
  text-decoration: underline wavy 1.5px var(--secondary);
}
.footer-contact p, .footer-contact a {
  color: var(--accent);
  font-size: 0.98rem;
  line-height: 1.5;
}
.footer-content img {
  height: 52px;
  margin-right: 12px;
}

/* ====== RESPONSIVE BREAKPOINTS ======*/
@media (max-width: 1024px) {
  .footer-content {
    flex-wrap: wrap;
    gap: 22px;
  }
  .feature-grid {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  /* Stack flex container columns */
  .content-grid,
  .feature-grid,
  .footer-content {
    flex-direction: column;
    align-items: stretch;
  }
  .section {
    padding: 26px 8px;
    margin-bottom: 36px;
  }
  .feature-grid > div {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
  }
  .content-wrapper,
  .footer-content {
    gap: 18px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn {
    min-width: 96px;
    font-size: 1rem;
    padding: 12px 18px;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.17rem;
  }
  .footer-content img {
    margin-bottom: 10px;
  }
}
@media (max-width: 540px) {
  .container {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  footer {
    padding: 22px 0 12px 0;
  }
  .footer-content {
    gap: 12px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ======== FORM ELEMENTS (Contact etc.) ======= */
input[type="text"], input[type="email"], textarea {
  display: block;
  width: 100%;
  padding: 14px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--secondary);
  background: var(--accent);
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--primary);
  transition: border-color 0.18s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--primary);
  background: var(--white);
}
textarea {
  min-height: 120px;
  resize: vertical;
}

/* ====== MICRO-INTERACTIONS & PLAYFUL ANIMATIONS ====== */
.feature-grid > div:before {
  content: '';
  display: block;
  position: absolute;
  right: 18px;
  top: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(246,192,101,0.18);
  z-index: 0;
  animation: floatColor 2.7s infinite alternate ease-in-out;
}
@keyframes floatColor {
  0% {transform: translateY(0px) scale(1); opacity: 0.64;}
  100% {transform: translateY(-12px) scale(1.18); opacity: 0.22;}
}
.cta-btn {
  box-shadow: 0 4px 18px rgba(246,192,101,0.16);
  position: relative;
  overflow: hidden;
}
.cta-btn:after {
  content: '';
  display: block;
  position: absolute;
  left: -80px;
  top: 0;
  width: 40%;
  height: 100%;
  background: rgba(255,255,255,0.16);
  transform: skew(14deg);
  transition: left 0.27s cubic-bezier(.6,1,.54,1.07);
}
.cta-btn:hover:after {
  left: 110%;
}

/* ======= COOKIE BANNER & MODAL ======= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: var(--accent);
  z-index: 3000;
  width: 100vw;
  padding: 20px 18px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -5px 26px rgba(32,83,117,0.09);
  border-radius: 22px 22px 0 0;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: cookie-slidein 0.85s cubic-bezier(0.7, 1.1, 0.5, 1.09) 0.1s;
}
@keyframes cookie-slidein {
  0% { transform: translateY(100%); opacity: 0; }
  90% { opacity:1; }
  100% { transform: translateY(0%); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 0;
  flex: 2 1 200px;
  color: var(--accent);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex: 0 1 auto;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  border-radius: 40px;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin: 0 2px;
  box-shadow: 0 2px 10px rgba(255,255,255,0.12);
  transition: background 0.14s, color 0.14s;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--primary);
  color: var(--accent);
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,83,117,0.92);
  z-index: 3020;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-fadein 0.32s cubic-bezier(.7, 1, .51, 1.1);
}
@keyframes cookie-fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  min-width: 320px;
  max-width: 94vw;
  width: 420px;
  border-radius: 18px;
  box-shadow: 0 8px 50px 0 rgba(32,83,117,0.13);
  padding: 30px 26px 26px 26px;
  color: var(--primary);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookie-pop 0.36s cubic-bezier(.7, 1, .53, 1.12) 0.08s backwards;
}
@keyframes cookie-pop {
  0% { transform: translateY(80px) scale(0.93); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.19rem;
}
.cookie-modal label {
  font-weight: 600;
  font-size: 1rem;
  margin-right: 10px;
}
.cookie-category {
  margin-bottom: 14px;
  padding: 13px 7px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-modal .cookie-btn {
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 22px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 11px;
  font-size: 23px;
  width: 40px;
  height: 40px;
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  background: var(--primary);
  color: var(--accent);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    font-size: 0.97rem;
    padding: 17px 7px 15px 10px;
    gap: 8px;
  }
  .cookie-banner .cookie-actions {
    justify-content: flex-end;
    gap: 8px;
  }
  .cookie-modal {
    padding: 20px 8px 16px 11px;
    min-width: unset;
    width: 98vw;
    max-width: 98vw;
  }
}

/* ===== ACCESSIBILITY + DYNAMIC FOCUS STYLES ===== */
a, button, .cta-btn, .btn {
  transition: outline 0.14s, box-shadow 0.14s;
}
a:focus, .cta-btn:focus, .btn:focus, button:focus {
  outline: 2.5px dashed var(--secondary) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(246,192,101,0.16) !important;
  z-index: 10;
}

/* ===== DECORATIVE PLAYFUL DYNAMICS ===== */
section, .section {
  position: relative;
}
section:after, .section:after {
  content: '';
  display: block;
  position: absolute;
  left: -17px;
  bottom: -16px;
  width: 48px;
  height: 48px;
  border-radius: 18px 28px 42px 18px;
  background: var(--secondary);
  opacity: 0.13;
  animation: bubbles 2s infinite alternate ease-in-out;
  z-index: 0;
  pointer-events: none;
}
@keyframes bubbles {
  from { left: -17px; bottom: -16px; opacity: 0.13; }
  to { left: 9px; bottom: -9px; opacity: 0.23; }
}

.card:before {
  content: '';
  display: block;
  position: absolute;
  top: 18px; left: 18px;
  width: 20px; height: 20px;
  border-radius: 57% 43% 49% 52%;
  background: var(--secondary);
  opacity: 0.12;
  animation: blob 2.9s infinite alternate;
  z-index: 0;
  pointer-events: none;
}
@keyframes blob {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1.15) rotate(8deg); }
}

.testimonial-card:after {
  content: '';
  display: block;
  position: absolute;
  right: 18px; bottom: 18px;
  width: 18px; height: 18px;
  background: var(--secondary);
  border-radius: 60% 40% 53% 47%;
  opacity: 0.105;
  z-index: 0;
  animation: blob 2.3s infinite alternate reverse;
  pointer-events: none;
}

/* ===== PRINT CSS (optional) ===== */
@media print {
  header, nav, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  .section {
    box-shadow: none !important;
    background: #fff !important;
  }
}
