/* =========================================================
   CSS RESET & NORMALIZE
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #FAFAF8;
  color: #273A48;
}
body {
  min-height: 100%;
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  background: #FAFAF8;
  line-height: 1.65;
  color: #273A48;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #273A48;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
nav a:focus {
  color: #FFBD59;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
button {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:focus {
  outline: none;
}

/* =========================================================
   FONT INCLUDES (Serif display for elegance)
   ========================================================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', serif;
  color: #273A48;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 18px;
  margin-top: 0;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p, li, .policy-text {
  font-family: 'Lato', serif;
  color: #273A48;
  font-size: 1.06rem;
  margin-bottom: 18px;
}
.subtitle {
  font-size: 1.2rem;
  color: #42627C;
  margin-bottom: 24px;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* Emphasized text */
strong {
  font-weight: 700;
  color: #0d2236;
}

/* =========================================================
   LAYOUT: CONTAINERS & FLEX PATTERNS
   ========================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section,
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 992px) {
  .section,
  main section {
    padding: 32px 10px;
    margin-bottom: 48px;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.policy-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* V12: Card container */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px 0 rgba(40,62,77,0.10);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
  max-width: 380px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(40,62,77,0.18);
  transform: translateY(-4px) 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;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(37,58,72,0.10);
  padding: 24px 28px 20px 28px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 510px;
  transition: box-shadow 0.2s, transform 0.15s;
  border-left: 4px solid #FFBD59;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(40,62,77,0.16);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-meta {
  font-size: 1rem;
  color: #273A48;
  opacity: .85;
  font-style: italic;
  margin-top: 6px;
}
.stars {
  color: #FFBD59;
  font-family: 'Montserrat', serif;
  font-size: 1.1em;
  letter-spacing: 0.08em;
}

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

/* Section: feature list (icons + text) */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.08rem;
}
.feature-list img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-right: 8px;
}

/* Services Cards */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.service-cards li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px 0 rgba(40,62,77,0.08);
  padding: 30px 22px;
  flex: 1 1 270px;
  min-width: 230px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.15s;
  border-top: 3px solid #FFBD59;
}
.service-cards li:hover {
  box-shadow: 0 8px 28px 0 rgba(40,62,77,0.18);
  transform: translateY(-4px) scale(1.02);
}
.service-cards h3 {
  margin: 0 0 8px 0;
  font-size: 1.22rem;
  color: #273A48;
}
.service-cards p {
  font-size: 1em;
  color: #384955;
}
.service-cards span {
  font-size: .98em;
  font-weight: 700;
  color: #273A48;
  background: #FFBD59;
  border-radius: 6px;
  padding: 4px 10px;
  display: inline-block;
  margin-top: 6px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-list li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px 0 rgba(40,62,77,0.07);
  padding: 28px 20px;
  flex: 1 1 260px;
  min-width: 210px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  border-top: 3px solid #FFBD59;
}
.service-list h2 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.service-list span {
  font-size: .94em;
  font-weight: 700;
  color: #273A48;
  background: #FFBD59;
  border-radius: 6px;
  padding: 3px 9px;
  display: inline-block;
  margin-top: 4px;
}

.project-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.project-blocks .text-section {
  flex: 1 1 330px;
  min-width: 220px;
  max-width: 430px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px 0 rgba(40,62,77,0.07);
  padding: 22px 18px;
  margin-bottom: 20px;
  border-left: 3px solid #FFBD59;
  transition: box-shadow 0.15s;
}
.project-blocks .text-section:hover {
  box-shadow: 0 6px 24px 0 rgba(40,62,77,0.13);
}

/* Main CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', serif;
  background: #273A48;
  color: #fff;
  border: none;
  border-radius: 26px;
  padding: 12px 32px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 3px 12px 0 rgba(40,62,77,0.12);
  cursor: pointer;
  transition: background 0.18s, transform 0.16s, color 0.16s, box-shadow 0.13s;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFBD59;
  color: #273A48;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 7px 22px 0 rgba(40,62,77,0.17);
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(39,58,72,0.04);
  border-bottom: 1px solid #ececec;
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 18px 20px 14px 20px;
  justify-content: flex-start;
}
header a img {
  height: 52px;
  width: auto;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  flex: 1 1 auto;
  margin-left: 32px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', serif;
  font-weight: 500;
  font-size: 1.01rem;
  color: #273A48;
  position: relative;
  padding: 4px 4px 3px 4px;
  transition: color 0.15s, border-color 0.18s;
}
header nav a.active,
header nav a[aria-current='page'] {
  color: #FFBD59;
  font-weight: 700;
  border-bottom: 2px solid #FFBD59;
}

header .cta-btn {
  margin-left: 32px;
  margin-right: 10px;
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: 23px;
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: #273A48;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  margin-left: auto;
  transition: background 0.18s;
  z-index: 103;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #FFBD59;
  color: #273A48;
}

/* MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(39,58,72,0.95);
  color: #fff;
  z-index: 1500;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.80,0,0.30,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: #FFBD59;
  color: #273A48;
  font-size: 2.2rem;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  margin: 28px 28px 12px 0;
  transition: background 0.18s;
  box-shadow: 0 2px 10px 0 rgba(45,45,45,0.10);
  cursor: pointer;
  z-index: 1600;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #273A48;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
  margin-left: 48px;
  margin-top: 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 10px 0px;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  width: 85%;
  transition: color 0.12s, background 0.13s;
  border-radius: 10px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FFBD59;
  color: #273A48;
}

@media(max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .cta-btn {
    display: none;
  }
}
@media (max-width: 600px) {
  .mobile-nav {
    margin-left: 22px;
    margin-top: 25px;
    gap: 18px;
  }
  header .container {
    padding: 12px 6px 10px 6px;
    gap: 10px;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: #273A48;
  color: #fff;
  padding: 30px 0 0 0;
  margin-top: 56px;
  border-top: 3px solid #FFBD59;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0px;
  justify-content: center;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 10px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: .90;
  border-bottom: 1px dotted rgba(255,189,89,0.18);
  transition: color 0.16s;
  padding: 2px 4px;
}
footer nav a:hover {
  color: #FFBD59;
}
.footer-info {
  color: #FFBD59;
  opacity: 0.98;
  font-size: .98em;
  margin-bottom: 20px;
  font-family: 'Lato', serif;
  letter-spacing: 0.01em;
}

/* =========================================================
   HERO BANNER SPECIAL
   ========================================================= */
.hero {
  background: linear-gradient(120deg, #F5F5F5 80%, #FFBD59 100%);
  padding: 72px 0 42px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.hero h1 {
  color: #273A48;
  font-size: 2.7rem;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.hero .subtitle {
  color: #42627C;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 25px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero .container, .content-wrapper {
    padding: 0 6px;
  }
}

/* =========================================================
   TESTIMONIALS SLIDER/FLEX LAYOUT
   ========================================================= */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
@media (max-width: 900px) {
  .testimonials-slider {
    gap: 12px;
  }
  .testimonial-card {
    max-width: 100%;
  }
}

/* =========================================================
   RESPONSIVE/FLEX ADAPTATIONS
   ========================================================= */
@media (max-width: 1024px) {
  .card-container,
  .content-grid,
  .service-cards,
  .service-list,
  .project-blocks,
  .testimonials-slider {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .card-container, .content-grid, .service-cards,
  .service-list, .project-blocks, .feature-list, .testimonials-slider {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}
@media (max-width: 500px) {
  .testimonial-card,
  .service-cards li,
  .card {
    padding: 16px 8px;
  }
  .project-blocks .text-section,
  .policy-text {
    padding: 10px 4px;
  }
}

/* =========================================================
   UTILITY & MICRO-INTERACTIONS
   ========================================================= */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-thumb {
  background: #ececec;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFBD59;
}

/* Hover effect for all cards */
.card, .service-cards li, .service-list li, .testimonial-card, .project-blocks .text-section {
  transition: box-shadow 0.2s, transform 0.13s;
}

/* Section spacing for all pages */
main > section + section {
  margin-top: 0 !important;
}

/* Ensure minimum 20px between all cards/sections */
.card + .card, .testimonial-card + .testimonial-card, .service-cards li + li, .service-list li + li,
.project-blocks .text-section + .text-section {
  margin-top: 20px;
}

/* Policy section typography */
.policy-text h2 {
  font-size: 1.2rem;
  color: #273A48;
  margin-top: 18px;
  margin-bottom: 6px;
}
.policy-text ul {
  margin-left: 19px;
  padding-left: 0;
  list-style: disc;
}

/* Explicit heading style for sections */
main h2 {
  font-size: 2rem;
  color: #273A48;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  margin-bottom: 17px;
  margin-top: 0;
}

/* Links inside p */
p a {
  color: #FFBD59;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.12s;
}
p a:hover, p a:focus {
  color: #273A48;
}

/* ===================== Cookie Consent Banner =========================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2010;
  background: rgba(39,58,72, 0.96);
  color: #fff;
  font-family: 'Lato', serif;
  padding: 24px 20px 20px 20px;
  box-shadow: 0 -2px 12px 0 rgba(40,62,77,0.15);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: bottom 0.22s;
}
.cookie-consent-text {
  font-size: 1.02rem;
  line-height: 1.5;
  max-width: 680px;
}
.cookie-policy-link {
  color: #FFBD59;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 5px;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  font-family: 'Montserrat', serif;
  font-size: 1.08rem;
  background: #FFBD59;
  color: #273A48;
  border: none;
  border-radius: 18px;
  padding: 7px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, color 0.15s, box-shadow 0.12s;
  box-shadow: 0 2px 10px 0 rgba(40,62,77,0.12);
}
.cookie-btn.settings {
  background: #fff;
  color: #273A48;
  border: 1px solid #ececec;
}
.cookie-btn.reject {
  background: #efefef;
  color: #273A48;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #273A48;
  color: #FFBD59;
}
.cookie-btn.settings:hover {
  background: #FFBD59;
  color: #273A48;
}
@media (max-width: 720px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 6px 16px 6px;
    gap: 13px;
  }
  .cookie-policy-link {
    margin-left: 0;
    display: block;
    margin-top: 4px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2100;
  background: rgba(37,58,72, 0.90);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.22s;
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  color: #273A48;
  border-radius: 18px;
  padding: 38px 26px 32px 26px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 8px 40px 2px rgba(39,58,72,0.18);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: slideUp 0.23s cubic-bezier(0.85,0,0.37,1);
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 12px;
  background: #FFBD59;
  color: #273A48;
  border: none;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  font-size: 1.35rem;
  cursor: pointer;
  transition: background 0.14s, color 0.15s;
  z-index: 1;
}
.cookie-modal-close:hover {
  background: #273A48;
  color: #fff;
}
.cookie-modal-content h2 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  color: #273A48;
  font-family: 'Montserrat', serif;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  gap: 8px;
}
.cookie-category label {
  font-size: 1.04em;
}
.cookie-toggle {
  position: relative;
  width: 46px;
  height: 24px;
}
.cookie-toggle input[type='checkbox'] {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  width: 46px; height: 24px;
  background: #ececec;
  border-radius: 30px;
  transition: background 0.15s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: #FFBD59;
}
.cookie-slider:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
  box-shadow: 0 1px 4px 0 rgba(39,58,72,0.10);
}
.cookie-toggle input:checked + .cookie-slider:after {
  transform: translateX(22px);
}
.cookie-category .permanent {
  color: #384955;
  font-size: .98em;
  font-weight: 700;
  margin-left: 7px;
}
.cookie-modal .cookie-btn {
  align-self: flex-end;
  margin-top: 5px;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(45px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================================================
   HELPERS & MINOR ELEMENTS
   ========================================================= */
hr {
  border: 0;
  border-bottom: 1px solid #ececec;
  margin: 32px 0 24px 0;
}
blockquote {
  font-style: italic;
  color: #273A48;
  padding: 18px 25px;
  background: #ececec;
  border-left: 4px solid #FFBD59;
  margin-bottom: 18px;
  border-radius: 7px;
}
/* Spacing utility for vertical breathing room */
.spacer-24 { height: 24px; }
.spacer-16 { height: 16px; }
.spacer-32 { height: 32px; }
.spacer-48 { height: 48px; }

/* Policy links in footer or elsewhere */
.policy-link {
  color: #FFBD59;
  font-weight: 700;
  text-decoration: underline;
}

/* =========================================================
   OVERRIDE BUTTON/FORM ELEMENTS FOR CONSISTENT STYLING
   ========================================================= */
input, textarea, select {
  font-family: 'Lato', serif;
  font-size: 1rem;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 9px 13px;
  margin-bottom: 12px;
  width: 100%;
  background: #fff;
  color: #273A48;
  transition: border 0.14s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #FFBD59;
  box-shadow: 0 2px 12px 0 rgba(255,189,89,0.12);
}
label {
  font-family: 'Montserrat', serif;
  font-size: 1.02em;
  color: #273A48;
}

/* =========================================================
   SPECIAL SECTION: THANK YOU PAGE
   ========================================================= */
.thank-you {
  background: #fffdf7;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(40,62,77,0.12);
  padding: 42px 34px;
  margin: 32px auto 0 auto;
  max-width: 620px;
  text-align: center;
}

/* =========================================================
   PRINT STYLE: Hide navigation/footers
   ========================================================= */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal {
    display: none !important;
  }
  main, .container, .content-wrapper {
    padding: 0 !important;
    margin: 0 !important;
  }
}
