/**
 * Fundació Origo - Estils principals
 * BRAND DECK ORIGO únicament. No s'utilitzen colors d'Espai Sacra (Siena, Vidrián, Alabastro, etc.).
 * Variables: origo-cream, origo-grey, origo-dark, origo-brown, origo-orange, origo-blue, origo-lime, origo-lilac.
 */

:root {
  --origo-cream: #F5F4ED;
  --origo-grey: #ECECDC;
  --origo-dark: #273837;
  --origo-dark-brown: #351E1C;
  --origo-brown: #733635;
  --origo-orange: #A0C9CB; /* accent principal: blau Origo */
  --origo-blue: #A0C9CB;
  --origo-lime: #c1f879;
  --origo-lilac: #b0a2f9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--origo-dark); overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* Width / Height - CRÍTIC per a imatges i layout */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.min-w-0 { min-width: 0; }

/* Utilities */
.container { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }

/* Flex & Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Spacing */
.p-2 { padding: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-16 { margin-top: 4rem; }
.mr-2 { margin-right: 0.5rem; }

/* Colors - Background */
.bg-origo-cream { background-color: var(--origo-cream); }
.bg-origo-grey { background-color: var(--origo-grey); }
.bg-origo-dark { background-color: var(--origo-dark); }
.bg-origo-dark-brown { background-color: var(--origo-dark-brown); }
.bg-origo-orange { background-color: var(--origo-orange); }
.bg-origo-cream\/80 { background-color: rgba(245, 244, 237, 0.8); }
.bg-origo-dark\/80 { background-color: rgba(39, 56, 55, 0.8); }
.bg-white { background-color: #fff; }
.bg-white\/10 { background-color: rgba(255,255,255,0.1); }

/* Colors - Text */
.text-origo-dark { color: var(--origo-dark); }
.text-origo-orange { color: var(--origo-orange); }
.text-white { color: #fff; }
.text-origo-cream\/70 { color: rgba(245,244,237,0.7); }
.text-origo-cream\/80 { color: rgba(245,244,237,0.8); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.text-8xl { font-size: 6rem; }
.font-light { font-weight: 300; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
/* Responsive font sizes (usades als templates) */
@media (min-width: 768px) {
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-7xl { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .lg\:text-6xl { font-size: 3.75rem; }
  .lg\:text-7xl { font-size: 4.5rem; }
  .lg\:text-8xl { font-size: 6rem; }
}

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-origo-grey { border-color: var(--origo-grey); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }
.border-white\/30 { border-color: rgba(255,255,255,0.3); }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

/* Layout */
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.min-h-screen { min-height: 100vh; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.bottom-8 { bottom: 2rem; }
.left-1\/2 { left: 50%; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.transform { transform: translateZ(0); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.text-center { text-align: center; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.space-y-6 > * + * { margin-top: 1.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
@media (min-width: 768px) { .md\:p-12 { padding: 3rem; } }

/* Display */
.hidden { display: none; }
.block { display: block; }
.flex-shrink-0 { flex-shrink: 0; }
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:block { display: block; }
  .md\:hidden { display: none; }
}

/* Effects */
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; }
.transition-colors { transition-duration: 150ms; }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.brightness-0 { filter: brightness(0); }
.invert { filter: invert(1); }

/* Hover */
.hover\:bg-origo-brown:hover { background-color: var(--origo-brown); }
.hover\:bg-white:hover { background-color: #fff; }
.hover\:text-origo-orange:hover { color: var(--origo-orange); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.hover\:text-white:hover { color: #fff; }

/* Focus (accessibility) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.focus\:not-sr-only:focus { position: static; width: auto; height: auto; padding: 0.5rem 1rem; margin: 0; overflow: visible; clip: auto; white-space: normal; }
.focus\:absolute:focus { position: absolute; }
.focus\:top-4:focus { top: 1rem; }
.focus\:left-4:focus { left: 1rem; }
.focus\:z-50:focus { z-index: 50; }
.focus\:px-4:focus { padding-left: 1rem; padding-right: 1rem; }
.focus\:py-2:focus { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.focus\:bg-origo-orange:focus { background-color: var(--origo-orange); }
.focus\:text-white:focus { color: #fff; }
.focus\:rounded-lg:focus { border-radius: 0.5rem; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-origo-orange:focus { border-color: var(--origo-orange); }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(255,96,55,0.5); }
.placeholder-white\/50::placeholder { color: rgba(255,255,255,0.5); }

/* Prose / content */
.prose { max-width: 65ch; }
.prose p { margin-bottom: 1em; }
.prose h2 { font-size: 1.5em; margin-top: 2em; margin-bottom: 0.5em; }
.max-w-none { max-width: none; }

/* Hero / homepage */
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.leading-tight { line-height: 1.25; }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.object-cover { object-fit: cover; }
.aspect-video { aspect-ratio: 16/9; }
.aspect-square { aspect-ratio: 1/1; }

/* Button-like */
a.inline-block { display: inline-block; text-decoration: none; }
a.block { display: block; text-decoration: none; text-align: center; }
input.flex-1 { flex: 1 1 0%; min-width: 0; }
input.rounded-lg { border-radius: 0.5rem; }
input.px-4 { padding-left: 1rem; padding-right: 1rem; }
input.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
input.border { border-width: 1px; }
input.text-white { color: #fff; }
input.bg-white\/10 { background-color: rgba(255,255,255,0.1); }
input::placeholder { color: rgba(255,255,255,0.5); }
