/* ========================================== */
/* 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,
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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  background: #fff;
  color: #262627;
  font-family: 'Georgia', 'EB Garamond', serif;
  font-size: 16px;
  font-weight: 400;
}
img,svg {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 20px;
}
a {
  color: #1B3A4B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #47A386;
  outline: none;
}

/* ========================================== */
/* Brand Colors and Typography (Elegant Classic) */
/* ========================================== */
:root {
  --brand-primary: #1B3A4B;
  --brand-secondary: #47A386;
  --brand-accent: #F3F6FA;
  --text-dark: #222;
  --text-light: #fff;
  --text-muted: #5C6470;
  --background-muted: #F3F6FA;
  --border-color: #D3D6D8;
  --shadow-main: 0 2px 16px rgba(27,58,75,0.08);
  --radius-main: 12px;
}

body {
  background: #fff;
  font-family: 'Georgia', 'EB Garamond', serif;
  color: var(--text-dark);
  letter-spacing: 0.05em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'EB Garamond', serif;
  font-weight: 600;
  color: var(--brand-primary);
  line-height: 1.15;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.125rem;  }
p,
ul,
ol { font-size: 1rem; margin-bottom: 20px; }
.subheadline {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-style: italic;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
strong, b { font-weight: 700; }

/* ========================================== */
/* Main Layout Containers                     */
/* ========================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 32px;
  }
}

/* ========================================== */
/* Header & Navigation                        */
/* ========================================== */
header {
  background: var(--background-muted);
  box-shadow: 0 2px 8px rgba(27,58,75,0.03);
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}
header img {
  height: 40px;
  margin-right: 14px;
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav a, .footer-nav a, .mobile-nav a {
  font-family: 'Georgia', 'EB Garamond', serif;
  font-size: 1.03rem;
  color: var(--brand-primary);
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  transition: color .17s;
  padding: 8px 6px;
}
nav a:hover, nav a:focus { color: var(--brand-secondary); }
.cta-btn {
  padding: 13px 28px;
  font-family: 'Georgia', 'EB Garamond', serif;
  font-size: 1.12rem;
  background: var(--brand-primary);
  color: var(--text-light);
  border-radius: var(--radius-main);
  border: none;
  box-shadow: var(--shadow-main);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-left: 18px;
  transition: background .18s, color .18s, box-shadow .18s;
  cursor: pointer;
  text-align: center;
  min-width: 160px;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  box-shadow: 0 6px 24px rgba(27,58,75,0.09);
  text-decoration: none;
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* ---------------- Mobile Navigation ------------- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 20px; right: 20px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 7px 15px;
  border-radius: 8px;
  z-index: 130;
  cursor: pointer;
  transition: background .2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: var(--background-muted);
  box-shadow: 0 6px 32px rgba(27,58,75,.14);
  z-index: 200;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform .35s cubic-bezier(.8,.23,.67,1.11), opacity .23s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--brand-primary);
  padding: 24px 24px 8px 8px;
  margin-right: 2px;
  cursor: pointer;
  transition: color .14s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 0 22px;
  margin-top: 40px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.24rem;
  padding: 14px 2px;
  color: var(--brand-primary);
  border-bottom: 1px solid #eaeaea;
  transition: background .17s, color .14s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--brand-accent);
  color: var(--brand-secondary);
}

@media (max-width: 1020px) {
  header .container nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1021px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none!important;
  }
}

/* ========================================== */
/* Section Layout Utility Classes (MANDATORY) */
/* ========================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  padding: 28px 20px 24px 20px;
  transition: box-shadow .19s, transform .18s;
  flex: 1 1 240px;
  min-width: 200px;
}
.card:hover {
  box-shadow: 0 6px 40px rgba(27,58,75,.13);
  transform: translateY(-4px) 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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--background-muted);
  border-radius: var(--radius-main);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 24px rgba(27,58,75,.07);
  margin-bottom: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========================================== */
/* Homepage: Feature Grid, Client Logos       */
/* ========================================== */
.feature-grid, .method-grid, .strategy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 28px 0 0 0;
  justify-content: space-between;
}
.feature {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  flex: 1 1 300px;
  min-width: 240px;
  padding: 22px 18px 18px 18px;
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow .18s, transform .11s;
}
.feature:hover {
  box-shadow: 0 8px 34px rgba(27,58,75,.10);
  transform: scale(1.015);
}
.feature img {
  max-width: 48px;
  margin-bottom: 16px;
}
.client-logos-row, .icon-list, .icon-row, .client-logo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 10px;
}
.client-logos-row img, .icon-list img, .icon-row img, .client-logo-list img {
  width: 54px;
  height: auto;
  display: block;
  filter: grayscale(.6) contrast(1.07);
  opacity: 0.86;
  transition: filter .14s, opacity .13s;
}
.client-logos-row img:hover,
.icon-list img:hover,
.icon-row img:hover,
.client-logo-list img:hover { filter: grayscale(0); opacity: 1; }

.short-contact-info {
  margin-top: 22px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  color: var(--text-muted);
  opacity: .96;
}
.short-contact-info img {
  width: 20px; height: 20px; margin-right: 7px; vertical-align: middle;
}

/* ========================================== */
/* Testimonials & Case Studies                */
/* ========================================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card, .mini-case-study, .case-study {
  background: var(--background-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  padding: 22px 19px;
  color: var(--brand-primary);
  margin-bottom: 20px;
  flex: 1 1 300px;
  min-width: 260px;
  transition: box-shadow .15s, border-color .17s;
}
.testimonial-card span, .client-success-story span {
  display: block;
  color: var(--brand-secondary);
  font-size: 0.98rem;
  margin-top: 6px;
  font-style: italic;
}
blockquote {
  font-style: italic;
  background: #fff;
  border-left: 4px solid var(--brand-secondary);
  padding: 15px 18px;
  border-radius: 7px;
  margin-bottom: 10px;
  color: var(--brand-primary);
  font-size: 1rem;
}

.mini-case-study h3, .case-study h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.success-metrics {
  margin-top: 24px;
  font-size: 1rem;
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 16px 18px;
  border-radius: var(--radius-main);
  color: var(--brand-primary);
}

.next-steps-info ul {
  margin-left: 24px;
}
.confirmation-message {
  background: var(--background-muted);
  padding: 16px 18px;
  border-radius: 8px;
  border-left: 5px solid var(--brand-primary);
  margin-bottom: 20px;
  color: var(--brand-primary);
}

/* ========================================== */
/* Timeline & Contact Sections                */
/* ========================================== */
.timeline {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: var(--brand-secondary);
  margin: 22px 0 11px 0;
  padding-left: 12px;
  border-left: 4px solid var(--brand-secondary);
}
.contact-details {
  font-size: 1.08rem;
  color: var(--brand-primary);
  margin-bottom: 24px;
}
.contact-details img {
  width: 18px; height: 18px; display: inline; vertical-align: middle;
}
.map-embed {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--brand-secondary);
  margin-top: 8px;
  opacity: .82;
}

/* ========================================== */
/* Footer                                    */
/* ========================================== */
footer {
  background: var(--background-muted);
  padding: 30px 0 12px 0;
  border-top: 1px solid #dde1e5;
  color: var(--brand-primary);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-bottom: 18px;
}
.footer-address {
  font-size: 0.99rem;
  color: var(--brand-secondary);
  margin-bottom: 10px;
}
.footer-copyright {
  font-size: 0.94rem;
  color: var(--text-muted);
  opacity: .9;
}
.footer-nav a {
  font-size: 1rem;
  color: var(--brand-primary);
  text-decoration: underline dotted;
  transition: color .11s;
}
.footer-nav a:hover, .footer-nav a:focus { color: var(--brand-secondary); }

/* ========================================== */
/* Cookie Consent Banner & Modal              */
/* ========================================== */
.cookie-consent-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(140%);
  width: 98vw;
  max-width: 460px;
  background: #fff;
  color: var(--brand-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 20px rgba(27,58,75,0.15);
  z-index: 5000;
  padding: 22px 26px 18px 26px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: transform .38s cubic-bezier(.60,.1,.44,1.4), opacity .16s;
}
.cookie-consent-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-consent-btn-group {
  display: flex;
  gap: 18px;
  margin-top: 9px;
}
.cookie-btn {
  padding: 9px 17px;
  border: none;
  border-radius: 7px;
  font-size: 1rem;
  font-family: 'Georgia', serif;
  font-weight: 600;
  background: var(--brand-accent);
  color: var(--brand-primary);
  cursor: pointer;
  transition: background .15s, color .14s, box-shadow .15s;
  box-shadow: 0 1px 4px rgba(27,58,75,0.10);
}
.cookie-btn.accept {
  background: var(--brand-secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--brand-primary);
  border: 1px solid var(--brand-secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff0f0;
  color: var(--brand-secondary);
}
.cookie-btn.settings {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--brand-secondary);
  color: #fff; 
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(.9);
  background: #fff;
  color: var(--brand-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 420px;
  width: 96vw;
  z-index: 6000;
  box-shadow: 0 8px 50px rgba(27,58,75,0.19);
  display: none;
  flex-direction: column;
  gap: 22px;
  padding: 28px 28px 23px 28px;
  animation: fadeInModal .36s cubic-bezier(.53,.21,.24,1.12);
}
.cookie-modal.active {
  display: flex;
  transform: translate(-50%,-50%) scale(1);
}
@keyframes fadeInModal {
  0% { opacity:0; transform: translate(-50%,-46%) scale(.7); }
  100% { opacity:1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal-title {
  font-size: 1.22rem;
  font-family: 'Georgia',serif;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Georgia',serif;
  color: var(--brand-primary);
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 20px;
  background: var(--background-muted);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  position: relative;
  outline: none;
  transition: background .18s, border .13s;
  vertical-align: middle;
  margin-right: 5px;
}
.cookie-toggle:checked {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  top: 2.5px; left: 2.5px;
  width: 15px; height: 15px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: left .19s;
}
.cookie-toggle:checked:before {
  left: 22px;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal .close-btn {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--brand-secondary);
  transition: color .13s;
  cursor: pointer;
}
.cookie-modal .close-btn:hover,
.cookie-modal .close-btn:focus {
  color: var(--brand-primary);
}


/* ========================================== */
/* Responsive Styles (Mobile-first!)          */
/* ========================================== */
@media (max-width: 1020px) {
  .feature-grid, .method-grid, .strategy-grid, .testimonial-slider, .case-study-list, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  header .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  .footer-nav { flex-direction: column; gap: 12px; margin-bottom: 10px; }
  .content-wrapper { padding: 0; }
  .testimonial-card, .mini-case-study, .case-study, .card {
    padding: 15px 7px;
    min-width: 90vw;
    font-size: 1rem;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
  .short-contact-info {
    flex-direction: column;
    gap: 7px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.13rem; }
  .section { padding: 13px 3px; margin-bottom: 18px; }
  .map-embed { flex-direction: column; gap: 4px; }
  .cookie-consent-banner { padding: 11px 7px 11px 7px; font-size: 0.94rem; }
  .cookie-modal { padding: 10px 4px 18px 7px; }
}

/* ========================================== */
/* Animations and Interactive Elements        */
/* ========================================== */
a, button, .cta-btn, .card, .feature, .testimonial-card {
  transition: background .18s, color .16s, box-shadow .15s, border .13s;
}
.cta-btn:active {
  background: var(--brand-secondary);
  color: var(--text-light);
}
.card:active, .feature:active, .testimonial-card:active {
  box-shadow: 0 8px 38px rgba(27,58,75,.15);
}

/* ========================================== */
/* Misc Utility                              */
/* ========================================== */
::-webkit-input-placeholder { color: var(--text-muted); }
::-moz-placeholder { color: var(--text-muted); }
:-ms-input-placeholder { color: var(--text-muted); }
::placeholder { color: var(--text-muted); }

/* Prevent Overlapping, Adequate Spacing */
.card, .testimonial-card, .feature, .case-study, .mini-case-study {
  margin-bottom: 20px;
}
.section .card, .section .feature, .section .testimonial-card, .section .case-study, .section .mini-case-study { margin-bottom: 20px; }

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