/* ===== 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,
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;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFF;
  color: #1a1510;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  outline: none;
  border: none;
  background: none;
  padding: 0;
}

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

:root {
  --brand-primary: #206380;
  --brand-secondary: #E8F3F8;
  --brand-accent: #F2BA40;
  --brand-dark: #1A1510;
  --brand-bg-light: #FFF;
  --brand-grey: #F7F6F4;
  --brand-shadow: 0 4px 16px 0 rgba(32, 99, 128, 0.07);
  --brand-radius: 18px;
  --brand-radius-sm: 12px;
  --brand-radius-lg: 26px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--brand-bg-light);
  color: var(--brand-dark);
  min-height: 100vh;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  line-height: 1.15;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--brand-dark);
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.subtitle {
  font-size: 1.13rem;
  font-weight: 400;
  color: var(--brand-primary);
  margin-bottom: 20px;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--brand-dark);
}
strong {
  font-weight: 700;
}

/* ===== GENERAL SPACING & CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  padding: 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--brand-radius-sm);
}
.text-section {
  padding: 28px 0;
  font-size: 1.02rem;
}
ul, ol {
  margin-bottom: 20px;
}
ul li, ol li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  color: var(--brand-dark);
}
ul li:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--brand-accent);
  border-radius: 50%;
  margin-right: 10px;
  position: absolute;
  left: 0;
  top: 7px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  width: 100%;
  background: var(--brand-secondary);
  box-shadow: var(--brand-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 0;
  min-height: 68px;
  position: relative;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  padding: 12px 24px 12px 16px;
}
.logo img {
  height: 36px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  color: var(--brand-primary);
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: background 0.18s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-bg-light);
}
.main-nav .cta-btn {
  background: var(--brand-accent);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 10px 24px;
  border-radius: var(--brand-radius-sm);
  margin-left: 10px;
  box-shadow: 0 2px 7px 0 rgba(242, 186, 64, 0.08);
  transition: background 0.18s, box-shadow 0.2s, color 0.18s;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 15px 0 rgba(32,99,128,0.13);
}

/* Hamburger (Mobile) Button */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  padding: 8px 16px;
  cursor: pointer;
  margin-right: 15px;
  box-shadow: 0 2px 9px 0 rgba(32,99,128,0.12);
  transition: background 0.16s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32, 99, 128, 0.96);
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.51,.92,.24,1.12);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  margin: 25px 28px 16px auto;
  background: var(--brand-accent);
  color: var(--brand-primary);
  font-size: 2rem;
  border-radius: 50%;
  padding: 10px 18px 10px 18px;
  cursor: pointer;
  transition: background 0.19s;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(242,186,64,0.13);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fff3d0;
  color: var(--brand-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 10px 38px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 16px;
  transition: background 0.13s, color 0.11s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

/* ===== HERO SECTIONS & BUTTONS ===== */
.cta-btn {
  background: var(--brand-accent);
  color: var(--brand-dark);
  padding: 13px 30px;
  border-radius: var(--brand-radius-sm);
  font-family: var(--font-display);
  font-size: 1.10rem;
  font-weight: 700;
  margin-top: 14px;
  box-shadow: 0 2px 9px 0 rgba(242,186,64,0.13);
  cursor: pointer;
  transition: background 0.21s, color 0.21s, box-shadow 0.22s, transform 0.11s;
  border: none;
  outline: none;
  display: inline-block;
  position: relative;
}
.cta-btn:active, .cta-btn:focus {
  transform: scale(0.97);
}
.cta-btn:hover {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(32,99,128,0.10);
}

/* ===== FEATURES & SERVICES FLEX LAYOUTS ===== */
.features-grid,
.services-grid,
.event-list,
.blog-list,
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.feature-card,
.service-card,
.blog-article-preview,
.event-card,
.team-member {
  background: var(--brand-grey);
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow);
  padding: 26px 26px 22px;
  flex: 1 1 270px;
  min-width: 250px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.19s, transform 0.13s;
}
.feature-card:hover,
.service-card:hover,
.blog-article-preview:hover,
.event-card:hover,
.team-member:hover {
  box-shadow: 0 4px 28px 0 rgba(32,99,128,0.13);
  transform: translateY(-4px) scale(1.02);
}
.price {
  background: var(--brand-accent);
  color: var(--brand-dark);
  border-radius: 7px;
  font-size: .99em;
  padding: 2px 10px;
  margin-left: 10px;
  font-weight: 600;
}

/* ====== CARDS, SLIDERS, TESTIMONIALS ====== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow);
  background: var(--brand-grey);
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff8ed;
  border-radius: var(--brand-radius);
  box-shadow: 0 2px 10px 0 rgba(242,186,64,0.10);
  padding: 20px;
  min-width: 260px;
  max-width: 380px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 3px 18px 0 rgba(241,186,64,0.19);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-card blockquote {
  color: var(--brand-dark);
  font-size: 1.10rem;
  margin-bottom: 12px;
  font-style: italic;
}
.testimonial-meta {
  color: var(--brand-primary);
  font-size: .98rem;
  font-family: var(--font-display);
  font-weight: 600;
}

/* ====== BLOG CARDS & PREVIEWS ====== */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.blog-article-preview {
  background: var(--brand-grey);
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow);
  padding: 26px 24px 22px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.17s, transform 0.13s;
}
.blog-article-preview a {
  margin-top: 7px;
  font-weight: 600;
  color: var(--brand-primary);
  border-radius: 8px;
  padding: 5px 9px;
  transition: background 0.14s, color 0.14s;
}
.blog-article-preview a:hover, .blog-article-preview a:focus {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

/* ====== EVENT CARDS ====== */
.event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 18px;
}
.event-card {
  background: #FFF;
  border-radius: var(--brand-radius);
  box-shadow: 0 2px 13px 0 rgba(32,99,128,0.10);
  padding: 26px 24px 22px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.event-card h3 {
  color: var(--brand-primary);
  margin-bottom: 6px;
}

/* ====== TEAM LISTS ====== */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.team-member {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 340px;
  background: var(--brand-grey);
  border-radius: var(--brand-radius-sm);
  box-shadow: 0 2px 9px 0 rgba(32,99,128,0.07);
  padding: 18px 14px;
  margin-bottom: 20px;
}
.team-member h3 {
  margin-bottom: 3px;
  color: var(--brand-primary);
}
.team-member p {
  font-size: .97rem;
  color: var(--brand-dark);
}

/* ====== GENERIC FLEX UTILITIES ====== */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Card content utility */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ====== FORMS (optional for contact form) ====== */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 13px 13px;
  margin-bottom: 16px;
  border: 1px solid #cfd7db;
  border-radius: 11px;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(32,99,128,0.04);
  font-family: var(--font-body);
  transition: border-color 0.17s, box-shadow 0.11s;
  background: #FFF;
}
input:focus, textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 2px 6px 0 rgba(32,99,128,0.10);
}

/* ===== FOOTER ===== */
footer {
  background: var(--brand-secondary);
  padding: 30px 18px 14px 18px;
  border-top-left-radius: 35px;
  border-top-right-radius: 35px;
  box-shadow: 0 -4px 14px 0 rgba(32,99,128,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  padding: 6px 10px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-dark);
}
.footer-contact {
  font-size: .98rem;
  color: var(--brand-dark);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact a {
  color: var(--brand-primary);
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 7px;
  transition: background 0.13s, color 0.13s;
}
.footer-contact a:hover, .footer-contact a:focus {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffbea;
  color: var(--brand-dark);
  padding: 22px 28px 20px 28px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -2px 18px 0 rgba(32,99,128,0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  z-index: 20001;
  animation: cookie-slideup 0.5s cubic-bezier(.51,.92,.24,1.12);
}
@keyframes cookie-slideup {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 17px;
  margin-top: 9px;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: var(--brand-radius-sm);
  border: none;
  font-size: 1rem;
  font-family: var(--font-display);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
  box-shadow: 0 1px 4px 0 rgba(32,99,128,0.05);
}
.cookie-btn.accept {
  background: var(--brand-accent);
  color: var(--brand-dark);
}
.cookie-btn.reject {
  background: #e9e9e4;
  color: var(--brand-dark);
}
.cookie-btn.settings {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffd;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  z-index: 25000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,99,128,0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-dialog {
  background: #fffbea;
  border-radius: 24px;
  box-shadow: 0 4px 34px 0 rgba(32,99,128,0.19);
  max-width: 420px;
  width: 94vw;
  padding: 36px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modal-pop 0.4s cubic-bezier(.53,.84,.49,1.38);
  position: relative;
}
@keyframes modal-pop {
  from { transform: scale(0.93); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-dialog h2 {
  color: var(--brand-primary);
  margin-bottom: 8px;
}
.cookie-modal-dialog .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-modal-dialog .toggle-switch {
  width: 46px;
  height: 26px;
  display: inline-block;
  position: relative;
}
.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  background: #e3e8f1;
  border-radius: 18px;
  height: 100%;
  width: 100%;
  transition: background 0.14s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--brand-accent);
}
.toggle-slider:before {
  content: '';
  display: block;
  height: 20px;
  width: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 3px;
  top: 3px;
  transition: left 0.19s;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.toggle-switch input:checked + .toggle-slider:before {
  left: 23px;
}
.cookie-modal-dialog .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 7px;
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 1.8rem;
  background: transparent;
  color: var(--brand-primary);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 6px 11px;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #fff4cc;
}

/* ===== RESPONSIVE: MOBILE-FIRST ===== */
@media (max-width: 1120px) {
  .container {
    max-width: 100%;
  }
}
@media (max-width: 940px) {
  .features-grid, .services-grid, .event-list, .blog-list, .team-list {
    flex-direction: column;
    gap: 16px;
  }
  .feature-card, .service-card, .event-card, .blog-article-preview, .team-member {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 820px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
  .footer-nav {
    gap: 9px;
  }
}
@media (max-width: 768px) {
  header {
    flex-direction: row;
    padding: 0 0 0 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .content-grid, .features-grid, .services-grid, .event-list, .blog-list, .team-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .testimonial-slider {
    flex-direction: column;
  }
  .testimonial-card, .feature-card, .service-card, .blog-article-preview, .event-card, .team-member {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  footer {
    border-radius: 18px 18px 0 0;
    font-size: 0.99rem;
    padding: 18px 5px;
  }
  .footer-contact {
    gap: 2px;
  }
  .container {
    padding: 0 7px;
  }
  .section {
    margin-bottom: 38px;
    padding: 20px 7px;
  }
  .cookie-consent-banner {
    padding: 18px 12px 14px 12px;
    border-radius: 17px 17px 0 0;
  }
  .cookie-modal-dialog {
    max-width: 99vw;
    border-radius: 16px;
    padding: 22px 8px 18px 8px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.32rem;
  }
  h2 {
    font-size: 1.06rem;
  }
  .cta-btn, .cookie-btn {
    padding: 10px 14px;
    font-size: 0.98rem;
  }
  .container, .content-wrapper, .section {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* ===== MICROINTERACTIONS & TRANSITIONS ===== */
a, .cta-btn, .cookie-btn {
  transition: background 0.21s, color 0.21s, box-shadow 0.14s;
}

/* ===== Z-INDEX (for overlays, banners) ===== */
.mobile-menu { z-index: 9999; }
.cookie-consent-banner { z-index: 20001; }
.cookie-modal { z-index: 25000; }

/* ==== UTILS (spacing, layout) ==== */
.mb-12 { margin-bottom: 12px; }
.mb-18 { margin-bottom: 18px; }
.mb-32 { margin-bottom: 32px; }
.mt-18 { margin-top: 18px; }
.mt-32 { margin-top: 32px; }
.gap-12 { gap: 12px; }
.gap-24 { gap: 24px; }

/* ===== NO ABSOLUTE for CONTENT cards ==== */
/* Only .cookie-modal-close and decorative elements use absolute positioning. */
