/* ========== 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,
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F8F9FB;
  color: #36394D;
  min-height: 100vh;
  box-sizing: border-box;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #5D6D7E;
  text-decoration: none;
  transition: color 0.2s;
}
*:focus {
  outline: 2px solid #D2B348;
  outline-offset: 2px;
}
ul, ol {
  padding-left: 28px;
  margin-bottom: 16px;
}
li + li {
  margin-top: 12px;
}

/* ========== CUSTOM PROPERTIES ========== */
:root {
  --primary: #273A66;
  --secondary: #D2B348;
  --accent: #F3F7FA;
  --pastel-pink: #FBE7E2;
  --pastel-yellow: #FFF9E4;
  --pastel-mint: #E7FDF5;
  --pastel-purple: #E5E8F8;
  --pastel-blue: #E6F2FB;
  --text-dark: #273A66;
  --text-default: #36394D;
  --text-light: #6F7C98;
  --border: #E0E3EF;
  --shadow: 0 4px 16px 0 rgba(60,90,150,0.08);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
}
p {
  font-size: 1.08rem;
  color: var(--text-default);
  margin-bottom: 18px;
}
strong {
  color: var(--primary);
  font-weight: bold;
}
blockquote {
  background: var(--pastel-blue);
  color: var(--primary);
  font-style: italic;
  border-left: 4px solid var(--secondary);
  padding: 18px 22px;
  margin: 0 0 14px 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.tagline {
  color: var(--secondary);
  font-size: 1.08rem;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 330px;
  min-width: 290px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(39,58,102,0.12);
  transform: translateY(-2px) scale(1.015);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--pastel-blue);
  color: var(--text-dark);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin-bottom: 24px;
  position: relative;
  border-left: 5px solid var(--secondary);
  min-width: 0;
}
.testimonial-card p {
  color: var(--text-dark);
  margin: 0 0 10px 0;
}
.testimonial-card .before-after {
  color: var(--text-light);
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Special lists in team, cards, blog */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 12px;
  justify-content: flex-start;
}
.team-list > div {
  background: var(--pastel-mint);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 250px;
  min-width: 220px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.team-list > div:hover {
  box-shadow: 0 8px 16px 0 rgba(60,80,140,0.16);
  transform: translateY(-3px) scale(1.02);
}
.team-list img {
  margin-bottom: 8px;
}

/* ========== BUTTONS & CTA ========== */
.cta-btn, .cta-btn-secondary, .cta-btn-link {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  text-align: center;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 36px;
  border-radius: 28px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(180,180,210,0.08);
}
.cta-btn {
  background: linear-gradient(90deg, #F9EEDC 0%, #FBE7E2 100%);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 6px 34px 0 rgba(210,179,72,0.13);
}
.cta-btn-secondary {
  background: var(--pastel-purple);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cta-btn-secondary:hover, .cta-btn-secondary:focus {
  background: var(--primary);
  color: #fff;
}
.cta-btn-link {
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 0 0 2px 0;
  font-size: 1.04rem;
  box-shadow: none;
  text-decoration: underline;
}
.cta-btn-link:hover, .cta-btn-link:focus {
  color: var(--secondary);
  text-decoration: underline wavy;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: linear-gradient(90deg, #FBE7E2 0%, #E6F2FB 100%);
  box-shadow: 0 6px 22px 0 rgba(210,179,72,0.05);
  border-bottom: 1px solid var(--border);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-link img {
  max-height: 46px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 500;
  font-size: 1.04rem;
  padding: 8px 10px;
  border-radius: 18px;
  transition: background 0.16s, color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-purple);
  color: #fff;
}
.main-nav .cta-btn {
  margin-left: 18px;
  font-size: 1.08rem;
  padding: 10px 28px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.91rem;
  border: none;
  border-radius: 16px;
  padding: 6px 16px 8px 16px;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.2s, color 0.16s, box-shadow 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 16px 0 rgba(210,179,72,0.12);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(100deg, #FBE7E2 40%, #E5E8F8 100%);
  z-index: 1001;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.4,0.0,0.2,1);
  box-shadow: 0 8px 32px 0 rgba(80,100,180,0.13);
  flex-direction: column;
  align-items: flex-start;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--primary);
  font-size: 2.4rem;
  border: none;
  margin: 26px 26px 0 0;
  cursor: pointer;
  transition: color 0.17s;
  z-index: 1015;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 30px 42px;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  padding: 14px 0;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.15s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: var(--secondary);
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(90deg, #FBE7E2 0%, #E5E8F8 100%);
  padding: 65px 0 50px 0;
  margin-bottom: 60px;
  border-bottom: 2px solid var(--border);
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.hero h1 {
  font-size: 2.6rem;
  color: var(--primary);
}
.hero p {
  font-size: 1.23rem;
  color: var(--text-light);
  max-width: 570px;
}

/* ========== FOOTER ========== */
footer {
  background: #F9F7FB;
  border-top: 1px solid var(--border);
  margin-top: 70px;
  font-size: 1rem;
  color: var(--text-light);
}
footer .container {
  padding-top: 38px;
  padding-bottom: 30px;
}
footer .content-wrapper {
  align-items: center;
  gap: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}
.footer-nav a {
  font-size: 1rem;
  color: var(--primary);
  opacity: 0.83;
  font-weight: 500;
  transition: color 0.13s, opacity 0.14s;
  text-decoration: underline dotted 1.5px transparent;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  opacity: 1;
  text-decoration-color: var(--primary);
}
.social-icons {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 6px;
}
.social-icons img {
  width: 32px;
  height: 32px;
  opacity: 0.85;
  transition: transform 0.15s, opacity 0.15s;
  cursor: pointer;
}
.social-icons img:hover {
  opacity: 1;
  transform: scale(1.11) rotate(-5deg);
}

/* ========== BLOG CATEGORIES ========== */
.categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 1.01rem;
}
.categories span {
  color: var(--primary);
  font-weight: 600;
  margin-right: 8px;
}
.categories a {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.13s;
}
.categories a:hover, .categories a:focus {
  color: var(--primary);
  text-decoration: underline var(--secondary) wavy 1.5px;
}

/* ========== ICONS IN TEXT ========== */
p img, li img {
  vertical-align: text-bottom;
  margin-right: 6px;
  height: 1.05em;
  width: auto;
  display: inline;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1070px) {
  .container {
    max-width: 97vw;
  }
  .team-list > div, .card {
    min-width: 190px;
  }
}
@media (max-width: 920px) {
  .content-wrapper, .content-wrapper.text-section {
    gap: 16px;
  }
  .section {
    padding: 36px 5vw;
  }
}
@media (max-width: 880px) {
  .main-nav {
    gap: 14px;
  }
  .team-list {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
  
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .content-wrapper.text-section {
    gap: 14px;
  }
  .section {
    padding: 28px 5px;
    margin-bottom: 34px;
  }
  .team-list {
    flex-direction: column;
    gap: 16px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .card {
    padding: 18px 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .hero {
    padding: 40px 0 24px 0;
  }
}
@media (max-width: 500px) {
  .hero h1 {
    font-size: 1.29rem;
  }
  .logo-link img {
    max-height: 29px;
    margin-right: 8px;
  }
  .footer-nav {
    font-size: 0.97rem;
    gap: 6px;
  }
  .team-list > div {
    font-size: 0.98rem;
    min-width: 150px;
  }
}

/* ========== ANIMATIONS & MICRO-INTERACTIONS ========== */
a, .cta-btn, .cta-btn-secondary, .cta-btn-link, .main-nav a, .footer-nav a {
  transition: color 0.16s, background 0.19s, box-shadow 0.19s, border 0.13s;
}
.card, .testimonial-card, .team-list > div {
  transition: box-shadow 0.18s, transform 0.18s;
}

/* ========== COOKIE CONSENT BANNER/BUTTONS/MODAL ========== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1020;
  background: linear-gradient(90deg, #FFF9E4 0%, #E7FDF5 100%);
  box-shadow: 0 -4px 40px 0 rgba(90,130,200,0.09);
  padding: 20px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  animation: cookieslidein 0.5s ease-in;
}
@keyframes cookieslidein {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: var(--text-dark);
  font-size: 1.02rem;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--pastel-purple);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 18px;
  font-size: 1rem;
  font-family: 'Montserrat';
  font-weight: 600;
  padding: 8px 20px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.13s, color 0.12s, border 0.12s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
  border: 2px solid var(--secondary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie-btn.reject {
  background: var(--pastel-blue);
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.settings {
  background: transparent;
  color: var(--primary);
  border: 2px dashed var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--pastel-mint);
  color: var(--secondary);
  border-color: var(--secondary);
}
/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(55, 57, 77, 0.33);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: fadein-modal-bg 0.3s;
}
@keyframes fadein-modal-bg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: linear-gradient(99deg, #E7FDF5 25%, #FBE7E2 100%);
  padding: 38px 26px 32px 26px;
  border-radius: 20px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 12px 58px rgba(39,58,102,0.23);
  z-index: 3001;
  animation: modalpop 0.3s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
@keyframes modalpop {
  0% { transform: translateY(32px) scale(0.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--primary); font-size: 1.3rem;  margin-bottom: 5px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal .category-info {
  font-size: 0.97rem;
  margin-bottom: 8px;
  color: var(--text-light);
}
.cookie-modal .cookie-switch {
  width: 38px;
  height: 22px;
  background: var(--pastel-purple);
  border-radius: 18px;
  position: relative;
  transition: background 0.16s;
  margin-left: 10px;
  border: 1px solid var(--secondary);
}
.cookie-modal .cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-modal .cookie-switch span {
  display: block;
  width: 18px;
  height: 18px;
  background: var(--secondary);
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 1.5px;
  transition: left 0.16s;
}
.cookie-modal .cookie-switch input:checked + span {
  left: 18px;
  background: var(--primary);
}
.cookie-modal .action-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  margin-top: 10px;
}
.cookie-modal .cookie-btn {
  flex: 1 1 90px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 10px; right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal .close-modal:hover {
  color: var(--secondary);
}
@media (max-width: 568px) {
  .cookie-modal { padding: 16px 10px 18px 14px; min-width: 0; }
}

/* ========== PAGE-SPECIFIC TWEAKS ========== */
.hero .cta-btn {
  margin-top: 22px;
}
.testimonial-card img {
  vertical-align: middle;
  margin-right: 5px;
  height: 1.1em;
  width: auto;
  display: inline;
}
.team-list h3 {
  color: var(--secondary);
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.card span {
  background: var(--pastel-yellow);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.92em;
  border-radius: 10px;
  padding: 2px 10px;
  margin-left: 6px;
}

/* Utility helpers */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 2px !important; }
.mb-4 { margin-bottom: 4px !important; }

/* Hide visually but keep in flow */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
