/* ============================================
   SANTIAGO VILLA & ASOCIADOS — ESTILOS
   Estudio Juridico Integral
   ============================================ */

/* ---- Variables ---- */
:root {
  --color-brand-50: #f8f7f4;
  --color-brand-100: #efece5;
  --color-brand-200: #ddd6c7;
  --color-brand-300: #c4b9a3;
  --color-brand-400: #a8987a;
  --color-brand-500: #8a7a5e;
  --color-brand-600: #6d6048;
  --color-brand-700: #524638;
  --color-brand-800: #3a3228;
  --color-brand-900: #1a1712;
  --color-ink: #1c1917;
  --color-ink-light: #f5f5f0;
  --color-ink-dark: #0c0a09;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --transition-base: cubic-bezier(0.16, 1, 0.3, 1);
}

.dark {
  --color-brand-50: #1a1712;
  --color-brand-100: #3a3228;
  --color-brand-200: #524638;
  --color-brand-300: #6d6048;
  --color-brand-400: #8a7a5e;
  --color-brand-500: #a8987a;
  --color-brand-600: #c4b9a3;
  --color-brand-700: #ddd6c7;
  --color-brand-800: #efece5;
  --color-brand-900: #f8f7f4;
  --color-ink: #f5f5f0;
  --color-ink-light: #1c1917;
  --color-ink-dark: #f5f5f0;
}

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

::selection {
  background-color: var(--color-brand-300);
  color: var(--color-ink);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-brand-50);
  color: var(--color-ink);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-balance {
  text-wrap: balance;
}

/* ---- Layout ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s var(--transition-base);
}

.navbar.scrolled {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(221, 214, 199, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .navbar.scrolled {
  background: rgba(12, 10, 9, 0.7);
  border-bottom-color: rgba(58, 50, 40, 0.3);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

@media (min-width: 1024px) {
  .navbar-inner {
    padding: 0 2rem;
  }
}

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.dark .logo-mark {
  background: var(--color-brand-100);
}

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

.logo-mark span {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand-50);
}

.dark .logo-mark span {
  color: var(--color-ink);
}

.logo-text {
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: block;
  }
}

.logo-text p:first-child {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1;
}

.logo-text p:last-child {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brand-500);
  margin-top: 0.125rem;
}

.dark .logo-text p:last-child {
  color: var(--color-brand-400);
}

/* ---- Nav Links ---- */
.nav-links {
  display: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
  position: relative;
  transition: opacity 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:hover::after {
  width: 100%;
}

/* ---- Nav Actions ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: background 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(221, 214, 199, 0.5);
}

.dark .theme-toggle:hover {
  background: rgba(58, 50, 40, 0.5);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-primary {
  display: none;
}

@media (min-width: 640px) {
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    background: var(--color-ink);
    color: var(--color-brand-50);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease;
  }

  .dark .btn-primary {
    background: var(--color-brand-100);
    color: var(--color-ink);
  }

  .btn-primary:hover {
    transform: scale(1.05);
  }

  .btn-primary svg {
    width: 1rem;
    height: 1rem;
  }
}

.mobile-menu-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(221, 214, 199, 0.3);
  padding: 1.5rem;
}

.dark .mobile-menu {
  background: rgba(12, 10, 9, 0.7);
  border-top-color: rgba(58, 50, 40, 0.3);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.5rem 0;
  text-decoration: none;
  color: inherit;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}

.hero-bg .orb-1 {
  top: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: var(--color-brand-300);
}

.dark .hero-bg .orb-1 {
  opacity: 0.1;
}

.hero-bg .orb-2 {
  bottom: 25%;
  right: 25%;
  width: 20rem;
  height: 20rem;
  background: var(--color-brand-400);
}

.dark .hero-bg .orb-2 {
  opacity: 0.05;
}

.hero-bg .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(221, 214, 199, 0.3);
}

.dark .hero-bg .ring {
  border-color: rgba(58, 50, 40, 0.2);
}

.hero-bg .ring-1 {
  width: 800px;
  height: 800px;
}

.hero-bg .ring-2 {
  width: 600px;
  height: 600px;
  border-color: rgba(221, 214, 199, 0.2);
}

.dark .hero-bg .ring-2 {
  border-color: rgba(58, 50, 40, 0.15);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 0 2rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(221, 214, 199, 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-brand-700);
  margin-bottom: 2rem;
}

.dark .hero-badge {
  background: rgba(58, 50, 40, 0.3);
  color: var(--color-brand-300);
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-500);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  margin-bottom: 2rem;
  max-width: 900px;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-brand-600);
}

.dark .hero h1 em {
  color: var(--color-brand-400);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-brand-600);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.dark .hero p {
  color: var(--color-brand-400);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  background: var(--color-ink);
  color: var(--color-brand-50);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.dark .btn-large {
  background: var(--color-brand-100);
  color: var(--color-ink);
}

.btn-large:hover {
  transform: scale(1.05);
}

.btn-large svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: 1px solid var(--color-brand-300);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.dark .btn-outline {
  border-color: var(--color-brand-700);
}

.btn-outline:hover {
  background: rgba(221, 214, 199, 0.3);
}

.dark .btn-outline:hover {
  background: rgba(58, 50, 40, 0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
}

.hero-scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll .line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, currentColor, transparent);
}

/* ---- Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--transition-base), transform 0.7s var(--transition-base);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Stats Bar ---- */
.stats-bar {
  border-top: 1px solid rgba(221, 214, 199, 0.5);
  border-bottom: 1px solid rgba(221, 214, 199, 0.5);
}

.dark .stats-bar {
  border-color: rgba(58, 50, 40, 0.3);
}

.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    padding: 3rem 2rem;
  }
}

.stat-item {
  text-align: center;
}

@media (min-width: 768px) {
  .stat-item {
    text-align: left;
  }
}

.stat-item p:first-child {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.stat-item p:last-child {
  font-size: 0.875rem;
  color: var(--color-brand-500);
  margin-top: 0.25rem;
}

.dark .stat-item p:last-child {
  color: var(--color-brand-400);
}

/* ---- Section Headers ---- */
.section-header {
  margin-bottom: 4rem;
}

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

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brand-500);
  margin-bottom: 1rem;
}

.dark .section-label {
  color: var(--color-brand-400);
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  max-width: 768px;
}

.section-title em {
  font-style: italic;
  color: var(--color-brand-600);
}

.dark .section-title em {
  color: var(--color-brand-400);
}

/* ---- Bento Cards ---- */
.bento-card {
  border-radius: 1rem;
  border: 1px solid rgba(221, 214, 199, 0.5);
  background: white;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dark .bento-card {
  background: var(--color-ink);
  border-color: rgba(58, 50, 40, 0.3);
}

.bento-card:hover {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  border-color: var(--color-brand-300);
}

.dark .bento-card:hover {
  border-color: var(--color-brand-700);
}

@media (min-width: 768px) {
  .bento-card {
    padding: 2rem;
  }
}

.bento-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.bento-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--color-brand-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .bento-icon {
  background: var(--color-brand-800);
}

.bento-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-brand-700);
}

.dark .bento-icon svg {
  color: var(--color-brand-300);
}

.bento-arrow {
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.bento-card:hover .bento-arrow {
  opacity: 1;
  transform: translate(4px, -4px);
}

.bento-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.bento-card h3.large {
  font-size: 1.5rem;
}

.bento-card p {
  font-size: 0.875rem;
  color: var(--color-brand-600);
  line-height: 1.6;
}

.dark .bento-card p {
  color: var(--color-brand-400);
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.bento-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--color-brand-100);
  font-size: 0.75rem;
  font-weight: 500;
}

.dark .bento-tag {
  background: var(--color-brand-800);
}

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.services-grid .span-2 {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .services-grid .span-2 {
    grid-column: span 2;
  }
}

/* ---- Philosophy Section ---- */
.philosophy {
  background: rgba(239, 236, 229, 0.5);
}

.dark .philosophy {
  background: rgba(26, 23, 18, 0.2);
}

.philosophy-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
  }
}

.philosophy-text {
  color: var(--color-brand-700);
  line-height: 1.7;
}

.dark .philosophy-text {
  color: var(--color-brand-300);
}

.philosophy-text p + p {
  margin-top: 1.5rem;
}

.philosophy-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.philosophy-stat {
  border-left: 2px solid var(--color-brand-400);
  padding-left: 1rem;
}

.philosophy-stat p:first-child {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 500;
}

.philosophy-stat p:last-child {
  font-size: 0.875rem;
  color: var(--color-brand-500);
  margin-top: 0.25rem;
}

.dark .philosophy-stat p:last-child {
  color: var(--color-brand-400);
}

.quote-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-brand-200), var(--color-brand-300));
  padding: 2rem;
}

.dark .quote-card {
  background: linear-gradient(135deg, var(--color-brand-800), var(--color-brand-900));
}

@media (min-width: 768px) {
  .quote-card {
    padding: 3rem;
  }
}

.quote-card .quote-orb {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(168, 152, 122, 0.2);
  filter: blur(60px);
}

.quote-card blockquote {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
}

.quote-author {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.quote-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .quote-author-avatar {
  background: var(--color-brand-100);
}

.quote-author-avatar span {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand-50);
}

.dark .quote-author-avatar span {
  color: var(--color-ink);
}

.quote-author p:first-child {
  font-weight: 500;
  font-size: 0.875rem;
}

.quote-author p:last-child {
  font-size: 0.75rem;
  color: var(--color-brand-600);
}

.dark .quote-author p:last-child {
  color: var(--color-brand-400);
}

.floating-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  max-width: 200px;
  display: none;
}

.dark .floating-badge {
  background: rgba(12, 10, 9, 0.7);
  border-color: rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .floating-badge {
    display: block;
  }
}

.floating-badge-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-badge-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-badge-icon svg {
  width: 1rem;
  height: 1rem;
  color: rgb(22, 163, 74);
}

.dark .floating-badge-icon svg {
  color: rgb(74, 222, 128);
}

.floating-badge span {
  font-size: 0.75rem;
  font-weight: 500;
}

/* ---- Team Section ---- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  border-radius: 1rem;
  border: 1px solid rgba(221, 214, 199, 0.5);
  background: white;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
}

.dark .team-card {
  background: var(--color-ink);
  border-color: rgba(58, 50, 40, 0.3);
}

.team-card:hover {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  border-color: var(--color-brand-300);
}

.dark .team-card:hover {
  border-color: var(--color-brand-700);
}

.team-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--color-brand-300), var(--color-brand-500));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.dark .team-avatar {
  background: linear-gradient(135deg, var(--color-brand-700), var(--color-brand-900));
}

.team-card:hover .team-avatar {
  transform: scale(1.05);
}

.team-avatar span {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand-50);
}

.team-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.875rem;
  color: var(--color-brand-500);
  margin-bottom: 1rem;
}

.dark .team-role {
  color: var(--color-brand-400);
}

.team-card p {
  font-size: 0.875rem;
  color: var(--color-brand-600);
  line-height: 1.6;
}

.dark .team-card p {
  color: var(--color-brand-400);
}

.team-tags {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(221, 214, 199, 0.5);
}

.dark .team-tags {
  border-color: rgba(58, 50, 40, 0.3);
}

.team-tags span {
  font-size: 0.75rem;
  color: var(--color-brand-500);
}

.dark .team-tags span {
  color: var(--color-brand-400);
}

/* ---- Methodology ---- */
.methodology {
  background: rgba(239, 236, 229, 0.5);
}

.dark .methodology {
  background: rgba(26, 23, 18, 0.2);
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .method-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.method-card {
  border-radius: 1rem;
  border: 1px solid rgba(221, 214, 199, 0.5);
  background: white;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.dark .method-card {
  background: var(--color-ink);
  border-color: rgba(58, 50, 40, 0.3);
}

.method-card:hover {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.method-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-brand-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.dark .method-number {
  background: var(--color-brand-800);
}

.method-number span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand-700);
}

.dark .method-number span {
  color: var(--color-brand-300);
}

.method-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.method-card p {
  font-size: 0.875rem;
  color: var(--color-brand-600);
  line-height: 1.6;
}

.dark .method-card p {
  color: var(--color-brand-400);
}

/* ---- Contact Section ---- */
.contact-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
  }
}

.contact-info {
  space-y: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--color-brand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dark .contact-icon {
  background: var(--color-brand-800);
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-brand-700);
}

.dark .contact-icon svg {
  color: var(--color-brand-300);
}

.contact-item p:first-of-type {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-item p:last-of-type {
  font-size: 0.875rem;
  color: var(--color-brand-600);
  line-height: 1.6;
}

.dark .contact-item p:last-of-type {
  color: var(--color-brand-400);
}

/* ---- Form ---- */
.form-card {
  border-radius: 1rem;
  border: 1px solid rgba(221, 214, 199, 0.5);
  background: white;
  padding: 1.5rem;
}

.dark .form-card {
  background: var(--color-ink);
  border-color: rgba(58, 50, 40, 0.3);
}

@media (min-width: 768px) {
  .form-card {
    padding: 2rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-brand-200);
  background: var(--color-brand-50);
  font-family: inherit;
  font-size: 0.875rem;
  color: inherit;
  transition: border-color 0.3s ease;
}

.dark .form-group input,
.dark .form-group select,
.dark .form-group textarea {
  background: rgba(26, 23, 18, 0.5);
  border-color: var(--color-brand-800);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand-500);
}

.dark .form-group input:focus,
.dark .form-group select:focus,
.dark .form-group textarea:focus {
  border-color: var(--color-brand-400);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-brand-400);
}

.form-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-checkbox input {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid var(--color-brand-300);
  accent-color: var(--color-brand-600);
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--color-brand-600);
}

.dark .form-checkbox label {
  color: var(--color-brand-400);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--color-ink);
  color: var(--color-brand-50);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.dark .form-submit {
  background: var(--color-brand-100);
  color: var(--color-ink);
}

.form-submit:hover {
  transform: scale(1.02);
}

.form-submit svg {
  width: 1rem;
  height: 1rem;
}

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-brand-500);
  margin-top: 1rem;
}

.dark .form-note {
  color: var(--color-brand-400);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid rgba(221, 214, 199, 0.5);
}

.dark .footer {
  border-color: rgba(58, 50, 40, 0.3);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding: 4rem 0;
}

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

.footer-brand p {
  font-size: 0.875rem;
  color: var(--color-brand-600);
  line-height: 1.6;
  max-width: 24rem;
  margin-top: 1.5rem;
}

.dark .footer-brand p {
  color: var(--color-brand-400);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--color-brand-600);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dark .footer-col a {
  color: var(--color-brand-400);
}

.footer-col a:hover {
  color: var(--color-ink);
}

.dark .footer-col a:hover {
  color: var(--color-brand-100);
}

.footer-col li:not(a) {
  font-size: 0.875rem;
  color: var(--color-brand-600);
}

.dark .footer-col li:not(a) {
  color: var(--color-brand-400);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(221, 214, 199, 0.5);
}

.dark .footer-bottom {
  border-color: rgba(58, 50, 40, 0.3);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.75rem;
  color: var(--color-brand-500);
}

.dark .footer-bottom p,
.dark .footer-bottom a {
  color: var(--color-brand-400);
}

.footer-bottom a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--color-ink);
}

.dark .footer-bottom a:hover {
  color: var(--color-brand-100);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-brand-50);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  z-index: 40;
}

.dark .back-to-top {
  background: var(--color-brand-100);
  color: var(--color-ink);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: scale(1.1);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ---- Utilities ---- */
.section {
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }
}

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

.max-w-3xl {
  max-width: 48rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .md\:mb-24 {
    margin-bottom: 6rem;
  }
}

/* ---- Print Styles ---- */
@media print {
  .navbar,
  .hero-scroll,
  .back-to-top,
  .mobile-menu-btn,
  .theme-toggle {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .bento-card,
  .team-card,
  .method-card,
  .form-card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
