/* CSS RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin:0; padding:0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote { margin:0; padding:0; }
ul, ol { list-style:none; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; border:none; vertical-align:middle; }
button, input, select, textarea {font-family: inherit;}

/* CSS CUSTOM PROPERTIES */
:root {
  --fw-primary: #142B5D;
  --fw-secondary: #38B6FF;
  --fw-accent: #F8FAFC;
  --fw-black: #111111;
  --fw-white: #fff;
  --fw-gray-dark: #21262D;
  --fw-gray-1: #dbdee0;
  --fw-gray-2: #ececec;
  --fw-gray-3: #f3f5f6;
  --font-display: 'Oswald', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --transition-main: 0.2s cubic-bezier(.4,0,.2,1);
  --radius: 12px;
  --radius-btn: 8px;
  --shadow-card: 0 2px 12px rgba(20,43,93,0.09), 0 1.5px 4px rgba(0,0,0,0.03);
  --shadow-elevate: 0 3px 24px 0 rgba(0,0,0,0.13);
}

/* BASE TYPOGRAPHY & BODY */
body {
  font-family: var(--font-body);
  color: var(--fw-black);
  background: var(--fw-accent);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fw-primary);
}
h1 { font-size: 2.5rem; line-height:1.16; letter-spacing:-0.5px; margin-bottom:20px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size:1.25rem; margin-bottom:12px; }
h4 { font-size:1.1rem; }
.subtitle {
  color: var(--fw-gray-dark); font-size: 1rem; margin-bottom: 16px;
}
p {
  margin-bottom: 16px; color: var(--fw-black); max-width: 70ch;
}
small { font-size: 0.93em; color: var(--fw-gray-dark); }
strong { font-weight:600; }
blockquote {
  font-style: italic;
  border-left: 4px solid var(--fw-secondary);
  padding-left: 20px;
  color: var(--fw-black);
  margin-bottom: 12px;
  font-size:1.15em;
  background: var(--fw-white);
}

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

/* SECTION SPACING - CRITICAL */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex; flex-direction:column; align-items: stretch;
  background: transparent;
}
section:last-of-type {
  margin-bottom: 0;
}

/* LISTS AND FEATURE ITEMS */
ul, ol {
  margin-bottom: 20px;
  padding-left: 0;
}
ul li, ol li {
  color: var(--fw-gray-dark);
  font-size: 1rem;
  margin-bottom: 12px;
  position: relative;
  padding-left: 26px;
}
ul li:before {
  content: '\2022';
  color: var(--fw-primary);
  font-weight: bold;
  display: inline-block;
  width: 14px;
  left: 0; position: absolute;
}
ol li { padding-left: 32px; }
ol li:before {
  content: counter(li);
  counter-increment: li;
  color: var(--fw-secondary);
  font-weight: 600;
  position: absolute; left: 0;
  min-width: 18px;
  text-align:right;
}
ol { counter-reset: li; }

/* HEADER & NAVIGATION */
header {
  background: var(--fw-white);
  box-shadow: 0 2px 8px 0 rgba(20,43,93,0.04);
  padding: 0;
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 70px;
  justify-content: space-between;
}
.logo img {
  height: 48px;
  width: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
nav a {
  color: var(--fw-primary);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  transition: background var(--transition-main), color var(--transition-main);
}
nav a:hover,
nav a:focus {
  background: var(--fw-secondary);
  color: var(--fw-white);
}

/* CTA BUTTONS */
.cta-btn {
  font-family: var(--font-display);
  display: inline-block;
  background: var(--fw-primary);
  color: var(--fw-white);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  margin-left: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background var(--transition-main), transform var(--transition-main), color var(--transition-main);
  outline: none;
  position:relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--fw-secondary);
  color: var(--fw-white);
  transform: translateY(-2px) scale(1.03);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: var(--fw-white);
  border: 1.5px solid var(--fw-primary);
  color: var(--fw-primary);
  font-size: 2rem; line-height: 1;
  padding: 6px 10px;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  margin-left: 12px;
  transition: background var(--transition-main), color var(--transition-main);
  z-index:102;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--fw-secondary);
  color: var(--fw-white);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(12,16,22,0.93);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  z-index: 105;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--fw-white);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 12px 20px 4px 20px;
  align-self: flex-end;
  margin-top: 12px;
  margin-bottom: 12px;
  transition: color var(--transition-main);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--fw-secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 34px 28px 0 28px;
}
.mobile-nav a {
  color: var(--fw-white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  padding: 12px;
  border-radius: var(--radius-btn);
  transition: background var(--transition-main), color var(--transition-main);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--fw-secondary);
  color: var(--fw-black);
}

/* Hide desktop nav on mobile, show mobile burger */
@media (max-width: 990px) {
  nav,
  .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 991px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* MAIN LAYOUT PATTERNS - FLEXBOX */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--fw-white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 0;
  padding:28px 24px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
}
.card:hover,
.card:focus-within {
  box-shadow: var(--shadow-elevate);
  transform: translateY(-3px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--fw-white);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex-wrap: wrap;
  min-width: 0;
  transition: box-shadow var(--transition-main);
}
.testimonial-card:hover, .testimonial-card:focus-within { box-shadow: var(--shadow-elevate); }

.testimonial-meta {
  color: var(--fw-primary);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  margin-left: 8px;
}

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

/* CARDS INSIDE ULs (for features/services/teams) */
.content-wrapper > ul,
.content-wrapper > ol {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.content-wrapper > ul > li, .content-wrapper > ol > li {
  background: var(--fw-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 18px 20px 36px;
  font-size: 1rem;
  flex: 1 1 230px;
  min-width: 220px;
}
.content-wrapper > ul > li img, .content-wrapper > ol > li img {
  height: 32px; width: 32px; margin-bottom: 12px; display: inline-block;
}

/* SERVICE PRICE SPAN */
.service-price {
  font-family: var(--font-display);
  color: var(--fw-secondary);
  background: var(--fw-gray-3);
  border-radius: 6px;
  padding: 2px 8px;
  margin-left: 8px;
  font-size:1rem;
  font-weight:500;
}

/* NEWSLETTER, FAQ, FOOTER */
footer {
  background: var(--fw-black);
  color: var(--fw-accent);
  padding: 32px 0 0 0;
  font-size: 1rem;
  margin-top: 40px;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  width: 100%;
}
footer nav {
  gap: 18px;
}
footer nav a {
  color: var(--fw-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0.84;
  border-radius: 5px;
  transition: background var(--transition-main), color var(--transition-main);
}
footer nav a:hover {
  color: var(--fw-secondary);
  background: rgba(56,182,255,0.11);
}
.logo-footer img {
  height: 38px;
  filter: grayscale(0.6) brightness(1.1) contrast(1.2);
}
footer p {
  color: var(--fw-gray-1);
  font-size: 0.96rem;
  padding: 16px 0 0 0;
}

/* TABLES, FORMS (if needed in future) */
table, th, td { border-collapse: collapse; border: none; }
input, textarea { border-radius: var(--radius-btn); border: 1px solid var(--fw-gray-1); padding: 9px 13px; }

/* LINKS INSIDE TEXT */
a {
  color: var(--fw-primary);
  text-decoration: underline;
  transition: color var(--transition-main);
}
a:hover, a:focus { color: var(--fw-secondary); text-decoration: underline; }

/* SCROLLBAR (Webkit Chrome/Edge/Safari) */
body::-webkit-scrollbar { width: 13px; background: var(--fw-gray-2); }
body::-webkit-scrollbar-thumb { background: var(--fw-primary); border-radius: 8px; }

/* FOCUS STATES */
:focus { outline: 2px solid var(--fw-secondary); outline-offset: -3px; }

/* MICRO-INTERACTIONS (SUBTLE) */
.card,
.cta-btn,
.testimonial-card,
footer nav a {
  transition: box-shadow var(--transition-main), background var(--transition-main), color var(--transition-main), transform var(--transition-main);
}

/* RESPONSIVE DESIGN: MOBILE-FIRST APPROACH */
@media (max-width: 990px) {
  .container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  h1 { font-size:2rem; }
  h2 { font-size:1.45rem; }
  header .container {
    gap: 14px;
    min-height: 58px;
    padding: 8px 0;
  }
  .content-wrapper ul, .content-wrapper ol {
    flex-direction: column;
    gap: 10px;
  }
  .content-wrapper > ul > li, .content-wrapper > ol > li {
    min-width: 0;
    width: 100%;
    font-size: 0.97rem;
  }
  .section, section {
    margin-bottom: 36px;
    padding: 26px 8px;
  }
  .testimonial-card {
    padding: 13px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 { font-size:1.5rem; }
  h2 { font-size:1.1rem; }
  .section, section {
    margin-bottom: 28px;
    padding: 18px 4px;
  }
  .content-grid { flex-direction: column; gap:14px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap:18px; }
  .testimonial-card {
    padding: 8px;
    font-size: 0.99rem;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 500px) {
  .logo img, .logo-footer img { height: 33px; }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--fw-black);
  color: var(--fw-accent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 -2px 12px rgba(20,43,93,0.13);
  padding: 22px 16px 18px 16px;
  z-index: 999;
  opacity: 1;
  transition: transform 0.33s cubic-bezier(.77,0,.18,1), opacity 0.16s;
  transform: translateY(0);
  gap: 16px;
  font-size: 1rem;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.cookie-btn {
  padding: 8px 22px;
  border-radius: var(--radius-btn);
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main);
}
.cookie-btn.accept {
  background: var(--fw-secondary);
  color: var(--fw-black);
  box-shadow: var(--shadow-card);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--fw-white);
  color: var(--fw-primary);
}
.cookie-btn.reject {
  background: var(--fw-black);
  color: var(--fw-white);
  border: 1.3px solid var(--fw-secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  color: var(--fw-black);
  background: var(--fw-secondary);
}
.cookie-btn.settings {
  background: var(--fw-primary);
  color: var(--fw-white);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--fw-secondary);
  color: var(--fw-black);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  z-index: 1999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,18,30,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity:1;
  pointer-events: auto;
  transition: opacity 0.2s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: var(--fw-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevate);
  color: var(--fw-black);
  padding: 34px 28px 22px 28px;
  min-width: 310px;
  max-width: 97vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size:1.09rem;
}
.cookie-modal-content h3 {
  margin-bottom: 0;
  color: var(--fw-primary);
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-toggle {
  background: var(--fw-gray-3);
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 1rem;
  min-width: 52px;
}
.cookie-toggle input[type=checkbox] {
  accent-color: var(--fw-primary);
  transform: scale(1.18);
  margin-left: 10px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* ANIMATIONS FOR SLIDE-IN/OUT */
@keyframes menuSlideIn {
  from {transform: translateX(-100vw); opacity:0;}
  to {transform: translateX(0); opacity:1;}
}
@keyframes menuSlideOut {
  from {transform: translateX(0vw); opacity:1;}
  to {transform: translateX(-100vw); opacity:0;}
}
@keyframes cookieModalAppear {
  from {opacity: 0; transform: scale(0.98);}
  to {opacity: 1; transform: scale(1);}
}
.cookie-modal-content {
  animation: cookieModalAppear 0.3s cubic-bezier(.36,.06,.2,.94);
}

/* === MONOCHROME SOPHISTICATED EXTRAS === */
/* Typographic details */
h1, h2, h3, h4 {
  letter-spacing: -0.01em;
  text-shadow: 0 1.5px 0 rgba(20,43,93,0.04);
}
body {
  background: linear-gradient(181deg, #fff 80%, #f2f4f7 100%);
}
section {
  background: var(--fw-white);
  border-radius: var(--radius);
}

/* Subtle divider for separation */
section + section {
  margin-top: 12px;
}
hr {
  border: none;
  border-bottom:1.5px solid var(--fw-gray-1);
  margin: 24px 0;
}

/* SHADOW ON HOVER (cards, testimonials) */
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(20,43,93,0.20), 0 2px 12px rgba(0,0,0,0.05);
  transform: translateY(-3px) scale(1.03);
}

/* Animations on cta-btns */
.cta-btn {
  animation: cta-btn-fadein 0.35s cubic-bezier(.22,.68,.65,1.13);
}
@keyframes cta-btn-fadein {
  0% {opacity:0;transform:scale(0.94);}
  100% {opacity:1;transform:scale(1);}
}

/* ==== PRINT OPTIMIZATION ==== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {display:none !important;}
  body { background:white !important; color:black; }
}
