/* --- CSS RESET & BASE STYLES --- */
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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F1FAEE;
  color: #1D3557;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
a {
  color: #1D3557;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #E63946;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 24px;
}

/* Font Imports (Google Fonts) */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .1px;
  color: #1D3557;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.18;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #222;
}
p {
  margin: 0 0 16px 0;
}
strong {
  font-weight: 700;
}

/* --- LAYOUT CONTAINERS & SECTIONS --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(29,53,87,0.07);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Card Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 2px rgba(29,53,87,.05), 0 1.5px 2.5px rgba(230,57,70,0.04);
  margin-bottom: 20px;
  padding: 28px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .25s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 2px rgba(29,53,87,.10), 0 2.5px 4.5px rgba(230,57,70,0.06);
  transform: translateY(-4px) scale(1.022);
  z-index: 2;
}
.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: 10px;
  background: #f7fafc;
  color: #222;
  border-radius: 16px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 1px rgba(29,53,87,0.08);
  min-width: 280px;
  max-width: 480px;
  transition: box-shadow .3s, transform .25s;
}
.testimonial-card p {
  color: #1D3557;
  font-style: italic;
  font-size: 1.1rem;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #555;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 28px 3px rgba(29,53,87,.13);
  transform: translateY(-2px) scale(1.012);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.project-highlight {
  background: linear-gradient(90deg,#F1FAEE 0%,#e6edf8 100%);
  border-left: 6px solid #E63946;
  border-radius: 14px;
  box-shadow: 0 1.5px 6px rgba(29,53,87,0.07);
  padding: 22px 24px 18px 20px;
  margin-bottom: 20px;
}
.highlighted-card {
  background: linear-gradient(80deg,#fff 70%,#f6f0fa 100%);
  border: 1px solid #E63946;
  border-radius: 18px;
  box-shadow: 0 3px 18px 2px rgba(29,53,87,.10);
  padding: 32px 26px;
  margin: 26px 0 14px 0;
}

/* Lists in cards/sections */
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 11px;
  line-height: 1.52;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  word-break: break-word;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

/* --- BUTTONS & CTAs --- */
.cta-btn {
  color: #fff;
  background: linear-gradient(90deg,#1D3557 0%,#E63946 80%);
  border: none;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 13px 44px;
  margin-top: 20px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background .18s, box-shadow .18s, color .2s, transform .16s;
  box-shadow: 0 3px 10px 2px rgba(230,57,70,0.09);
  display: inline-block;
  outline: none;
}
.cta-btn:hover,
.cta-btn:focus {
  color: #fff !important;
  background: linear-gradient(100deg,#E63946 0%,#1D3557 90%);
  box-shadow: 0 7px 30px 3px rgba(29,53,87,0.14);
  transform: translateY(-2px) scale(1.027);
}
button,
input[type="button"],
input[type="submit"] {
  font-family: inherit;
  border: none;
  border-radius: 6px;
  background: #E63946;
  color: #fff;
  padding: 10px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px 1px rgba(230,57,70,.07);
  transition: background .17s, box-shadow .17s;
}
button:hover, button:focus {
  background: #1D3557;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(29,53,87,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px;
  flex-wrap: wrap;
  width: 100%;
}
header nav ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}
header nav ul li {
  margin-bottom: 0;
}
header nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  color: #1D3557;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 7px;
  transition: background .13s, color .2s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: rgba(230,57,70,.09);
  color: #E63946;
}
header nav img {
  height: 40px;
  width: auto;
}

/* Hide hamburger on desktop */
.mobile-menu-toggle {
  display: none;
  background: linear-gradient(80deg,#1D3557 60%,#E63946 100%);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  border-radius: 8px;
  padding: 5px 16px;
  cursor: pointer;
  margin-left: 8px;
  z-index: 1040;
  transition: background .15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: linear-gradient(100deg,#E63946 0%, #1D3557 100%);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1500;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.66,.2,.23,1);
  box-shadow: -4px 0 32px 0 rgba(29,53,87,0.11);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #1D3557;
  border: none;
  font-size: 2.3rem;
  padding: 18px 22px 10px 0;
  cursor: pointer;
  transition: color .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E63946;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 28px 0 32px;
}
.mobile-nav a {
  font-size: 1.4rem;
  color: #1D3557;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background .12s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E63946;
  color: #fff;
}

/* Hide desktop nav on mobile */
@media (max-width: 950px) {
  header nav ul, header nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- FOOTER --- */
footer {
  background: #1D3557;
  color: #fff;
  padding: 36px 0 20px 0;
  margin-top: 48px;
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  list-style: none;
  margin-bottom: 18px;
}
footer nav ul li a {
  color: #F1FAEE;
  font-size: 1.01rem;
  transition: color .18s;
  font-family: 'Roboto', Arial, sans-serif;
}
footer nav ul li a:hover,footer nav ul li a:focus {
  color: #E63946;
  text-decoration: underline;
}
footer .footer-info {
  text-align: center;
  font-size: 1rem;
  color: #e0eaf8;
}

/* --- RESPONSIVE ADAPTIVE LAYOUTS --- */
@media (max-width: 1200px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 900px) {
  .content-wrapper {
    padding: 22px 10px;
    border-radius: 13px;
  }
  .project-highlight, .highlighted-card {
    padding: 16px 10px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-wrapper {
    padding: 13px 2px;
    border-radius: 11px;
  }
  .card {
    padding: 20px 10px;
  }
  .section, section {
    padding: 24px 0;
    margin-bottom: 32px;
  }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.37rem; }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- TABLE STYLES --- */
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2.5px 8px rgba(29,53,87,0.07);
  margin: 24px 0 16px 0;
}
thead,
th {
  background: #1D3557;
  color: #fff;
}
th, td {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 17px 14px;
  text-align: left;
  font-size: 1.06rem;
  border-bottom: 1px solid #f2f4fa;
}
tr:last-child td {
  border-bottom: none;
}

/* --- ICON STYLES IN LISTS --- */
ul li img, ol li img {
  height: 30px;
  width: 30px;
  margin-right: 5px;
  min-width: 30px;
}

/* --- FORM ELEMENTS (CONTACT or LEGAL PAGES) --- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #1D3557;
  border: 1.5px solid #E63946;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 16px;
  box-shadow: 0 1.5px 6px rgba(29,53,87,0.05);
  width: 100%;
  outline: none;
  background: #f7fafc;
  transition: border .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #1D3557;
  box-shadow: 0 4px 16px rgba(230,57,70,0.08);
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 7px;
}

/* --- Cookie Consent BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, #E63946 55%, #F1FAEE 100%);
  color: #1D3557;
  padding: 20px 18px 18px 18px;
  z-index: 2000;
  box-shadow: 0 -2px 18px 0 rgba(29,53,87,0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  animation: cookieSlideIn .6s cubic-bezier(.66,.2,.23,1);
}
@keyframes cookieSlideIn {
  0% { transform: translateY(110%); }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  color: #1D3557;
  margin-bottom: 0;
  font-size: 1.05rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 3px;
}
.cookie-banner button {
  min-width: 110px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 24px;
  padding: 10px 24px;
  text-align: center;
  border: none;
  outline: none;
  box-shadow: none;
  transition: background .18s, color .14s;
}
.cookie-banner .accept {
  background: #1D3557;
  color: #fff;
}
.cookie-banner .accept:hover,.cookie-banner .accept:focus {
  background: #E63946;
  color: #fff;
}
.cookie-banner .settings {
  background: #fff;
  color: #1D3557;
  border: 1.6px solid #1D3557;
}
.cookie-banner .settings:hover,.cookie-banner .settings:focus {
  background: #1D3557;
  color: #fff;
  border-color: #E63946;
}
.cookie-banner .reject {
  background: #fff;
  color: #E63946;
  border: 1.6px solid #E63946;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #E63946;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  background: #fff;
  color: #1D3557;
  border-radius: 18px;
  box-shadow: 0 8px 40px 4px rgba(29,53,87,0.18);
  z-index: 2100;
  width: 94vw;
  max-width: 410px;
  padding: 36px 28px 22px 28px;
  transform: translate(-50%,-54%) scale(1);
  animation: cookieModalAppear .44s cubic-bezier(.77,.09,.21,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes cookieModalAppear {
  0% { opacity: 0; transform: translate(-50%,20%) scale(.93); }
  100% { opacity: 1; transform: translate(-50%,-54%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.24rem;
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 11px;
  font-size: 1.01rem;
}
.cookie-modal .toggle {
  appearance: none;
  width: 36px;
  height: 22px;
  background: #d2e3f7;
  border-radius: 14px;
  position: relative;
  outline: none;
  border: none;
  cursor: pointer;
  transition: background .17s;
}
.cookie-modal .toggle:checked {
  background: #1D3557;
}
.cookie-modal .toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(29,53,87,0.1);
  transition: left .14s;
}
.cookie-modal .toggle:checked:before {
  left: 17px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-direction: row;
}
.cookie-modal .cancel {
  background: #fff;
  color: #E63946;
  border: 1.6px solid #E63946;
}
.cookie-modal .cancel:hover, .cookie-modal .cancel:focus {
  background: #E63946;
  color: #fff;
}

/* Overlay for modal */
.cookie-modal-overlay {
  content: '';
  position: fixed;
  left: 0; top: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29,53,87,0.26);
  z-index: 2090;
  animation: cookieModalFadeIn .18s cubic-bezier(.34,1.56,.64,1);
}
@keyframes cookieModalFadeIn {
  0% { opacity: 0; }
  100% { opacity: .99; }
}

/* --- GRADIENT BACKGROUNDS --- */
body {
  background: linear-gradient(120deg, #F1FAEE 0%, #e6edf8 100%);
}
section:nth-child(odd) .content-wrapper,
section:nth-child(odd) {
  background: linear-gradient(87deg,#fff 75%,#f5f2fa 100%);
}
section:nth-child(even) .content-wrapper,
section:nth-child(even) {
  background: #fff;
}

/* --- SPACING BETWEEN MAIN CONTENT BLOCKS --- */
main > section:not(:last-child) {
  margin-bottom: 60px;
}
main > section:last-child {
  margin-bottom: 0;
}

/* --- MISCELLANEOUS --- */
::-webkit-scrollbar {
  width: 10px;
  background: #F1FAEE;
}
::-webkit-scrollbar-thumb {
  background: #E63946;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .testimonial-card, .project-highlight, .highlighted-card {
    padding: 11px 7px !important;
    border-radius: 8px !important;
    font-size: .97rem !important;
  }
  .cookie-modal {
    padding: 20px 4.5vw 18px 4.5vw;
    border-radius: 14px;
    max-width: 98vw;
  }
}
/* --- Animations and transitions --- */
section, .content-wrapper, .card, .testimonial-card, .project-highlight, .highlighted-card, .cookie-banner, .cookie-modal {
  transition: box-shadow .23s, transform .23s, background .22s, color .21s;
}

/* --- Utility --- */
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.mb-60 { margin-bottom: 60px; }
.flex { display: flex; }
.align-center { align-items: center; }
.flex-col { flex-direction: column; }
.gap-20 { gap: 20px; }

/* --- Accessibility focus outline --- */
a:focus, button:focus, input:focus, .cta-btn:focus {
  outline: 2.5px solid #1D3557;
  outline-offset: 2.5px;
}

/* --- Hide element utility --- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* --- Links inside paragraphs (content, policy) --- */
.content-wrapper a:not(.cta-btn), .text-section a:not(.cta-btn) {
  color: #E63946;
  text-decoration: underline;
  font-weight: 500;
  transition: color .17s;
}
.content-wrapper a:not(.cta-btn):hover, .content-wrapper a:not(.cta-btn):focus {
  color: #1D3557;
  text-decoration: underline;
}

/* --- ENFORCE FLEXBOX PATTERNS ONLY --- */
/* No grid or column properties used in any layout containers */
