/* ------------------- CSS RESET & NORMALIZE -------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F7FA;
  color: #244165;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-style: none;
}
a {
  color: #325276;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2952D;
  outline: none;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1em;
}
ul li, ol li {
  margin-bottom: 0.5em;
}
blockquote {
  font-style: italic;
  color: #325276;
  background: #F5F7FA;
  border-left: 4px solid #F2952D;
  padding: 12px 16px;
  margin-bottom: 12px;
}
strong {
  font-weight: bold;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border-radius: 8px;
  border: 1px solid #e0e7ef;
  padding: 8px 12px;
  outline: none;
  background: #fff;
  color: #244165;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: #F2952D;
  box-shadow: 0 0 0 2px #F2952D33;
}

/* -------------------- BRAND COLORS & FONTS --------------------- */
:root {
  --primary: #244165;
  --secondary: #F5F7FA;
  --accent: #F2952D;
  --accent-dark: #c77d22;
  --white: #ffffff;
  --shadow: 0 4px 18px rgba(50,82,118,0.09),0 2px 6px rgba(242,149,45,0.08);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --danger: #F24D2D;
  --success: #32D298;
}

h1, h2, h3, h4 {
  color: var(--primary);
  font-family: var(--font-display);
  letter-spacing: .5px;
}
h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 2px 0 #F2952D20;
}
h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

p, ul, ol, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #325276;
}
p {
  margin-bottom: 1em;
}

a.cta, .cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 24px;
  padding: 14px 32px;
  box-shadow: var(--shadow);
  margin-top: 24px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.16s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  outline: none;
  text-shadow: 0 1px 0 #24416515;
  position: relative;
  z-index: 1;
}
a.cta.primary:hover, a.cta.primary:focus, .cta.primary:hover, .cta.primary:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.05) rotate(-1deg);
  box-shadow: 0 8px 48px #32527638,0 2px 8px #F2952D15;
}
a.cta {
  background: var(--primary);
  color: var(--accent);
}
a.cta:hover, .cta:hover {
  background: var(--accent);
  color: var(--white);
}

/* ----------------- STRUCTURAL LAYOUT CLASSES ------------------- */
.container {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
}
@media (max-width: 600px) {
  .section {
    padding: 20px 8px;
    margin-bottom: 32px;
    border-radius: 16px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.22s, transform 0.17s;
  padding: 28px 26px;
  min-width: 220px;
  flex: 1 1 280px;
  z-index: 1;
}
.card:hover {
  box-shadow: 0 12px 56px #32527627,0 2px 10px #F2952D18;
  transform: translateY(-4px) scale(1.03) rotate(1.5deg);
}

.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;
  margin-bottom: 18px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F5F7FA;
  border-radius: 22px;
  box-shadow: 0 2px 8px #32527611;
  transition: box-shadow 0.2s, transform 0.15s;
}
.testimonial-card blockquote {
  color: #244165;
  background: none;
  border-left: 5px solid #F2952D;
  font-size: 1.06rem;
  margin-bottom: 0;
  padding-left: 18px;
}
.testimonial-card p {
  color: #244165;
  margin: 0;
  font-size: 1.0rem;
}
.testimonial-card:hover {
  box-shadow: 0 3px 18px #f2952d24,0 2px 12px #32527612;
  background: #ffeede;
  transform: scale(1.03) rotate(-1.5deg);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 16px 16px 16px 32px;
  border-left: 5px solid var(--accent);
  background: #fff6eb;
  border-radius: 12px;
  box-shadow: 0 2px 4px #F2952D18;
}

.text-section {
  margin-bottom: 24px;
  background: #fff;
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: 0 2px 10px #2441650d;
}

/* -------------- HERO/BANNER STYLES ------------------ */
.hero {
  background: linear-gradient(92deg, #F2952D11 0%, #32527611 100%), var(--secondary);
  border-radius: 0 0 44px 44px;
  box-shadow: 0 8px 24px #24416514, 0 1.5px 12px #F2952D12;
  margin-bottom: 54px;
}
.hero .container {
  margin-top: 0;
  margin-bottom: 0;
}
.hero h1 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 18px;
  text-align: center;
  font-size: 2.6rem;
  letter-spacing: 1.1px;
}
.hero p {
  color: #325276;
  font-size: 1.20rem;
  text-align: center;
}
.hero .content-wrapper {
  align-items: center;
  justify-content: center;
}
@media (max-width: 600px) {
  .hero {
    border-radius: 0 0 24px 24px;
    margin-bottom: 28px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
}

/* ------------- SERVICES LIST (INDEX) ----------------- */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 10px;
  justify-content: flex-start;
}
.services-list > div {
  flex: 1 1 250px;
  background: #fff6eb;
  border: 2px dashed #F2952D;
  border-radius: 18px;
  padding: 24px 18px;
  box-shadow: 0 2px 10px #F2952D17,0 0.5px 3px #24416506;
  transition: border 0.22s, box-shadow 0.18s, transform 0.17s;
  margin-bottom: 18px;
  min-width: 200px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.services-list > div h3 {
  color: var(--primary);
  font-size: 1.18rem;
  font-family: var(--font-display);
}
.services-list > div span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.services-list > div:hover {
  border-style: solid;
  border-color: var(--primary);
  box-shadow: 0 8px 40px #32527629,0 2px 8px #F2952D13;
  transform: scale(1.04) rotate(2.2deg);
  background: #fff9f3;
}

/* ------------- NAVIGATION ----------------- */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 55;
  background: #fff;
  box-shadow: 0 3px 20px #2441650a;
  padding-top: 4px;
  padding-bottom: 4px;
}
.desktop-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
}
.desktop-nav > a {
  color: #244165;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0;
  transition: color 0.2s, background 0.22s;
  border-radius: 8px;
  padding: 8px 12px;
}
.desktop-nav > a.cta.primary {
  padding: 10px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.desktop-nav > a:not(.cta):hover, .desktop-nav > a:not(.cta):focus {
  color: var(--accent);
  background: #f6eddc;
}
.desktop-nav img {
  height: 40px;
  width: auto;
  border-radius: 15px;
  background: #fff;
  padding: 3px;
}

/* ------------- MOBILE NAVIGATION --------------- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 8px 16px;
  cursor: pointer;
  margin-left: 16px;
  box-shadow: 0 1.5px 5px #F2952D22;
  transition: background 0.18s, color 0.16s;
  z-index: 101;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: #244165ef;
  z-index: 150;
  transform: translateX(-105%);
  transition: transform 0.39s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  padding: 0;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 0 0;
  background: #F2952D;
  color: #fff;
  font-size: 2rem;
  border-radius: 14px;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 1.5px 8px #F2952D22;
  transition: background 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--primary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 60px;
}
.mobile-nav a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 700;
  padding: 16px 0;
  width: 80vw;
  text-align: center;
  border-radius: 12px;
  transition: background 0.17s, color 0.15s;
  letter-spacing: 0.5px;
  background: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F2952D;
  color: #244165;
}

@media (max-width: 950px) {
  .desktop-nav {
    gap: 16px;
    font-size: .92rem;
  }
}
@media (max-width: 850px) {
  .desktop-nav {
    gap: 8px;
    font-size: .88rem;
  }
  .desktop-nav a.cta.primary {
    font-size: 1rem;
    padding: 8px 14px;
  }
}
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 20px;
  }
  header {
    min-height: 60px;
  }
}

/* ------------- TEAM SECTION (ABOUT PAGE) ----------------- */
.team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.team-section .text-section {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 340px;
  background: #F5F7FA;
  border-left: 5px solid #F2952D;
  border-radius: 14px;
  box-shadow: 0 0.5px 6px #32527610;
  margin-bottom: 0;
}
.team-section .text-section h3 {
  font-family: var(--font-display);
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ------------------- FOOTER ------------------- */
footer {
  background: #244165;
  color: #fff;
  padding: 38px 0 24px 0;
  font-size: 0.98rem;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 10px;
}
footer nav a {
  color: #F2952D;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color 0.17s, text-decoration 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline wavy #F2952D 2px;
}
footer p {
  color: #fff;
  margin-top: 8px;
  font-size: 0.97rem;
  opacity: .83;
}

/* ----------- COOKIES BANNER ----------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fffbe6;
  color: #244165;
  box-shadow: 0 -2px 16px #2441652b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 16px 20px 16px;
  z-index: 9999;
  animation: bounceUp .7s cubic-bezier(.61,-0.9,.57,1.66);
}
.cookie-banner__text {
  font-size: 0.97rem;
  margin-bottom: 5px;
  font-family: var(--font-body);
  text-align: center;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-banner__btn, .cookie-banner__btn:visited {
  background: #244165;
  color: #F2952D;
  border: none;
  outline: none;
  padding: 10px 22px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 0.5px 5px #32527612;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, transform 0.16s;
}
.cookie-banner__btn:hover, .cookie-banner__btn.selected {
  background: #F2952D;
  color: #fff;
  transform: scale(.97) rotate(-2.5deg);
}
.cookie-banner__btn.danger {
  background: #F24D2D;
  color: #fff;
}
.cookie-banner__btn.danger:hover {
  background: #b1220c;
  color: #fff;
}
.cookie-banner__btn.secondary {
  background: #fff;
  color: #244165;
  border: 1.2px solid #F2952D;
}
.cookie-banner__btn.secondary:hover {
  background: #F5F7FA;
}

@keyframes bounceUp {
  0% {transform: translateY(340px);}
  80% {transform: translateY(-14px);}
  100% {transform: translateY(0);}
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  z-index: 10550;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: #244165ee;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.29s;
  animation: fadeInScale .32s;
}
@keyframes fadeInScale {
  0% {opacity: 0; transform: scale(0.76);}
  100% {opacity: 1; transform: scale(1);}
}
.cookie-modal__window {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 40px #24416552;
  width: 93vw;
  max-width: 390px;
  padding: 24px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: popIn .23s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes popIn {
  0% { transform: scale(.7) rotate(-3deg);}
  100% { transform: scale(1) rotate(0); }
}
.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #F2952D;
  color: #fff;
  border: none;
  border-radius: 100%;
  width: 34px; height: 34px;
  font-size: 1.3rem;
  display: flex; align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #244165;
  color: #F2952D;
}
.cookie-modal__title {
  margin-bottom: 16px;
  font-size: 1.16rem;
  font-family: var(--font-display);
  color: var(--primary);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
  width: 100%;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #F5F7FA;
  border-radius: 9px;
  padding: 11px 14px;
}
.cookie-category__title {
  font-weight: 600;
  color: var(--primary);
}
.cookie-category__desc {
  font-size: 0.90rem;
  color: #325276;
}
.cookie-switch {
  width: 44px; height: 26px;
  background: #e5e5e5;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  margin-left: 8px;
}
.cookie-switch input {
  display: none;
}
.cookie-switch__slider {
  width: 22px; height: 22px;
  background: #F2952D;
  border-radius: 100%;
  position: absolute; left: 3px;
  top: 2px;
  transition: left 0.23s, background .18s;
}
.cookie-switch input:checked + .cookie-switch__slider {
  left: 19px;
  background: #244165;
}

/* -------------- BUTTONS/INPUTS ------------------ */
button, .btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 26px;
  transition: background .17s, color 0.15s, transform 0.14s;
  box-shadow: 0 1.5px 8px #F2952D13;
  cursor: pointer;
}
button:active, .btn:active {
  transform: scale(0.97);
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: var(--primary);
  color: var(--accent);
}
input[type="text"], input[type="email"] {
  border: 1.5px solid #d3dae3;
}
input[type="text"]:focus, input[type="email"]:focus {
  border-color: var(--accent);
}

/* ------------- ANIMATIONS AND MICRO-INTERACTIONS --------------- */
.card, .testimonial-card, .services-list > div, .feature-item, .text-section {
  transition: box-shadow .19s, background .18s, transform .18s;
}
.card:hover, .testimonial-card:hover, .services-list > div:hover {
  transform: rotate(-1.5deg) scale(1.03);
}

.cta, .cta.primary, .btn, button {
  transition: background .17s, color .17s, transform .13s;
}
.cta.primary:active, .cta:active,
.btn:active, button:active {
  transform: scale(.98) rotate(1.5deg);
}

/* Slight bounce for playful dynamic style */
.cta.primary:hover, .cta:hover, button:hover, button:focus {
  animation: bounceCta 0.38s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes bounceCta {
  0% {transform: scale(1) rotate(0deg);}
  35% {transform: scale(1.10) rotate(-2.5deg);}
  65% {transform: scale(0.94) rotate(2deg);}
  100% {transform: scale(1) rotate(0deg);}
}

/* ------------------- RESPONSIVE -------------------- */
@media (max-width: 680px) {
  .services-list {
    flex-direction: column;
    gap: 16px;
  }
  .services-list > div {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .team-section {
    flex-direction: column;
    gap: 14px;
  }
  .card-container {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1rem; }
  .content-wrapper {
    gap: 14px;
  }
  .testimonial-card, .card, .feature-item, .text-section {
    padding: 12px 10px;
    border-radius: 9px;
  }
  .services-list > div {
    padding: 15px 8px;
    border-radius: 9px;
  }
}

/* ------------- PLAYFUL DECORATIVE SHAPES ----------------- */
.section:before {
  content: '';
  position: absolute;
  width: 72px; height: 72px;
  background: #F2952D44;
  border-radius: 24px 24px 8px 44px;
  left: -28px; top: -28px;
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
  filter: blur(5px);
  transition: opacity 0.18s;
  animation: playfulPulse 2.5s infinite alternate;
}
.section:after {
  content: '';
  position: absolute;
  width: 36px; height: 36px;
  background: #32527629;
  border-radius: 20px 7px 14px 36px;
  right: -18px; bottom: -22px;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
  filter: blur(3px);
  transition: opacity 0.19s;
}
@keyframes playfulPulse {
  0% { opacity: 0.52; transform: scale(1) rotate(0deg); }
  100% { opacity: 1; transform: scale(1.13) rotate(19deg); }
}

/* ---------- FORMS ------------------ */
form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
label {
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--primary);
}

/* ---------- OL/LIST STYLES -------------- */
ol {
  list-style-type: decimal;
}
ul {
  list-style-type: circle;
}
ul li, ol li {
  padding-left: 4px;
}

/* ------------- UTILITIES -------------- */
.hide-mobile {
  display: block !important;
}
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}
.hide-desktop {
  display: none !important;
}
@media (max-width: 768px) {
  .hide-desktop {
    display: block !important;
  }
}

/* ------------ ACCESSIBILITY FOCUS ------------- */
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2.5px dashed #F2952D;
  outline-offset: 2px;
  background: #fff6e0;
}

/* ------------ SCROLLBAR ----------- */
::-webkit-scrollbar {
  width: 10px;
  background: #F5F7FA;
}
::-webkit-scrollbar-thumb {
  background: #F2952D44;
  border-radius: 9px;
}

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

/* ------------- END ------------- */
