/* ==============================
   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;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2C3531;
  background: #F2F6EC;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-size: cover;
  background-repeat: no-repeat;
}

img, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ===================
   FONTS
   =================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #1B4253;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 1rem; margin-bottom: 18px; }
h3 { font-size: 1rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, li { font-size: 1rem; line-height: 1.7; }
strong { font-weight: 700; }



/* =====================
   BRAND COLOR PALETTE
   ===================== */
:root {
  --color-primary: #1B4253;
  --color-secondary: #29B47A;
  --color-accent: #F2F6EC;
  --color-warm1: #FFDDCC;
  --color-warm2: #FFE7C2;
  --color-warm3: #FDE6E0;
  --color-btn-orange: #F8A978;
  --color-dark: #19313F;
  --color-text: #2C3531;
  --color-white: #fff;
  --shadow-1: 0 4px 12px rgba(210,125,56,0.07), 0 1.5px 4px rgba(30,70,51,0.08);
  --shadow-card: 0 8px 24px rgba(220,120,40,0.12), 0 1.5px 4px rgba(30,70,51,0.07);
  --radius: 18px;
}

/* =====================
   SHARED LAYOUT UTILS
   ===================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 40px 20px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .container {
    padding: 0 8px;
  }
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
header {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(220,120,40,0.03);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 18px 0 0 0;
}
.main-nav img {
  height: 44px;
  margin-right: 20px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  border-radius: 30px;
  padding: 8px 14px;
  margin-bottom: 0;
  transition: background .2s, color .2s, box-shadow .2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-warm1);
  color: var(--color-secondary);
}
.main-nav .cta-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 30px;
  box-shadow: var(--shadow-1);
  padding: 10px 28px;
  font-weight: 700;
  letter-spacing: .01em;
  margin-left: auto;
  transition: background .2s, box-shadow .2s, color .2s;
  position: relative;
}
.main-nav .cta-btn:hover,
.main-nav .cta-btn:focus {
  background: var(--color-btn-orange);
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

/* =====================
   MOBILE NAVIGATION
   ===================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 10px 13px;
  border: none;
  font-size: 1.8rem;
  border-radius: 50%;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 12px;
  z-index: 101;
  transition: background .2s, color .2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-btn-orange);
  color: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27,66,83,0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(.25,1,.37,1);
  z-index: 1200;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 0 16px 24px;
  background: none;
  color: var(--color-white);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: color .2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-btn-orange);
}
.mobile-nav {
  width: 100%;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav a {
  color: var(--color-white);
  font-weight: 500;
  padding: 18px 0 18px 10px;
  border-radius: 22px;
  font-size: 1.22rem;
  margin-bottom: 6px;
  background: none;
  transition: background .2s, color .2s;
  width: 100%;
  display: block;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
}

@media (max-width: 1070px) {
  .main-nav a:not(.cta-btn) {
    font-size: .98rem;
    padding: 7px 10px;
  }
}
@media (max-width: 950px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width:850px) {
  .main-nav a { font-size: .93rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}


/* =====================
   MAIN STYLES & SPACING
   ===================== */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  position: relative;
}
.content-wrapper {
  padding: 40px 20px;
  background: var(--color-accent);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 28px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.card:hover, .card:focus-within {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(243,180,120,0.23), 0 4px 16px rgba(30,70,51,0.07);
}
.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;
  border-radius: var(--radius);
  background: #FFF8F1;
  box-shadow: var(--shadow-1);
  padding: 20px 28px;
  margin-bottom: 20px;
  font-style: italic;
  color: #333621;
  min-width: 0;
}
.testimonial-card p {
  color: #1B4253;
  font-size: 1.03rem;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-card span {
  font-family: 'Roboto', Arial, sans-serif;
  color: #5a4a2d;
  opacity: .75;
  font-size: .97rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SERVICE CARDS (front page, services, etc) */
.service-cards, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.service-cards > div, .service-list > div {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  min-width: 220px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow .22s, transform .22s;
}
.service-cards > div:hover, .service-list > div:hover {
  box-shadow: 0 12px 36px rgba(217,127,74,0.16), 0 4px 18px rgba(30,70,51,0.08);
  transform: translateY(-7px) scale(1.03);
}
.service-cards img {
  height: 38px;
  margin-bottom: 18px;
}

.case-studies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.case-studies-grid > div {
  background: var(--color-warm2);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(220,120,40,0.07);
  padding: 26px 20px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  min-width: 230px;
  max-width: 340px;
}

.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  margin-top: 8px;
}
.team-bios > div {
  background: var(--color-warm3);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(30, 64, 50, 0.08);
  padding: 20px 18px 16px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  min-width: 210px;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.faq-list > div {
  background: var(--color-warm1);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(220,120,40,0.11);
  padding: 18px 18px 13px 18px;
  flex: 1 1 220px;
  min-width: 180px;
  margin-bottom: 20px;
}

.logos-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}
.logos-trust img { height: 36px; }

.case-summaries {
  margin-top: 16px;
  padding: 14px 12px;
  background: var(--color-warm3);
  border-radius: var(--radius);
  font-size: .98rem;
}
.before-after-metrics {
  padding: 14px 14px;
  background: var(--color-warm3);
  border-radius: var(--radius);
  color: #425541;
  font-size: 1.04rem;
  margin: 18px 0 8px 0;
}

ul, ol {
  margin-left: 0;
  margin-bottom: 18px;
  padding-left: 18px;
}
ul li, ol li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 18px;
}
ul li::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  border-radius: 50%;
}
ol li::before {
  display: none;
}
.content-wrapper ul, .content-wrapper ol {
  margin-left: 0;
}

.text-section p {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

/* =====================
   BUTTONS & CTA
   ===================== */
.cta-btn, .cookie-btn, .cookie-category-toggle {
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 32px;
  box-shadow: var(--shadow-1);
  padding: 12px 32px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  transition: background .18s, color .15s, box-shadow .22s, transform .12s;
  cursor: pointer;
  margin-top: 18px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-btn-orange);
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px) scale(1.04);
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 40px 0 10px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: var(--color-accent);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 18px;
  padding: 6px 14px;
  margin-bottom: 0;
  transition: background .22s, color .2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-warm2);
  color: var(--color-primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--color-accent);
  font-size: .99rem;
}
.footer-contact img {
  height: 19px;
  filter: brightness(.7) sepia(.5) saturate(.6);
}
footer > p {
  text-align: center;
  color: var(--color-warm1);
  font-size: .97rem;
  margin: 20px 0 0 0;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============== Responsive adjustments ================ */
@media (max-width: 986px) {
  .service-cards, .service-list, .case-studies-grid, .team-bios, .faq-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .service-cards > div, .service-list > div, .case-studies-grid > div, .team-bios > div, .faq-list > div, .card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  section, .section { padding: 28px 0 0 0; }
  .content-wrapper { padding: 28px 10px; margin-bottom: 40px; }
  .card, .service-cards > div, .service-list > div, .case-studies-grid > div, .team-bios > div, .faq-list > div {
    padding: 18px 10px !important;
    margin-bottom: 20px !important;
  }
  .testimonial-card { flex-direction: column; align-items: flex-start; padding: 14px 10px; }
  .content-grid, .card-container, .case-studies-grid, .service-cards, .service-list, .team-bios, .faq-list {
    flex-direction: column;
    gap: 18px !important;
  }
  .text-image-section { flex-direction: column; gap:18px; align-items: stretch; }
  .logos-trust img { height: 28px; }
}

@media (max-width: 520px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .content-wrapper { padding: 14px 3px; }
}

/* =====================
   HOVER EFFECTS & MICRO-INTERACTIONS
   ===================== */
.card, .service-cards > div, .service-list > div, .case-studies-grid > div, .team-bios > div, .faq-list > div, .cta-btn, .cookie-btn, .cookie-category-toggle {
  transition: box-shadow .16s, transform .17s, background .17s, color .13s;
}

/* =====================
   COOKIE CONSENT BANNER & MODAL
   ===================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #FFE7C2;
  color: #3a3629;
  box-shadow: 0 -4px 18px rgba(217,127,74,0.12);
  padding: 18px 14px 14px 14px;
  z-index: 9001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  animation: slideUpBanner .66s cubic-bezier(.18,1.12,.41,1.02);
}
@keyframes slideUpBanner {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-actions {
  display: flex;
  gap: 18px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 26px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30,70,51,0.07);
  transition: background .18s, color .13s, box-shadow .15s, transform .11s;
}
.cookie-btn.reject {
  background: #F8A978;
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: #fff !important;
  box-shadow: 0 5px 18px rgba(30,70,51,0.11);
  transform:translateY(-3px) scale(1.04);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(30,64,50,0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModal .3s;
}
@keyframes fadeInModal {
  from { opacity: .1; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #212821;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 20px 26px 24px;
  max-width: 430px;
  width: 96vw;
  min-height: 230px;
  animation: fadeInModalContent .4s cubic-bezier(.2,.8,.4,1.02);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
@keyframes fadeInModalContent {
  from { transform: scale(.89); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #1B4253;
  font-size: 1.7rem;
  position: absolute;
  right: 18px;
  top: 18px;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--color-secondary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 19px; height: 19px;
  border-radius: 8px;
  margin-right: 10px;
  cursor: pointer;
}
.cookie-category.essential input[type='checkbox']  {
  accent-color: #aaa;
  background: #ccc;
  pointer-events: none;
}
.cookie-modal .cookie-btn {
  margin: 8px 0 0;
}

/* =====================
   OTHER CONTENT & UTILS
   ===================== */
a:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  background: #f6e7d2;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #32d087;
}

/* Hide visually but accessible for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Extra margin between cards/sections */
.card, .service-cards > div, .service-list > div, .case-studies-grid > div, .team-bios > div, .faq-list > div, .testimonial-card {
  margin-bottom: 20px !important;
}
.section, section { margin-bottom: 60px !important; }
.card-container, .content-grid, .service-cards, .service-list, .team-bios, .faq-list, .case-studies-grid { gap: 24px !important; }

/* Custom helpers for flex direction */
@media (max-width: 768px) {
  .card-container, .content-grid, .service-cards, .service-list, .team-bios, .faq-list, .case-studies-grid {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .text-image-section { flex-direction: column !important; align-items: stretch !important; gap: 18px !important;}
}
