/* ---------------- 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,
u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F4F8F2;
  color: #232323;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
}
a {
  color: #27536B;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.77,0,.175,1);
}
a:hover, a:focus {
  color: #E6B96E;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  padding-left: 24px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #27536B;
  text-wrap: balance;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
p {
  margin-bottom: 14px;
  font-size: 1.06rem;
  color: #232323;
}
strong {
  color: #27536B;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --------------- BRAND COLORS AS CSS VARS (with fallback) --------------- */
:root {
  --color-primary: #27536B;
  --color-secondary: #F4F8F2;
  --color-accent: #E6B96E;
  --color-bg: #F4F8F2;
  --color-black: #232323;
  --color-white: #fff;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(39,83,107,0.08), 0 1.5px 6px rgba(39,83,107,0.07);
  --transition: .25s cubic-bezier(.77,0,.175,1);
}

/* --------------- CONTAINER & LAYOUT --------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

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

.card-container, .features-grid, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(39,83,107,.16),0 3px 10px rgba(39,83,107,0.14);
  transform: translateY(-3px) scale(1.025);
}
.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;
  background: #FFF;
  color: #232323;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 500px;
  font-size: 1.13rem;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------- HEADER & NAVIGATION ------------- */
header {
  width: 100%;
  background: var(--color-primary);
  box-shadow: 0 4px 24px rgba(39,83,107,0.09);
  position: relative;
  z-index: 110;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}
.logo img {
  height: 50px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  color: var(--color-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  transition: color var(--transition), background var(--transition);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
}
.main-nav a.cta {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(230,185,110,0.10);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.main-nav a.cta:hover {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 18px rgba(39,83,107,0.10);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ------------- MOBILE MENU ------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  margin-left: 10px;
  z-index: 120;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .45s cubic-bezier(.68,-0.55,.27,1.55);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 24px 24px 0 auto;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  gap: 20px;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  border-radius: var(--radius-sm);
  padding: 14px 30px;
  transition: background var(--transition), color var(--transition);
  width: 90vw;
  max-width: 350px;
  text-align: center;
}
.mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ------------- HERO SECTION ------------- */
.hero {
  background: linear-gradient(120deg, #F4F8F2 70%, #E6B96E 140%);
  min-height: 320px;
  display: flex;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 36px;
}
.hero .text-section {
  max-width: 650px;
  z-index: 2;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.75rem;
  margin-bottom: 0.55em;
}
.hero p {
  color: #232323;
  font-size: 1.18rem;
  margin-bottom: 30px;
}

/* ------------- FEATURES / CARDS ------------- */
.features-grid, .card-grid {
  padding: 10px 0 0 0;
  flex-wrap: wrap;
  gap: 24px;
}
.feature {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 240px;
  flex: 1 1 210px;
  max-width: 295px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature img {
  width: 38px;
  height: 38px;
  filter: none;
  background: var(--color-secondary);
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 1px 7px rgba(39,83,107,0.08);
}
.feature h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
}
.feature p {
  color: #353535;
  font-size: 1.06rem;
  line-height: 1.6;
}
.feature:hover {
  box-shadow: 0 6px 28px rgba(230,185,110,0.12),0 4px 18px rgba(39,83,107,0.10);
  transform: translateY(-3px) scale(1.025);
}

/* ------------- ABOUT PREVIEW / CALLOUT SECTIONS ------------- */
.about-preview, .services-overview {
  background: var(--color-secondary);
  border-radius: var(--radius);
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

/* ------------- CTAs & BUTTONS ------------- */
.cta, .cta-secondary, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 2.5px 8px rgba(230,185,110,0.09);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-transform: uppercase;
  text-decoration: none;
}
.cta:hover, .cta-secondary:hover, .cookie-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 4px 12px rgba(39,83,107,0.12);
}
.cta-secondary {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  margin-top: 7px;
}
.cta-secondary:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ------------- LISTS ------------- */
ul, ol {
  font-size: 1.075rem;
  color: #232323;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.6;
}
ul li, ol li {
  list-style-position: inside;
  padding-left: 0.35em;
}
ul li img {
  vertical-align: middle;
  margin-right: 10px;
}

/* ------------- TESTIMONIALS ------------- */
.testimonials {
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  padding-top: 24px;
}
.testimonial-card {
  background: var(--color-white);
  color: #232323;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-width: 220px;
  max-width: 480px;
  font-size: 1.16rem;
}
.testimonial-card strong {
  font-size: 0.99rem;
  color: var(--color-primary);
  margin-top: 5px;
}
.testimonials .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ------------- FOOTER ------------- */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 40px 0 18px 0;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--color-white);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1.08rem;
}
.footer-contact p img {
  width: 22px;
  height: 22px;
  margin-right: 7px;
  vertical-align: middle;
}
footer p:last-child {
  font-size: .92rem;
  color: var(--color-accent);
  margin-top: 26px;
}

/* -------- COOKIE CONSENT BANNER --------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-white);
  box-shadow: 0 -4px 24px rgba(39,83,107,0.10);
  color: #232323;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 16px 22px 16px;
  font-size: 1.04rem;
  transition: transform .5s cubic-bezier(.67,-0.4,.2,1.5);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 9px;
}
.cookie-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 22px;
  cursor: pointer;
  margin: 0 1px;
  transition: background var(--transition), color var(--transition);
}
.cookie-btn.reject {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cookie-btn:focus {
  outline: 2px solid var(--color-primary);
}

/* --------- COOKIE MODAL --------- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(39,83,107,0.18);
  z-index: 3500;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: fadeIn .36s cubic-bezier(.77,0,.175,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal .modal-content {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(39,83,107,0.16);
  padding: 36px 28px 30px 28px;
  min-width: 300px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2px;
}
.cookie-modal .cookie-category {
  margin: 10px 0 5px 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--color-accent);
  width: 22px;
  height: 22px;
  margin-right: 7px;
}
.cookie-modal .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

/* --------- INFO/CALL BLOCK --------- */
.info-call {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 22px 18px 20px 18px;
  margin-top: 16px;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}
.info-call h3 {
  font-size: 1.22rem;
  color: var(--color-primary);
  margin-bottom: 7px;
}

/* --------- SHADOWS, RADIUS, EFFECTS --------- */
.shadow-sm {
  box-shadow: 0 2px 8px rgba(39,83,107,0.08);
}
.rounded {
  border-radius: var(--radius);
}

/* ------------ MEDIA QUERIES ------------ */
@media (max-width: 1200px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 1024px) {
  .features-grid, .card-grid, .content-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .header .container, header .container {
    flex-wrap: wrap;
    gap: 13px;
    min-height: 66px;
  }
  .main-nav {
    gap: 13px;
  }
  .features-grid, .card-grid {
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    z-index: 130;
  }
  .hero {
    min-height: unset;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .features-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .feature {
    max-width: 100%;
  }
  .about-preview, .services-overview, .testimonials {
    padding: 24px 10px;
    margin-bottom: 32px;
  }
  .section {
    padding: 28px 10px;
    margin-bottom: 36px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 19px;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .footer-nav {
    gap: 11px;
    flex-wrap: wrap;
  }
}
@media (max-width: 575px) {
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.24rem;
  }
  .cta, .cta-secondary, .cookie-btn {
    font-size: .98rem;
    padding: 10px 16px;
  }
  .footer-contact {
    font-size: .99rem;
  }
}

/* ------------- SELECTION & FOCUS STATES ------------- */
::selection {
  background: var(--color-accent);
  color: var(--color-primary);
}
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

/* ------------- TRANSITIONS/MICRO-INTERACTIONS ------------- */
.card, .feature, .testimonial-card, .cta, .cta-secondary, .cookie-btn, .main-nav a, .mobile-nav a {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

/* ------------- HIDE NATIVE SCROLLBAR (for mobile-menu if wanted) ------------- */
.mobile-menu {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* ------------- MISC (Accessibility improvements) ------------- */
[aria-current="page"] {
  background: var(--color-accent);
  color: var(--color-primary) !important;
}

/* ------------- PRINT STYLES ------------- */
@media print {
  header, .main-nav, .footer-nav, .mobile-menu, .cookie-banner, .cookie-modal, .cta, .cta-secondary, .cookie-btn { display: none !important; }
}
