/* ============================================
   NASSEROUMER.COM v2.0 — MAIN CSS
   Sistema visual v2 · Quiet Senior + Contemporary Craft
   ============================================ */

:root {
  --ink: #0F1115;
  --ink-light: #4A4F58;
  --ink-muted: #7A8089;
  --parchment: #F7F4ED;
  --parchment-deep: #F0EBE0;
  --paper: #FFFEFA;
  --hairline: #D8D2C5;
  --wine: #6B1D2D;
  --wine-deep: #4A1320;
  --gold: #B89968;
  
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  --space-section: 140px;
  --space-section-mobile: 72px;
  --max-width: 1280px;
  
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a, button { cursor: pointer; }

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 64px;
  position: relative;
}

@media (max-width: 1024px) { .container { padding: 0 48px; } }
@media (max-width: 640px)  { .container { padding: 0 24px; } }

.section { padding: var(--space-section) 0; position: relative; }
@media (max-width: 768px) { .section { padding: var(--space-section-mobile) 0; } }
.section + .section { border-top: 1px solid var(--hairline); }

/* ============================================
   GRAIN TEXTURE
   ============================================ */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ink-muted);
}

.eyebrow.wine { color: var(--wine); }
.eyebrow.wine::before { background: var(--wine); }
.eyebrow.gold { color: var(--gold); }
.eyebrow.gold::before { background: var(--gold); }
.eyebrow.center { justify-content: center; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}

.display-huge {
  font-size: clamp(2.75rem, 7.5vw, 6.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.display-large {
  font-size: clamp(2rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.display-med {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.lead {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-light);
}

p { color: var(--ink-light); margin-bottom: 1.25rem; max-width: 62ch; }
p.body-ink { color: var(--ink); }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

/* ============================================
   NAV
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 237, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(216, 210, 197, 0.6);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1024px) { .nav-inner { padding: 18px 48px; } }
@media (max-width: 640px)  { .nav-inner { padding: 16px 24px; } }

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: "opsz" 144;
}

.nav-brand .surname {
  font-weight: 400;
  font-style: italic;
  color: var(--ink-light);
  margin-left: 2px;
}

.nav-links { display: flex; gap: 40px; list-style: none; }
@media (max-width: 768px) { .nav-links { display: none; } }

.nav-links a {
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: color 200ms ease;
}

.nav-links a.active { color: var(--wine); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-smooth);
}

.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--wine); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-lang {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.nav-lang a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0 4px;
  transition: color 200ms;
}

.nav-lang a.active { color: var(--ink); font-weight: 600; }
.nav-lang a:hover { color: var(--wine); }

/* Mobile menu */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-mobile-toggle { display: inline-block; }
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--parchment);
  padding: 32px 24px;
  border-bottom: 1px solid var(--hairline);
  z-index: 99;
}

.nav-mobile-menu.open { display: block; }

.nav-mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 350ms var(--ease-expo);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--ink);
  color: var(--parchment);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--wine);
  transform: translateY(100%);
  transition: transform 400ms var(--ease-expo);
  z-index: 0;
}

.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover .arrow { transform: translateX(6px); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 400ms var(--ease-expo);
  z-index: 0;
}

.btn-secondary > * { position: relative; z-index: 1; transition: color 400ms; }
.btn-secondary:hover { color: var(--parchment); }
.btn-secondary:hover::before { transform: translateY(0); }
.btn-secondary:hover .arrow { transform: translateX(6px); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding-bottom: 6px;
  position: relative;
  transition: color 250ms;
}

.btn-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 400ms var(--ease-expo);
}

.btn-link:hover { color: var(--wine); }
.btn-link:hover::after { transform: scaleX(0); transform-origin: right; }
.btn-link:hover .arrow { transform: translateX(4px); }

.arrow { display: inline-block; transition: transform 350ms var(--ease-expo); }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================
   PAGE HEADERS (interior pages)
   ============================================ */

.page-header {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
}

.page-header-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(184, 153, 104, 0.18) 0%, rgba(107, 29, 45, 0.08) 35%, transparent 70%);
  filter: blur(60px);
}

@media (max-width: 768px) { .page-header { padding: 64px 0 56px; } }
.page-header .container { position: relative; z-index: 2; }

.page-header h1 {
  margin-bottom: 32px;
  max-width: 22ch;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1000ms var(--ease-expo) 200ms forwards;
}

.page-header .subhead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-light);
  max-width: 58ch;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  opacity: 0;
  animation: fadeIn 700ms var(--ease-expo) 500ms forwards;
}

.page-header .eyebrow {
  opacity: 0;
  animation: fadeIn 600ms var(--ease-expo) 100ms forwards;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--ink);
  color: var(--parchment);
  padding: 96px 0 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
}

@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 24px; } }

.footer-brand h3 {
  color: var(--parchment);
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
}

.footer-brand p {
  color: rgba(247, 244, 237, 0.55);
  font-size: 0.9375rem;
  margin-bottom: 0;
  max-width: none;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 244, 237, 0.4);
  margin-bottom: 24px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a {
  color: rgba(247, 244, 237, 0.85);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 250ms ease;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 80px auto 0;
  padding: 32px 64px 0;
  border-top: 1px solid rgba(247, 244, 237, 0.12);
  font-size: 0.8125rem;
  color: rgba(247, 244, 237, 0.45);
  line-height: 1.6;
}

@media (max-width: 640px) { .footer-bottom { padding: 32px 24px 0; } }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes weightBreathe {
  0% { font-variation-settings: "opsz" 144, "wght" 380; }
  100% { font-variation-settings: "opsz" 144, "wght" 420; }
}

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

::selection { background: var(--wine); color: var(--parchment); }

/* ============================================
   PRINT
   ============================================ */

@media print {
  .nav, footer, .grain { display: none; }
  body { background: white; color: black; }
}
