/*=== 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,
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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F7F2EC;
  color: #132D3B;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: #F7F2EC;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}
ul, ol {
  list-style: none;
}
a {
  color: #205374;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #6B8742;
  text-decoration: underline;
}

/*=== BRAND VARIABLES (with fallback) ===*/
:root {
  --color-primary: #205374;
  --color-secondary: #6B8742;
  --color-accent: #F7F2EC;
  --color-dark: #132D3B;
  --color-highlight: #EA5D2D;
  --color-bg: #F7F2EC;

  --font-display: 'Oswald', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/*=== TYPOGRAPHY ===*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.13;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, ul, ol, li {
  font-family: var(--font-body);
  color: var(--color-dark);
}
p {
  margin-bottom: 18px;
  font-size: 1rem;
}
strong, b {
  font-weight: 700;
  color: var(--color-secondary);
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.text-section {
  align-items: flex-start;
  justify-content: center;
}

/*=== HEADER & NAVIGATION ===*/
header {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
  padding: 0;
  box-shadow: 0 4px 16px rgba(32,83,116,0.07);
  z-index: 22;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 18px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
header nav a {
  color: #fff;
  font-family: var(--font-display);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.075rem;
  letter-spacing: 0.02em;
  padding: 6px 0 5px 0;
  border-bottom: 2.5px solid transparent;
  transition: border-color .2s, color .18s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2.5px solid var(--color-secondary);
}
header a.cta.primary {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 24px;
  padding: 11px 28px;
  font-size: 1.025rem;
  margin-left: 26px;
  box-shadow: 0 2px 14px 0 rgba(32,83,116,0.09);
  transition: background .22s, box-shadow .19s, color .22s;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-block;
}
header a.cta.primary:hover, header a.cta.primary:focus {
  background: #547031;
  color: #fff;
  box-shadow: 0 4px 17px 0 rgba(107,135,66,0.16);
}
header img {
  height: 44px;
  width: auto;
  margin-right: 20px;
}

/*=== MOBILE NAVIGATION ===*/
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 8px;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 50;
  transition: background .15s, color .15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-highlight);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 0 32px 0 0;
  transform: translateX(-110vw);
  transition: transform 0.36s cubic-bezier(.71,.12,.34,1.23);
  z-index: 1200;
  opacity: 0.985;
  box-shadow: 5px 0 20px 0 rgba(32,83,116,0.24);
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  background: var(--color-highlight);
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  margin: 28px 0 20px 20px;
  padding: 0 14px 2px 14px;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  align-self: flex-start;
  z-index: 1250;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fff;
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-left: 28px;
  margin-top: 16px;
  margin-bottom: 32px;
  width: calc(100vw - 60px);
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 2px solid rgba(255,255,255,0.13);
  text-decoration: none;
  transition: color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
}

/*=== HERO, SECTION, SPACING ===*/
section {
  background: none;
}
main {
  width: 100%;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  .section, section {
    padding: 28px 6vw;
  }
}

/*=== FLEX PATTERNS ===*/
.card-container,
.card-grid,
.feature-grid,
.team-list,
.service-cards,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card,
.service-card,
.team-member {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 20px 0 rgba(32,83,116,0.09);
  min-width: 220px;
  max-width: 340px;
  padding: 28px 22px 24px 22px;
  transition: box-shadow .22s, transform .2s;
}
.service-card:hover,
.team-member:hover,
.card:hover {
  box-shadow: 0 8px 48px 0 rgba(32,83,116,0.15);
  transform: translateY(-7px) scale(1.03);
}

.feature-item, .feature-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 13px 0 rgba(107,135,66,0.08);
  padding: 21px 16px 18px 16px;
  min-width: 162px;
  flex: 1 1 210px;
  margin-bottom: 0;
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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: 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 16px 0 rgba(107,135,66,0.13);
  padding: 20px 28px 18px 24px;
  min-width: 250px;
  max-width: 520px;
  margin-bottom: 20px;
  font-size: 1.08rem;
  color: #132D3B;
  border-left: 7px solid var(--color-secondary);
  transition: box-shadow .19s, border-color .19s;
}
.testimonial-card strong {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1rem;
  margin-top: 4px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/*=== BUTTONS & CTAs ===*/
.cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  border-radius: 28px;
  border: none;
  box-shadow: 0 2px 15px 0 rgba(32,83,116,0.09);
  padding: 13px 34px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-top: 9px;
  transition: background .18s, color .19s, box-shadow .18s, border .14s;
}
.cta.primary {
  background: var(--color-primary);
  color: #fff;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-highlight);
  color: #fff;
  box-shadow: 0 4px 25px 0 rgba(234,93,45,0.11);
}
.cta.secondary {
  background: var(--color-secondary);
  color: #fff;
  margin-left: 0px;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #547031;
  color: #fff;
  box-shadow: 0 8px 30px 0 rgba(107,135,66,0.18);
}

/*=== FOOTER ===*/
footer {
  width: 100%;
  background: var(--color-primary);
  padding: 34px 0 24px 0;
  color: #fff;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}
footer nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: color .18s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
}
footer .contact-details {
  font-size: 0.98rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
footer .contact-details a { color: var(--color-secondary); }
footer img {
  height: 39px; width: auto; margin-bottom: 12px; }


/*=== COOKIE CONSENT BANNER ===*/
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 32px -12px rgba(32,83,116,0.18);
  border-top: 4px solid var(--color-secondary);
  width: 100vw;
  z-index: 1300;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 14vw 14px 7vw;
  font-size: 1rem;
  animation: cookie-slide-in 0.54s cubic-bezier(.71,.12,.34,1.23);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100vh); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-banner p {
  margin-bottom: 0;
  color: #132D3B;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
#cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  padding: 11px 22px;
  margin: 0;
  cursor: pointer;
  transition: background .18s, color .14s, box-shadow .16s;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 10px 0 rgba(32,83,116,0.08);
}
#cookie-banner .cookie-settings {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
#cookie-banner .cookie-settings:hover, #cookie-banner .cookie-settings:focus {
  background: var(--color-primary);
  color: #fff;
}
#cookie-banner .accept {
  background: var(--color-secondary);
  color: #fff;
}
#cookie-banner .accept:hover, #cookie-banner .accept:focus {
  background: #205374;
  color: #fff;
}
#cookie-banner .reject {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
#cookie-banner .reject:hover, #cookie-banner .reject:focus {
  background: var(--color-secondary);
  color: #fff;
}

/*=== COOKIE PREFERENCES MODAL ===*/
#cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1.09);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 60px 0 rgba(32,83,116,0.20);
  z-index: 3000;
  min-width: 320px; max-width: 92vw;
  padding: 30px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s cubic-bezier(.71,.12,.34,1.23), transform .25s cubic-bezier(.71,.12,.34,1.23);
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
#cookie-modal h2 {
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f2f2f2;
  margin-bottom: 13px;
}
.cookie-category label {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
}
.cookie-category input[type='checkbox'] {
  width: 26px;
  height: 26px;
  accent-color: var(--color-secondary);
  border-radius: 6px;
  margin-left: 7px;
}
#cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 17px;
  justify-content: flex-end;
  margin-top: 11px;
}
#cookie-modal button {
  border-radius: 24px;
  border: none;
  padding: 10px 19px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 10px 0 rgba(32,83,116,0.08);
  cursor: pointer;
  transition: background .16s, color .14s;
}
#cookie-modal button:hover, #cookie-modal button:focus {
  background: var(--color-secondary);
  color: #fff;
}
#cookie-modal .close-modal {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  margin-right: auto;
}
#cookie-modal .close-modal:hover, #cookie-modal .close-modal:focus {
  background: var(--color-primary);
  color: #fff;
}

/*=== UTILITY: SHADOWS, RADIUS, SPACING ===*/
.rounded {
  border-radius: 22px;
}
.shadow {
  box-shadow: 0 6px 30px rgba(32,83,116,0.11);
}

/*=== VISUAL ELEMENTS / GEOMETRY ===*/
.geometric {
  clip-path: polygon(95% 0, 100% 60%, 100% 100%, 0 100%, 0 0);
  background: var(--color-accent);
}

/*=== MICRO-INTERACTIONS ===*/
.card, .service-card, .team-member, .testimonial-card {
  transition: box-shadow .18s, transform .18s, border-color .14s;
}
.card:hover, .service-card:hover, .team-member:hover, .testimonial-card:hover {
  box-shadow: 0 10px 34px 0 rgba(32,83,116,0.15), 0 1.5px 19px 0 rgba(107,135,66,0.10);
  transform: translateY(-5px) scale(1.025);
  border-color: var(--color-highlight);
}

.cta, button, .cookie-buttons button, #cookie-modal button {
  transition: background .17s, color .15s, box-shadow .14s, border .14s;
}

/*=== RESPONSIVE: MOBILE FIRST ===*/
@media (max-width: 1060px) {
  .container {
    max-width: 98vw;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  header nav { gap: 20px; }
  .service-cards, .feature-grid, .testimonial-slider, .team-list, .content-grid, .card-container {
    gap: 18px;
  }
}
@media (max-width: 860px) {
  .service-cards, .feature-grid, .testimonial-slider, .team-list, .content-grid, .card-container {
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
  }
  .card, .service-card, .team-member, .testimonial-card { max-width: 100%; min-width: 0; }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  header nav { display: none; }
  header .container { flex-direction: row; height: auto; }
  .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; }
  .cta.primary, .cta.secondary {
    padding: 11px 18px;
    font-size: 1rem;
  }
  .service-cards, .feature-grid, .team-list, .testimonial-slider { flex-direction: column; gap: 13px; }
  .card, .service-card, .team-member, .testimonial-card { max-width: 100%; padding: 22px 11px 18px 14px; }
  .feature-item, .feature-grid > div { max-width: 100%; }
  .footer .container { flex-direction: column; gap: 18px; align-items: flex-start; }
  .testimonial-card { padding: 15px 9vw 15px 6vw; }
  .content-wrapper { gap: 12px; }
  .text-image-section, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }
  #cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 14px 5vw 11px 5vw;
    font-size: 0.98rem;
    text-align: left;
  }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.08rem; }
  header img { height: 34px; margin-right: 10px; }
}

/*=== ACCESSIBILITY ===*/
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  z-index: 3050;
}

/*=== PRINT SMALL UTILS ===*/
.hide-mobile, .hidden-mobile { display: initial; }
@media (max-width: 768px) {
  .hide-mobile, .hidden-mobile { display: none !important; }
}

/*=== MISCELLANEOUS ===*/
hr {
  border: none;
  border-top: 1.7px solid #e4e4e4;
  margin: 32px 0;
}

/*=== GEOMETRIC DECORATIVE ELEMENTS ===*/
.section.geometric, .geometric-bg {
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  padding-top: 68px;
}

/*=== STYLING FOR GENERIC ELEMENTS ===*/
blockquote {
  background: #fffddb;
  border-left: 7px solid #ea5d2d;
  padding: 12px 24px;
  border-radius: 15px;
  margin: 0 0 20px 0;
}
code, pre {
  background: #eff3f1;
  color: #205374;
  border-radius: 4px;
  font-size: 0.95em;
  padding: 2px 6px;
}

/*=== FORM, if present ===*/
input, textarea, select {
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  padding: 9px 14px;
  margin-bottom: 13px;
  font-size: 1rem;
  background: #fff;
  color: var(--color-dark);
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
}

/*=== DISABLED ===*/
[disabled], .disabled {
  opacity: 0.6;
  pointer-events: none !important;
}

/*=== Z-INDEX ASSURANCE ===*/
.mobile-menu,
#cookie-banner,
#cookie-modal {
  z-index: 1200;
}

/*=== PREVENT OVERLAPPING, ENSURE BREATHING ROOM ===*/
.card, .service-card, .team-member, .testimonial-card, .feature-item, .feature-grid > div {
  margin-bottom: 20px;
}
.content-wrapper > *, .feature-grid > *, .service-cards > *, .team-list > *, .testimonial-slider > * {
  margin-bottom: 0 !important;
}
.section:last-child, section:last-child, .content-wrapper:last-child {
  margin-bottom: 0;
}

/*=== STAR ICONS for testimonials (if present) ===*/
.testimonial-card div {
  color: #fdaa22;
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 1.1em;
}

/*=== SCROLLBAR ===*/
::-webkit-scrollbar {
  width: 9px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: #c5dce6;
  border-radius: 12px;
}


/*=========== END OF CSS ===========*/
