/* RESET & BASE TYPOGRAPHY --------------------------------------------------- */
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, 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;
}
html {  scroll-behavior: smooth; }
body {
  font-family: 'Lato', Arial, sans-serif;
  color: #29487D;
  background: #F4EADF;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol { list-style: none; }

/* FONT IMPORTS --------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@700;900&display=swap');

/* COLOR VARIABLES --------------------------------------------------- */
:root {
  --primary: #29487D;
  --secondary: #F4EADF;
  --accent: #F29494;
  --gradient: linear-gradient(110deg, #29487D 4%, #F29494 94%);
  --header-height: 76px;
}

/* CONTAINER SIZING --------------------------------------------------- */
.container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER --------------------------------------------------- */
header {
  background: var(--gradient);
  box-shadow: 0 2px 16px rgba(41,72,125,0.06);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  min-height: var(--header-height);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: rgba(244,234,223,0.22);
  color: var(--accent);
}
.cta.primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(242,148,148,0.12);
  padding: 10px 25px;
  border-radius: 27px;
  font-size: 16px;
  margin-left: 16px;
  font-weight: 900;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background 0.22s, transform 0.13s;
  outline: none;
  box-sizing: border-box;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: #d97777;
  transform: translateY(-2px) scale(1.04);
  color: #fff;
}

/* BURGER MENU --------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  font-size: 30px;
  padding: 7px 13px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
  margin-left: 18px;
  z-index: 1012;
  outline: none;
}
.mobile-menu-toggle:focus {
  background: #d97777;
}

/* MOBILE MENU STYLING ------------------------------------------ */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(244, 234, 223, 0.98);
  z-index: 2002;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.5,0,0.58,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 0 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(41,72,125,0.07);
  transition: background 0.15s, color 0.12s;
  z-index: 2003;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #d97777;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 0;
  gap: 20px;
}
.mobile-nav a {
  font-size: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: none;
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 12px;
  transition: background 0.15s, color 0.12s;
  margin: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
}


/* MAIN LAYOUT --------------------------------------------------- */
main {
  margin-top: 0;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 28px -9px rgba(41,72,125,0.09);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
section:not(:first-child) {
  margin-top: 0;
}
@media (max-width: 768px) {
  .section {
    padding: 32px 8px;
    margin-bottom: 32px;
    border-radius: 13px;
  }
}

/* TYPOGRAPHY --------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
}
h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.13;
}
h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}
h3 {
  font-size: 1.3rem;
  color: var(--primary);
}
h4 {
  font-size: 1.1rem;
  color: var(--primary);
}
p, li, ul, ol {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #29487D;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}
em {
  font-style: italic;
  color: #616161;
  opacity: 0.92;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.12rem; }
}

/* FLEXBOX MANDATORY PATTERNS -------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 21px -10px rgba(41,72,125,0.08);
  padding: 24px;
  transition: box-shadow 0.19s, transform 0.17s;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 300px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 36px -12px rgba(41,72,125,0.19);
  transform: translateY(-3px) scale(1.01);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #F4EADF;
  border-radius: 14px;
  box-shadow: 0 2px 18px -10px rgba(41,72,125,0.06);
  transition: box-shadow 0.19s;
  font-size: 1.13rem;
  color: #29487D;
  min-width: 0;
}
.testimonial-card p {
  color: #171c28;
  font-size: 1.08rem;
  margin-bottom: 6px;
  flex: 1;
}
.testimonial-card strong {
  color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Utility classes for Spacing ------------------------------------- */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.pt-16 { padding-top: 16px; }
.pb-16 { padding-bottom: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* Icon with text blocks (for lists) ------------------------------ */
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
li img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 5px;
}

/* BLOG ARTICLES --------------------------------------------------- */
.categories-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.98rem;
}
.categories-list a {
  color: var(--primary);
  background: var(--secondary);
  border-radius: 9px;
  padding: 3px 12px;
  font-size: 0.96em;
  margin-right: 2px;
  transition: background 0.17s;
}
.categories-list a:hover, .categories-list a:focus {
  background: var(--accent);
  color: #fff;
}

/* FOOTER --------------------------------------------------- */
footer {
  background: var(--gradient);
  color: #fff;
  padding: 36px 0 10px 0;
  margin-top: 50px;
  position: relative;
}
footer .container { flex-direction: column; align-items: stretch; }
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 26px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #fff;
  font-size: 14px;
  font-family: 'Lato', Arial, sans-serif;
  padding: 4px 0;
  border-radius: 4px;
  transition: color 0.19s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
}
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 15px;
}
footer .contact-info img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  opacity: 0.84;
  vertical-align: middle;
  display: inline-block;
}
footer .contact-info p {
  color: #fff;
  margin-bottom: 1px;
  display: flex;
  align-items: center;
}
footer .social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
footer .social-links a {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background 0.2s, box-shadow 0.16s;
  box-shadow: 0 2px 8px rgba(41,72,125,0.09);
}
footer .social-links a:hover, footer .social-links a:focus {
  background: var(--accent);
}
footer .social-links img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* BUTTONS & INPUTS ------------------------------------------------- */
button, .cta, input[type="submit"], input[type="button"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border-radius: 27px;
  padding: 10px 25px;
  font-size: 16px;
  transition: background 0.2s, box-shadow 0.18s, transform 0.11s;
  box-shadow: 0 2px 8px rgba(242,148,148,0.10);
}
button:hover, .cta:hover, input[type="submit"]:hover, input[type="button"]:hover,
button:focus, .cta:focus, input[type="submit"]:focus, input[type="button"]:focus {
  background: #d97777;
  color: #fff;
  transform: translateY(-1.5px) scale(1.03);
}

/* TEXT BLOCKS, SMALL DECORATIONS ----------------------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #29487D;
}
.text-section ul {
  list-style: disc inside;
  margin-left: 10px;
}

/* CARDS (Service/Blog/Team)---------------------------------------- */
article {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 16px -6px rgba(41,72,125,0.08);
  padding: 26px 20px 22px 20px;
  margin-bottom: 22px;
  transition: box-shadow 0.16s, transform 0.12s;
  display: flex;
  flex-direction: column;
}
article:hover, article:focus-within {
  box-shadow: 0 7px 36px -12px rgba(41,72,125,0.20);
  transform: translateY(-2px) scale(1.01);
}
article h3 {
  margin-bottom: 8px;
  font-size: 1.14rem;
  color: var(--primary);
}
article p {
  margin-bottom: 10px;
}
article a {
  display: inline-block;
  color: var(--accent);
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 8px;
  transition: background 0.14s, color 0.13s;
  background: var(--secondary);
}
article a:hover, article a:focus {
  color: #fff;
  background: var(--accent);
}

/* TRANSITIONS & MICRO-INTERACTIONS --------------------------------- */
.section, .card, .testimonial-card, article {
  transition: box-shadow 0.22s, transform 0.16s;
}
.cta, button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.13s, color 0.13s, transform 0.13s;
}

/* COOKIE CONSENT BANNER ------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -7px 38px -20px rgba(41, 72, 125, 0.16);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 20px 30px 24px 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.37s cubic-bezier(0.4,0,0.4,1), opacity 0.24s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-message {
  color: #29487D;
  font-size: 16px;
  flex: 2 1 70%;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex: 1 1 auto;
  align-items: center;
}
.cookie-banner .cookie-btn {
  font-size: 14px;
  border-radius: 19px;
  padding: 8px 17px;
}
.cookie-banner .cookie-btn.settings {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #1d3460;
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: var(--accent);
  color: #fff;
}
@media (max-width:768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 11px 19px 12px;
    gap: 13px;
    border-radius: 15px 15px 0 0;
    font-size: 14px;
  }
}

/* COOKIE CONSENT MODAL ----------------------------------------------------- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(41,72,125,0.27);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  padding: 38px 30px 24px 30px;
  box-shadow: 0 6px 50px -10px rgba(41,72,125,0.17);
  max-width: 400px;
  width: 100%;
  color: #29487D;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal-close {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  position: absolute;
  top: 36px; right: 44px;
  width: 40px;
  height: 40px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 8px rgba(242,148,148,0.17);
  cursor: pointer;
  transition: background 0.12s;
  z-index: 10001;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #d97777;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: #F4EADF;
  border-radius: 13px;
  padding: 10px 16px;
}
.cookie-category label {
  flex: 1;
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  outline: 1.5px solid var(--primary);
  border-radius: 4px;
  margin-right: 7px;
}
.cookie-category.essential label {
  font-weight: 700;
  color: #29487D;
}
.cookie-category.essential input[type="checkbox"] {
  pointer-events: none;
  background: #ececec;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 16px;
}
@media (max-width:480px) {
  .cookie-modal-content {
    padding: 19px 7px 18px 8px;
    border-radius: 13px;
    font-size: 14px;
  }
  .cookie-modal-close {
    top: 10px; right: 11px;
    width: 33px;
    height: 33px;
    font-size: 21px;
  }
}

/* RESPONSIVE & NAVIGATION BREAKPOINTS --------------------------------------- */
@media (max-width: 1050px) {
  header nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 9px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    padding: 0 7px;
    height: 58px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* BODY GRADIENT BACKGROUND FOR MODERN FEEL------------------------------------*/
body {
  background: linear-gradient(116deg, var(--secondary) 70%, #fff 100%);
}
/* PAGE SECTION GRADIENTS & DECORATIVE -------------------------------------- */
.section {
  background: linear-gradient(109deg, #fff 94%, #F4EADF 100%);
}
.section:first-child {
  background: linear-gradient(107deg, #FFF 75%, #F4EADF 100%);
}
/* ACCENT SEPARATOR LINES --------------------------------------------------- */
hr, .hr {
  display: block;
  border: none;
  height: 3px;
  background: var(--accent);
  border-radius: 6px;
  margin: 30px 0;
  opacity: 0.7;
}

/* OVERRIDES & MISC --------------------------------------------------------- */
::-webkit-input-placeholder { color: #b4b6ca; }
:-ms-input-placeholder { color: #b4b6ca; }
::placeholder { color: #b4b6ca; }

/* Utility visibility classes */
.hide { display: none !important; }
.show { display: block !important; }

/* ACCESSIBILITY FOCUS STYLES ----------------------------------------------- */
:focus, button:focus, a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ANIMATIONS --------------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.section, .card, .testimonial-card, article {
  animation: fadeInUp 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

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