/* =========================
   1. 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, main, section, article, aside, nav, header, footer, figcaption, figure, details, summary, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #184B6B;
  background: #F5F7FA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: none;
}
:focus {
  outline-color: #6EC5E9;
  outline-width: 2px;
  outline-style: solid;
}

/* ========
   2. BRAND FONTS
   ======== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #184B6B;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.7rem;
  margin-bottom: 24px;
  line-height: 1.13;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.18;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 13px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, span {
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}

/* Helper classes for spacing (Modern scale: 8/16/24/32/40/60 px) */
.mt-24 {margin-top: 24px;}
.mb-24 {margin-bottom: 24px;}
.mt-32 {margin-top: 32px;}
.mb-32 {margin-bottom: 32px;}

/* ==========
   3. LAYOUT
   ==========
   - .container and .content-wrapper
   - Flex only! No grid/columns
   */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 36px 0 rgba(51, 83, 128, 0.07);
  /* For gradient_modern, can add light top background or accent border below */
}

/* Modern hero sections with gradient background */
.hero, .about-hero {
  background: linear-gradient(120deg, #6EC5E9 0%, #184B6B 90%);
  color: #fff;
  padding: 64px 0 60px 0;
  position: relative;
}
.hero .content-wrapper, .about-hero .content-wrapper {
  max-width: 650px;
  margin: 0 auto;
}
.hero h1, .about-hero h1 {
  color: #fff;
}

/* Content Cards and Flex Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(52,92,164,.09);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.26s cubic-bezier(.4,0,.2,1), transform 0.23s cubic-bezier(.4,0,.2,1);
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 10px 30px 0 rgba(52,92,164,.18);
  transform: translateY(-6px) scale(1.016);
}
.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; gap: 20px;}
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features ul li {
  min-width: 210px;
  max-width: 260px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 18px;
  background: #fafdff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(52,92,164,.06);
  border: 1px solid #e7eff7;
  transition: box-shadow 0.21s;
}
.features ul li img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.features ul li strong {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1.08rem;
}

/* Modern Section Headings */
.section > h2, 
.content-wrapper > h2, 
.content-wrapper > h1 {
  align-self: flex-start;
}

/* Service lists */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.services-list li {
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 350px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(38,81,126,.07);
  display: flex;
  flex-direction: column;
  gap: 11px;
  border: 1px solid #e7eff7;
  transition: box-shadow 0.23s;
}
.services-list li strong {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1.06rem;
  color: #184B6B;
}
.services-list li span {
  font-weight: 500;
  color: #6EC5E9;
}
.services-list li:hover {
  box-shadow: 0 8px 26px 0 rgba(58,102,166,.10);
  border-color: #b9def3;
}

@media (max-width: 900px) {
  .features ul, .services-list {
    flex-direction: column;
    gap: 20px;
  }
}

/* Testimonial CardStyles (CRITICAL: CONTRAST) */
.testimonials-preview, .testimonials {
  background: linear-gradient(104deg, #fafdff 40%, #e8f6fc 100%);
  padding: 40px 0 60px 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 20px 23px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 11px 34px 0 rgba(52,92,164,.08);
  margin-bottom: 20px;
  border-left: 5px solid #6EC5E9;
  min-width: 0;
  max-width: 540px;
}
.testimonial-card p {
  color: #1d3142;
  font-size: 1.08rem;
}
.testimonial-card span {
  color: #184B6B;
  font-size: 0.96rem;
  font-weight: 500;
  margin-top: -9px;
}
@media (max-width: 700px) {
  .testimonial-card {
    padding: 17px 14px;
    font-size: 0.97rem;
  }
}

/* CTA & Contact/Address Cards */
.contact-cta, .expert-advice-cta, .project-cta, .review-cta {
  background: linear-gradient(92deg, #6EC5E9 0%, #F5F7FA 100%);
  border-radius: 18px;
  padding: 38px 18px 34px 18px;
}
.contact-cta h2, .expert-advice-cta h2, .project-cta h2, .review-cta h2 {
  color: #184B6B;
}
.contact-cta a.btn-primary, .expert-advice-cta a.btn-primary, .project-cta a.btn-primary {
  margin-top: 20px;
}

/* Footer */
footer {
  background: #184B6B;
  color: #fff;
  padding: 36px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.99rem;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #e9f7fb;
  opacity: 0.88;
  transition: color 0.18s, opacity 0.18s;
}
.footer-nav a:hover {
  color: #6EC5E9;
  opacity: 1;
}
.brand-tagline {
  color: #b5e2f9;
  font-size: 1.09rem;
  font-style: italic;
  font-family: 'Roboto', Arial, sans-serif;
  justify-content: center;
  text-align: center;
}

/* =======================
   4. NAVIGATION (DESKTOP + MOBILE)
   ======================= */
header {
  background: #fff;
  border-bottom: 1px solid #dbe5ee;
  position: sticky;
  top: 0;
  z-index: 99;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
.main-nav > a img {
  height: 44px;
  width: auto;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.main-nav ul li {
  display: flex;
}
.main-nav ul li a {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 2px;
  transition: color 0.18s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  color: #048edc;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 24px;
  background: linear-gradient(98deg,#189dcc 20%,#184B6B 100%);
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.09rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px 0 rgba(55, 151, 197, 0.14);
  cursor: pointer;
  border: none;
  transition: background 0.17s, box-shadow .19s, color .21s;
  margin-left: 22px;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(98deg,#048edc 25%,#6EC5E9 90%);
  color: #fff;
  box-shadow: 0 8px 28px 0 rgba(55,151,197,.2);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: relative;
  background: #fff;
  font-size: 2.2rem;
  color: #184B6B;
  border-radius: 8px;
  padding: 3px 10px;
  margin-left: 14px;
  z-index: 120;
  transition: background .19s;
  box-shadow: 0 2px 7px 0 rgba(52,92,164,.05);
  border: 1px solid #e3eaf1;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #6EC5E9;
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(24, 75, 107, 0.98);
  transform: translateX(100%);
  transition: transform .37s cubic-bezier(.69,.05,.33,1.06);
  z-index: 1300;
  padding-top: 24px;
  padding-bottom: 16px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.6rem;
  align-self: flex-end;
  margin-right: 24px;
  margin-bottom: 20px;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  transition: background .17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #6EC5E9;
  color: #184B6B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70vh;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.24rem;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  transition: color .16s;
  padding: 10px 30px;
  border-radius: 17px;
  box-sizing: border-box;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff;
  color: #184B6B;
}

@media (max-width: 1050px) {
  .main-nav ul, .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1051px) {
  .mobile-menu { display: none !important; }
}

/* =====================
   5. COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #184B6B;
  color: #fff;
  padding: 18px 16px 18px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  box-shadow: 0 -3px 22px 0 rgba(24,75,107,.19);
  z-index: 1400;
  font-size: 1rem;
  animation: slideUpCookie .8s cubic-bezier(.37,.21,.31,.95);
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: #6EC5E9;
  color: #184B6B;
  padding: 9px 23px;
  border-radius: 23px;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  margin-left: 0;
  cursor: pointer;
  transition: background .18s, color .18s;
  box-shadow: 0 2px 5px 0 rgba(110,197,233,.13);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fff;
  color: #184B6B;
}
.cookie-banner button.cookie-settings {
  background: #fff;
  color: #184B6B;
  border: 1px solid #6EC5E9;
}
.cookie-banner button.cookie-settings:hover {
  background: #6EC5E9;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24,75,107,.73);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #184B6B;
  border-radius: 20px;
  max-width: 430px;
  width: 94vw;
  padding: 34px 32px 28px 32px;
  box-shadow: 0 8px 40px 0 rgba(24,75,107,.19);
  display: flex;
  flex-direction: column;
  gap: 25px;
  animation: fadeInModal .4s cubic-bezier(.4,.12,.32,.95);
  z-index: 1510;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(80px) scale(.94); }
  to   { opacity:1; transform: none; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #6EC5E9;
  width: 19px;
  height: 19px;
}
.cookie-modal .category-essential {
  font-weight: 600;
  color: #184B6B;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}
.cookie-modal button {
  background: #6EC5E9;
  color: #184B6B;
  padding: 9px 19px;
  border-radius: 17px;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #184B6B;
  color: #fff;
}

/* =======================
   6. GENERAL PAGE ELEMENTS
   ======================= */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section ul {
  margin-left: 18px;
  margin-bottom: 10px;
}
.text-section li {
  list-style: disc inside;
  margin-bottom: 8px;
  color: #184B6B;
  font-size: 1rem;
}
.text-section a {
  color: #048edc;
  text-decoration: underline;
  font-weight: 500;
  transition: color .18s;
}
.text-section a:hover {
  color: #184B6B;
}

ol {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-left: 25px;
}
ol li {
  list-style: decimal inside;
  color: #184B6B;
  font-size: 1.03rem;
}

/* ============
   7. RESPONSIVE
   ============ */
@media (max-width: 1100px) {
  .container {
    max-width: 900px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 95vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .section, .contact-cta, .expert-advice-cta, .project-cta, .review-cta {
    padding: 24px 10px;
  }
}
@media (max-width: 700px) {
  .section, .testimonials-preview, .hero, .about-hero, .contact-cta, .expert-advice-cta, .review-cta, .project-cta {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
    min-width: 0;
  }
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  .card, .testimonial-card, .features ul li, .services-list li {
    padding: 15px 8px;
    border-radius: 11px;
  }
  .content-wrapper { gap: 18px; }
}
@media (max-width: 570px) {
  .footer-nav {
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* ================
   8. UTILITIES & MICRO-ANIMATION
   ================ */
.fade-in {
  animation: fadeIn .43s cubic-bezier(.45,.22,.22,1.04);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.shadow-hover:hover {
  box-shadow: 0 6px 30px 0 rgba(38,90,180,0.15);
}

/* ============
   9. FORMS
   ============ */
input[type="text"], input[type="email"], textarea {
  border: 1px solid #b7e0f2;
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fafdff;
  transition: border-color .15s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #6EC5E9;
}
label {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 8px;
  color: #184B6B;
}

/* ============
   10. MISC
   ============ */
::-webkit-scrollbar {
  background: #e5eff7;
  width: 9px;
  border-radius: 9px;
}
::-webkit-scrollbar-thumb {
  background: #c6e6f8;
  border-radius: 9px;
}

/* ============
   11. THANK YOU PAGE & MINOR THINGS
   ============ */
.thank-you .btn-primary {
  margin-top: 18px;
}

/* Accessibility: visually hidden for screen readers only (used for ARIA modals/buttons) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ==========
   END
   ========== */
