/* =======================================================================
   RESET & NORMALIZE (modern CSS reset)
======================================================================= */
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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #F6F6F4;
  color: #252525;
  font-family: 'Montserrat', 'Georgia', serif;
  min-height: 100vh;
  font-size: 16px;
}
img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #225284;
  text-decoration: none;
  transition: color 0.15s;
  outline: none;
}
a:focus, a:hover {
  color: #163a5a;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 1em;
}
li + li {
  margin-top: 8px;
}
b, strong {
  font-weight: 700;
}
hr {
  border: none;
  border-bottom: 1px solid #e5e4de;
  margin: 32px 0;
}

/* =======================================================================
   TYPOGRAPHY (elegant classic style)
======================================================================= */
@import url('https://fonts.googleapis.com/css?family=Baloo+2:700|Montserrat:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Baloo 2', Georgia, Times, serif;
  color: #1b3146;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 {
  font-size: 2.75rem; /* 44px */
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;     /* 32px */
  margin-bottom: 16px;
}
h3 {
  font-size: 1.5rem;   /* 24px */
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem; /* 18px */
}

p, ul, ol, li, span, label, input, textarea {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  color: #252525;
}
p {
  margin-bottom: 1.25em;
  max-width: 58ch;
}
.section ul {
  margin-bottom: 0;
}

/* Visual hierarchy */
.text-section h2, .content-wrapper h1, .content-wrapper h2 {
  margin-top: 0;
}

/* =======================================================================
   BRAND COLORS & UTILS
======================================================================= */
:root {
  --primary: #225284;
  --secondary: #FFD447;
  --accent: #FFFFFF;
  --muted1: #F6F6F4;
  --muted2: #ebe8e2;
  --muted3: #bfc7d0;
  --text: #252525;
  --dark: #11243e;
  --shadow: 0 2px 12px 0 rgba(34, 82, 132, 0.07);
  --radius: 12px;
  --section-pad: 40px 20px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* =======================================================================
   HEADER
======================================================================= */
header {
  width: 100%;
  background: var(--accent);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5vw 12px 5vw;
  position: relative;
  z-index: 900;
}
header a img {
  height: 52px;
  width: auto;
}
header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--primary);
  padding: 4px 2px;
  border-radius: 4px;
  transition: background 0.14s, color 0.14s;
}
header nav a:focus, header nav a:hover {
  background: var(--secondary);
  color: var(--dark);
  font-weight: 700;
}
header .btn-primary {
  margin-left: 28px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 24px;
  transition: color 0.2s;
  border-radius: 6px;
  padding: 2px 10px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--secondary);
  background: var(--primary);
}

/* =======================================================================
   MOBILE MENU
======================================================================= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--accent);
  box-shadow: var(--shadow);
  z-index: 1200;
  transform: translateX(-105vw);
  transition: transform 0.34s cubic-bezier(.45,.05,.6,1.16);
  pointer-events: none;
  opacity: 0.97;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--primary);
  align-self: flex-end;
  margin: 20px 28px 0 0;
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 10px;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--secondary);
  color: var(--dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  font-size: 1.25rem;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', serif;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
  min-width: 220px;
  text-align: center;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--secondary);
  color: var(--dark);
  text-decoration: underline;
}

@media (max-width: 1100px) {
  header nav {
    gap: 16px;
  }
  header .btn-primary {
    margin-left: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
  }
  header {
    padding: 12px 4vw;
  }
}
@media (max-width: 768px) {
  header nav, header .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header {
    padding: 10px 2vw;
  }
  .container {
    padding: 0 10px;
  }
}

/* =======================================================================
   MAIN LAYOUT, SECTIONS & FLEXBOX CONSISTENCY
======================================================================= */
main {
  min-height: 70vh;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
section {
  width: 100%;
  background: var(--accent);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  box-shadow: 0px 1px 8px 1px rgba(34,82,132,0.03);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}
@media (max-width: 540px) {
  section {
    padding: 26px 7px;
    border-radius: 9px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--muted1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 24px 18px 24px;
  min-width: 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.16s, transform 0.13s;
}
.card:hover {
  box-shadow: 0px 3px 16px 2px rgba(34,82,132,0.09);
  transform: translateY(-3px) scale(1.012);
}

/* =======================================================================
   BUTTONS, LINKS, & MICRO-INTERACTIONS
======================================================================= */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Baloo 2', Georgia, serif;
  font-weight: 700;
  padding: 12px 34px;
  border: none;
  border-radius: 6px;
  font-size: 1.13rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.16s;
  margin-top: 8px;
  box-shadow: 0 2px 16px 0 rgba(34,82,132,0.07);
}
.btn-primary {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 2px 16px 0 rgba(34,82,132,0.07);
}
.btn-primary:hover, .btn-primary:focus {
  background: #163a5a;
  color: var(--secondary);
  box-shadow: 0 6px 24px 0 rgba(34,82,132,0.13);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #ffe47d;
  color: var(--dark);
  border-color: var(--dark);
}

/* =======================================================================
   LISTS, ULs with ICONS
======================================================================= */
ul {
  list-style: none;
}
li img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: -4px;
}
li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  margin-bottom: 10px;
  color: #34342b;
  font-size: 1.06rem;
}
.section ul {
  margin-bottom: 7px;
  padding-left: 0;
}
.section ul li {
  background: none;
  padding: 0;
  margin: 0 0 10px 0;
}
@media (max-width: 640px) {
  .section ul li {
    font-size: 0.98rem;
    gap: 9px;
  }
}

/***** Feature Items Flex Layout *****/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* =======================================================================
   TESTIMONIAL CARDS
======================================================================= */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F4F6FB;
  border-radius: var(--radius);
  box-shadow: 0 1px 8px 0 rgba(34,82,132,0.045);
  margin-bottom: 20px;
  max-width: 550px;
  border-left: 6px solid var(--primary);
  position: relative;
  transition: box-shadow 0.14s;
}
.testimonial-card p {
  color: #22253a;
  font-family: 'Baloo 2', Georgia, serif;
  font-size: 1.16rem;
  margin-bottom: 4px;
  font-weight: 500;
}
.testimonial-card span {
  color: #37497a;
  font-size: 0.98rem;
  font-family: 'Montserrat', serif;
  font-style: italic;
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  box-shadow: 0 7px 22px 0 rgba(34,82,132,0.13);
}

/* =======================================================================
   FOOTER & NEWSLETTER
======================================================================= */
footer {
  padding: 44px 0 16px 0;
  background: var(--muted1);
  border-top: 1px solid var(--muted2);
  font-family: 'Montserrat', serif;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--primary);
  font-weight: 500;
  font-size: 1.01rem;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 4px;
  justify-content: center;
}
.social-links img {
  width: 31px;
  height: 31px;
  filter: grayscale(14%) brightness(95%);
  opacity: 0.91;
  transition: filter 0.2s, opacity 0.22s;
}
.social-links a:hover img {
  filter: none;
  opacity: 1;
}
.newsletter-signup {
  margin-top: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.newsletter-signup p {
  color: #383838;
  font-size: 1.03rem;
  margin-bottom: 5px;
}
.newsletter-signup .btn-secondary {
  margin-top: 0;
}

@media (max-width: 650px) {
  footer nav {
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }
  .newsletter-signup {
    font-size: .97rem;
  }
  .social-links {
    gap: 13px;
  }
}

/* =======================================================================
   RESPONSIVE UTILITIES
======================================================================= */
@media (max-width: 680px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .testimonial-card p {
    font-size: 1rem;
  }
  .container {
    max-width: 98vw;
    padding: 0 2vw;
  }
  .newsletter-signup {
    font-size: 0.95rem;
  }
}

/* =======================================================================
   COOKIE CONSENT BANNER & MODAL
======================================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe7;
  color: #252525;
  border-top: 2px solid var(--secondary);
  box-shadow: 0 -2px 14px 0 rgba(34,82,132,0.08);
  padding: 20px 12px 21px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2000;
  align-items: center;
  animation: cookie-fade-in 0.5s;
}
@keyframes cookie-fade-in {
  from { transform: translateY(100%); opacity:0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cookie-banner button {
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 0.98rem;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: 'Baloo 2', Georgia, serif;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background 0.16s, color 0.16s, box-shadow 0.17s;
  box-shadow: 0 1px 3px 0 rgba(34,82,132,0.07);
}
.cookie-banner .accept-btn {
  background: var(--primary);
  color: var(--accent);
}
.cookie-banner .accept-btn:hover, .cookie-banner .accept-btn:focus {
  background: #0d2c4a;
}
.cookie-banner .reject-btn {
  background: var(--accent);
  color: var(--primary);
  border: 1.6px solid var(--primary);
}
.cookie-banner .reject-btn:hover, .cookie-banner .reject-btn:focus {
  background: #ffe47d;
  color: var(--dark);
}
.cookie-banner .settings-btn {
  background: var(--secondary);
  color: var(--primary);
  border: 1.6px solid var(--primary);
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: var(--primary);
  color: var(--accent);
}

/***** Cookie Modal *****/
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(40,61,84,0.38);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.36s;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 0 6px 48px 5px rgba(34,82,132,0.16);
  max-width: 405px;
  padding: 34px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  animation: modalUp 0.3s;
}
@keyframes modalUp {
  from {transform: translateY(90px); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}
.cookie-modal h3 {
  font-size: 1.29rem;
  color: var(--primary);
  margin-bottom: 7px;
}
.cookie-modal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}
.cookie-modal label {
  font-size: 1rem;
  font-family: 'Montserrat', serif;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  background: #d1dee8;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-toggle[data-checked="true"] {
  background: var(--secondary);
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-switch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  top: 1px; left: 1px;
  transition: left 0.18s, background 0.15s;
}
.cookie-toggle[data-checked="true"] .cookie-toggle-switch {
  left: 21px;
  background: var(--dark);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 7px;
}

@media (max-width:480px) {
  .cookie-modal {
    max-width: 98vw;
    padding: 20px 6vw;
  }
}

/* ========== Hide overlay/modal by default ========== */
.cookie-modal-overlay, .cookie-modal {
  display: none;
}
.cookie-modal-overlay.active, .cookie-modal.active {
  display: flex;
}
@media (max-width: 510px) {
  .cookie-banner {
    padding: 13px 5px 16px 5px;
    font-size: 0.92rem;
  }
}

/* =======================================================================
   MISC: MAP DIV & OTHERS
======================================================================= */
.map {
  width: 100%;
  min-height: 200px;
  background: #e8edf1;
  border: 1.5px dashed var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c7d90;
  font-style: italic;
  font-size: 1rem;
  margin: 18px 0 0 0;
}

/* =======================================================================
   ACCESSIBILITY & FOCUS
======================================================================= */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
button:focus {
  outline: 2px solid var(--primary);
}

/* =======================================================================
   CLASSIC ELEGANT MICRO-ANIMATIONS
======================================================================= */
.btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button {
  transition: background 0.16s, color 0.16s, box-shadow 0.17s, transform 0.14s;
}
.btn-primary:active, .btn-secondary:active, .mobile-menu-toggle:active, .mobile-menu-close:active {
  transform: scale(0.99);
}
.card:active {
  transform: scale(0.985);
}

/**** REMOVE default absolute for cards, ensure all cards stacked in flex wrappers ****/
.card, .testimonial-card {
  position: relative;
}

/* =======================================================================
   PRINT & MEDIA IMPROVEMENTS
======================================================================= */
@media print {
  header, .mobile-menu, .cookie-banner, footer { display: none !important; }
  section, main, .container { box-shadow: none !important; background: #fff !important; }
}
