/* --- 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;
}
article, aside, details, figcaption, figure, footer, header, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  outline: none;
  background: none;
  border: none;
}

/* --- VARIABLES --- */
:root {
  --color-primary: #23282F;
  --color-secondary: #21C49D;
  --color-accent: #F4F2F0;
  --color-warm-1: #FFE5D0;
  --color-warm-2: #FFD6B0;
  --color-warm-3: #FFECD9;
  --color-warm-4: #FFF8F3;
  --color-warm-contrast: #893e2b;
  --color-info: #F5D988;
  --color-success: #27ae60;
  --color-danger: #e74c3c;
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Montserrat', Arial, Helvetica, sans-serif;
  --card-radius: 20px;
  --card-shadow: 0 4px 24px 0 rgba(220,120,37,0.09);
  --button-radius: 999px;
  --transition: .24s cubic-bezier(.4,.13,.26,1);
  --focus-outline: 0 0 0 2px var(--color-secondary);
}

/* --- TYPOGRAPHY --- */
body {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.625rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.1875rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: -.005em;
}
.subheadline, .intro-text {
  color: var(--color-warm-contrast);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 18px;
}
strong, b {
  font-weight: 700;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section,
.hero,
.features,
.about,
.team,
.services,
.cta-banner,
.info,
.industry-sectors,
.process,
.faq,
.benefits,
.legal,
.use-cases,
.ai-services,
.contact-form-section,
.blog-listing,
.about-preview,
.use-cases-highlight,
.case-highlights {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--card-radius);
  background: var(--color-warm-4);
}
.section:last-child, .features:last-child, .about:last-child, .team:last-child, .cta-banner:last-child, .benefits:last-child { margin-bottom: 0; }

/* --- FLEXBOX COMPONENTS --- */
.card-container,
.card-grid,
.feature-grid,
.post-list,
.solution-cards,
.benefit-grid,
.use-case-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .post-list article, .feature-grid > div, .use-case-teasers > div, .solution-cards > div, .benefit-grid > div {
  background: #fff;
  padding: 24px 20px;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  flex: 1 1 240px;
  min-width: 225px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .feature-grid > div:hover, .solution-cards > div:hover, .benefit-grid > div:hover, .post-list article:hover {
  box-shadow: 0 6px 36px rgba(220,120,37,0.16);
  transform: translateY(-3px) scale(1.018);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-grid { flex-direction: column; gap: 16px; }
  .feature-grid, .benefit-grid, .solution-cards, .post-list, .use-case-teasers, .card-container { flex-direction: column; gap: 18px; }
}

/* -- Feature/Benefits List -- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.feature-item:last-child { margin-bottom: 0; }

/* --- HEADER/NAV --- */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(220,120,37,0.04);
  padding: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 8px 16px;
  border-radius: var(--button-radius);
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.main-nav a:hover,.footer-nav a:hover {
  background: var(--color-warm-1);
  color: var(--color-secondary);
}
.main-nav img {
  height: 36px;
  width: auto;
  margin-right: 10px;
}
.cta-nav {
  background: var(--color-secondary);
  color: #fff !important;
  font-weight: 700;
  margin-left: 10px;
  box-shadow: 0 3px 10px 0 rgba(33,196,157,.16);
  transition: background var(--transition), box-shadow var(--transition);
}
.cta-nav:hover {
  background: #17a57d;
  box-shadow: 0 5px 18px 0 rgba(33,196,157,0.19);
  color: #fff;
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  line-height: 44px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 22px;
  top: 16px;
  z-index: 1002;
  box-shadow: 0 2px 8px 0 rgba(33,196,157,.13);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:focus {
  outline: var(--focus-outline);
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36, 22, 10, 0.96);
  z-index: 1100;
  transform: translateX(-100vw);
  transition: transform .35s cubic-bezier(.51,.2,.19,1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 44px; height:44px;
  margin: 26px 26px 12px auto;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover { background: var(--color-secondary); color: #fff; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.37rem;
  font-weight: 600;
  padding: 12px 0;
  transition: color var(--transition), background var(--transition);
  border-radius: var(--button-radius);
  width: 100%;
}
.mobile-nav a:hover {
  color: var(--color-secondary);
  background: rgba(244,242,240,0.11);
}
@media (max-width: 768px) {
  .mobile-nav {
    gap: 18px;
    padding: 0 18px;
  }
  .mobile-menu {
    padding: 0;
  }
}

/* --- BUTTONS & CTA --- */
.cta-primary,
.button,
button[type="submit"] {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.19rem;
  border-radius: var(--button-radius);
  border: none;
  padding: 13px 38px;
  margin-top: 7px;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(33,196,157,0.13);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  display: inline-block;
  min-width: 160px;
  text-align: center;
}
.cta-primary:focus, .button:focus, button[type="submit"]:focus {
  outline: var(--focus-outline);
}
.cta-primary:hover, .button:hover, button[type="submit"]:hover {
  background: #17a57d;
  box-shadow: 0 5px 20px 0 rgba(33,196,157,0.18);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* --- HERO SECTIONS --- */
.hero {
  background: var(--color-warm-3);
  box-shadow: 0 2px 34px 0 rgba(241,166,55,0.11);
  border-radius: var(--card-radius);
  margin-bottom: 60px;
  padding: 68px 20px 56px 20px;
  position: relative;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.6rem;
}
.hero .cta-primary {
  margin-top: 12px;
}
@media (max-width: 600px) {
  .hero { padding: 32px 8px 32px 8px; }
  .hero h1 { font-size: 2rem; }
}

/* --- FEATURES --- */
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  flex: 1 1 220px;
  padding: 25px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.feature-grid > div img {
  height: 56px; width: 56px; margin-bottom: 8px;
}
@media (max-width: 820px) {
  .feature-grid { flex-direction: column; gap: 18px; }
}

/* --- TESTIMONIALS --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff8f3;
  border-radius: var(--card-radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 16px 0 rgba(236, 168, 82, 0.16);
  flex: 1 1 260px;
  min-width: 240px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(236, 168, 82, 0.23);
  transform: translateY(-2px) scale(1.015);
}
.testimonial-card p {
  font-size: 1.14rem;
  color: var(--color-warm-contrast);
  margin-bottom: 0;
  font-style: italic;
  font-family: var(--font-body);
  font-weight: 500;
}
.testimonial-card span {
  color: var(--color-primary);
  font-size: .98rem;
  font-weight: 600;
  margin-left: 10px;
}
.testimonials .client-logos {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding-left: 10px;
}

/* --- BLOG LISTING --- */
.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.post-list article {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 23px 19px;
  flex: 1 1 285px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}

/* --- CATEGORY FILTERS --- */
.category-filters {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: .99rem;
  color: var(--color-primary);
}
.category-filters a {
  color: var(--color-secondary);
  padding: 4px 12px;
  border-radius: var(--button-radius);
  background: #e7fff7;
  margin: 0 2px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.category-filters a:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* --- NEWSLETTER CTA --- */
.newsletter-cta {
  background: var(--color-info);
  border-radius: var(--card-radius);
  padding: 20px 19px;
  margin: 34px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

/* --- Cards, Services, Solution Cards --- */
.solution-cards > div {
  min-width: 215px !important;
}

/* --- About/Trusted logos --- */
.trusted-by-logos {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 11px;
}
.trusted-by-logos img { height: 36px; width: auto; opacity: .93 }

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: #fff;
  margin-top: 80px;
  font-size: 0.96rem;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.footer-inner > a img {
  height: 38px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #fff;
  background: none;
  padding: 7px 14px;
  font-weight: 400;
  border-radius: var(--button-radius);
  transition: background var(--transition), color var(--transition);
  font-size: .99rem;
}
.footer-nav a:focus { outline: var(--focus-outline); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #fff;
  font-size: .98rem;
}
.footer-contact img {
  width: 19px; height:19px; vertical-align: middle;
  margin-right: 6px;
  opacity: .95
}
.footer-contact a {
  color: var(--color-secondary);
  font-weight: 500;
  margin-left: 4px;
  transition: color var(--transition);
}
.footer-contact a:hover { color: #fff; background: var(--color-secondary); border-radius: 10px; padding:0 4px; }
.footer-bottom {
  font-size: .93rem;
  color: #d9efea;
  padding: 3px 0 0 0;
  border-top: 1px solid #49494933;
  margin-top: 12px;
}
@media (max-width: 800px) {
  .footer-inner { gap: 12px; padding: 28px 8px 16px 8px; }
  .footer-nav { gap: 6px; margin-bottom: 9px; flex-direction: column; }
}

/* --- LEGAL SECTIONS --- */
.legal {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 16px rgba(244,194,143,0.10);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.legal h1, .legal h2 { color: var(--color-warm-contrast); }
.legal ul { margin-bottom: 18px; padding-left: 18px; }
.legal li { margin-bottom: 8px; list-style: disc inside; }

/* --- FORMS/CONTACT --- */
.contact-form-section .contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff8f3;
  border-radius: var(--card-radius);
  padding: 18px 14px;
  margin-bottom: 18px;
}
.contact-details img { width: 19px; height: 19px; margin-right: 7px; opacity:.88; vertical-align: middle; }
.contact-details a { color: var(--color-secondary); font-weight: 600; }
.map { margin-top: 8px; color: var(--color-primary); font-size: .96rem; }

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--color-secondary);
  color: #fff;
  text-align: center;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 26px 0 rgba(33,196,157,.14);
}
.cta-banner h2,
.cta-banner p { color: #fff !important; }
.cta-banner .cta-primary { background: #fff; color: var(--color-secondary); margin-top: 14px; }
.cta-banner .cta-primary:hover { background: var(--color-warm-1); color: var(--color-secondary); }


/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #ffe7d0;
  color: var(--color-primary);
  box-shadow: 0 -2px 18px rgba(241,166,55,0.17);
  z-index: 1200;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  font-size: 1rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  animation: cookie-slide-in .4s ease forwards;
}
@keyframes cookie-slide-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  padding: 9px 20px;
  border-radius: var(--button-radius);
  font-weight: 600;
  font-size:1rem;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-banner button.cookie-settings {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner button.cookie-reject {
  background: #fff;
  color: var(--color-warm-contrast);
  border: 1px solid #ffd6b0;
}
.cookie-banner button:hover { filter: brightness(0.92); }
.cookie-banner .cookie-settings:hover { background: var(--color-secondary); color:#fff; }

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 98%;
  max-width: 380px;
  z-index: 1250;
  transform: translate(-50%,120%);
  background: #fffdfa;
  border-radius: var(--card-radius);
  box-shadow: 0 18px 64px 0 rgba(244,166,55,.32);
  padding:35px 26px 24px 26px;
  animation: cookie-modal-in .48s cubic-bezier(.36,.69,.19,1) forwards;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 50%;
  border: none;
  width: 32px; height: 32px;
  font-size: 1.25rem;
  cursor: pointer;
}
@keyframes cookie-modal-in {
  0% {transform: translate(-50%,120%); opacity:0;}
  100% {transform: translate(-50%,-50%); opacity:1;}
}
.cookie-modal h2 { color: var(--color-primary); font-size: 1.35rem; margin-bottom: 4px; }
.cookie-modal label {
  display: flex; align-items: center; gap: 12px;
  font-size:1rem; cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px; height: 20px;
  border-radius: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}
.cookie-modal .cookie-cat-label {
  font-weight: 600;
  color: var(--color-secondary);
}
.cookie-modal .category-essential {
  opacity: .7;
  font-style: italic;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .cookie-actions button {
  font-size: 1rem;
  padding: 8px 17px;
}
@media (max-width: 500px) {
  .cookie-modal { padding: 26px 10px 14px 10px; }
  .cookie-banner { padding: 13px 2px; font-size: .99rem; flex-wrap: wrap; gap: 9px;}
}

/* --- MISC / UTILITY CLASSES --- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-20 { gap: 20px !important; }
.max-width-500 { max-width: 500px; margin: 0 auto; }

/* --- HELPER - EMPTY STATE --- */
.empty-state { color: var(--color-warm-contrast); font-size: 1.1rem; opacity:.8; }

/* --- MEDIA QUERIES --- */
@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.17rem; }
  .container { padding: 0 6px; }
  .section, .hero, .features, .about, .team, .cta-banner, .info, .legal, .use-cases, .ai-services, .contact-form-section, .blog-listing, .about-preview, .use-cases-highlight { padding: 24px 2px; }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 9px;
  background: #fff7e9;
}
::-webkit-scrollbar-thumb {
  background: #ffd8b0;
  border-radius: 12px;
}

/* --- FOCUS STATE --- */
a:focus, button:focus { outline: var(--focus-outline);}

/* --- TRANSITIONS --- */
*:not(.cookie-modal):not(.cookie-banner) {
  transition: color var(--transition), background-color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* --- SHADOWS/ROUNDED ALL BUTTONS / CARDS / SECTIONS --- */
.button, .cta-primary, button, .testimonial-card, .card, .feature-grid > div, .solution-cards > div, .benefit-grid > div {
  border-radius: var(--button-radius);
  box-shadow: var(--card-shadow);
}

/* --- SUCCESS/INFO/ERROR (if used) --- */
.alert-success {
  background: #e5fbe7;
  color: var(--color-success);
  padding: 12px 22px;
  border-radius: var(--card-radius);
}

.alert-danger {
  background: #fff1ed;
  color: var(--color-danger);
  padding: 11px 20px;
  border-radius: var(--card-radius);
}

.alert-info {
  background: #fffbee;
  color: var(--color-primary);
  padding: 11px 20px;
  border-radius: var(--card-radius);
}

/* END OF CSS */
