/* ===================================================
   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,
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;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}

body {
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
}

ol, ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ===================================================
   FONT FACE LOADERS (REPLACE links with CDN in <head>, otherwise fallback to system fonts)
=================================================== */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700&family=Montserrat:wght@400;700&display=swap');

:root {
  --color-primary: #2154A0;
  --color-primary-dark: #143366;
  --color-secondary: #F27C38;
  --color-accent: #FFFFFF;
  --color-electric-blue: #22B7F3;
  --color-vivid-yellow: #F7E02C;
  --color-pink: #F63488;
  --color-lime: #A1FF0A;
  --color-dark: #1A2541;
  --color-grey: #F5F5F7;
  --color-grey-2: #E0E4EA;
  --shadow: 0 8px 28px 0 rgba(33,84,160,0.12), 0 1.5px 6px 0 rgba(242,124,56,0.10);
  --shadow-lift: 0 2px 10px 0 rgba(33,84,160,0.10);
  --border-radius: 20px;
  --font-display: 'Baloo 2', Arial, sans-serif;
  --font-body: 'Montserrat', Helvetica, Arial, sans-serif;
}

/* ===================================================
   LAYOUT CONTAINERS
=================================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

.text-section {
  align-items: center;
  text-align: center;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Card containers, layouts */
.card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.card {
  margin-bottom: 20px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lift);
  padding: 24px;
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .text-image-section,
  .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/*****************************
  FLEXBOX SECTION GAPS (MANDATORY)
*****************************/
.card-container { gap: 24px; }
.card { margin-bottom: 20px; }
.content-grid { gap: 20px; justify-content: space-between; }
.text-image-section { gap: 30px; align-items: center; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/*****************************
  HEADERS & HERO AREA
*****************************/
header {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 3px 20px 0 rgba(33, 84, 160, 0.10);
  position: sticky;
  top: 0;
  z-index: 1300;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}

/*****************************
  NAVIGATION
*****************************/
.main-nav {
  display: flex;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.09rem;
  align-items: center;
}
.main-nav a {
  transition: color .18s, background .18s;
  padding: 6px 12px;
  border-radius: 10px;
  color: var(--color-accent);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/*****************************
  MOBILE MENU
*****************************/
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-accent);
  border: none;
  padding: 10px 18px;
  font-size: 2rem;
  border-radius: 12px;
  cursor: pointer;
  margin-left: 20px;
  box-shadow: 0 2px 10px 0 rgba(242,124,56,0.14);
  transition: background-color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-pink);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  z-index: 1600;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.8,0,.32,1);
  box-shadow: 0 2px 32px 0 rgba(33,84,160,0.16);
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin-top: 28px;
  margin-bottom: 30px;
  margin-right: 22px;
  background: var(--color-secondary);
  color: var(--color-accent);
  border: none;
  font-size: 2.1rem;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding-left: 40px;
  width: 80vw;
  max-width: 360px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.29rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.7;
  background: none;
  padding: 5px 0;
  border-radius: 6px;
  transition: color .18s, background .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-lime);
  color: var(--color-primary-dark);
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .logo img {
    height: 40px;
  }
  .mobile-nav {
    padding-left: 26px;
    max-width: 100vw;
    gap: 14px;
  }
}

/*****************************
  HERO / SECTION TITLES
*****************************/
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.4rem;
  color: var(--color-secondary);
}
h2 {
  font-size: 2rem;
  color: var(--color-electric-blue);
}
h3 {
  font-size: 1.49rem;
  color: var(--color-primary);
}
h4 {
  font-size: 1.16rem;
  color: var(--color-secondary);
}
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.12rem; }
}
p, ul, ol {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-dark);
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.65;
}
strong, b {
  font-weight: 700;
  color: var(--color-pink);
  font-family: var(--font-display);
}

/*****************************
  BUTTONS
*****************************/
.btn-primary, .btn-secondary {
  font-family: var(--font-display);
  font-size: 1.19rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 40px;
  padding: 13px 42px;
  margin: 8px 6px 0 0;
  box-shadow: 0 2px 14px 0 rgba(34, 183, 243, 0.07), 0 1px 3px 0 rgba(242, 124, 56, 0.1);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform .12s;
  display: inline-block;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-accent);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-pink);
  color: var(--color-accent);
  transform: scale(1.04);
}
.btn-secondary {
  background: var(--color-vivid-yellow);
  color: var(--color-primary-dark);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-lime);
  color: var(--color-dark);
  transform: scale(1.04);
}

/*****************************
  LISTS, TABLES & ICONIC FEATURES
*****************************/
ul, ol {
  margin-bottom: 18px;
  padding-left: 0;
  gap: 10px;
}
ul li, ol li {
  margin-bottom: 14px;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
ul li img,
ol li img {
  height: 30px;
  width: 30px;
  flex-shrink: 0;
  margin-right: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--color-accent);
}
thead {
  background: var(--color-primary);
  color: var(--color-accent);
}
th, td {
  padding: 17px 12px;
  text-align: left;
  border-bottom: 2px solid var(--color-grey-2);
  font-size: 1rem;
}
thead th { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.01em; }
tbody tr:last-child td { border-bottom: none; }
tbody td { color: var(--color-dark); font-family: var(--font-body); }

/*****************************
  SERVICE CARDS/SPECIALS
*****************************/
.service-card {
  background: var(--color-grey);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  max-width: 330px;
  min-height: 200px;
  transition: box-shadow .16s, transform .17s;
}
.service-card img {
  width: 56px;
  height: 56px;
}
.service-card h3 {
  font-size: 1.19rem;
  color: var(--color-secondary);
}
.service-card p {
  color: var(--color-dark);
  font-size: 1rem;
}
.service-card:hover {
  box-shadow: 0 8px 28px 0 rgba(33,84,160,0.14), 0 4px 18px 0 rgba(242,124,56,0.10);
  transform: translateY(-6px) scale(1.03);
}

/*****************************
  TESTIMONIALS
*****************************/
.testimonial-card {
  background: var(--color-grey);
  border: 2.5px solid var(--color-electric-blue);
  border-radius: 22px;
  box-shadow: 0 4px 28px 0 rgba(34, 183, 243, 0.10);
  font-size: 1.1rem;
  color: var(--color-dark);
  margin-bottom: 22px;
  margin-top: 14px;
  max-width: 650px;
}
.testimonial-card p {
  color: #1A2541;
  font-size: 1.09rem;
  font-family: var(--font-body);
  line-height: 1.6;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.98rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-secondary);
  margin-left: 16px;
}

/*****************************
  CTA SECTIONS
*****************************/
.text-section .btn-primary, .text-section .btn-secondary {
  margin-top: 18px;
}
.text-section {
  align-items: center;
  text-align: center;
  justify-content: center;
}

/*****************************
  FOOTER
*****************************/
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 44px 0 20px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  justify-content: center;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.footer-menu a {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0.75;
  transition: opacity .15s, color .15s;
  padding: 3px 5px;
}
.footer-menu a:hover,.footer-menu a:focus {
  color: var(--color-vivid-yellow);
  opacity: 1;
}
.footer-contact address {
  font-style: normal;
  font-size: 1rem;
  color: var(--color-accent);
  text-align: center;
  line-height: 1.6;
}
.footer-contact a {
  color: var(--color-lime);
  text-decoration: underline;
}
.brand-signoff {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-pink);
  margin-top: 16px;
  opacity: 0.85;
}

/*****************************
  SPACING (consistent)
*****************************/
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { gap: 24px; }
.card { margin-bottom: 20px; }
.content-grid { gap: 20px; justify-content: space-between; }
.text-image-section { gap: 30px; align-items: center; }
.testimonial-card { gap: 20px; padding: 20px; }
.feature-item { gap: 15px; align-items: flex-start; }
.content-wrapper { gap: 24px; }

/*****************************
  RESPONSIVE DESIGN
*****************************/
@media (max-width: 900px) {
  .container { max-width: 99vw; }
}
@media (max-width: 728px) {
  .footer-menu { gap: 18px; }
  .content-wrapper, .text-section {
    align-items: flex-start !important;
    text-align: left !important;
  }
}
@media (max-width: 560px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    margin-bottom: 44px;
    padding: 24px 10px;
  }
  .service-card { padding: 22px 11px; font-size: 0.96rem; min-width: 170px; }
  .footer-contact address { font-size: .92rem; }
}

/*****************************
  ANIMATIONS & INTERACTIONS
*****************************/
a, .btn-primary, .btn-secondary, .main-nav a, .mobile-nav a, .footer-menu a {
  transition: color .18s, background .18s, opacity .14s;
}
.card, .service-card, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.17s;
}
.card:hover, .service-card:hover, .testimonial-card:hover {
  transform: scale(1.035) translateY(-5px);
  box-shadow: 0 8px 28px 0 rgba(34, 183, 243, 0.14), 0 1px 5px 0 rgba(242, 124, 56, 0.14);
}

/*****************************
  COOKIE CONSENT BANNER
*****************************/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-dark);
  color: var(--color-accent);
  box-shadow: 0 -2px 24px 0 rgba(33,84,160,0.12);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  padding: 23px 24px;
  font-size: 1rem;
  animation: fadeInUp 0.34s cubic-bezier(.78,.1,.34,1);
}
.cookie-banner p {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  margin-left: auto;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 9px 16px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(34,183,243,0.06);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.cookie-banner .accept {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-lime);
  color: #18234C;
}
.cookie-banner .reject {
  background: var(--color-pink);
  color: var(--color-accent);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.cookie-banner .settings {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-pink);
  color: var(--color-accent);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 10px;
  }
  .cookie-banner .cookie-btns {
    margin-left: 0;
    gap: 9px;
  }
}

/*****************************
  COOKIE PREFERENCES MODAL
*****************************/
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 3000;
  background: rgba(33,84,160,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .19s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-content {
  background: var(--color-accent);
  color: var(--color-dark);
  border-radius: 24px;
  padding: 36px 26px 25px 26px;
  max-width: 440px;
  width: calc(100vw - 30px);
  box-shadow: 0 2px 30px 0 rgba(34,183,243,0.13);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: popIn .33s cubic-bezier(.88,-0.2,.27,1.3);
}
.cookie-modal .modal-content h3 {
  color: var(--color-primary);
  font-size: 1.19rem;
  margin-bottom: 7px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--color-dark);
}
.cookie-modal .toggle {
  margin-left: auto;
}
.toggle {
  width: 43px;
  display: inline-block;
  height: 24px;
  position: relative;
}
.toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-label {
  position: absolute;
  cursor: pointer;
  background: var(--color-grey-2);
  border-radius: 16px;
  top: 0; left: 0;
  width: 43px;
  height: 24px;
  transition: background .17s;
}
.toggle-label:before {
  content: '';
  display: block;
  height: 20px; width: 20px;
  background: var(--color-secondary);
  border-radius: 50%;
  margin: 2px;
  position: absolute;
  left: 0; top: 0;
  transition: left .19s;
}
.toggle input:checked + .toggle-label {
  background: var(--color-primary);
}
.toggle input:checked + .toggle-label:before {
  left: 19px;
  background: var(--color-lime);
}
.cookie-modal .modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: 14px;
  padding: 8px 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 4px 0 rgba(34,183,243,0.08);
  transition: background .16s, color .14s, transform .13s;
}
.cookie-modal .modal-actions .save {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-modal .modal-actions .save:hover {
  background: var(--color-lime);
  color: var(--color-dark);
}
.cookie-modal .modal-actions .cancel {
  background: var(--color-grey-2);
  color: var(--color-dark);
}
.cookie-modal .modal-actions .cancel:hover {
  background: var(--color-pink);
  color: var(--color-accent);
}

/*****************************
   ANIMATION KEYFRAMES
*****************************/
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0% { transform: scale(0.4) rotate(-5deg); opacity: 0; }
  85% { transform: scale(1.06) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

/*****************************
   MISCELLANEOUS
*****************************/
::-webkit-scrollbar {
  width: 8px;
  background: var(--color-grey);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 5px;
}
::selection {
  background: var(--color-pink);
  color: var(--color-accent);
}
.error, .notice {
  color: var(--color-pink);
  font-weight: bold;
  font-size: 1.16em;
}

/*****************************
   OVERRIDE FOCUS VISIBLE
*****************************/
a:focus-visible, button:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible {
  outline: 2.5px dashed var(--color-lime);
  outline-offset: 3px;
}

/*****************************
   ENSURE FLEX FOR ALL LAYOUTS & SPACING
*****************************/
.section, .container, .footer-menu, .card-container, .content-grid, .content-wrapper, .text-section, .text-image-section, .feature-item {
  display: flex;
}
.section, .content-wrapper, .feature-item { flex-direction: column; }
.footer-menu, .card-container, .card-grid, .content-grid, .text-image-section {
  flex-wrap: wrap;
}

/*****************************
   PREVENT OVERLAPPING & Z-INDEX MANAGEMENT
*****************************/
.card, .service-card, .testimonial-card, .content-wrapper, .cookie-banner, .cookie-modal {
  position: relative;
  z-index: 1;
}
header, .mobile-menu {
  z-index: 1300;
}
.cookie-banner { z-index: 2000; }
.cookie-modal { z-index: 3000; }

/*****************************
   UTILITIES
*****************************/
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.flex-center { justify-content: center; align-items: center; }

/*****************************
   PRINT SUPPORT
*****************************/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
