:root {
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-brand: "Oswald", "Impact", "Arial Black", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  --forest-50: #f0fdf2;
  --forest-100: #dcfce7;
  --forest-200: #bbf7d0;
  --forest-300: #86efac;
  --forest-400: #4ade80;
  --forest-500: #22c55e;
  --forest-600: #059669;
  --forest-700: #047857;
  --forest-800: #065f46;
  --forest-900: #064e3b;
  --forest-950: #022c22;

  --earth-50: #fefdf8;
  --earth-100: #fefbeb;
  --earth-200: #fef3c7;
  --earth-300: #fde68a;
  --earth-400: #fcd34d;
  --earth-500: #fbbf24;
  --earth-600: #d97706;
  --earth-700: #b45309;
  --earth-800: #92400e;
  --earth-900: #78350f;

  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --gold-800: #92400e;
  --gold-900: #78350f;

  --neutral-0: #ffffff;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0a0a0a;

  --success: var(--forest-600);
  --warning: var(--gold-500);
  --error: #dc2626;
  --info: #2563eb;

  --space-px: 1px;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-48: 12rem;
  --space-56: 14rem;
  --space-64: 16rem;

  --radius-none: 0;
  --radius-xs: 0.125rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-4xl: 2rem;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;

  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;

  --container-xs: 20rem;
  --container-sm: 24rem;
  --container-md: 28rem;
  --container-lg: 32rem;
  --container-xl: 36rem;
  --container-2xl: 42rem;
  --container-3xl: 48rem;
  --container-4xl: 56rem;
  --container-5xl: 64rem;
  --container-6xl: 72rem;
  --container-7xl: 80rem;
  --container-8xl: 90rem;

  --max-width: var(--container-8xl);
  --nav-height: 5rem;
}

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

html {
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--neutral-800);
  background-color: var(--neutral-0);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--neutral-900);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(var(--text-4xl), 4vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl));
  font-weight: 600;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--neutral-700);
}

.text-large {
  font-size: var(--text-lg);
  line-height: 1.6;
}

.text-small {
  font-size: var(--text-sm);
  line-height: 1.5;
}

.navbar {
  background: var(--neutral-0);
  border-bottom: 1px solid var(--neutral-200);
  height: var(--nav-height);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-name {
  font-family: var(--font-brand);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--forest-700);
  transition: color var(--duration-normal) var(--ease-out);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-brand:hover {
  color: var(--forest-600);
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  transition: transform var(--duration-normal) var(--ease-back);
}

.nav-brand:hover .brand-logo {
  transform: scale(1.05);
}

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

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--neutral-700);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--forest-700);
  background: var(--forest-50);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--forest-600);
  border-radius: var(--radius-full);
  transition: transform var(--duration-normal) var(--ease-back);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--forest-600);
  color: var(--neutral-0);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  background: var(--forest-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  color: var(--neutral-700);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-toggle:hover {
  background: var(--neutral-100);
  color: var(--forest-700);
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--neutral-0);
    border-top: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    gap: 0;
    padding: var(--space-6) 0;
    z-index: var(--z-dropdown);
    transform: translateY(-10px);
    opacity: 0;
    transition: all var(--duration-normal) var(--ease-out);
  }

  .nav-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--space-4) var(--space-6);
    border-radius: 0;
    margin: 0;
    border-bottom: 1px solid var(--neutral-100);
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link:hover {
    background: var(--forest-50);
    color: var(--forest-700);
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    padding: var(--space-2);
    margin: 0;
    border-radius: var(--radius-lg);
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    min-width: auto;
  }

  .nav-cta span {
    display: none;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: calc(var(--z-dropdown) + 1);
  }

  .nav-container {
    padding: 0 var(--space-4);
    position: relative;
  }

  .brand-name {
    font-size: var(--text-lg);
  }

  .brand-logo {
    width: 2rem;
    height: 2rem;
  }

  .nav-toggle .lucide {
    transition: transform var(--duration-normal) var(--ease-out);
  }

  .nav-toggle[aria-expanded="true"] .lucide {
    transform: rotate(90deg);
  }
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-4) 0;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--forest-900) 0%,
    var(--forest-800) 50%,
    var(--forest-700) 100%
  );
  opacity: 0.6;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: rgba(255, 255, 255, 0.1);
  color: var(--neutral-0);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  backdrop-filter: blur(10px);
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.8s var(--ease-out);
}

.hero-title {
  color: var(--neutral-0);
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-title-accent {
  display: block;
  color: var(--gold-300);
  font-style: italic;
  margin-top: var(--space-2);
}

.hero-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
  width: 100%;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-12);
  animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
  width: 100%;
}

.stat {
  text-align: center;
  color: var(--neutral-0);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--gold-300);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--neutral-0);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  cursor: pointer;
  animation: bounce 2s infinite;
  transition: all var(--duration-normal) var(--ease-out);
}

.hero-scroll:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(100dvh - var(--nav-height));
    padding: var(--space-6) 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    padding: var(--space-6) var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
  }

  .hero-badge {
    margin-bottom: var(--space-6);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
  }

  .hero-title {
    font-size: clamp(var(--text-3xl), 7vw, var(--text-5xl));
    margin-bottom: var(--space-6);
    line-height: 1.1;
    text-align: center;
  }

  .hero-description {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    line-height: 1.5;
    text-align: center;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-6);
    justify-content: center;
    width: 100%;
  }

  .stat {
    flex: 0 0 auto;
    text-align: center;
  }

  .stat-number {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-1);
  }

  .stat-label {
    font-size: var(--text-base);
  }

  .section {
    padding: var(--space-6) 0;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border: none;
  border-radius: var(--radius-xl);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  min-height: 3rem;
  min-width: 180px;
  font-family: var(--font-primary);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    min-height: 3rem;
    min-width: 200px;
    flex: 1;
    max-width: 250px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: none;
    height: 3rem;
  }

  .hero-actions .btn .lucide {
    width: 1.25rem;
    height: 1.25rem;
  }

  .btn-full {
    width: 100%;
  }
}

.btn:focus-visible {
  outline: 2px solid var(--forest-500);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--neutral-0);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gold-600);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--neutral-0);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--forest-700);
  border: 1px solid var(--forest-300);
}

.btn-outline:hover {
  background: var(--forest-50);
  border-color: var(--forest-600);
  color: var(--forest-800);
}

.btn-full {
  width: 100%;
}

.section {
  padding: var(--space-8) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: var(--space-8);
    padding: 0 var(--space-4);
  }

  .section-title {
    font-size: clamp(var(--text-xl), 6vw, var(--text-3xl));
  }

  .section-description {
    font-size: var(--text-base);
  }
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--forest-100);
  color: var(--forest-800);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.section-title {
  margin-bottom: var(--space-6);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--neutral-600);
  line-height: 1.7;
}

.expertise {
  background: var(--neutral-50);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  justify-items: center;
  align-items: stretch;
}

@media (max-width: 768px) {
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .expertise-card {
    padding: var(--space-6);
  }
}

.expertise-card {
  background: var(--neutral-0);
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.expertise-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--forest-500), var(--gold-500));
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--forest-300);
}

.expertise-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--forest-100), var(--forest-200));
  color: var(--forest-700);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  transition: all var(--duration-normal) var(--ease-out);
}

.expertise-card:hover .expertise-icon {
  background: linear-gradient(135deg, var(--forest-600), var(--forest-700));
  color: var(--neutral-0);
  transform: scale(1.1);
}

.expertise-card h3 {
  font-size: var(--text-xl);
  color: var(--neutral-900);
  margin-bottom: var(--space-4);
}

.expertise-card p {
  color: var(--neutral-600);
  line-height: 1.6;
}

.services {
  background: var(--neutral-0);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  gap: var(--space-8);
  justify-items: center;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .service-card {
    padding: var(--space-6);
    min-height: auto;
  }
}

.service-card {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  min-height: 420px;
}

@media (max-width: 768px) {
  .service-card {
    padding: var(--space-4);
    min-height: auto;
  }
}

.service-card.featured {
  border-color: var(--gold-400);
  background: linear-gradient(135deg, var(--gold-50), var(--neutral-0));
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--forest-400);
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--forest-600), var(--forest-700));
  color: var(--neutral-0);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-badge {
  padding: var(--space-1) var(--space-3);
  background: var(--gold-500);
  color: var(--neutral-0);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-card h3 {
  font-size: var(--text-2xl);
  color: var(--neutral-900);
  margin-bottom: var(--space-4);
}

.service-card p {
  color: var(--neutral-600);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.service-features {
  margin-bottom: var(--space-8);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--neutral-700);
  font-size: var(--text-sm);
}

.service-features i {
  width: 1rem;
  height: 1rem;
  color: var(--forest-600);
  flex-shrink: 0;
}

.service-cta {
  margin-top: auto;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
}

.territoires {
  background: var(--neutral-50);
}

.territoires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  justify-items: center;
  align-items: stretch;
}

@media (max-width: 768px) {
  .territoires-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .territoire-card {
    padding: var(--space-4);
    min-height: 120px;
  }

  .territoire-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.territoire-card {
  background: var(--neutral-0);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.territoire-card.primary {
  background: linear-gradient(135deg, var(--forest-600), var(--forest-700));
  color: var(--neutral-0);
  border-color: var(--forest-500);
}

.territoire-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--forest-400);
}

.territoire-icon {
  width: 3rem;
  height: 3rem;
  background: var(--forest-100);
  color: var(--forest-700);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.territoire-card.primary .territoire-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--neutral-0);
}

.territoire-card h3 {
  font-size: var(--text-lg);
  color: var(--neutral-900);
  margin-bottom: var(--space-2);
}

.territoire-card.primary h3 {
  color: var(--neutral-0);
}

.territoire-card p {
  font-size: var(--text-sm);
  color: var(--neutral-600);
}

.territoire-card.primary p {
  color: rgba(255, 255, 255, 0.9);
}

.territoire-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-1) var(--space-2);
  background: var(--gold-500);
  color: var(--neutral-0);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.contact {
  background: var(--neutral-0);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  justify-items: stretch;
}

.contact-info .section-header {
  text-align: left;
  margin-bottom: var(--space-12);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-method {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.contact-method:hover {
  background: var(--forest-50);
  border-color: var(--forest-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.method-icon {
  width: 3rem;
  height: 3rem;
  background: var(--forest-600);
  color: var(--neutral-0);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-content h4 {
  font-size: var(--text-lg);
  color: var(--neutral-900);
  margin-bottom: var(--space-2);
}

.method-link {
  display: block;
  color: var(--forest-700);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.method-link:hover {
  color: var(--forest-600);
  text-decoration: underline;
}

.method-note {
  font-size: var(--text-sm);
  color: var(--neutral-500);
}

.method-address {
  font-style: normal;
  color: var(--neutral-700);
  line-height: 1.5;
}

.contact-form-container {
  background: var(--neutral-50);
  padding: var(--space-10);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-lg);
}

.form-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.form-header h3 {
  font-size: var(--text-2xl);
  color: var(--neutral-900);
  margin-bottom: var(--space-3);
}

.form-header p {
  color: var(--neutral-600);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-4);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  background: var(--neutral-0);
  transition: all var(--duration-fast) var(--ease-out);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--neutral-500);
  text-align: center;
}

.field-help {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--neutral-500);
  font-style: italic;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .contact-info .section-header {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-container {
    padding: var(--space-4);
  }

  .contact-method {
    padding: var(--space-4);
  }

  .method-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .method-content h4 {
    font-size: var(--text-base);
  }
}

.footer {
  background: var(--neutral-900);
  color: var(--neutral-400);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand .brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.footer-brand .brand-name {
  font-family: var(--font-brand);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--neutral-0);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-description {
  color: var(--neutral-400);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.footer-certifications {
  display: flex;
  gap: var(--space-4);
}

.certification {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--neutral-800);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--forest-400);
}

.footer-links h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--neutral-0);
  margin-bottom: var(--space-4);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--neutral-400);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
  color: var(--forest-400);
}

.footer-contact h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--neutral-0);
  margin-bottom: var(--space-4);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-contact-item i {
  color: var(--forest-500);
  margin-top: var(--space-1);
  flex-shrink: 0;
}

.footer-contact-item div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-contact-item a {
  color: var(--forest-400);
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-contact-item a:hover {
  color: var(--forest-300);
}

.footer-contact-item address {
  font-style: normal;
  color: var(--neutral-400);
  line-height: 1.5;
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--neutral-800);
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-legal .copyright {
  flex: 1;
}

.footer-legal .copyright p {
  margin: 0;
  color: var(--neutral-200);
  font-size: var(--text-base);
  font-weight: 500;
}

.legal-links {
  display: flex;
  gap: var(--space-6);
}

.legal-links a {
  color: var(--neutral-500);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-out);
}

.legal-links a:hover {
  color: var(--neutral-300);
}

@media (max-width: 768px) {
  .footer {
    padding: var(--space-12) 0 var(--space-6);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }

  .footer-certifications {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-legal {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }

  .legal-links {
    gap: var(--space-4);
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-brand .brand {
    justify-content: center;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-3rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(3rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40%,
  43% {
    transform: translateX(-50%) translateY(-0.5rem);
  }
  70% {
    transform: translateX(-50%) translateY(-0.25rem);
  }
  90% {
    transform: translateX(-50%) translateY(-0.125rem);
  }
}

.section {
  opacity: 0;
  transform: translateY(3rem);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.section.revealed .section-header {
  opacity: 1;
  transform: translateY(0);
}

.expertise-card,
.service-card,
.territoire-card {
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.revealed .expertise-card {
  animation: slideInFromLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section.revealed .service-card {
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section.revealed .territoire-card {
  animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section.revealed .expertise-card:nth-child(1) {
  animation-delay: 0.1s;
}
.section.revealed .expertise-card:nth-child(2) {
  animation-delay: 0.2s;
}
.section.revealed .expertise-card:nth-child(3) {
  animation-delay: 0.3s;
}
.section.revealed .expertise-card:nth-child(4) {
  animation-delay: 0.4s;
}

.section.revealed .service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.section.revealed .service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.section.revealed .service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.section.revealed .service-card:nth-child(4) {
  animation-delay: 0.4s;
}

.section.revealed .territoire-card:nth-child(1) {
  animation-delay: 0.1s;
}
.section.revealed .territoire-card:nth-child(2) {
  animation-delay: 0.15s;
}
.section.revealed .territoire-card:nth-child(3) {
  animation-delay: 0.2s;
}
.section.revealed .territoire-card:nth-child(4) {
  animation-delay: 0.25s;
}
.section.revealed .territoire-card:nth-child(5) {
  animation-delay: 0.3s;
}
.section.revealed .territoire-card:nth-child(6) {
  animation-delay: 0.35s;
}

.contact-method {
  opacity: 0;
  transform: translateX(-2rem);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact.revealed .contact-method:nth-child(1) {
  animation: slideInFromLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}
.contact.revealed .contact-method:nth-child(2) {
  animation: slideInFromLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.contact-form-container {
  opacity: 0;
  transform: translateX(2rem);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact.revealed .contact-form-container {
  animation: slideInFromRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-scroll {
    animation: none;
  }
}

:focus-visible {
  outline: 2px solid var(--forest-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-contrast: high) {
  .btn {
    border-width: 2px;
  }

  .service-card,
  .expertise-card,
  .territoire-card {
    border-width: 2px;
  }
}

.legal-main .nav-brand .brand-name {
  font-size: var(--text-2xl) !important;
}

.legal-main {
  padding-top: 120px;
  padding-bottom: 60px;
  background: var(--neutral-50);
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  line-height: 1.7;
}

.legal-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--forest-700);
  margin-bottom: 24px;
  text-align: center;
}

.legal-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--forest-600);
  margin-top: 40px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--forest-100);
  padding-bottom: 8px;
}

.legal-update {
  background: var(--forest-50);
  border: 1px solid var(--forest-200);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 40px;
  color: var(--forest-700);
  text-align: center;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--neutral-700);
}

.legal-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--neutral-700);
}

.legal-content a {
  color: var(--forest-600);
  text-decoration: underline;
  font-weight: 500;
}

.legal-content a:hover {
  color: var(--forest-700);
}

.legal-footer {
  background: var(--forest-700);
  padding: 30px 0;
  text-align: center;
}

.back-link {
  color: white !important;
  text-decoration: none !important;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--forest-600);
  transition: background var(--duration-normal);
}

.back-link:hover {
  background: var(--forest-500);
}

@media (max-width: 768px) {
  .legal-content {
    margin: 0 20px;
    padding: 40px 24px;
  }

  .legal-title {
    font-size: var(--text-3xl);
  }

  .legal-subtitle {
    font-size: var(--text-lg);
  }
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 16px;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
}

.checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  margin-right: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-text {
  color: var(--neutral-700);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.checkbox-text a {
  color: var(--forest-600);
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

.legal-page {
  min-height: calc(100vh - 80px);
  padding: var(--space-16) 0 var(--space-24);
  background: linear-gradient(
    135deg,
    var(--neutral-50) 0%,
    var(--forest-50) 100%
  );
}

.legal-header {
  text-align: center;
  margin-bottom: var(--space-16);
  padding: var(--space-12) 0;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.legal-header p {
  font-size: var(--text-lg);
  color: var(--neutral-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.legal-card {
  background: var(--neutral-0);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--neutral-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.legal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--forest-600), var(--forest-400));
}

.legal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.legal-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--forest-600), var(--forest-500));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

.legal-icon i,
.legal-icon svg {
  color: white !important;
  fill: none !important;
  stroke: white !important;
  stroke-width: 2 !important;
  width: 24px;
  height: 24px;
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.legal-info p {
  color: var(--neutral-700);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.legal-info p:last-child {
  margin-bottom: 0;
}

.legal-info ul {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.legal-info ul li {
  color: var(--neutral-700);
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  line-height: 1.6;
}

.legal-info ul li::before {
  content: "•";
  color: var(--forest-600);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: var(--space-2);
}

.legal-info strong {
  color: var(--neutral-900);
  font-weight: 600;
}

.legal-info a {
  color: var(--forest-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal-info a:hover {
  color: var(--forest-700);
  text-decoration: underline;
}

.legal-nav {
  text-align: center;
  padding-top: var(--space-12);
  border-top: 1px solid var(--neutral-200);
  margin-top: var(--space-16);
}

.legal-nav .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

@media (max-width: 768px) {
  .legal-page {
    padding: var(--space-8) 0 var(--space-16);
  }

  .legal-header {
    padding: var(--space-8) 0;
    margin-bottom: var(--space-12);
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .legal-card {
    padding: var(--space-6);
  }

  .legal-header h1 {
    font-size: 2rem;
  }

  .legal-header p {
    font-size: 1rem;
  }
}

.legal-page .nav-cta i,
.legal-page .nav-toggle i,
.legal-page .footer-contact-item i,
.legal-page .btn i {
  color: white !important;
}

.legal-page .legal-icon i,
.legal-icon i,
.legal-card .legal-icon i,
.legal-icon svg,
.legal-card .legal-icon svg,
.legal-page .legal-icon svg {
  color: white !important;
  fill: none !important;
  stroke: white !important;
  stroke-width: 2 !important;
}
