@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #ffffff;
  --fg: #000000;
  --gray: #666666;
  --font-main: 'Inter', Helvetica, sans-serif;
  
  --spacing-base: 8px;
  --spacing-block: 72px; /* Large gap */
  --spacing-huge: 120px; /* Enormous gap */
}

/* Reset */
html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

/* Main Layout (Mobile First) */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background-color: var(--bg);
  z-index: 1000;
}

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--fg);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switcher {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.05em;
}

.lang-switcher a {
  transition: color 0.2s ease;
}

.lang-switcher a.active {
  color: var(--fg);
  font-weight: 800;
}

.lang-switcher a:not(.active):hover {
  color: var(--fg);
}

.lang-sep {
  opacity: 0.4;
}

/* Fullscreen Menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Ajuste 'apretado' como pidio el user */
}

.menu-links a {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color 0.3s ease;
}

.menu-links a:hover,
.menu-links a.active {
  color: var(--gray);
}

/* Base Typography Extracted from Spec */
h1 {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(56px, 16vw, 100px); 
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.page-title {
  font-size: clamp(48px, 14vw, 90px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

p {
  font-size: 17px;
  font-weight: 400;
}

.subline {
  font-size: 19px;
  color: var(--gray);
  margin-top: 20px;
}

/* Helpers */
.spacer-block {
  height: var(--spacing-block);
}
.spacer-huge {
  height: var(--spacing-huge);
}
.text-grey {
  color: var(--gray);
}
.mt-top {
  padding-top: 96px; /* Offset for navbar */
}

/* Manifesto Styles */
.manifesto-principle {
  max-width: 85%;
  margin-bottom: 40px;
}
.manifesto-principle.right {
  margin-left: auto;
  text-align: right;
}
.manifesto-text {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}
.principle-label {
  display: block;
  font-size: 13px;
  color: var(--gray);
  margin-top: 8px;
  font-weight: 500;
}

/* Contact Styles */
.contact-form {
  margin-top: 48px;
}
.input-group {
  margin-bottom: 32px;
}
.input-group label {
  display: block;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 8px;
}
.input-group input, 
.input-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  background: transparent;
  transition: border-color 0.3s ease;
  border-radius: 0;
}
.input-group textarea {
  resize: vertical;
  min-height: 100px;
}
.input-group input:focus, 
.input-group textarea:focus {
  border-color: var(--fg);
}
.btn-submit {
  display: block;
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  margin-top: 40px;
  text-align: center;
  transition: opacity 0.3s ease;
}
.btn-submit:hover {
  opacity: 0.8;
}
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--fg);
  cursor: pointer;
}
.checkbox-label input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--fg);
  cursor: pointer;
  border: none;
  border-bottom: none;
  padding: 0;
}

/* Work Page Structural Utility Classes */
.d-desktop { display: none; }
.d-mobile { display: block; }

.work-mobile-nav {
  position: sticky;
  top: 55px; /* Below navbar */
  background: var(--bg);
  z-index: 90;
  padding: 16px 0;
  margin-bottom: 40px;
  border-bottom: 0;
}
.work-nav-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.work-mobile-menu {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.work-mobile-menu::-webkit-scrollbar {
  display: none;
}
.work-nav-item {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.work-nav-item.active {
  color: var(--fg);
  font-weight: 900;
}
.work-nav-item:not(.active) {
  color: var(--gray);
  font-weight: 500;
}
.case-block-img {
  width: 100%;
  max-width: 100%;
  display: block;
  margin-bottom: 48px;
}

/* Desktop Styles */
@media (min-width: 768px) {
  .container {
    max-width: 1024px;
    padding: 0 40px;
  }
  .hero h1 {
    font-size: clamp(60px, 10vw, 90px);
  }
  .mt-top {
    padding-top: 110px;
  }
  .d-desktop { display: block; }
  .d-mobile { display: none; }

  /* Work Layout Desktop */
  .work-layout {
    display: flex;
    gap: 64px;
    align-items: flex-start;
  }
  
  .work-sidebar {
    width: 20%;
    position: sticky;
    top: 110px;
  }

  .work-content-area {
    width: 80%;
  }

  .work-desktop-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}
