/**
 * Unione Partners
 */

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

html {
  scroll-behavior: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

main, section, footer, article, aside {
  max-width: 100%;
  overflow-x: hidden;
}

header.navbar {
  overflow: visible !important;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ===== Typography ===== */
.heading-xl {
  font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--foreground);
}

.heading-md {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--foreground);
}

.body-lg {
  font-size: clamp(0.938rem, 1vw + 0.5rem, 1.125rem);
  color: var(--muted-foreground);
  line-height: 1.7;
}

.body-md {
  font-size: clamp(0.875rem, 0.5vw + 0.5rem, 1rem);
  color: var(--muted-foreground);
  line-height: 1.7;
}

.subtitle-muted { color: hsla(0, 0%, 45%, 0.6); }
.text-background { color: var(--background); }
.text-background-muted { color: hsla(0, 0%, 100%, 0.6); }
.text-muted { color: var(--muted-foreground); }

/* ===== Layout ===== */
.page-wrapper {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

.main-content {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

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

@media (min-width: 640px) { .section-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .section-container { padding: 0 3rem; } }

@media (max-width: 767px) {
  .section-container {
    max-width: 100%;
    overflow-x: hidden;
  }
}

.section {
  min-height: calc(100vh - var(--navbar-height));
  min-height: calc(100svh - var(--navbar-height));
  display: flex;
  align-items: center;
  padding: 3rem 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.scroll-mt-14 { scroll-margin-top: 3.5rem; }
.bg-secondary-30 { background-color: hsla(0, 0%, 96%, 0.3); }

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

@media (min-width: 1024px) { .section-header { margin-bottom: 3rem; } }

.section-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

@media (min-width: 640px) { .section-label { font-size: var(--font-size-sm); margin-bottom: 1.5rem; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-sm { padding: 0.375rem 1rem; font-size: var(--font-size-xs); height: 2rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: var(--font-size-sm); min-height: 44px; }

@media (min-width: 640px) { .btn-lg { padding: 0.875rem 2rem; font-size: var(--font-size-base); } }

.btn-primary {
  background-color: var(--foreground);
  color: var(--background);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background-color: hsl(0, 0%, 18%);
  transform: scale(1.02);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid hsla(0, 0%, 0%, 0.2);
}

.btn-outline:hover { background-color: hsla(0, 0%, 0%, 0.05); }

.btn-accent {
  background-color: var(--accent);
  color: white;
  box-shadow: var(--shadow-button);
}

.btn-accent:hover { background-color: hsl(0, 84%, 55%); transform: scale(1.02); }

.btn-white {
  background-color: var(--background);
  color: var(--foreground);
}

.btn-white:hover { background-color: hsl(0, 0%, 95%); }

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--transition-base);
}

.btn:hover .btn-icon { transform: translateX(4px); }

.btn-compact {
  flex: 1;
  padding: 0.625rem;
  font-size: var(--font-size-xs);
  height: auto;
}

/* ===== Reveal Animation ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Utility Classes ===== */
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-lg { font-size: var(--font-size-lg); }

.py-32 { padding-top: 8rem; padding-bottom: 8rem; }

@media (min-width: 640px) {
  .sm\:py-40 { padding-top: 10rem; padding-bottom: 10rem; }
}

/* ===== Footer ===== */
.footer {
  background-color: hsla(0, 0%, 96%, 0.3);
  border-top: 1px solid var(--border);
}

.footer .section-container { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .footer .section-container { padding-top: 4rem; padding-bottom: 4rem; } }
@media (min-width: 1024px) { .footer .section-container { padding-top: 5rem; padding-bottom: 5rem; } }

.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); gap: 2.5rem; } }
@media (min-width: 1024px) { .footer-grid { gap: 5rem; } }

.footer-brand { grid-column: span 2; }
@media (min-width: 768px) { .footer-brand { grid-column: span 1; } }

.footer-logo { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; }
.footer-logo-text { font-size: var(--font-size-xl); font-weight: 700; color: var(--foreground); }
.footer-logo .text-muted { color: var(--muted-foreground); }
.footer-tagline { font-size: var(--font-size-sm); color: var(--muted-foreground); margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 0.75rem; }

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--secondary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: all var(--transition-base);
}

.social-link:hover { color: var(--foreground); background-color: hsla(0, 0%, 96%, 0.8); }
.social-link svg { width: 1rem; height: 1rem; }

.footer-links h4 { font-size: var(--font-size-sm); font-weight: 600; color: var(--foreground); margin-bottom: 1rem; }
@media (min-width: 640px) { .footer-links h4 { font-size: var(--font-size-base); margin-bottom: 1.25rem; } }

.footer-links ul { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .footer-links ul { gap: 1rem; } }

.footer-links a { font-size: var(--font-size-xs); color: var(--muted-foreground); transition: color var(--transition-base); }
@media (min-width: 640px) { .footer-links a { font-size: var(--font-size-sm); } }
.footer-links a:hover { color: var(--foreground); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; margin-top: 4rem; padding-top: 2rem; } }

.footer-bottom p { font-size: var(--font-size-xs); color: var(--muted-foreground); }
@media (min-width: 640px) { .footer-bottom p { font-size: var(--font-size-sm); } }
