/* --- CSS RESET and 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, 
main, 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;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #232323;
  background: #F2EADA;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: #174672;
  transition: color 0.24s;
}
a:focus {
  outline: 2px dashed #68A4C4;
  outline-offset: 2px;
}
input, button, textarea, select {
  font: inherit;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
address {
  font-style: normal;
  margin: 0;
}

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

:root {
  --color-primary: #174672;
  --color-secondary: #68A4C4;
  --color-accent: #F2EADA;
  --color-white: #fff;
  --color-light: #faf8f5;
  --color-dark: #1a2736;
  --color-grey: #478EA6;
  --color-black: #232323;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- LAYOUT CONTAINER & GUTTER --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
}
h1 { font-size: 2.5rem; line-height: 1.1; font-weight: 900; margin-bottom: 12px; }
h2 { font-size: 2rem; line-height: 1.15; font-weight: 700; margin-bottom: 10px; }
h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 7px; }
h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; color: var(--color-secondary); }
p, ul, ol {
  color: var(--color-black);
  font-size: 1rem;
  margin-bottom: 12px;
}
p.hero-sub {
  font-size: 1.23rem;
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 18px;
  font-weight: 600;
}
strong { font-weight: bold; }

/* --- BUTTONS / CTAs --- */
.cta, .btn, .button {
  display: inline-block;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  border-radius: 24px;
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  box-shadow: 0 4px 16px 0 rgba(104,164,196,0.10);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  letter-spacing: 0.08em;
  margin-top: 10px;
}
.cta.primary, .btn.primary {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cta.primary:hover, .btn.primary:hover, .cta.primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 8px 24px 0 rgba(23,70,114,0.13);
}
.cta.secondary {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cta.secondary:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
  border-color: var(--color-secondary);
}

/* LINK STYLES */
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 5px 11px;
  position: relative;
  transition: color var(--transition);
}
nav a:hover, nav a:focus {
  color: var(--color-secondary);
}

/* --- HEADER NAVIGATION / BURGER MENU --- */
header {
  background: var(--color-accent);
  box-shadow: 0 2px 16px 0 rgba(23,70,114,0.10);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header img {
  height: 44px;
}
header .cta.primary {
  margin-left: 12px;
  padding: 10px 25px;
  font-size: 1rem;
}

/* --- MOBILE MENU TOGGLE --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  background: var(--color-accent);
  border: 2px solid var(--color-secondary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  z-index: 120;
  transition: background var(--transition), border var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,70,114,0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 200;
  padding: 32px 0 0 0;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.57, 0, 0.15, 1);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  margin-left: auto;
  font-size: 2.2rem;
  color: var(--color-accent);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
  margin-bottom: 24px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-left: 36px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.5rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 0;
  transition: color var(--transition);
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: rgba(255,255,255,0.10);
}

@media (max-width: 1024px) {
  header nav, header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- MAIN SECTIONS / FLEX UTILS --- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { margin-bottom: 20px; position: relative; }
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 34px;
}
.features-list li {
  background: var(--color-light);
  border-radius: 22px;
  padding: 16px 24px;
  min-width: 220px;
  box-shadow: 0 2px 8px 0 rgba(23,70,114,0.09);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.09rem;
  margin-bottom: 0px;
  transition: box-shadow var(--transition);
}
.features-list li img {
  width: 34px; height: 34px;
  background: var(--color-accent);
  border-radius: 50%;
  padding: 6px;
}
.features-list li:hover {
  box-shadow: 0 6px 18px 0 rgba(104,164,196,0.14);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section ul {
  margin-bottom: 8px;
  padding-left: 24px;
  list-style-type: disc;
}
.text-section ul li {
  margin-bottom: 7px;
  font-size: 1.04rem;
}
.text-section ol {
  padding-left: 24px;
  list-style-type: decimal;
}
.text-section ol li {
  margin-bottom: 10px;
  font-size: 1.04rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 20px;
}
.faq-item {
  background: var(--color-light);
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(23,70,114,0.08);
  padding: 16px 30px;
  color: var(--color-dark);
}
.faq-item h4 {
  margin-bottom: 6px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 4px 22px 0 rgba(23,70,114,0.09);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 260px;
  max-width: 520px;
  color: var(--color-black);
  font-size: 1.1rem;
}
.testimonial-card p {
  color: var(--color-black);
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--color-secondary);
}

/* --- CARDS GENERAL --- */
.card {
  background: var(--color-accent);
  border-radius: 17px;
  box-shadow: 0 4px 20px 0 rgba(104,164,196,0.11);
  transition: box-shadow var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(23,70,114,0.15);
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 36px 0 0 0;
  margin-top: 60px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.footer-top nav {
  display: flex;
  gap: 14px;
}
.footer-top nav a {
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 4px 10px;
}
.footer-top nav a:hover {
  color: var(--color-secondary);
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
footer address, .footer-social {
  color: var(--color-accent);
  font-size: 0.98rem;
  line-height: 1.7;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-social p {
  color: var(--color-accent);
  margin-right: 7px;
  font-weight: 600;
}
.footer-social a img {
  width: 26px; height: 26px;
}
footer a {
  color: var(--color-accent);
  text-decoration: underline dotted 1.5px;
}
footer a:hover {
  color: var(--color-secondary);
}

/* --- COOKIE BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(241, 234, 218, 0.99);
  border-top: 2.5px solid var(--color-secondary);
  z-index: 3000;
  box-shadow: 0 -2px 32px 0 rgba(23,70,114,0.09);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  padding: 24px 28px;
  justify-content: space-between;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: cookie-in 0.55s cubic-bezier(0.45,0,0.2,1);
}
@keyframes cookie-in {
  0% { transform: translateY(100%); opacity: 0; } 80%{ opacity: 1; } 100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner .btn {
  font-size: 0.97rem;
  border-radius: 21px;
  padding: 7px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  border: none;
  transition: background var(--transition), color var(--transition);
  margin: 0;
}
.cookie-banner .btn.accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .btn.accept:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-banner .btn.reject {
  background: var(--color-light);
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-banner .btn.reject:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.cookie-banner .btn.settings {
  background: transparent;
  border: 1.5px dashed var(--color-secondary);
  color: var(--color-secondary);
}
.cookie-banner .btn.settings:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23, 70, 114, 0.53);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.24s cubic-bezier(.4,0,.2,1);
}
@keyframes modal-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--color-accent);
  border-radius: 20px;
  padding: 38px 32px 28px 32px;
  min-width: 280px;
  max-width: 420px;
  box-shadow: 0 7px 26px 0 rgba(23,70,114,0.18);
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: modal-in 0.33s cubic-bezier(0.44,0,0.2,1);
}
@keyframes modal-in {
  0% { transform: scale(.75) translateY(48px); opacity: 0; } 
  85% { opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal h3 {
  margin-bottom: 13px;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.33rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-modal .category-toggle {
  accent-color: var(--color-secondary);
}
.cookie-modal .cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
.cookie-modal .cookie-actions .btn {
  font-size: 0.97rem;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-secondary);
  cursor: pointer;
}
.cookie-modal-close:hover {
  color: var(--color-primary);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .footer-top {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  section {
    padding: 28px 5px;
    margin-bottom: 35px;
  }
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.11rem; }
  .hero-sub { font-size: 1.00rem; }
  .features-list {
    gap: 9px;
    flex-direction: column;
    align-items: stretch;
  }
  .features-list li {
    min-width: 0;
    padding: 14px 16px;
    font-size: 1rem;
    flex: 1 1 100%;
  }
  .content-grid, .text-image-section, .footer-top, .footer-bottom {
    flex-direction: column;
    gap: 16px !important;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    font-size: 1rem;
    padding: 16px 10px;
  }
  .faq-item {
    padding: 13px 12px;
  }
}
@media (max-width: 500px) {
  .cookie-banner {
    flex-direction: column;
    gap: 17px;
    padding: 19px 7px 22px 7px;
    font-size: 0.96rem;
  }
}

/* --- CREATIVE ARTISTIC EXTRAS --- */
/* Vibrant color highlights around headings (pseudo border brush effect) */
h1, h2 {
  position: relative;
  z-index: 1;
}
h1:after, h2:after {
  content: '';
  display: block;
  position: absolute;
  left: -11px;
  bottom: -9px;
  width: 44px;
  height: 17px;
  background: var(--color-secondary);
  opacity: 0.17;
  border-radius: 44px 44px 30px 30px;
  z-index: -1;
  pointer-events: none;
}

h2:after {
  left: -8px;
  width: 35px;
  height: 13px;
}

/* Buttons with hand-drawn outline */
.cta.primary, .btn.primary {
  box-shadow: 0 4px 16px 0 rgba(104,164,196,0.20), 0 0 0 2px var(--color-secondary);
  position: relative;
}
.cta.primary:after, .btn.primary:after {
  content: '';
  display: block;
  position: absolute;
  left: -7px; right: -7px; top: -7px; bottom: -7px;
  border: 2px dashed var(--color-secondary);
  border-radius: 32px;
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
  transition: border-color var(--transition), opacity var(--transition);
}
.cta.primary:hover:after, .btn.primary:hover:after {
  border-color: var(--color-primary);
  opacity: 0.8;
}

/* Artistic shadow for testimonials */
.testimonial-card {
  box-shadow: 0 6px 20px 2px rgba(104,164,196,0.14), 2px 7px 0 -3px var(--color-secondary);
  border-left: 7px solid var(--color-secondary);
}

/* Animated line underline on links */
nav a {
  position: relative;
  overflow: hidden;
}
nav a:after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: var(--color-secondary);
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  transition: width 0.27s cubic-bezier(0.6,0,0.2,1);
  border-radius: 1px;
}
nav a:hover:after, nav a:focus:after {
  width: 90%;
}

/* Section divider brushstroke */
.section:not(:first-child):before {
  content: '';
  display: block;
  width: 80px; height: 9px;
  background: var(--color-secondary);
  margin-bottom: 22px;
  border-radius: 14px 34px 19px 9px;
  opacity: 0.17;
}

/* --- FORM ELEMENTS (if present) --- */
input[type=text], input[type=email], textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.6px solid var(--color-secondary);
  border-radius: 14px;
  font-size: 1rem;
  margin-bottom: 16px;
  background: var(--color-white);
  color: var(--color-black);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input[type=text]:focus, input[type=email]:focus, textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 1.5px var(--color-primary);
}

/* --- CUSTOM SCROLLBAR --- */
body::-webkit-scrollbar {
  width: 10px;
  background: var(--color-accent);
}
body::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 7px;
}

/* --- MICRO-INTERACTIONS --- */
.card, .testimonial-card, .faq-item, .cta, .btn, .button, .section {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition), transform 0.18s cubic-bezier(0.4,0,0.2,1);
}
.card:hover, .testimonial-card:hover, .faq-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 38px 0 rgba(23,70,114,0.16);
}

/* --- PRINT --- */
@media print {
  * { color: #000 !important; background: transparent !important; box-shadow: none !important; }
  header, footer, nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
