/* --- CSS RESET & BASE STYLES --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #162626;
  background: #F1F1F1;
  line-height: 1.65;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
  border-style: none;
}
a {
  color: #216869;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D8B325;
}
ul, ol {
  padding-left: 1.5em;
}
button, .cta-button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

/* --- BRAND COLORS & TYPOGRAPHY (VIBRANT ENERGETIC) --- */
:root {
  --color-primary: #216869;
  --color-primary-dark: #185457;
  --color-secondary: #F1F1F1;
  --color-accent: #D8B325;
  --color-accent-dark: #B89118;
  --color-bg: #FFFFFF;
  --color-grey: #ededed;
  --color-error: #FC3A52;
  --color-success: #03C988;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: -1px;
  color: #216869;
  text-shadow: 0 2px 12px #d8b32533;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.5px;
  color: #185457;
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #185457;
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #216869;
}
p, li, address, blockquote, q, label, strong, span {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
}
.subheadline {
  font-size: 1.25rem;
  color: #216869;
  margin-bottom: 12px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}


/* --- LAYOUT CONTAINER & FLEXBOX SYSTEM --- */
.container {
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Section Spacing */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: 24px;
  box-shadow: 0 4px 28px 0 #21686910, 0 1.5px 12px 0 #D8B32510;
  transition: box-shadow 0.23s;
}
section:last-child {margin-bottom: 0;}
@media (max-width: 991px) {
  section {padding: 32px 10px;}
}

/* --- HEADER (Flex Nav) --- */
header {
  background: #FFFFFF;
  border-bottom: 4px solid var(--color-accent);
  box-shadow: 0 2px 18px 0 #21686912;
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 24px;
}
.logo img {
  height: 44px; width: auto; display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}
nav ul li a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #216869;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  position: relative;
  z-index: 2;
}
nav ul li a:hover, nav ul li a:focus, nav ul li.current a {
  background: var(--color-accent);
  color: #162626;
}

/* CTA BUTTON / BUTTONS */
.cta-button {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  margin-left: 20px;
  border: none;
  box-shadow: 0 4px 14px #21686940;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  display: inline-block;
  outline: none;
  position: relative;
  z-index: 2;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-accent);
  color: #162626;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px #D8B32533;
}
.cta-button.secondary {
  background: var(--color-accent);
  color: #162626;
  box-shadow: 0 4px 8px #D8B3251c;
}
.cta-button.secondary:hover, .cta-button.secondary:focus {
  background: var(--color-primary);
  color: #fff;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  padding: 10px;
  border-radius: 12px;
  margin-left: 16px;
  z-index: 40;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: #162626;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 4px 44px #21686933;
  transform: translateX(-110vw);
  transition: transform 0.45s cubic-bezier(.7,0,.3,1);
  z-index: 1200;
  padding: 0 0 0 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-accent);
  color: #162626;
  font-size: 2.1rem;
  padding: 8px 16px;
  border-radius: 8px;
  align-self: flex-end;
  margin: 30px 32px 8px 0;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
  margin-top: 24px;
  padding: 0 40px;
}
.mobile-nav a {
  padding: 18px 0;
  font-size: 1.22rem;
  font-family: var(--font-display);
  color: #185457;
  letter-spacing: 0.02em;
  transition: background 0.18s;
  border-bottom: 1px solid #ededed;
}
.mobile-nav a:last-child {border-bottom: none;}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
  border-radius: 5px;
  padding-left: 1.4rem;
}

@media (max-width: 991px) {
  header .container {
    flex-wrap: wrap;
    height: auto;
    gap: 8px;
    padding-top: 6px; padding-bottom: 6px;
  }
  nav, nav ul {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* --- FLEX GRIDS & CARD SYSTEMS --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin: 18px 0 0 0;
}
.feature {
  flex: 1 1 276px;
  background: #fff;
  box-shadow: 0 2px 14px #21686914;
  border-radius: 20px;
  padding: 26px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  max-width: 355px;
  transition: box-shadow 0.18s, transform 0.15s;
  margin-bottom: 20px;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  filter: saturate(1.25) drop-shadow(0 2px 8px #d8b32526);
  background: #F1F1F1;
  border-radius: 10px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 34px #D8B32533, 0 1.5px 12px #21686912;
  transform: translateY(-6px) scale(1.038);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: space-between;
}
.service {
  flex: 1 1 268px;
  background: #fff;
  box-shadow: 0 2px 12px #21686914;
  border-radius: 18px;
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  min-width: 200px;
  max-width: 345px;
  transition: box-shadow 0.16s, transform 0.15s;
}
.service .cta-button.secondary {
  margin-top: 10px;
}
.service:hover, .service:focus-within {
  box-shadow: 0 8px 34px #D8B32522, 0 3px 18px #21686913;
  transform: translateY(-5px) scale(1.025);
}
.price, .price-info {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-accent);
  margin-top: 10px;
  font-size: 1.15rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.faq-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #2168690c;
  padding: 22px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.faq-item h3 {
  margin-bottom: 8px;
  color: #216869;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: 0 4px 24px #21686919;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-member {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px #2168690e;
  padding: 22px 18px 16px 18px;
  flex: 1 1 245px;
  min-width: 185px;
  max-width: 295px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.16s, transform 0.14s;
}
.team-member h3 {
  font-size: 1.1rem;
  color: #185457;
}
.team-member:hover, .team-member:focus-within {
  box-shadow: 0 8px 26px #21686920, 0 3px 12px #d8b32510;
  transform: translateY(-3px) scale(1.025);
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-list article {
  background: #fff;
  box-shadow: 0 2px 12px #21686913;
  border-radius: 18px;
  padding: 22px 18px;
  flex: 1 1 300px;
  min-width: 180px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.14s;
}
.blog-list article:hover {
  box-shadow: 0 6px 18px #D8B32529;
}
.blog-list article h3 {
  font-size: 1.2rem;
  color: #216869;
}
.blog-list a {
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 4px;
  transition: color 0.15s;
}
.blog-list a:hover { color: var(--color-primary); }

/* Blog Filter */
.blog-filter {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.blog-filter input[type='text'] {
  padding: 8px 14px;
  border: 1.5px solid #C6ECE7;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: 0 1px 4px #D8B32519 inset;
  width: 200px;
}

/**** CTA BANNER ****/
.cta-banner {
  background: linear-gradient(92deg, #F1F1F1 0%, #D8B3250d 85%);
  border: 2px solid var(--color-accent);
  border-radius: 22px;
  box-shadow: 0 4px 32px #D8B32522;
  padding: 38px 24px 34px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta-banner h2 {
  color: #216869;
  font-size: 2.2rem;
  font-family: var(--font-display);
}
.cta-banner p {
  color: #185457;
  font-size: 1.18rem;
}

/**** TESTIMONIALS ****/
.testimonials-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px #21686919;
  padding: 20px 22px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
  max-width: 365px;
  gap: 12px;
  position: relative;
  margin-bottom: 20px;
  z-index: 2;
  transition: box-shadow 0.15s, transform 0.13s;
}
.testimonial-card p {
  font-size: 1.04rem;
  color: #162626;
}
.testimonial-card strong {
  font-size: 1.07rem;
  color: var(--color-primary);
}
.stars {
  color: var(--color-accent-dark);
  font-family: var(--font-display);
  font-size: 1.14rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 24px #D8B3251c, 0 1.7px 9px #2168690e;
  transform: translateY(-4px) scale(1.024);
}

/* --- CONTENT UTILITIES & LISTS --- */
blockquote, q {
  font-style: italic;
  color: #216869;
  border-left: 4px solid #D8B325;
  padding-left: 16px;
  margin-bottom: 16px;
}
ul {
  margin-bottom: 12px;
}

/**** ADDRESS, CONTACT INFO ****/
address {
  font-style: normal;
  color: #216869;
  margin-bottom: 8px;
}

/* --- FOOTER --- */
footer {
  background: #216869;
  color: #fff;
  padding: 40px 0 0 0;
  margin-top: 60px;
  box-shadow: 0 -3px 24px #21686919 inset;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 44px;
}
.footer-left, .footer-mid, .footer-right {
  flex: 1 1 185px;
  min-width: 185px;
}
.footer-left img {
  height: 42px; width: auto; margin-bottom: 10px;
}
.footer-left p {
  color: #EEEEEE;
  font-size: 1.04rem;
}
.footer-mid nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}
.footer-mid ul {
  list-style: none;
  flex-direction: column;
  gap: 0;
  padding-left: 0;
}
.footer-mid li {
  margin-bottom: 5px;
}
.footer-mid a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.98rem;
  transition: color 0.13s, text-decoration 0.18s;
}
.footer-mid a:hover, .footer-mid a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}
.footer-right h4 {
  color: var(--color-accent);
  margin-bottom: 10px;
}
.footer-right address, .footer-right p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 7px;
}
.footer-right a {
  color: var(--color-accent);
  word-break: break-all;
}
footer {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}


/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 991px) {
  .features-grid, .service-list, .blog-list, .testimonials-wrapper, .team-list {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .container {
    padding-left: 10px; padding-right: 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    padding-bottom: 18px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .cta-banner {
    padding: 0 0.5rem;
  }
  h1, .h1 {
    font-size: 2.08rem;
  }
  h2, .h2 {
    font-size: 1.42rem;
  }
  .cta-banner h2 {
    font-size: 1.4rem;
  }
  .features-grid, .service-list, .blog-list, .testimonials-wrapper, .team-list {
    gap: 16px;
  }
  section {
    padding: 22px 5px;
    border-radius: 16px;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 1.3rem;
  }
  .cta-button {
    padding: 12px 20px;
    font-size: 0.98rem;
  }
}


/* --- ANIMATIONS, MICRO-INTERACTIONS --- */
.card, .feature, .service, .team-member, .testimonial-card, .faq-item, .blog-list article {
  transition: box-shadow 0.21s cubic-bezier(.6,.18,.2,1),
              transform 0.18s cubic-bezier(.6,.18,.2,1);
}
.cta-button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.17s, transform 0.13s;
}
.mobile-menu {
  transition: transform 0.45s cubic-bezier(.7,0,.3,1);
}


/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #fff;
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 -4px 32px #D8B32522, 0 -1.5px 8px #21686910;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 2000;
  padding: 22px 16px 22px 16px;
  gap: 24px;
  animation: slideInBanner 0.57s cubic-bezier(.46,.89,.4,1.22);
}
@keyframes slideInBanner {
  from {transform: translateY(120%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-consent-banner p {
  color: #216869;
  font-size: 1rem;
  font-family: var(--font-body);
  flex: 3 1 300px;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: flex-end;
  flex: 1 1 140px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: 18px;
  padding: 10px 18px;
  margin: 0;
  min-width: 120px;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 10px #21686922;
  transition: background 0.14s, color 0.14s;
}
.cookie-btn:active {
  transform: scale(0.97);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: #162626;
}
.cookie-btn.reject {
  background: #FC3A52;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-accent);
  color: #162626;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  color: #FC3A52;
  background: #fff;
  border: 1.5px solid #FC3A52;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  color: #216869; background: #ededed;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 16px;
    padding: 18px 8px;
  }
  .cookie-consent-actions { justify-content: flex-start; gap: 8px; }
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 3050;
  inset: 0;
  background: #185457e9;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  animation: cookieModalFadeIn 0.41s cubic-bezier(.6,.18,.2,1);
}
@keyframes cookieModalFadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  padding: 38px 24px 24px 24px;
  max-width: 410px;
  width: 97vw;
  box-shadow: 0 16px 48px #21686941, 0 2px 25px #D8B32524;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(.52,1.37,.48,1.04);
}
@keyframes modalPop {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}
.cookie-modal-content h2 {
  color: #216869;
  font-size: 1.41rem;
  margin-bottom: 10px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-toggle {
  accent-color: var(--color-accent);
  width: 24px;
  height: 24px;
}
.cookie-modal-content label {
  font-size: 1.04rem;
  font-family: var(--font-body);
  color: #185457;
}
.cookie-modal-btns {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 1.6rem;
  background: #fff;
  color: #216869;
  border: none;
  border-radius: 7px;
  padding: 2px 10px;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal-close:hover {
  background: #C6ECE7;
}

/* --- UTILS & FOCUS STATES --- */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 1.5px;
}
[tabindex="0"]:focus {
  outline: 2.5px solid var(--color-accent);
}

/************************************************************
 * FLEXBOX UTILITY CLASSES FOR LAYOUT AS MANDATED
 ************************************************************/
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
  }
}

/************************************************************
 * END FLEXBOX UTILITY CLASSES
 ************************************************************/


/* --- PRINT FRIENDLY ---*/
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu {display: none !important;}
  section {box-shadow: none; background: #fff !important;}
}
