/* === 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;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.7;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FAFAFA;
  color: #243855;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #243855;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #D0B37F;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 8px;
}

/* === BRAND FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  color: #243855;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 30px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

p, ul, ol, .text-section, .legal-text {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #243855;
}
.subheadline {
  font-size: 1.25rem;
  color: #243855;
  opacity: 0.9;
  font-weight: 400;
  margin-bottom: 24px;
}
strong {
  font-weight: 600;
}

/* === GEOMETRIC STRUCTURED HERO + BUTTONS === */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #243855;
  color: #FAFAFA;
  border: none;
  border-radius: 0;
  padding: 14px 36px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px 0 rgba(36,56,85,0.08);
  transition: background .2s, color .2s, box-shadow .2s, transform .1s;
  outline: none;
  position: relative;
  clip-path: polygon(0 0, 98% 0, 100% 100%, 2% 100%);
}
.cta-btn:hover, .cta-btn:focus {
  background: #D0B37F;
  color: #243855;
  box-shadow: 0 8px 20px 0 rgba(36,56,85,0.18);
  transform: translateY(-2px) scale(1.03);
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FAFAFA;
}
@media (max-width: 768px) {
  .section {
    padding: 26px 8px;
  }
  .container {
    padding: 0 8px;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
}
.services-list, .benefits-list, .recent-posts-list, .blog-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (max-width: 768px) {
  .content-wrapper {
    gap: 16px;
  }
}

/* === STRUCTURED FLEXBOX GRIDS === */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
  justify-content: space-between;
}
.feature {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px 0 rgba(36,56,85,0.07);
  border: 2px solid #eaeaea;
  padding: 32px 18px 26px 18px;
  flex: 1 1 220px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  clip-path: polygon(0 0, 98% 0, 100% 100%, 2% 100%);
  transition: box-shadow .18s, border-color .18s;
}
.feature img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}
.feature:hover, .feature:focus-within {
  border-color: #D0B37F;
  box-shadow: 0 8px 24px 0 rgba(36,56,85,0.14);
}

@media (max-width: 900px) {
  .features-grid {
    gap: 18px;
  }
  .feature {
    padding: 24px 10px 20px 10px;
    min-width: 150px;
  }
}
@media (max-width: 600px) {
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature {
    min-width: 0;
    width: 100%;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(36,56,85,0.08);
  border: 2px solid #f2f2f2;
  padding: 30px 20px 24px 20px;
  flex: 1 1 300px;
  min-width: 200px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .15s, border-color .15s;
  clip-path: polygon(0 0, 98% 0, 100% 100%, 2% 100%);
}
.card:hover, .card:focus-within {
  border-color: #D0B37F;
  box-shadow: 0 8px 20px 0 rgba(36,56,85,0.16);
}

.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;
    align-items: flex-start;
    gap: 18px;
  }
}

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

/* === TESTIMONIALS / REVIEWS === */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  background: #fff;
  border: 2px solid #e6e7ea;
  border-radius: 10px;
  box-shadow: 0 2px 16px 0 rgba(36,56,85,0.10);
  padding: 24px 20px;
  flex: 1 1 290px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  transition: border-color .16s, box-shadow .16s;
  color: #243855;
  z-index: 1;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: #D0B37F;
  box-shadow: 0 7px 22px 0 rgba(36,56,85,0.17);
}
.testimonial-card p {
  font-size: 1.05rem;
  font-style: italic;
  color: #243855;
  margin-bottom: 8px;
  text-align: center;
}
.testimonial-meta {
  width: 100%;
  font-size: 0.97rem;
  color: #243855;
  text-align: right;
  opacity: .90;
}
@media (max-width: 700px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
  }
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(100deg, #FAFAFA 65%, #e9e8e6 100%);
  padding: 0 0 44px 0;
  position: relative;
  z-index: 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.hero .content-wrapper {
  gap: 16px;
  align-items: flex-start;
}
.hero h1 {
  color: #243855;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 0;
  line-height: 1.08;
}
.hero .cta-btn {
  margin-top: 20px;
}
@media (max-width: 550px) {
  .hero .container {
    min-height: 200px;
  }
  .hero h1 {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }
}

/* === CARD & CASE STUDY STYLES === */
.case-study-summaries, .case-study {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-study {
  background: #fff;
  border: 2px solid #edf1f2;
  border-radius: 8px;
  box-shadow: 0 1px 6px 0 rgba(36,56,85,0.06);
  padding: 18px 14px 12px 14px;
  margin-bottom: 20px;
  position: relative;
  clip-path: polygon(0 0, 99% 0, 100% 100%, 2% 100%);
  transition: border-color .16s, box-shadow .15s;
}
.case-study:hover, .case-study:focus-within {
  border-color: #D0B37F;
  box-shadow: 0 5px 16px 0 rgba(36,56,85,0.13);
}

/* === LISTS & LEGAL === */
.legal-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #243855;
}

/* === ADDRESS, CONTACT, NEWSLETTER === */
.address-details, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  color: #243855;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #f4f6fa;
  border-radius: 8px;
  padding: 16px 16px 18px 16px;
  margin-top: 8px;
}

/* === FOOTER === */
footer {
  background: #243855;
  color: #FAFAFA;
  padding: 0;
  margin-top: auto;
  font-size: 1rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 28px 20px;
}
.footer-logo img {
  width: 60px;
  height: auto;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: #D0B37F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 0;
  transition: color .15s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #fae8be;
}
.footer-contact {
  color: #FAFAFA;
  font-size: 1rem;
  gap: 6px;
}
.footer-contact img {
  margin-right: 4px;
}
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    padding: 32px 10px 22px 10px;
  }
}

/* === HEADER & NAV === */
header {
  width: 100%;
  background: #FAFAFA;
  border-bottom: 2px solid #eaebee;
  display: flex;
  align-items: center;
  padding: 0 0 0 0;
  position: relative;
  min-height: 70px;
  z-index: 15;
}
header > a > img {
  margin-left: 22px;
  margin-top: 8px;
  max-height: 52px;
}
.main-nav {
  display: flex;
  gap: 26px;
  margin-left: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  letter-spacing: .04em;
  color: #243855;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 2px;
  position: relative;
  transition: color .18s;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 3px;
  background: #D0B37F;
  position: absolute;
  left: 0; bottom: -4px;
  transition: width .22s cubic-bezier(.4,0,.2,1);
  border-radius: 2px;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: #D0B37F;
}

header .cta-btn {
  margin-left: auto;
  margin-right: 30px;
  font-size: 1.05rem;
  padding: 13px 34px;
  min-width: 153px;
}
/* Burger button */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 950px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #243855;
    color: #FAFAFA;
    border: none;
    font-size: 2.1rem;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 17px 0 0;
    align-self: center;
    cursor: pointer;
    z-index: 130;
    transition: background .13s, color .13s, box-shadow .15s;
    box-shadow: 0 1px 7px 0 rgba(36,56,85,0.08);
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #D0B37F;
    color: #243855;
  }
  header .cta-btn {
    display: none;
  }
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #243855;
  color: #FAFAFA;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform .37s cubic-bezier(.6, 0, .35, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 38px;
  padding-left: 36px;
  padding-right: 18px;
  box-shadow: 0 3px 24px 0 rgba(36,56,85,0.22);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FAFAFA;
  font-size: 2.2rem;
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  z-index: 1210;
  outline: none;
  transition: color .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #D0B37F;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
}
.mobile-nav a {
  color: #FAFAFA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 8px 2px;
  border-radius: 4px;
  transition: background .11s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #D0B37F;
  color: #243855;
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none;
  }
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #243855;
  color: #FAFAFA;
  padding: 20px 20px 20px 24px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  z-index: 20000;
  box-shadow: 0 -1px 20px 2px rgba(36,56,85,.13);
  gap: 20px;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: transform .3s cubic-bezier(.45,.03,.38,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner .cookie-info {
  flex: 1 1 280px;
  font-size: 1rem;
  margin-right: 20px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: #D0B37F;
  color: #243855;
  border: none;
  border-radius: 0 6px 0 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 9px 24px;
  margin: 0 2px;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(36,56,85,0.07);
  transition: background .15s, color .15s, transform .08s;
  outline: none;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #FAFAFA;
  color: #243855;
  transform: scale(1.03);
}
.cookie-btn-secondary {
  background: #FAFAFA;
  color: #243855;
  box-shadow: 0 2px 12px 0 rgba(36,56,85,.05);
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #D0B37F;
  color: #243855;
}
@media (max-width: 770px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 10px 14px 10px;
  }
  .cookie-banner .cookie-info {
    margin-right: 0;
  }
}

/* === COOKIE BANNER MODAL === */
.cookie-modal-overlay {
  position: fixed;
  z-index: 20010;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,56,85,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s cubic-bezier(.42,0,.61,1);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #FAFAFA;
  color: #243855;
  border-radius: 12px;
  padding: 33px 30px 22px 30px;
  max-width: 360px;
  width: 96vw;
  box-shadow: 0 8px 40px 0 rgba(36,56,85,0.21);
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  position: relative;
}
.cookie-modal h2 {
  color: #243855;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  margin-bottom: 5px;
}
.cookie-modal input[type="checkbox"]:not(:disabled) {
  accent-color: #243855;
  width: 18px; height: 18px;
}
.cookie-modal input[type="checkbox"][disabled] {
  accent-color: #a7b4ca;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 18px; top: 18px;
  background: none;
  border: none;
  color: #243855;
  font-size: 1.3rem;
  cursor: pointer;
  transition: color .14s;
  padding: 2px 5px;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: #D0B37F;
}

/* === FORMS (newsletter etc.) === */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: 2px solid #e2e5ea;
  border-radius: 0 8px 0 8px;
  padding: 8px 11px;
  outline: none;
  margin-bottom: 12px;
  background: #fff;
  color: #243855;
  transition: border-color .17s, box-shadow .17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #D0B37F;
  box-shadow: 0 2px 10px 0 rgba(36,56,85,0.08);
}

/* === ANIMATIONS & INTERACTIONS === */
.cta-btn, .feature, .card, .testimonial-card, .cookie-btn, .mobile-menu-toggle, .footer-links a {
  transition: background .17s, color .16s, box-shadow .15s, border-color .15s, transform .12s;
}

@media (max-width: 575px) {
  h1 { font-size: 1.18rem; }
  h2 { font-size: 1.05rem; }
  .container { padding: 0 4px; }
  .footer-content, .section, header { padding: 0 4px; }
}

/* === ARBITRARY SPACING SAFETY FOR QUALITY === */
section, .content-wrapper, .feature, .card, .testimonial-card, .case-study {
  margin-bottom: 20px;
}

/* === Z-INDEX SAFETY === */
header { z-index: 1002; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 20000; }
.cookie-modal-overlay { z-index: 20010; }

/* === STRUCTURED GEOMETRIC DECORATIVE === */
.feature, .card, .testimonial-card, .case-study {
  border-radius: 10px 0 10px 0;
  border-width: 2.5px;
}

/* === HELPER CLASSES === */
.mb-24 { margin-bottom: 24px !important; }
.mt-24 { margin-top: 24px !important; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* === UTILITY: HIDE (for cookie/modal state mgmt) === */
.hide { display: none !important; }

/* --- END --- */
