/* --- CSS RESET & BASE TYPOGRAPHY --- */
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, 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;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #F5F8FA;
  color: #1A2930;
  min-height: 100vh;
  font-size: 16px;
}
:root {
  --primary: #1A2930;
  --secondary: #F94449;
  --accent: #FFD166;
  --gray-light: #F5F8FA;
  --gray-mid: #E6ECEF;
  --text-body: #1A2930;
  --text-light: #ffffff;
  --card-bg: #ffffff;
  --border-radius: 14px;
  --shadow: 0 2px 18px rgba(26,41,48,0.12);
  --shadow-sm: 0 1px 6px rgba(26,41,48,0.07);
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --transition: 0.22s cubic-bezier(.5,.1,.5,1);
}

/* Typography Hierarchy */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
p, li {
  font-size: 1rem;
  color: var(--text-body);
}
strong { font-weight: bold; }
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--secondary);
  text-decoration: underline;
}

/* --- CONTAINER CLASSES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}

/* --- SECTIONS AND SPACING --- */
section {
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--border-radius);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  position: relative;
  padding: var(--space-lg);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus {
  box-shadow: var(--shadow);
  transform: translateY(-2px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  min-width: 230px;
  max-width: 440px;
  transition: box-shadow var(--transition), border-color var(--transition);
  border: 1px solid var(--gray-mid);
}
.testimonial-card:hover {
  box-shadow: 0 3px 24px 0 rgba(33,33,33,.13);
}
.testimonial-card p {
  color: var(--text-body);
  font-size: 1.13rem;
  font-style: italic;
}
.testimonial-details {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--gray-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
  min-width: 240px;
  flex: 1 1 250px;
}
.feature-item img {
  height: 48px;
  width: 48px;
}

ul, ol {
  padding-left: var(--space-md);
}
ul.services-list, ul.team-list, ul.solutions-list, ul.unique-features-list, ul.recent-articles, ul.resource-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

/* FAQs, Accordions */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.faq-accordion h3 {
  font-size: 1.15rem;
  color: var(--primary);
}

/* Case studies, testimonial sliders */
.case-studies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.case-study {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
  flex: 1 1 320px;
  margin-bottom: 20px;
}
.client-logo-grid {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-list article {
  background: var(--gray-light);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.blog-list article:hover {
  box-shadow: var(--shadow);
}
.blog-list h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.blog-list a {
  color: var(--primary);
  font-weight: 600;
}
.blog-list a:hover {
  color: var(--secondary);
}

/* Services grids */
.feature-grid, .service-grid, .core-values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: stretch;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
  flex: 1 1 220px;
  min-width: 220px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px) scale(1.025);
}
.service-item img {
  height: 44px;
  width: 44px;
}

.core-values-grid > div {
  min-width: 220px;
  flex: 1 1 220px;
  background: var(--gray-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
  margin-bottom: 20px;
}

.process-overview ul {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.before-after-summaries ul {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.map-location, .contact-information {
  margin-bottom: 20px;
}
.contact-information p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/*--- Main Navigation ---*/
header {
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-mid);
  box-shadow: 0 2px 9px 0 rgba(40,50,60,0.04);
  position: sticky;
  top: 0;
  z-index: 1001;
  padding: 0;
}
.main-nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  padding: var(--space-sm) var(--space-md);
}
.main-nav > a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  margin-right: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.main-nav > a:last-child {
  margin-right: 0;
}
.main-nav > a:hover, .main-nav > a:focus {
  background: var(--gray-mid);
  color: var(--secondary);
}

/* --- CTA BUTTONS --- */
.cta-button {
  background: var(--primary);
  color: #fff !important;
  border-radius: 6px;
  padding: 12px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  margin-left: 14px;
  margin-bottom: 0;
  text-align: center;
  display: inline-block;
  border: none;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 60px;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-menu a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.88;
  transition: opacity var(--transition), color var(--transition);
  padding: 0 8px;
}
.footer-menu a:hover {
  color: var(--accent);
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.98rem;
}
.footer-contact img {
  height: 50px;
  margin-bottom: 8px;
}
.footer-contact a { color: var(--accent); }
.footer-contact a:hover { color: var(--secondary); }

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle  {
  display: none;
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  z-index: 1012;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: #fff;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26,41,48,0.87);
  z-index: 2002;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.175,1);
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  animation: slideInFromRight 0.4s var(--transition) both;
}
@keyframes slideInFromRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2011;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 80px 30px 20px 36px;
  font-size: 1.23rem;
}
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 14px 12px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -3px 18px rgba(40,30,30,0.09);
  border-top: 1px solid #E6ECEF;
  padding: 18px 28px 18px 18px;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-banner p {
  color: var(--primary);
  margin: 0;
  font-size: 0.97rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 9px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: background var(--transition), color var(--transition);
}
.cookie-btn.accept {
  background: var(--secondary);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--gray-mid);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(0.93);
  box-shadow: var(--shadow-sm);
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(26,41,48,0.65);
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  padding: 40px 24px 28px 30px;
  border-radius: 18px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 10px; top: 10px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 22px;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px; height: 18px;
  margin-right: 8px;
}
.cookie-category input[disabled] {
  opacity: 0.6;
}
.cookie-category .category-desc {
  font-size: 0.97rem;
  color: var(--primary);
  opacity: 0.7;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1300px) {
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .feature-grid, .service-grid, .core-values-grid, .case-studies-list {
    gap: var(--space-md);
  }
}
@media (max-width: 900px) {
  .main-nav {
    padding-left: 6px; padding-right: 6px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding: 0 3vw;
  }
  .section, section {
    margin-bottom: 32px;
    padding: 24px 0;
  }
  .feature-grid, .service-grid, .core-values-grid, .case-studies-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 17px 13px 20px 13px;
  }
  .cookie-banner .cookie-actions {
    gap: 6px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .cta-button {
    padding: 11px 17px;
    font-size: 0.98rem;
  }
  .cookie-modal .cookie-modal-content {
    min-width: unset; padding: 21px 8px 22px 17px;
  }
  .testimonial-card { padding: 11px; }
}

/* --- UTILITIES --- */
.gap-lg { gap: var(--space-lg); }
.gap-md { gap: var(--space-md); }
.gap-sm { gap: var(--space-sm); }
.rounded {
  border-radius: var(--border-radius) !important;
}
.shadow {
  box-shadow: var(--shadow) !important;
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
.feature-item, .service-item, .card, .blog-list article, .case-study {
  will-change: transform, box-shadow;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.cta-button, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

a, button:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

/* --- END OF STYLES --- */
