/* ==========================================================
   Flamenco & Events Barcelona — Stylesheet principal
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Archivo:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Tokens ───────────────────────────────────────────── */
:root {
  --obsidian:   #0A0A0A;
  --ivory:      #F3EDE0;
  --ivory-100:  #FDFAF5;
  --ivory-400:  #EBE3D2;
  --crimson:    #9B1B30;
  --dorado:     #C49A3C;
  --humo:       #6B6560;
  --humo-100:   #C4BDB4;
  --humo-200:   #9B9189;
  --white:      #FFFFFF;

  --font-d: 'Bodoni Moda', Georgia, serif;
  --font-b: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --nav-h:    68px;
  --max-w:    1240px;
  --pad-x:    clamp(20px, 5vw, 80px);
  --sec-y:    clamp(60px, 8vw, 100px);
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --trans:    220ms ease;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font-b); color: var(--obsidian); background: var(--ivory); line-height: 1.6; overflow-x: hidden; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
button{ cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol{ list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography helpers ───────────────────────────────── */
.t-display { font-family: var(--font-d); }
.t-label   { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.t-crimson { color: var(--crimson); }
.t-dorado  { color: var(--dorado); }
.t-muted   { color: var(--humo); }
.t-inverse { color: var(--ivory-100); }

/* ── Layout ───────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section   { padding: var(--sec-y) var(--pad-x); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section--dark  { background: var(--obsidian); color: var(--ivory-100); }
.section--light { background: var(--ivory); }
.section--pale  { background: var(--ivory-400); }
.section--white { background: var(--white); }

.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--crimson);
  margin-bottom: 14px;
}
.section--dark .section-label { color: var(--dorado); }

.section-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 12px;
}
.section-subtitle {
  font-family: var(--font-d);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500; font-style: italic;
  color: var(--humo); margin-bottom: 40px;
}
.section--dark .section-subtitle { color: var(--humo-100); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-b); font-weight: 600;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 0; transition: background var(--trans), color var(--trans), border-color var(--trans);
  cursor: pointer; white-space: nowrap; border: 1px solid transparent;
}
.btn-md { padding: 13px 28px; }
.btn-sm { padding: 9px 18px; font-size: 10px; }
.btn-lg { padding: 16px 40px; font-size: 12px; }

.btn-primary   { background: var(--obsidian); color: var(--ivory-100); border-color: var(--obsidian); }
.btn-primary:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn-outline   { background: transparent; color: var(--obsidian); border-color: var(--obsidian); }
.btn-outline:hover { background: var(--obsidian); color: var(--ivory-100); }
.btn-accent    { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.btn-accent:hover { background: #7d1526; border-color: #7d1526; }
.btn-inverse   { background: var(--ivory-100); color: var(--obsidian); border-color: var(--ivory-100); }
.btn-inverse:hover { background: var(--ivory-400); }
.btn-inv-out   { background: transparent; color: var(--ivory-100); border-color: rgba(255,255,255,.4); }
.btn-inv-out:hover { border-color: var(--ivory-100); }

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(10,10,10,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background var(--trans);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-logo-text {
  font-family: var(--font-d); font-size: 13px; font-weight: 700;
  color: var(--ivory-100); line-height: 1.15;
}
.nav-logo-text em {
  display: block; font-style: normal; font-size: 9px;
  font-family: var(--font-b); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--dorado); margin-top: 1px;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  margin-left: auto;
}
.nav-link {
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(253,250,245,.65);
  transition: color var(--trans);
}
.nav-link:hover, .nav-link.active { color: var(--ivory-100); }
.nav-link.active { border-bottom: 1px solid var(--dorado); padding-bottom: 1px; }

.lang-sw { display: flex; gap: 4px; }
.lang-btn {
  font-size: 10px; font-weight: 600; letter-spacing: .06em;
  color: rgba(253,250,245,.45); padding: 3px 6px;
  border: 1px solid transparent;
  transition: color var(--trans), border-color var(--trans);
}
.lang-btn:hover { color: var(--ivory-100); }
.lang-btn.active { color: var(--ivory-100); border-color: rgba(255,255,255,.3); }

.nav-cta { margin-left: 8px; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; margin-left: auto;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ivory-100);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Photo slot ───────────────────────────────────────── */
.photo-slot {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a0808 0%, #0a0a0a 60%, #0d0a08 100%);
}
.photo-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease);
}
.photo-slot:hover img { transform: scale(1.03); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a0808, #0a0a0a 50%, #0d0a08);
}
.hero-img {
  position: absolute; inset: 0;
}
.hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .5;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,.6) 45%, rgba(10,10,10,.2) 100%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .03;
  background-image: repeating-linear-gradient(45deg, var(--ivory) 0, var(--ivory) 1px, transparent 0, transparent 50%);
  background-size: 22px 22px;
}
.hero-body {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 var(--pad-x) clamp(48px, 8vh, 100px);
}
.hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dorado);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-d);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 700; line-height: 1.0;
  letter-spacing: -.02em; color: var(--ivory-100);
  margin-bottom: 16px;
}
.hero-sub {
  font-family: var(--font-d);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500; font-style: italic;
  color: var(--dorado); margin-bottom: 20px;
}
.hero-desc {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: var(--humo-100); line-height: 1.75;
  max-width: 520px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-inner { /* for inner pages — shorter hero */
  min-height: 55vh;
}
.hero-inner .hero-title { font-size: clamp(2.5rem, 6vw, 5rem); }

/* ── Services grid ────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.svc-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; min-height: 300px;
  position: relative; overflow: hidden;
  border: 1px solid var(--ivory-400);
  background: var(--white);
  transition: box-shadow var(--trans), transform .3s var(--ease);
  cursor: pointer;
}
.svc-card:hover {
  box-shadow: 0 12px 40px rgba(10,10,10,.14);
  transform: translateY(-2px);
}
.svc-card--dark {
  background: #111; border-color: rgba(255,255,255,.08);
}
.svc-num {
  font-family: var(--font-d); font-size: 64px; font-weight: 700;
  line-height: 1; color: rgba(10,10,10,.05);
  position: absolute; top: 10px; right: 16px;
  user-select: none;
}
.svc-card--dark .svc-num { color: rgba(255,255,255,.04); }
.svc-tag {
  font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  align-self: flex-start;
}
.svc-title {
  font-family: var(--font-d);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700; line-height: 1.2;
  margin-top: auto;
}
.svc-desc { font-size: .875rem; line-height: 1.7; }

/* ── 2-col grid ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── Stats ────────────────────────────────────────────── */
.stats { display: flex; gap: 48px; flex-wrap: wrap; margin: 36px 0; }
.stat-n { font-family: var(--font-d); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; line-height: 1; }
.stat-l { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--humo-100); margin-top: 4px; }

/* ── CTA strip ────────────────────────────────────────── */
.cta-strip {
  background: var(--crimson); padding: var(--sec-y) var(--pad-x);
  text-align: center; color: #fff;
}
.cta-strip h2 { font-family: var(--font-d); font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin-bottom: 10px; }
.cta-strip p  { font-family: var(--font-d); font-size: 1.2rem; font-style: italic; opacity: .85; margin-bottom: 32px; }
.cta-strip-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--ivory-400);
  overflow: hidden;
  transition: box-shadow var(--trans);
}
.card:hover { box-shadow: 0 8px 32px rgba(10,10,10,.12); }
.card-img { aspect-ratio: 16/10; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card-title { font-family: var(--font-d); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.card-desc  { font-size: .875rem; color: var(--humo); line-height: 1.7; }
.card-meta  { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--humo-200); }

/* ── Gallery grid ─────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-item { aspect-ratio: 4/3; cursor: pointer; }
.gallery-item:nth-child(4n) { grid-column: span 2; aspect-ratio: auto; min-height: 260px; }

/* ── Team ─────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { text-align: center; }
.team-photo { aspect-ratio: 3/4; margin-bottom: 16px; }
.team-name  { font-family: var(--font-d); font-size: 1.2rem; font-weight: 700; }
.team-role  { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson); margin-top: 4px; }
.team-bio   { font-size: .875rem; color: var(--humo); line-height: 1.65; margin-top: 10px; }

/* ── Form ─────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--humo); }
.form-input, .form-textarea, .form-select {
  background: var(--white); border: 1px solid var(--ivory-400);
  color: var(--obsidian); padding: 12px 14px; font-size: .9375rem;
  border-radius: 0; outline: none;
  transition: border-color var(--trans);
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--obsidian); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8125rem; color: var(--humo); line-height: 1.6; }

/* ── Show info table ──────────────────────────────────── */
.show-table { width: 100%; border-collapse: collapse; }
.show-table th, .show-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9375rem; }
.show-table th { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--humo-100); }
.show-table td { color: var(--ivory-100); }
.show-badge { display: inline-block; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; background: var(--crimson); color: #fff; }

/* ── Breadcrumb ───────────────────────────────────────── */
.breadcrumb { font-size: 11px; color: var(--humo-100); letter-spacing: .05em; margin-bottom: 24px; }
.breadcrumb a { color: var(--dorado); }
.breadcrumb span { margin: 0 6px; opacity: .5; }

/* ── Blog ─────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--obsidian); color: var(--humo-100);
  padding: 72px var(--pad-x) 32px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
.footer-brand-name { font-family: var(--font-d); font-size: 1.25rem; font-weight: 700; color: var(--ivory-100); margin-bottom: 6px; }
.footer-tagline     { font-family: var(--font-d); font-style: italic; color: var(--dorado); margin-bottom: 14px; }
.footer-desc        { font-size: .875rem; color: var(--humo); line-height: 1.7; max-width: 280px; }
.footer-heading     { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-100); margin-bottom: 18px; }
.footer-links       { display: flex; flex-direction: column; gap: 10px; }
.footer-link        { font-size: .875rem; color: var(--humo); transition: color var(--trans); }
.footer-link:hover  { color: var(--ivory-100); }
.footer-bottom      { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; color: var(--humo-200); flex-wrap: wrap; gap: 10px; }

/* ── Mobile menu ──────────────────────────────────────── */
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 190;
  background: var(--obsidian); padding: calc(var(--nav-h) + 24px) var(--pad-x) 40px;
  flex-direction: column; gap: 8px; overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  font-size: 1.5rem; font-family: var(--font-d); font-weight: 700;
  letter-spacing: 0; text-transform: none; color: var(--ivory-100);
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-mobile .lang-sw { margin-top: 24px; gap: 8px; }
.nav-mobile .lang-btn { font-size: 12px; padding: 6px 10px; }
.nav-mobile .btn { align-self: flex-start; margin-top: 24px; }

/* ── Utility ──────────────────────────────────────────── */
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 48px; }
.mb-lg { margin-bottom: 48px; }
.text-center { text-align: center; }
.max-700 { max-width: 700px; }
.max-900 { max-width: 900px; }
.divider { height: 1px; background: var(--ivory-400); margin: var(--sec-y) 0; }
.divider--dark { background: rgba(255,255,255,.1); }

/* ── Animations ───────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0; transform: translateY(28px);
    transition: opacity 640ms var(--ease), transform 640ms var(--ease);
  }
  .fade-up.visible { opacity: 1; transform: none; }
  .fade-up:nth-child(2) { transition-delay: 80ms; }
  .fade-up:nth-child(3) { transition-delay: 160ms; }
  .fade-up:nth-child(4) { transition-delay: 240ms; }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(4n) { grid-column: span 1; }
  .team-grid     { grid-template-columns: repeat(2, 1fr); }
  .blog-grid     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  .nav-cta    { display: none; }
  .grid-2     { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .team-grid  { grid-template-columns: 1fr; }
  .blog-grid  { grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
  .stats      { gap: 28px; }
}
