/* ===== CSS RESET & 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #1A3E5B;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
*:focus {
  outline: 2px solid #29A19C;
  outline-offset: 1px;
}

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

/* ===== GLOBAL VARIABLES & UTILITIES ===== */
:root {
  --brand-primary: #1A3E5B;
  --brand-secondary: #29A19C;
  --brand-accent: #F7F8FA;
  --text-main: #1A3E5B;
  --text-muted: #627287;
  --white: #fff;
  --shadow-sm: 0 2px 8px rgba(26,62,91,0.04);
  --shadow-md: 0 4px 16px rgba(26,62,91,0.09);
  --radius-md: 12px;
  --radius-sm: 6px;
  --gap-section: 60px;
  --gap-card: 20px;
  --gap-grid: 24px;
  --transition-fast: 0.2s cubic-bezier(.4,0,.2,1);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
p, li {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.7;
}
.subheadline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
strong {
  font-weight: 700;
}
small {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ===== HEADER + MAIN NAVIGATION ===== */
header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 99;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
  height: 70px;
  position: relative;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo-link {
  display: flex;
  align-items: center;
  height: 40px;
  margin-right: 16px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav li {
  margin: 0;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-primary);
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color var(--transition-fast);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-secondary);
}
.cta-btn {
  background: var(--brand-secondary);
  color: #fff !important;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  border: none;
  letter-spacing: .7px;
  display: inline-block;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  margin-left: 24px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-md);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-accent);
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
  font-size: 2rem;
  padding: 8px 14px;
  z-index: 110;
  margin-left: 10px;
  transition: background var(--transition-fast);
}
.mobile-menu-toggle:hover {
  background: #eaecef;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247, 248, 250, 0.97);
  box-shadow: -8px 0 24px rgba(26,62,91,0.13);
  z-index: 111;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 0 0;
  background: none;
  font-size: 2.3rem;
  color: var(--brand-primary);
  border: none;
  z-index: 112;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 10vh;
  padding-left: 30px;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--brand-primary);
  font-weight: 700;
  padding: 14px 0;
  border-radius: var(--radius-sm);
  width: fit-content;
  transition: background 0.15s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-secondary);
}
@media (max-width: 1023px) {
  .main-nav ul {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  margin-bottom: var(--gap-section);
  padding: 40px 0 32px 0;
  background: var(--brand-accent);
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.text-section {
  max-width: 650px;
}

/* ===== MINIMALIST SECTION SPACING / LAYOUTS ===== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Features Section, Card Layouts, Testimonials, CTA */
.features, .about, .services, .cta, .contact, .legal {
  margin-bottom: var(--gap-section);
  padding: 40px 0;
  background: none;
}
.accent-bg {
  background: var(--brand-accent);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ===== FLEXBOX COLUMN GRIDS - ONLY FLEX, NO GRID ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 22px 22px 22px;
  min-width: 220px;
  flex: 1 1 230px;
  transition: box-shadow .18s, transform .14s;
}
.feature-item img {
  height: 48px; width: 48px;
  margin-bottom: 12px;
  filter: saturate(0.92);
}
.feature-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px) scale(1.025);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.service-item {
  flex: 1 1 290px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 20px 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow .16s, transform .14s;
}
.service-item strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  font-weight: 700;
}
.service-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.02);
}

/* Testimonial Card Flex */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  margin-top: 14px;
  font-size: 1.1rem;
  flex-wrap: wrap;
  min-width: 270px;
  max-width: 100%;
}
.testimonial-card p {
  flex: 1;
  color: var(--brand-primary);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 0 0 0;
}
.testimonial-card span {
  font-size: .97rem;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
}

/* About / Team / FAQ Blocks */
.team-introduction, .faq-preview {
  margin-bottom: 24px;
}
.team-introduction p,
.faq-preview ul { margin-bottom: 0; }

/* Flexible Grids & Wrappers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  flex: 1 1 270px;
  transition: box-shadow .18s, transform .12s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.015);
}

.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;
  gap: 8px;
}

/* Section rules */
section {
  margin-bottom: var(--gap-section);
}

@media (max-width: 1023px) {
  .feature-grid,
  .service-list,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item,
  .service-item,
  .card,
  .testimonial-card {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
  .section,
  .features, .about, .services, .cta, .contact, .legal {
    padding: 28px 8px;
  }
  .content-wrapper {
    gap: 24px;
  }
  header {
    height: auto;
  }
}

/* ===== GENERIC BUTTONS ===== */
button, .btn, input[type="submit"], input[type="button"] {
  font-family: 'Montserrat', Arial, sans-serif;
}
.btn,
input[type="submit"],
input[type="button"] {
  background: var(--brand-secondary);
  color: #fff;
  padding: 11px 32px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  border: none;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.btn:hover, .btn:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--brand-primary);
  transform: translateY(-1px);
}

/* ===== FOOTER ===== */
footer {
  background: var(--brand-accent);
  border-top: 1px solid #ececec;
  padding: 32px 0 0 0;
  margin-top: var(--gap-section);
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--brand-primary);
  font-size: 1rem;
  opacity: 0.88;
  padding: 5px 0;
  border-radius: var(--radius-sm);
  transition: background 0.14s, color 0.14s;
}
.footer-nav a:hover {
  color: var(--brand-secondary);
  background: #e0eceb;
}
.footer-contact {
  min-width: 200px;
  color: var(--brand-primary);
}
.footer-legal {
  margin-top: 8px;
}
@media (max-width: 700px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
}

/* ===== LEGAL/STATIC PAGES ===== */
.legal {
  background: var(--brand-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.legal h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.legal h2 { font-size: 1.17rem; margin-top: 26px; margin-bottom: 7px;}
.legal ul { margin-left: 12px; margin-bottom: 16px; }

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: var(--white);
  border-top: 1px solid #e4e8ef;
  box-shadow: 0 -3px 18px rgba(26,62,91,0.09);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  gap: 24px;
  transition: transform .27s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner__text {
  font-size: 1rem;
  color: var(--brand-primary);
  margin-right: 18px;
  flex: 3 1 240px;
}
.cookie-banner__actions {
  display: flex;
  gap: 15px;
}
.cookie-banner__btn {
  background: var(--brand-secondary);
  color: #fff;
  border-radius: var(--radius-sm);
  border: none;
  padding: 9px 20px;
  font-size: 1rem;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  transition: background .15s, box-shadow .16s, color .13s;
}
.cookie-banner__btn:hover,
.cookie-banner__btn:focus {
  background: var(--brand-primary);
}
.cookie-banner__btn--settings {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid #bbc7ce;
  padding: 9px 18px;
}
.cookie-banner__btn--settings:hover {
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 8px 23px 10px;
  }
  .cookie-banner__actions {
    gap: 8px;
  }
}

/* ===== COOKIE MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1700;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(38,56,71,0.19);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .15s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 42px 34px 28px 34px;
  max-width: 390px;
  min-width: 270px;
  width: 90vw;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--brand-primary);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  animation: fadeInModal 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInModal {
  from { transform: translateY(32px) scale(0.95); opacity: 0 }
  to   { transform: translateY(0) scale(1.0); opacity: 1 }
}
.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  font-size: 1.35rem;
  color: var(--brand-secondary);
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  line-height: 1;
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  margin-bottom: 12px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 6px 0;
}
.cookie-modal__category label {
  font-weight: 600;
  font-size: 1rem;
  flex: 1 1;
}
.cookie-modal__category input[type="checkbox"] {
  accent-color: var(--brand-secondary);
  width: 18px;
  height: 18px;
}
.cookie-modal__category input:disabled {
  opacity: .3;
}
.cookie-modal__actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal__btn {
  background: var(--brand-secondary);
  color: #fff;
  border-radius: var(--radius-sm);
  border: none;
  padding: 9px 20px;
  font-size: 1rem;
  font-weight: 700;
  transition: background .13s;
}
.cookie-modal__btn:hover,
.cookie-modal__btn:focus {
  background: var(--brand-primary);
}
.cookie-modal__btn--secondary {
  background: transparent;
  color: var(--brand-secondary);
  border: 1px solid #d2dedc;
}
.cookie-modal__btn--secondary:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* ===== FORMS (generic/for completeness) ===== */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  border: 1px solid #e0e6ed;
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  margin-bottom: 14px;
  font-size: 1rem;
  background: var(--brand-accent);
  color: var(--brand-primary);
  transition: border-color 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-secondary);
}
label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
::placeholder {
  color: #A8BFC7;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* ===== MINI ANIMATIONS, MICROS ===== */
.cta-btn, .btn, .card, .feature-item, .service-item, .testimonial-card, .cookie-banner__btn, .cookie-modal__btn {
  transition: 
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

/* ===== Z-INDEX REFS ===== */
header { z-index: 99; }
.mobile-menu { z-index: 110; }
.mobile-menu-toggle { z-index: 120; }
.cookie-banner { z-index: 1600; }
.cookie-modal-overlay { z-index: 1700; }

/* ===== CUSTOM SCROLLBAR FOR ACCENT ===== */
::-webkit-scrollbar {
  width: 8px;
  background: var(--brand-accent);
}
::-webkit-scrollbar-thumb {
  background: #e2e9ec;
  border-radius: 10px;
}

/* ===== ACCESSIBLE HIDE (for modals/helpers) ===== */
.visually-hidden {
  border: 0 !important;
  clip: rect(0px, 0px, 0px, 0px) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

/* ===== MINIMALIST DESIGN ENHANCEMENTS ===== */
hr {
  border: 0;
  height: 1px;
  background: #e5e9f2;
  margin: 24px 0;
}

/* ===== ENSURE PROPER SPACING FOR ALL SECTIONS ===== */
section, .section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}

/* Disable selection for main nav / logo on mobile for more minimal tap feedback */
.main-nav a, .logo-link {
  -webkit-user-select: none;
  user-select: none;
}

/* ===== END ===== */
