/* RESET & BASE STYLES */
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;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #222;
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: #197278; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #9D6442; }
ul, ol { padding-left: 1.2em; margin-bottom: 12px; }
li { margin-bottom: 8px; }
img { max-width: 100%; display: block; border: none; }
strong, b { font-weight: 700; color: #197278; }
.container {
  width: 100%;
  max-width: 1140px;
  padding: 0 20px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* TYPOGRAPHY (PLAYFUL DYNAMIC) */
h1, h2, h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  font-weight: 800;
  color: #197278;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
  line-height: 1.15;
  text-shadow: 2px 3px 0 #E6E1C5, 4px 7px 12px #e6e1c540;
}
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.32rem;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.24rem; }
  h3 { font-size: 1.08rem; }
}
p, blockquote {
  font-size: 1rem;
  color: #222;
  margin-bottom: 12px;
}
blockquote {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #197278;
  background: #E6E1C5;
  border-left: 5px solid #9D6442;
  margin-bottom: 10px;
  padding: 16px 18px;
  border-radius: 12px 24px 12px 24px;
}

/* PLAYFUL DYNAMIC COLOR SCHEME */
:root {
  --primary: #197278;
  --secondary: #E6E1C5;
  --accent: #9D6442;
  --yellow: #FFE066;
  --blue: #63C7FF;
  --green: #7BE495;
  --orange: #FFB450;
  --gray: #f3f4f6;
  --white: #fff;
}

/* HEADER/NAVIGATION STYLES */
header {
  width: 100%;
  background: var(--primary);
  box-shadow: 0 3px 14px 0 #19727815;
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  padding: 8px 13px;
  border-radius: 16px;
  background: none;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.btn-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  color: var(--white);
  background: linear-gradient(90deg,#9D6442 50%, #FFE066 98%);
  background-size: 200% 100%;
  background-position: 0 0;
  border: none;
  border-radius: 22px 30px 22px 30px;
  padding: 13px 28px;
  font-weight: 700;
  box-shadow: 0 4px 32px #19727820;
  cursor: pointer;
  margin-left: 12px;
  transition: background-position 0.25s, transform 0.12s, box-shadow 0.16s;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background-position: 100% 0;
  color: var(--primary);
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 9px 32px #FFE06699, 0 2px 12px #19727822;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--secondary);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.20s, color 0.2s, box-shadow 0.18s;
  z-index: 101;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--yellow);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--secondary);
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.77,0,.18,1);
  z-index: 111;
  display: flex;
  flex-direction: column;
  padding: 34px 24px 24px 24px;
  box-shadow: 16px 0 44px 0 #00000036;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--primary);
  font-size: 2rem;
  border: none;
  margin-bottom: 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--yellow);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 20px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-size: 1.22rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 16px;
  background: none;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--yellow);
  color: var(--accent);
}

@media (max-width: 1020px) {
  header .container {
    gap: 8px;
  }
  .main-nav {
    gap: 14px;
  }
  .btn-primary { padding: 11px 19px; font-size: 1rem; }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
  header img { height: 36px; }
}
@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MAIN LAYOUTS */
.hero {
  background: var(--yellow);
  box-shadow: 0 10px 32px #FFE06660;
  padding-top: 42px;
  padding-bottom: 42px;
  border-radius: 0 0 60px 60px/0 0 34px 34px;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.hero .content-wrapper {
  gap: 22px;
  align-items: flex-start;
}

.section, main > section {
  background: var(--gray);
  border-radius: 42px;
  box-shadow: 0 2px 12px #19727812;
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FLEXBOX LAYOUTS */
.features-grid, .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 14px;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.features-grid > div, .service-cards > div {
  background: var(--white);
  border-radius: 28px 8px 28px 8px;
  box-shadow: 0 6px 38px #63C7FF18, 0 2px 10px #19727814;
  padding: 26px 22px;
  flex: 1 1 250px;
  min-width: 240px;
  max-width: 350px;
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  border: 1.5px dashed var(--yellow);
  position: relative;
  overflow: hidden;
}
.features-grid > div:hover, .service-cards > div:hover {
  box-shadow: 0 12px 40px #7BE49533, 0 2px 4px #FFB45022;
  transform: translateY(-5px) scale(1.024) rotate(-1deg);
}
.features-grid img, .service-cards img {
  height: 50px;
  width: 50px;
  margin-bottom: 4px;
}
.features-grid h3, .service-cards h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--accent);
}
.features-grid p, .service-cards p { color: #444; margin-bottom: 0; }

/* TEXT/IMAGE & CARD FLEX SECTIONS */
.text-section {
  margin-bottom: 20px;
}
.text-section ul, .text-section ol {
  margin-bottom: 8px;
}
.text-section li {
  margin-bottom: 4px;
  position: relative;
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding-left: 20px;
}
.text-section ul li:before {
  content: '★';
  color: var(--orange);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  opacity: 0.7;
}
main .content-wrapper, 
footer .content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .features-grid, .service-cards, .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .features-grid > div, .service-cards > div {
    min-width: unset;
    max-width: unset;
    width: 100%;
    padding: 18px 10px;
  }
  .content-wrapper { gap: 14px; }
}

/* TESTIMONIAL CARDS */
.testimonial-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 28px 10px 28px 10px;
  box-shadow: 0 8px 40px #19727814, 0 2px 10px #FFE06624;
  margin-top: 16px;
  margin-bottom: 16px;
  position: relative;
}
.testimonial-card > div,
.testimonial-card blockquote {
  flex: 1 1 230px;
  background: none;
  font-size: 1.06rem;
  color: #1a1a1a;
  margin-right: 14px;
}
.testimonial-card blockquote {
  margin-bottom: 5px;
  background: var(--secondary);
  border-radius: 16px 30px 12px 30px;
  padding: 18px 20px 14px 20px;
  border-left: 4px solid var(--accent);
  min-width: 200px;
  box-shadow: 0 2px 7px #63C7FF22;
}
.testimonial-card p, .testimonial-card strong {
  font-size: 1rem;
  color: #197278;
}
.testimonial-card img {
  height: 26px;
  width: auto;
  margin-top: 4px;
}
@media (max-width: 920px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; }
  .testimonial-card > div, .testimonial-card blockquote {
    margin-right: 0;
    min-width: unset;
    width: 100%;
  }
}

/* BUTTONS & MICRO-INTERACTIONS */
button, .btn-primary, input[type="submit"] {
  transition: background 0.18s, color 0.12s, transform 0.14s, box-shadow 0.18s;
}
button:active, input[type="submit"]:active {
  transform: scale(0.97) rotate(-2deg);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 36px 0 16px 0;
  border-radius: 36px 36px 0 0/ 22px 22px 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--yellow);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: color 0.14s;
  padding: 4px 7px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  background: var(--yellow);
  border-radius: 8px;
  text-decoration: underline;
}
footer .text-section {
  color: var(--secondary);
  font-size: .95rem;
  text-align: center;
}

/* COOKIE CONSENT */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbe9;
  color: #222;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 32px #19727825, 0 1px 8px #63C7FF12;
  border-top: 3px solid var(--yellow);
  padding: 20px 34px;
  z-index: 2000;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  gap: 24px;
  animation: cookie-fadein 0.9s cubic-bezier(.66,.09,.46,1.13);
}
@keyframes cookie-fadein {
  0% { opacity: 0; transform: translateY(32px); }
  100% { opacity: 1; transform: none; }
}
.cookie-banner p {
  flex: 1;
  margin-right: 24px;
}
.cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  border: none;
  border-radius: 16px 22px 18px 22px;
  padding: 11px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  cursor: pointer;
  background: var(--yellow);
  color: var(--primary);
  box-shadow: 0 2px 7px #19727814;
  transition: background 0.13s, color 0.1s, transform 0.15s;
  margin-left: 0;
}
.cookie-banner button.accept {
  background: var(--primary);
  color: var(--yellow);
}
.cookie-banner button.reject {
  background: #f68a70;
  color: #fff;
}
.cookie-banner button.settings {
  background: var(--accent);
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--blue);
  color: #fff;
  transform: scale(1.05) rotate(-2deg);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 14px;
    gap: 12px;
  }
  .cookie-banner p {
    margin-right: 0; margin-bottom: 7px;
  }
  .cookie-actions { width: 100%; justify-content: flex-end; gap: 6px; }
}

/* COOKIE MODAL/PREFERENCES */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 9001;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #222c3ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fadein 0.31s cubic-bezier(.58,.06,.72,1.28);
}
@keyframes modal-fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--secondary);
  color: #1a1a1a;
  border-radius: 22px 34px 22px 34px;
  box-shadow: 0 10px 66px #19727844;
  padding: 36px 28px 28px 28px;
  max-width: 420px;
  width: 94vw;
  z-index: 9002;
  animation: pop-modal 0.26s cubic-bezier(.78,.38,.38,1.58);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes pop-modal {
  0% { transform: scale(0.87); opacity: 0.2; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.12rem;
  margin-bottom: 6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 9px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--primary);
}
.cookie-category label {
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.cookie-category .always-enabled {
  color: var(--gray);
  font-style: italic;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  border-radius: 14px 20px 16px 20px;
  padding: 10px 17px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--yellow);
  color: var(--primary);
}
.cookie-modal button.save {
  background: var(--primary);
  color: #fff;
  margin-left: 8px;
}
.cookie-modal button.close {
  background: #c03e2e;
  color: #fff;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--blue);
  color: #fff;
  transform: scale(1.03);
}

/* FORM FIELDS */
input, textarea, select {
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.12s;
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
}

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

/* SCROLLBAR STYLING */
::-webkit-scrollbar { width: 11px; background: var(--secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ANIMATIONS (PLAYFUL DYNAMIC) */
.features-grid > div, .service-cards > div, .testimonial-card, .card {
  transition: box-shadow 0.18s, transform 0.22s, background 0.14s;
}
.features-grid > div:after, .service-cards > div:after {
  content: "";
  display: block;
  position: absolute;
  top: -24px; right: -24px;
  width: 70px; height: 70px;
  background: var(--blue);
  border-radius: 70px 23px 39px 70px;
  opacity: 0.16;
  z-index: 1;
}
.features-grid > div:before, .service-cards > div:before {
  content: "";
  display: block;
  position: absolute;
  bottom: -18px; left: -17px;
  width: 60px; height: 47px;
  background: var(--orange);
  border-radius: 50% 19px 30px 50px;
  opacity: 0.22;
  z-index: 1;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section, main > section {
    padding: 28px 6px;
    margin-bottom: 36px;
    border-radius: 18px;
  }
  .hero {
    border-radius: 0 0 22px 22px/0 0 12px 12px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  footer { border-radius: 12px 12px 0 0 / 8px 8px 0 0; }
  .footer-nav { gap: 7px; }
}

/* VISUAL HIERARCHY & SPACING FIXES */
h1, h2, h3 { margin-bottom: 0.4em; }
p, ul, ol, blockquote {
  margin-bottom: 1em;
}
.card:not(:last-child) { margin-bottom: 20px; }

/* Utility: Hide visually but accessible */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ICONS (if no svg present, may be used on placeholder) */
.icon {
  width: 40px;
  height: 40px;
  display: inline-block;
  vertical-align: middle;
  background-color: var(--yellow);
  border-radius: 11px;
  margin-right: 12px;
}

/* Ensure minimum margins for all cards/sections */
.features-grid > div, .service-cards > div, .card {
  margin-bottom: 20px;
}

/* END */
