/* =============================================================
   CSS RESET & BASELINE
   ============================================================= */
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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #212B36;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #175873;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #26A69A;
}
ul {
  list-style: none;
}

:root {
  --primary: #175873;
  --secondary: #26A69A;
  --accent: #FFEDC2;
  --cta-gradient: #175873;
  --cta-hover: #26A69A;
  --border-radius: 18px;
  --shadow: 0 8px 24px 0 rgba(23,88,115,0.10), 0 1.5px 4px rgba(23,88,115,0.08);
}

body {
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #28303B;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--border-radius);
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

p, li, blockquote, cite, span {
  font-size: 1rem;
  color: #28303B;
  font-weight: 400;
  font-family: 'Roboto', Arial, sans-serif;
}
strong, b {
  font-weight: 700;
}
blockquote {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-style: italic;
  background: var(--accent);
  border-left: 6px solid var(--secondary);
  color: var(--primary);
  padding: 22px 24px 18px 28px;
  margin-bottom: 12px;
  border-radius: var(--border-radius);
  font-size: 1.15rem;
}
cite {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  color: var(--secondary);
  font-style: normal;
  margin-left: 14px;
}

/* =============================================================
   HEADER & NAVIGATION
   ============================================================= */
header {
  background: linear-gradient(95deg, var(--primary) 65%, var(--secondary));
  box-shadow: var(--shadow);
  min-height: 75px;
  z-index: 100;
  width: 100%;
  margin-bottom: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  min-height: 75px;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.logo img {
  height: 52px;
  width: auto;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  border-radius: 18px;
  padding: 5px 16px;
  transition: background 0.17s, color 0.16s, box-shadow 0.23s;
}
nav a:hover, nav a:focus {
  color: var(--accent);
  background: rgba(255,255,255,0.08);
}
.cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  background: var(--secondary);
  color: #fff;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  transition: background 0.24s, box-shadow 0.22s, color 0.17s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(38,166,154,0.12);
  border: none;
  margin-left: 26px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 8px 20px 0 rgba(23,88,115,0.16), 0 2px 8px rgba(23,88,115,0.10);
  outline: none;
}

/* Hamburger Menu */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--accent);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
  cursor: pointer;
  transition: background .2s, color .17s, transform .15s;
  z-index: 2001;
}
.mobile-menu-toggle:active {
  background: var(--secondary);
}
/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,88,115,0.94);
  color: #fff;
  z-index: 2200;
  transform: translateX(100%);
  transition: transform 0.37s cubic-bezier(.7,.3,.365,1.23);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 0 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2rem;
  border: none;
  background: transparent;
  color: var(--accent);
  margin: 18px 24px 20px 0;
  cursor: pointer;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center; justify-content: center;
  transition: background .17s, color .1s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  padding: 22px 0 0 42px;
}
.mobile-nav a {
  font-size: 1.23rem;
  color: #fff;
  background: none;
  border-radius: var(--border-radius);
  padding: 13px 22px 13px 8px;
  min-width: 180px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: background 0.15s, color 0.12s, transform 0.12s;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateX(6px);
}

/* Show/hide for mobile menu/burger */
@media (max-width: 1023px) {
  header nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* =============================================================
   HERO / BANNER / ARTISTIC ELEMENTS
   ============================================================= */
main > section:nth-child(1) {
  background: linear-gradient(110deg, var(--accent) 94%, #fff 100%);
  min-height: 320px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 10px 28px -8px rgba(38,166,154,0.11);
  position: relative;
  overflow: hidden;
}
main > section:nth-child(1)::before {
  content: "";
  position: absolute;
  top: -30px; right: -75px;
  width: 180px; height: 180px;
  background: var(--primary);
  opacity: 0.13;
  border-radius: 50%;
  z-index: 0;
}
.content-wrapper h1 {
  color: var(--primary);
  font-family: 'Montserrat', cursive, sans-serif;
  font-size: 2.5rem;
  letter-spacing: -.8px;
  text-shadow: 0 2px 9px rgba(38,166,154,0.05);
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .content-wrapper h1 {
    font-size: 1.5rem;
  }
}

/* =============================================================
   FLEX / RESPONSIVE LAYOUTS
   CRITICAL: Use only FLEXBOX!
   ============================================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.21s, transform 0.15s;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover {
  box-shadow: 0 12px 28px -5px rgba(23,88,115,0.14);
  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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 16px rgba(23,88,115,0.06);
  margin-bottom: 24px;
  border-left: 8px solid var(--secondary);
  min-width: 0;
}
.testimonial-card blockquote {
  margin-bottom: 10px;
  background: transparent;
  border-left: none;
  color: var(--primary);
  padding: 0;
}
.testimonial-card cite {
  color: var(--secondary);
  font-weight: bold;
  margin-left: 0;
  font-size: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Index/Service Cards */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
  width: 100%;
}
.service-cards > div {
  flex: 1 1 225px;
  max-width: 300px;
  min-width: 220px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 16px 0 rgba(23,88,115,0.06);
  padding: 28px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.service-cards > div:hover {
  box-shadow: 0 8px 32px 0 rgba(38,166,154,.15);
  transform: translateY(-5px) scale(1.009);
}
.service-cards h3, .service-cards h2 {
  font-size: 1.18rem;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -.5px;
  margin-bottom: 4px;
}
.service-cards span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--secondary);
}
.service-cards p {
  margin-bottom: 0;
  color: #4c5765;
  font-size: 0.98rem;
}
.service-cards img {
  display: inline-block;
  height: 24px;
  margin-right: 9px;
  vertical-align: middle;
}

/* =============================================================
   LISTS & ICON LISTS
   ============================================================= */
.content-wrapper ul,
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-left: 0;
  list-style: none;
  padding-left: 0;
}
.content-wrapper ul li,
.text-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 1rem;
  background: transparent;
  color: var(--primary);
  font-family: 'Roboto', sans-serif;
}
.content-wrapper ul li img {
  width: 27px;
  height: 27px;
  margin-top: -2px;
}

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 42px 0 0 0;
  margin-top: 64px;
}
footer .container {
  flex-direction: row;
  gap: 42px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 24px;
}
.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  opacity: 0.93;
  transition: color 0.15s, opacity 0.15s;
  border-radius: 16px;
  padding: 2px 9px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  opacity: 1;
  background: rgba(255,237,194,0.13);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-contact p {
  font-size: 0.97rem;
  color: #e0eaef;
}
.footer-contact a {
  color: #fff8e2;
  text-decoration: underline;
}
.footer-legal {
  font-size: 0.9rem;
  opacity: 0.82;
  margin-top: 16px;
  color: #cbe0e6;
}
.footer-legal a {
  color: #ffeed2;
  font-family: 'Montserrat', sans-serif;
}
.footer-legal a:hover, .footer-legal a:focus {
  color: var(--secondary);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}

/* =============================================================
   BUTTONS & INTERACTION
   ============================================================= */
button, .cta.primary {
  outline: none;
}
button:focus, .cta.primary:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* =============================================================
   COOKIE CONSENT BANNER & POPUP
   ============================================================= */
.cookie-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 760px;
  background: #fff;
  color: var(--primary);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 24px 0 rgba(23,88,115,0.07);
  z-index: 3000;
  padding: 22px 22px 20px 28px;
  gap: 14px;
  animation: cookieBannerIn .4s cubic-bezier(.61,1.75,.62,.91);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(100%) translateX(-50%); opacity: 0; }
  90% { transform: translateY(-8px) translateX(-50%); opacity: 1; }
  100% { transform: translateY(0) translateX(-50%); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  flex: 1 1 220px;
  color: var(--primary);
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 15px;
  flex-shrink: 0;
}
.cookie-banner button {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: 0 2px 9px rgba(38,166,154,0.08);
  transition: background 0.18s, color 0.15s, transform 0.13s;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .accept:hover { background: var(--primary); }
.cookie-banner .reject {
  background: #FFE3E3;
  color: #b12d2d;
}
.cookie-banner .reject:hover {
  background: #ffeedd;
  color: #81200c;
}
.cookie-banner .settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .settings:hover {
  background: #fff8e2;
  color: var(--secondary);
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 3500;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(23,88,115,0.47);
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal.active {
  display: flex;
  pointer-events: all;
  opacity: 1;
  animation: cookieModalIn 0.29s cubic-bezier(.61,1.75,.62,.91);
}
@keyframes cookieModalIn {
  0% { opacity: 0; }
  80% { opacity: 1; }
}
.cookie-modal-dialog {
  background: #fff;
  color: var(--primary);
  border-radius: 25px 25px 12px 12px;
  max-width: 430px;
  width: 97vw;
  padding: 38px 29px 18px 29px;
  box-shadow: 0 16px 42px rgba(23,88,115,0.15);
  margin-bottom: 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  z-index: 3502;
  animation: cookieDialogIn .27s cubic-bezier(.61,1.75,.62,.91);
}
@keyframes cookieDialogIn {
  0% { transform: translateY(200px); opacity: 0; }
  80% { transform: translateY(-10px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal .close-modal {
  position: absolute;
  top: 15px; right: 17px;
  font-size: 1.6rem;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.15s;
}
.cookie-modal .close-modal:hover {
  background: var(--accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
}
.cookie-categories label {
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.01rem;
  color: var(--primary);
}
.cookie-categories input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 16px; height: 16px;
  margin-right: 6px;
  margin-top: -1px;
}
.cookie-categories .essential {
  font-weight: 700;
  color: var(--secondary);
}
.cookie-modal .modal-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 13px;
  width: 100%;
}
.cookie-modal .modal-btns button {
  flex: 1 1 40%;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 10px 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.15s;
}
.cookie-modal .modal-btns .reject {
  background: #ffe3e3;
  color: #c82b2b;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  .service-cards {
    gap: 16px;
  }
  .section {
    padding: 28px 6px;
  }
}
@media (max-width: 900px) {
  .service-cards > div {
    max-width: 100%;
    flex-basis: 43vw;
  }
  .footer-brand { margin-bottom:12px }
}
@media (max-width: 720px) {
  .container { max-width: 100%; }
  .footer-brand img { height: 40px; }
  .service-cards { gap: 10px; }
  .service-cards > div { min-width: 175px; padding: 14px 12px; }
}
@media (max-width: 600px) {
  .footer-legal {
    text-align: left;
    margin-top: 12px;
  }
  .service-cards > div { flex-basis: 85vw; }
  .section { margin-bottom: 38px; padding: 17px 2px; }
  .testimonial-card { padding: 13px; }
  .content-wrapper { gap: 10px; padding: 0; }
  main > section:nth-child(1) { min-height: 220px; }
}
@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 17px 6px 13px 12px;
    min-width: 0;
    max-width: 99vw;
  }
  .cookie-banner .cookie-btns {
    width: 100%;
    gap: 7px;
  }
  .cookie-modal-dialog {
    padding: 21px 8px 12px 14px;
    margin-bottom: 24px;
  }
}
@media (max-width: 768px) {
  .container, .footer .container{
    padding-left: 7px;
    padding-right: 7px;
  }
  .footer-brand img { height:34px; }
  .testimonials, .testimonial-card { gap: 13px; }
  .footer-contact p {
    font-size: 0.94rem;
  }
  .content-grid, .card-container, .service-cards, .text-image-section {
    flex-direction: column;
    gap: 22px !important;
  }
}

/* =============================================================
   ARTISTIC / CREATIVE DETAILS (color splashes, rough edges)
   ============================================================= */
main > section, .card, .service-cards > div, .testimonial-card {
  border-bottom: 3px dashed var(--secondary);
}
main > section:nth-child(even) {
  background: #fafbfc;
}
main > section:nth-child(odd) {
  background: #fff;
}
/* Artistic accent swish */
main > section h2::after {
  content: '';
  display: inline-block;
  width: 44px;
  height: 7px;
  background: var(--accent);
  border-radius: 7px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Colorful icon circle for service cards */
.service-cards > div::before {
  content: '';
  display: block;
  width: 46px; height: 46px;
  background: var(--secondary);
  opacity: 0.18;
  border-radius: 50%;
  position: absolute;
  top: -15px; right: -15px;
  z-index: 0;
}

/* ===================
   MICRO-ANIMATIONS
   =================== */
.cta.primary, .service-cards > div, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.17s;
}
.cta.primary:active, .service-cards > div:active {
  transform: scale(0.99);
}

/* ===============
   MISC FIXED SPACING
   =============== */
main > section + section {
  margin-top: 0 !important;
}
main > section { margin-bottom: 60px !important; }

/* Contact page details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 12px;
}
.contact-details img {
  width: 19px;
  height: 19px;
  margin-right: 7px;
  vertical-align: middle;
}
.contact-details p {
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Roboto', sans-serif;
}
.contact-details a {
  color: var(--secondary);
  text-decoration: none;
}
.contact-details a:hover { color: var(--primary); }