/* =============================================
   XIOMARA DUCHEMENT — style.css
   Palette: warm off-white, stone, terracotta
   Type: Fraunces (display) + Work Sans (ui)
   ============================================= */

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

:root {
  --bg:        #f5f0ea;
  --surface:   #ede7df;
  --border:    #d6cec4;
  --text:      #2c2520;
  --muted:     #7a6e65;
  --accent:    #b5552f;
  --accent-lt: #e8d4c8;
  --white:     #faf7f4;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Work Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;

  --max-w: 1100px;
  --pad:   clamp(1.2rem, 5vw, 2.5rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; background: none; border: none; }

/* ── Utility ── */
.hidden { display: none !important; }

/* ── View animation ── */
.view {
  animation: fadeUp .55s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 234, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-link {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
}
.nav-link.active {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--accent);
}

.lang-btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  transition: color .2s, border-color .2s;
}
.lang-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-image { order: -1; }
}

.hero-role {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.4rem;
  color: var(--text);
}

.hero-bio {
  font-size: 1rem;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.7;
}

.portrait {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(44,37,32,.12);
}

/* =============================================
   CARDS (horizontal)
   ============================================= */
.previews,
.social-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44,37,32,.06);
  transition: box-shadow .25s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(44,37,32,.11);
}

.card--horizontal {
  display: grid;
  grid-template-columns: 320px 1fr;
}

@media (max-width: 700px) {
  .card--horizontal {
    grid-template-columns: 1fr;
  }
}

.card-img-wrap {
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-img {
  transform: scale(1.03);
}

.card-body {
  padding: 2rem 2rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.card-num {
  font-family: var(--sans);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent-lt);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
}

.card-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 55ch;
}

.card-years {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-platform {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-stats {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.card-handles {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.9;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 1.2rem;
  border-radius: 99px;
  background: var(--text);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: 0.8rem;
  align-self: flex-start;
}
.btn-pill:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 1.2rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  background: var(--text);
  color: var(--white);
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
}

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem;
}
.section-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 65ch;
  line-height: 1.7;
}

/* =============================================
   SUBSECTION
   ============================================= */
.subsection {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--pad);
}
.subsection h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.subsection-sub {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.note {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 1.2rem;
  max-width: 60ch;
}

/* =============================================
   VIDEO GRID
   ============================================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 700px) {
  .video-grid { grid-template-columns: 1fr; }
}

.video-card {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.video-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================================
   PHOTO GRID
   ============================================= */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .3s ease;
}
.photo-grid img:hover {
  transform: scale(1.02);
}

/* =============================================
   CREDITS LIST
   ============================================= */
.credits-list {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.credit-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 1rem;
  padding: 1rem 1.4rem;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background .2s;
}
.credit-row:last-child { border-bottom: none; }
.credit-row:hover { background: var(--surface); }

.credit-title {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 400;
}
.credit-role {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}
.credit-cat {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 600px) {
  .credit-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* =============================================
   BUSINESS PAGE
   ============================================= */
.biz-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
}
.biz-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(44,37,32,.09);
}
.biz-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.biz-body {
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.biz-body h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
}
.biz-body p {
  color: var(--muted);
  max-width: 50ch;
  font-size: 0.96rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem var(--pad);
}
.site-footer p {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}

/* =============================================
   FOCUS VISIBLE (accessibility)
   ============================================= */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
