/* ----------------------------- */
/* 1. ROOT & THEME VARIABLES     */
/* ----------------------------- */

:root {
  /* Light Theme Colors */
  --color-bg: #f8f9fa;
  --color-text: #212529;
  --color-text-muted: #6c757d;
  --color-primary: #0d6efd;
  --color-accent: #6f42c1;
  --color-surface: #ffffff;
  --color-border: #dee2e6;
  --color-shadow: rgba(0, 0, 0, 0.05);
  --color-hero-overlay: rgba(255, 255, 255, 0.7);

  /* Typography */
  --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 1rem;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-bold: 700;

  /* Spacing & Layout */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;
  --spacing-xxl: 4rem;
  --container-width: 1200px;
  --container-padding: 1.5rem;

  /* Borders & Radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-width: 1px;

  /* Transitions */
  --transition-fast: 200ms ease-in-out;
  --transition-smooth: 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121212;
    --color-text: #e8e6e3;
    --color-text-muted: #a8a29a;
    --color-primary: #58a6ff;
    --color-accent: #a371f7;
    --color-surface: #1e1e1e;
    --color-border: #333333;
    --color-shadow: rgba(0, 0, 0, 0.2);
    --color-hero-overlay: rgba(18, 18, 18, 0.7);
  }
}

/* ----------------------------- */
/* 2. RESET & BASE STYLES        */
/* ----------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: 1.7;
  font-weight: var(--font-weight-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--transition-fast),
    color var(--transition-fast);
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 var(--spacing-md) 0;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}
h4 {
  font-size: 1.1rem;
}
h5 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------- */
/* 3. LAYOUT & CONTAINER         */
/* ----------------------------- */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

main > section {
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
}

.text-center {
  text-align: center;
}
.section-title {
  margin-bottom: var(--spacing-sm);
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto var(--spacing-xl) auto;
}

/* ----------------------------- */
/* 4. HEADER & NAVIGATION        */
/* ----------------------------- */

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
  background-color: transparent;
  backdrop-filter: blur(10px);
  border-bottom: var(--border-width) solid transparent;
  transition: background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.main-header.header-scrolled {
  background-color: color-mix(in srgb, var(--color-bg), transparent 7%);
  border-color: var(--color-border);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
  padding: var(--spacing-sm) 0;
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  z-index: 1001;
}

/* ----------------------------- */
/* 5. BUTTONS                    */
/* ----------------------------- */

.button {
  display: inline-block;
  padding: 0.75em 1.5em;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-align: center;
  text-decoration: none;
  border: var(--border-width) solid transparent;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.button:hover {
  text-decoration: none;
}

.button-primary {
  background-color: var(--color-primary);
  color: white;
}
.button-primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 90%, black);
  transform: translateY(-2px);
}

.button-accent {
  background-color: var(--color-accent);
  color: white;
}
.button-accent:hover {
  background-color: color-mix(in srgb, var(--color-accent) 90%, black);
  transform: translateY(-2px);
}

.button-secondary {
  background-color: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-border);
}
.button-secondary:hover {
  background-color: var(--color-border);
  border-color: var(--color-border);
}

.button-large {
  padding: 0.9em 2em;
  font-size: 1.1rem;
}

/* ----------------------------- */
/* 6. HERO SECTION               */
/* ----------------------------- */

.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80vh;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-hero-overlay);
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoom-in 20s ease-in-out infinite alternate;
}

@keyframes zoom-in {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

/* ----------------------------- */
/* 7. SPECIFIC SECTIONS          */
/* ----------------------------- */

/* Description Section */
.description-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xxl);
  align-items: center;
}

.description-image-wrapper {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}
.description-image-wrapper img {
  transition: transform var(--transition-smooth);
}
.description-image-wrapper:hover img {
  transform: scale(1.05);
}

.description-list {
  list-style-type: none;
  padding-left: var(--spacing-md);
}

.description-list li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.description-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* Benefits Section */
.benefits-section {
  background-color: var(--color-surface);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.benefit-card {
  padding: var(--spacing-xl);
  text-align: center;
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}
.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--color-shadow);
}

.benefit-icon svg {
  width: 50px;
  height: 50px;
  color: var(--color-accent);
  margin-bottom: var(--spacing-lg);
}

/* Case Studies Section */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}
.case-study-card {
  background-color: var(--color-surface);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: var(--border-width) solid var(--color-border);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}
.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--color-shadow);
}
.case-study-content {
  padding: var(--spacing-lg);
}
.case-study-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
}
.case-study-description {
  color: var(--color-text-muted);
}

/* Mission/Vision Section */
.mission-vision-section {
  background-color: var(--color-accent);
  color: white;
}
.mission-vision-section .section-title-light {
  color: white;
}
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.team-member-card {
  text-align: center;
}

.team-member-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  border-radius: 50%;
  background-color: var(--color-surface);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

.team-member-role {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--color-surface);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}
.testimonial-card {
  background-color: var(--color-bg);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-md);
  border-left: 5px solid var(--color-primary);
}
.testimonial-icon {
  margin-bottom: var(--spacing-md);
}
.testimonial-icon svg {
  width: 30px;
  height: 30px;
  color: var(--color-text-muted);
}
.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
}
.testimonial-author {
  font-style: normal;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-top: var(--spacing-lg);
  display: block;
}

/* FAQ Section */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: var(--border-width) solid var(--color-border);
}
.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--spacing-lg) 0;
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
}
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: var(--spacing-md);
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-smooth),
    padding var(--transition-smooth);
}
.faq-answer p {
  padding-bottom: var(--spacing-lg);
  color: var(--color-text-muted);
}

.faq-more-info {
  text-align: center;
  margin-top: var(--spacing-xl);
  color: var(--color-text-muted);
}

/* CTA Section */
.cta-section {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
}
.cta-title {
  color: white;
}
.cta-text {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
}

/* ----------------------------- */
/* 8. FOOTER                     */
/* ----------------------------- */

.main-footer {
  background-color: var(--color-surface);
  padding: var(--spacing-xxl) 0 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
}

.footer-links ul li,
.footer-legal ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a,
.footer-legal a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-links a:hover,
.footer-legal a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-bottom {
  padding: var(--spacing-lg) 0;
  border-top: var(--border-width) solid var(--color-border);
  text-align: center;
}

/* ----------------------------- */
/* 9. COOKIE BANNER              */
/* ----------------------------- */

.cookie-notice-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: color-mix(in srgb, var(--color-surface) 95%, transparent);
  box-shadow: 0 -5px 15px var(--color-shadow);
  z-index: 1001;
  padding: var(--spacing-md) 0;
  transform: translateY(0);
  transition: transform var(--transition-smooth),
    visibility var(--transition-smooth);
  visibility: visible;
}

.cookie-notice-banner.hidden {
  transform: translateY(100%);
  visibility: hidden;
}

.cookie-notice-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
}

.cookie-text {
  font-size: 0.9rem;
}
.cookie-text h5 {
  margin-bottom: var(--spacing-xs);
}
.cookie-text p {
  margin-bottom: 0;
}
.cookie-text a {
  font-weight: var(--font-weight-bold);
}

/* ----------------------------- */
/* 10. ANIMATIONS & RESPONSIVE   */
/* ----------------------------- */

/* Reveal on scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-smooth),
    transform var(--transition-smooth);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .description-grid,
  .mission-vision-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    z-index: 1000;
  }

  body.nav-open .nav-menu {
    transform: translateX(0);
  }

  .nav-actions {
    display: none; /* Hide desktop button on mobile nav */
  }

  .mobile-nav-toggle {
    display: block;
  }

  .cookie-notice-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    margin-top: var(--spacing-md);
  }

  .footer-grid {
    text-align: center;
  }
}
