/* ===============================
   CSS Reset & Basic Normalization
   =============================== */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAF9F7;
  color: #222;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
}

/* ===============================
   Brand Fonts & Typography
   =============================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

body {
  font-family: 'Open Sans', Georgia, 'Times New Roman', serif;
  font-size: 16px;
  background: #FAF9F7;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, 'Times New Roman', serif;
  color: #0D2350;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 32px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol, li {
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
}
strong {
  font-weight: 700;
  color: #0D2350;
}
em {
  font-style: italic;
}


/* ===============================
   Utility Containers
   =============================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(13,35,80,0.06);
}


/* ===============================
   Main Navigation & Header
   =============================== */
header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #f0ede8;
  z-index: 15;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 14px 0 12px 0;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.main-nav a {
  color: #0D2350;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #28729A;
  background: #F2F6FA;
}
.main-nav .cta-btn {
  background: #0D2350;
  color: #fff;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 1rem;
  margin-left: 8px;
  box-shadow: 0 2px 8px 0 rgba(13,35,80,0.05);
  border: none;
  transition: background 0.2s, box-shadow 0.18s;
  font-weight: 700;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: #28729A;
  box-shadow: 0 3px 12px rgba(13,35,80,0.14);
}
.main-nav img {
  max-height: 42px;
  margin-right: 8px;
}

/* ===============================
   Mobile Menu
   =============================== */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
    padding: 12px 0;
  }
}
@media (max-width: 940px) {
  .main-nav {
    gap: 8px;
    font-size: 0.97rem;
  }
}
@media (max-width: 860px) {
  .main-nav a:not(:first-child),
  .main-nav .cta-btn {
    font-size: 0.92rem;
    padding: 7px 9px;
  }
}
@media (max-width: 800px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
    background: #fff;
    border-radius: 4px;
    border: none;
    font-size: 2rem;
    color: #0D2350;
    padding: 3px 12px 0 12px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    z-index: 1001;
    position: absolute;
    top: 16px;
    right: 20px;
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:focus {
    background: #F1C376;
    color: #0D2350;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.33s cubic-bezier(.68,-.55,.27,1.55);
    box-shadow: -3px 0 24px 0 rgba(13,35,80,0.13);
    overflow-y: auto;
  }
  .mobile-menu.open {
    transform: translateX(0%);
  }
  .mobile-menu-close {
    background: #fff;
    color: #0D2350;
    border: none;
    font-size: 2.4rem;
    margin: 22px 22px 10px auto;
    cursor: pointer;
    padding: 0 14px;
    border-radius: 6px;
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
    transition: background 0.2s;
    z-index: 2100;
  }
  .mobile-menu-close:focus,
  .mobile-menu-close:hover {
    background: #F1C376;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px 36px 16px 36px;
    text-align: left;
  }
  .mobile-nav a {
    color: #0D2350;
    font-family: 'Montserrat', serif;
    font-weight: 600;
    font-size: 1.12rem;
    padding: 12px 0;
    transition: background 0.18s, color 0.16s;
    border-radius: 5px;
    outline: none;
  }
  .mobile-nav a:hover,
  .mobile-nav a:focus {
    background: #f3e9d6;
    color: #28729A;
  }
}


/* ===============================
   Hero Section
   =============================== */
.hero {
  background: linear-gradient(92deg, #f7f6f4 70%, #f1c37610 100%);
  padding: 48px 0 38px 0;
  border-bottom: 1px solid #e6e4df;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding: 20px 0;
}
.hero h1 {
  color: #0D2350;
  font-size: 2.6rem;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.hero p {
  font-size: 1.19rem;
  color: #444;
  margin-bottom: 15px;
  max-width: 550px;
}
.hero .cta-btn {
  margin-top: 22px;
  background: #28729A;
}

@media (max-width: 600px) {
  .hero {
    padding: 32px 0 25px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* ===============================
   CTA Button
   =============================== */
.cta-btn {
  display: inline-block;
  background: #F1C376;
  color: #0D2350;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 11px 30px;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 2px 8px 0 rgba(13,35,80,0.07);
  margin-top: 8px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.20s, box-shadow 0.13s, transform 0.16s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #28729A;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 22px 0 rgba(41,75,130,0.13);
}


/* ===============================
   Features Section
   =============================== */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features .content-wrapper {
  align-items: center;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 16px;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 30px 28px 26px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(13,35,80,0.10);
  min-width: 230px;
  max-width: 330px;
  transition: box-shadow 0.2s, transform 0.22s;
  margin-bottom: 20px;
}
.feature-item img {
  width: 46px;
  margin-bottom: 4px;
}
.feature-item h3 {
  color: #28729A;
  margin-bottom: 0;
  font-size: 1.22rem;
}
.feature-item p {
  color: #444;
  font-size: 1rem;
}
.feature-item:hover {
  box-shadow: 0 12px 34px rgba(41,75,130,0.14);
  transform: translateY(-4px) scale(1.03);
}

@media (max-width: 980px) {
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }
}


/* ===============================
   Services Section
   =============================== */
.services {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-item {
  min-width: 235px;
  flex: 1 0 28%;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 18px rgba(13,35,80,0.08);
  margin-bottom: 20px;
  padding: 28px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.service-item h3 {
  color: #28729A;
  font-size: 1.17rem;
  margin-bottom: 0;
}
.service-item p {
  color: #464545;
  font-size: 1rem;
}
.service-item img {
  width: 38px;
  margin-bottom: 0;
}
.service-item:hover {
  box-shadow: 0 10px 40px rgba(13,35,80,0.13);
  transform: translateY(-4px) scale(1.02);
}
@media (max-width: 950px) {
  .service-list {
    gap: 16px;
  }
}
@media (max-width: 750px) {
  .service-list {
    flex-direction: column;
    gap: 16px;
  }
  .service-item {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    margin-bottom: 0;
  }
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}
.service-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 13px 0 rgba(13,35,80,0.08);
  padding: 32px 26px 22px 24px;
  max-width: 330px;
  flex: 1 0 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.21s;
}
.service-card img {
  width: 40px;
  margin-bottom: 2px;
}
.service-card h2 {
  font-size: 1.28rem;
  color: #28729A;
  margin-bottom: 0;
}
.service-card p {
  color: #474747;
}
.service-card:hover {
  box-shadow: 0 10px 28px rgba(13,35,80,0.12);
  transform: translateY(-3px) scale(1.018);
}

@media (max-width: 850px) {
  .service-cards {
    flex-direction: column;
    gap: 14px;
  }
  .service-card {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }
}


/* ===============================
   Card Containers & Cards
   =============================== */
.card-container, .card-grid, .post-previews, .project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card, .project-highlight, .post-preview {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 18px rgba(13,35,80,0.08);
  padding: 26px 18px 20px 22px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .project-highlight:hover, .post-preview:hover {
  box-shadow: 0 8px 30px rgba(41,75,130,0.14);
  transform: translateY(-4px) scale(1.01);
}
@media (max-width: 710px) {
  .card-container,.card-grid,.post-previews,.project-list {
    flex-direction: column;
    gap: 15px;
  }
}


/* ===============================
   Testimonial Cards & Slider
   =============================== */
.testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #f5f7fa;
  border-radius: 13px;
}
.testimonials .content-wrapper {
  align-items: center;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  justify-content: center;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 28px 18px 28px;
  border-radius: 14px;
  background: #fff;
  color: #222;
  box-shadow: 0 4px 24px 0 rgba(13,35,80,0.11);
  min-width: 250px;
  max-width: 370px;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.19s;
}
.testimonial-card p {
  color: #0D2350;
  font-size: 1.08rem;
  line-height: 1.65;
  font-style: italic;
}
.testimonial-meta {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 0.94rem;
  color: #28729A;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 14px 38px 0 rgba(41,75,130,0.16);
  transform: translateY(-6px) scale(1.03);
}

@media (max-width: 720px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 15px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
}


/* ===============================
   About, Timeline, Team Section
   =============================== */
.about, .about-section, .team, .timeline, .faq-section, .planning, .map-section, .legal-section, .thank-you-section {
  background: #fff;
  border-radius: 13px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 3px 13px rgba(13,35,80,0.06);
}
.team-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 22px 0;
  padding-left: 0;
}
.timeline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 20px;
}
.timeline-list li {
  background: #f5f7fa;
  border-radius: 10px;
  padding: 24px 20px 18px 20px;
  min-width: 210px;
  flex: 1 0 200px;
  box-shadow: 0 1px 7px rgba(13,35,80,0.06);
  margin-bottom: 20px;
}
@media (max-width: 750px) {
  .timeline-list {
    flex-direction: column;
    gap: 14px;
  }
  .timeline-list li {
    min-width: 0;
  }
}

/* ===============================
   Solutions & Planning Section
   =============================== */
.solution-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  justify-content: center;
}
.solution-item {
  background: #fff;
  border-radius: 14px;
  padding: 28px 22px 22px 25px;
  min-width: 220px;
  max-width: 320px;
  box-shadow: 0 2px 15px rgba(13,35,80,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 9px;
  transition: box-shadow 0.14s, transform 0.17s;
}
.solution-item img {
  width: 38px;
}
.solution-item:hover {
  box-shadow: 0 12px 24px rgba(41,75,130,0.08);
  transform: translateY(-3px) scale(1.02);
}
@media (max-width: 800px) {
  .solution-list {
    flex-direction: column;
    gap: 14px;
  }
  .solution-item {
    max-width: 100%;
    min-width: 0;
  }
}

.planning-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}
.planning-steps > div {
  background: #f5f7fa;
  border-radius: 10px;
  padding: 22px 16px 14px 16px;
  min-width: 160px;
  flex: 1 0 170px;
  margin-bottom: 20px;
  box-shadow: 0 1px 7px rgba(13,35,80,0.04);
}
@media (max-width: 680px) {
  .planning-steps {
    flex-direction: column;
    gap: 12px;
  }
  .planning-steps > div {
    min-width: 0;
  }
}

/* ===============================
   Blog Section Styles
   =============================== */
.blog-intro, .newsletter, .categories, .recent-posts {
  background: #fff;
  border-radius: 13px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 3px 13px rgba(13,35,80,0.06);
}
.search-bar {
  width: 100%;
  max-width: 360px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid #E2E3E8;
  background: #f5f6fa;
  font-size: 1rem;
  color: #0D2350;
  margin-top: 14px;
  margin-bottom: 10px;
  transition: border 0.15s;
}
.search-bar:focus {
  border: 1.5px solid #0D2350;
}
.post-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.post-preview {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 13px 0 rgba(13, 35, 80, 0.06);
  padding: 22px 18px 15px 18px;
  max-width: 340px;
  min-width: 220px;
  flex: 1 0 230px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: box-shadow 0.19s, transform 0.17s;
  margin-bottom: 20px;
}
.post-link {
  color: #28729A;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1.5px solid #F1C376;
  padding: 2px 2px 0 0;
  transition: color 0.18s, border-bottom .18s;
}
.post-link:hover, .post-link:focus {
  color: #0D2350;
  border-bottom: 1.5px solid #28729A;
}
@media (max-width: 800px) {
  .post-previews {
    flex-direction: column;
    gap: 13px;
  }
  .post-preview {
    max-width: 100%;
    min-width: 0;
  }
}
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}
.category-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.07rem;
  color: #28729A;
  margin-bottom: 0;
  background: #fffbe7;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(41,75,130,0.08);
}
.newsletter input[type="email"] {
  width: 100%;
  max-width: 330px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #e2e3e8;
  background: #f5f6fa;
  font-size: 1rem;
  color: #0D2350;
  margin-top: 14px;
  margin-bottom: 10px;
  transition: border 0.14s;
}
.newsletter input[type="email"]:focus {
  border: 1.5px solid #0D2350;
}
.newsletter-benefits {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #28729A;
}

/* ===============================
   Portfolio Section
   =============================== */
.portfolio, .client-logos {
  background: #fff;
  border-radius: 13px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 3px 13px rgba(13,35,80,0.06);
}
.project-category-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.project-category-filters button {
  background: #F1C376;
  color: #0D2350;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 8px 19px;
  cursor: pointer;
  font-size: 1rem;
  transition: background .16s, color .18s;
}
.project-category-filters button:hover,
.project-category-filters button.selected {
  background: #28729A;
  color: #fff;
}
.project-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.project-highlight {
  flex: 1 0 230px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(13,35,80,0.07);
  padding: 22px 16px 10px 18px;
  background: #fafaff;
  margin-bottom: 20px;
  min-width: 210px;
  max-width: 340px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-category {
  display: inline-block;
  font-size: 0.97rem;
  color: #28729A;
  background: #f2f4fb;
  padding: 4px 12px;
  border-radius: 9px;
  margin-top: 10px;
  font-family: 'Montserrat', serif;
}
@media (max-width: 750px) {
  .project-list {
    flex-direction: column;
    gap: 13px;
  }
  .project-highlight {
    max-width: 100%;
    min-width: 0;
  }
}
.logo-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 19px;
}
.logo-grid span {
  background: #f8f7f3;
  color: #0D2350;
  font-family: 'Montserrat', serif;
  padding: 8px 18px;
  border-radius: 6px;
  box-shadow: 0 0.5px 4px 0 rgba(41,75,130,0.04);
  font-size: 1.06rem;
  margin-bottom: 5px;
}
@media (max-width: 650px) {
  .logo-grid {
    flex-direction: column;
    gap: 11px;
    align-items: flex-start;
  }
}


/* ===============================
   Contact, Map, FAQ Section
   =============================== */
.contact-section, .map-section, .faq-section {
  background: #fff;
  border-radius: 13px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 3px 13px rgba(13,35,80,0.06);
}
.contact-details p {
  display: flex;
  align-items: center;
  font-size: 1.04rem;
  gap: 10px;
  margin-bottom: 12px;
}
.contact-details img {
  width: 22px;
}
.address-details, .directions-text {
  padding: 12px 0 0 0;
  color: #222;
  font-size: 1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list li {
  border-bottom: 1px solid #eee6d6;
  padding-bottom: 18px;
  margin-bottom: 8px;
}
.faq-question {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  color: #28729A;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.04rem;
}
.faq-question img {
  width: 19px;
}
.faq-answer {
  font-size: 1rem;
  color: #222;
  margin-left: 28px;
  padding-top: 3px;
}

/* ===============================
   Footer Styles
   =============================== */
footer {
  background: #0D2350;
  color: #fff;
  margin-top: 32px;
  padding-top: 26px;
  letter-spacing: 0.01em;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px 20px 24px;
  border-bottom: 1px solid #253c62;
}
.footer-top img {
  height: 40px;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1rem;
}
.footer-nav a {
  color: #F1C376;
  transition: color 0.16s, text-decoration 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  padding: 20px 24px 12px 24px;
  font-size: 1rem;
  color: #f6e7ca;
  align-items: center;
}
.footer-bottom div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom img {
  width: 18px;
}
.footer-copy {
  text-align: center;
  color: #c1bdd6;
  font-size: 0.96rem;
  padding: 6px 0 16px 0;
  font-family: 'Open Sans', serif;
  letter-spacing: 0.003em;
}
@media (max-width: 600px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    font-size: 0.97rem;
    align-items: flex-start;
  }
}

/* ===============================
   Responsive Section Padding & Content
   =============================== */
@media (max-width: 650px) {
  .section,
  .features,
  .about,
  .about-section,
  .services,
  .team,
  .timeline,
  .testimonials,
  .portfolio,
  .client-logos,
  .contact-section,
  .map-section,
  .faq-section,
  .legal-section,
  .newsletter,
  .categories,
  .recent-posts,
  .blog-intro,
  .thank-you-section {
    padding: 22px 6px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 7px;
  }
}

/* ===============================
   Cookie Consent Banner & Modal
   =============================== */
.cookie-banner {
  display: flex;
  align-items: center;
  gap: 21px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9009;
  background: #fff;
  color: #222;
  border-top: 2px solid #F1C376;
  box-shadow: 0 -2px 16px rgba(13,35,80,0.14);
  padding: 19px 32px 17px 32px;
  font-size: 1.04rem;
  font-family: 'Open Sans', Georgia, serif;
  min-height: 68px;
  animation: slideupBanner 0.6s cubic-bezier(.55,.38,.42,1.01);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 10px !important;
    font-size: 0.96rem;
  }
}
@keyframes slideupBanner {
  0% { transform: translateY(100%); opacity: 0; }
  80% { opacity: 0.7; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 13px;
}
.cookie-banner button {
  font-family: 'Montserrat', serif;
  font-size: 0.98rem;
  border-radius: 7px;
  padding: 8px 18px;
  background: #F1C376;
  color: #0D2350;
  border: none;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: background 0.18s, color 0.16s, box-shadow 0.14s;
  margin-right: 4px;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #28729A;
  color: #fff;
  box-shadow: 0 4px 18px rgba(13,35,80,0.17);
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #28729A;
  border: 1.1px solid #28729A;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #28729A;
  color: #fff;
}

.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13,35,80,0.33);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.45s cubic-bezier(.56,.16,.42,1.03);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  min-width: 320px;
  max-width: 430px;
  padding: 40px 33px 28px 33px;
  box-shadow: 0 9px 54px rgba(41,75,130,0.14);
  font-family: 'Open Sans', Georgia, serif;
  font-size: 1rem;
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
  animation: popupModal 0.7s cubic-bezier(.57,0,.42,1.09);
}
@keyframes popupModal {
  0% { transform: scale(0.7) translateY(120px); opacity: 0.2; }
  80% { opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  margin-top: 0;
  color: #0D2350;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 14px 0;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-family: 'Montserrat', serif;
  font-size: 1.04rem;
  color: #28729A;
  background: #f8f7f3;
  border-radius: 9px;
  padding: 10px 18px 10px 18px;
}
.cookie-category-toggle {
  position: relative;
}
.cookie-checkbox {
  appearance: none;
  background: #f1f1f3;
  border: 2px solid #28729A;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  cursor: pointer;
  transition: border 0.14s, background 0.16s;
}
.cookie-checkbox:checked {
  background: #28729A;
  border: 2px solid #F1C376;
}
.cookie-checkbox[disabled], .cookie-checkbox[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 21px;
  right: 21px;
  background: transparent;
  border: none;
  font-size: 1.9rem;
  color: #0D2350;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: #F1C376;
  color: #0D2350;
}
@media (max-width: 540px) {
  .cookie-modal .cookie-modal-content {
    min-width: 0;
    max-width: 98vw;
    padding: 25px 4vw 12vw 4vw;
  }
}

/* ===============================
   Misc Layout Utilities
   =============================== */
.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;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========== Spacing Patterns ========== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* =========== Responsive Flex Direction =========== */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
}

/* ===============================
   Microinteractions & Effects
   =============================== */
button, .cta-btn, input, .project-category-filters button, .cookie-banner button, .cookie-modal button {
  transition: background 0.19s, color 0.16s, box-shadow 0.16s, transform 0.14s, border 0.11s;
}
:focus-visible {
  outline: 2px solid #F1C376;
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #afaca0; }
:-moz-placeholder { color: #afaca0; }
::-moz-placeholder { color: #afaca0; }
:-ms-input-placeholder { color: #afaca0; }
::placeholder { color: #afaca0; opacity: 1; }

/* ===============================
   Accessibility Contrast Fixes for Testimonials
   =============================== */
.testimonial-card, .testimonials .testimonial-card, .portfolio .testimonial-card {
  background: #fff;
  color: #222;
}
.testimonial-card p, .testimonial-meta { color: #0D2350; }

/* ===============================
   Print Styles, Hide Irrelevant */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, header, .footer-nav, .footer-bottom, .footer-copy { display: none !important; }
}
