/* ============================================================
   ZEP TEPI STUDIO — Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Almarai:wght@300;400;700;800&display=swap');

/* ---- Variables ---- */
:root {
  --black: #000000;
  --white: #ffffff;
  --warm-brown: rgba(100, 72, 40, 0.85);
  --font-serif: 'Libre Baskerville', serif;
  --font-body: 'Almarai', sans-serif;
  --font: var(--font-body);
  --nav-height: 80px;
  --gutter: 4vw;
  --max-width: 1500px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip instead of hidden so position:sticky children work */
}

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

a:hover {
  text-decoration: underline;
}

img, video {
  display: block;
  max-width: 100%;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: var(--nav-height);
  background: transparent;
  transition: transform 0.35s ease;
}

.nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4vw;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--white);
  transition: opacity 0.2s;
}

.nav-links a:hover {
  text-decoration: none;
  opacity: 0.6;
}

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Mobile burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s ease;
}

/* Burger morphs into × when menu is open */
.nav-burger.active span:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav-burger.active span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--gutter);
  gap: 2rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: clamp(2rem, 8vw, 4rem);
  text-decoration: none;
  color: var(--white);
}

.nav-mobile a.active {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-close {
  position: absolute;
  top: 28px;
  right: var(--gutter);
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}

/* ---- Video Background ---- */
.video-section {
  position: relative;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.video-content {
  position: relative;
  z-index: 2;
}

/* ---- Page Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Section Labels ---- */
.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4rem;
  opacity: 0.9;
}

/* ---- Two Column Layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: start;
}

.two-col-wide {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6vw;
  align-items: start;
}

/* ---- Typography ---- */

/* Serif elements: display headings, brand name, accordion titles */
h1, h2, h3,
.brand-name,
.brand-fit,
.footer-title,
.contact-footer-brand,
.origen-footer-brand,
.altar-title,
.accordion-trigger {
  font-family: var(--font-serif);
}

h1.display {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

h1.hero-title {
  font-size: clamp(4rem, 12vw, 14vw);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.75;
  font-weight: 300;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

/* Bracket notation */
.bracket {
  letter-spacing: 0.02em;
}

/* ---- Section Spacing ---- */
.section {
  padding: 8vw var(--gutter);
}

.section-sm {
  padding: 4vw var(--gutter);
}

.section-lg {
  padding: 12vw var(--gutter);
}

/* ---- Footer ---- */
.footer {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 6vw var(--gutter) 5vw;
  position: relative;
}

.footer-title {
  font-size: clamp(4rem, 12vw, 14vw);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 4vw;
  text-align: center;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  margin-top: 5vw;
}

/* ---- Brand Fit ---- */
.brand-fit {
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  white-space: nowrap;
  text-align: center;
  /* Escape parent padding — fill full viewport width */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12vw; /* CSS fallback — JS fine-tunes to exact viewport fill */
}

/* ---- Footer h4 — cohesive across all pages (sans-serif, caps) ---- */
.footer-col h4,
.home-footer-col h4,
.contact-footer-col h4,
.origen-footer-col h4,
.atelier-footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
  font-style: normal;
}

.footer-col p, .footer-col a {
  font-size: 13px;
  display: block;
  margin-bottom: 0.3rem;
  text-align: center;
  color: var(--white);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* ---- Accordion ---- */
.accordion {
  border-top: 1px solid rgba(255,255,255,0.15);
}

.accordion-item {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  text-align: left;
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: opacity 0.2s;
}

.accordion-trigger:hover {
  opacity: 0.7;
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 2rem;
  transition: transform 0.3s;
  line-height: 1;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  display: none;
  padding: 0 0 2.5rem 0;
}

.accordion-content.open {
  display: block;
}

.accordion-content p {
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.75;
  max-width: 680px;
}

.service-tier {
  margin-top: 2rem;
}

.service-tier + .service-tier {
  margin-top: 2rem;
}

.tier-name {
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tier-name em {
  font-weight: 400;
  font-style: italic;
  margin-left: 0.5em;
}

/* ---- Tags / Brackets ---- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.25rem;
  margin-bottom: 0;
}

.tags span {
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.6;
}

/* ---- Form Styles ---- */
.form-section {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-intro {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 4rem;
  font-weight: 300;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label-sub {
  font-size: 11px;
  opacity: 0.6;
  display: inline;
  margin-left: 0.5em;
  letter-spacing: 0;
  text-transform: none;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 30px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 20px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: rgba(255,255,255,0.8);
}

textarea {
  border-radius: 20px;
  min-height: 140px;
  resize: vertical;
}

.btn-send {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 30px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 12px 28px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.btn-send:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
}

/* ---- Resonancia: Quote Header ---- */
.resonancia-header {
  padding: calc(var(--nav-height) + 6vw) var(--gutter) 6vw;
}

.resonancia-eq {
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.resonancia-subtitle {
  font-size: clamp(13px, 1.3vw, 16px);
  max-width: 500px;
  line-height: 1.7;
}

/* ---- Testimonial Block ---- */
.testimonial {
  padding: 4vw var(--gutter);
}

.testimonial-inner {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 5vw;
  align-items: start;
}

.testimonial-text-block {}

.testimonial-name {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.testimonial-role {
  font-size: 13px;
  margin-bottom: 2rem;
  line-height: 1.5;
  opacity: 0.9;
}

.testimonial-quote {
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.85;
  text-align: justify;
}

/* ============================================================
   Collage — absolute positioning, staggered/overlapping layout
   ============================================================ */

.collage {
  position: relative;
  overflow: hidden; /* clips images to container — no bleeding between sections */
}

.collage img,
.collage video {
  position: absolute;
  display: block;
  height: auto;
  border-radius: 2px;
}

/* ---- Manuela ---- */
.collage-manuela { height: 570px; }
.collage-manuela .img-c { width: 38%; top: 0.9%; right: 1.3%; z-index: 1; }
.collage-manuela .img-b { width: 30.5%; top: 42.8%; left: 40.4%; z-index: 2; }
.collage-manuela .img-a { width: 36.1%; height: 59%; object-fit: cover; bottom: 37.1%; left: 3.7%; z-index: 3; }

/* ---- Estefi ---- */
.collage-estefi { height: 440px; }
.collage-estefi .img-a { width: 60%; top: 20%; left: 0; z-index: 1; }
.collage-estefi .img-b { width: 38%; bottom: 0; right: 0; z-index: 2; }
.collage-estefi .img-c { width: 35%; top: 0; right: 2%; z-index: 3; }

/* ---- Martin ---- */
/* img-a = dark video left (height-based), img-b = selfie at left=29% width=30%, img-c bottom-right */
.collage-martin { height: 540px; }
.collage-martin .img-a { height: 74%; width: auto; top: 13%; left: 0; z-index: 1; }
.collage-martin .img-b { width: 30%; top: 0; left: 29%; z-index: 2; }
.collage-martin .img-c { width: 42%; top: 34%; right: 0; z-index: 3; }

/* ---- Khalid ---- */
.collage-khalid { height: 540px; }
.collage-khalid .img-a { width: 44.3%; top: 20.1%; left: 9%; z-index: 1; }
.collage-khalid .img-b { width: 36%; top: 44.9%; left: 55.5%; z-index: 2; }
.collage-khalid .img-c { height: 29%; width: auto; top: 20.2%; right: 4.9%; z-index: 3; }
.collage-khalid .img-d { width: 24%; bottom: 50.2%; right: 30.2%; z-index: 4; }

/* ---- Barbara ---- */
/* img-a (3-photo strip) ON TOP of img-b (video). img-b left=19% w=43%, img-a left=0 w=17%, img-c left=59% */
.collage-barbara { height: 480px; }
.collage-barbara .img-b { width: 43%; top: 0; left: 19%; z-index: 1; }
.collage-barbara .img-a { width: 17%; top: 10%; left: 0; z-index: 2; }
.collage-barbara .img-c { width: 41%; top: 12%; left: 59%; z-index: 3; }

/* ---- Steffi ---- */
.collage-steffi { height: 600px; }
.collage-steffi .img-c { width: 23%; bottom: 48.8%; left: 5%; z-index: 1; }
.collage-steffi .img-a { width: 13.5%; top: 54.7%; left: 13.5%; z-index: 2; }
.collage-steffi .img-b { width: 66%; top: 38%; left: 29.6%; z-index: 3; }
.collage-steffi .img-d { width: 22%; top: 3.8%; right: 5.1%; z-index: 4; }

/* ---- Origen: About Layout ---- */
.about-intro {
  padding: calc(var(--nav-height) + 6vw) var(--gutter) 6vw;
}

.about-intro p {
  max-width: 640px;
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.8;
}

/* ---- Two Minds / Portrait Bios ---- */
.portrait-block {
  margin-bottom: 2.5rem;
}

.portrait-block img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  margin-bottom: 1.5rem;
  filter: grayscale(100%);
}

.portrait-name {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- Atelier Hero ---- */
.atelier-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.atelier-hero-label-left {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: var(--gutter);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.atelier-hero-label-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: var(--gutter);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Altar Offerings Section ---- */
.altar-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6vw;
  align-items: start;
}

.altar-tags {
  padding-top: 1rem;
}

.altar-title {
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3vw;
  letter-spacing: -0.02em;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .two-col,
  .two-col-wide,
  .altar-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .testimonial-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* On mobile, stack collage images vertically instead of overlapping */
  .collage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: visible;
    height: auto !important;
    min-height: unset !important;
  }
  .collage img,
  .collage video {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  /* Keep footer columns side by side on mobile — no stacking */
  .footer-col,
  .home-footer-col,
  .origen-footer-col,
  .contact-footer-col {
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 6vw;
  }

  .section {
    padding: 12vw var(--gutter);
  }

  .accordion-trigger {
    font-size: 1.3rem;
  }

  /* Atelier hero: shrink "The Living Method" so it doesn't overlap ATELIER / OFFERS labels */
  .atelier-hero h1 {
    font-size: 1.8rem;
  }

  /* Altar offerings title: smaller on mobile */
  .altar-title {
    font-size: 1.6rem;
  }

  /* Footer h4 (IN THE FLESH / IN THE PIXELS) smaller on mobile */
  .footer-col h4,
  .home-footer-col h4,
  .origen-footer-col h4,
  .contact-footer-col h4 {
    font-size: 8px;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
  }

  /* Footer text and links smaller on mobile */
  .footer-col p,
  .footer-col a {
    font-size: 11px;
    margin-bottom: 0.2rem;
  }
}

/* ---- Audio Toggle Button ---- */
/* Sits in the footer — rendered as a flow element, aligned right via .audio-btn-row */
.audio-btn-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 2.5vw;
  padding-right: 0;
}

.audio-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.3s, border-color 0.3s;
  padding: 0;
  flex-shrink: 0;
}

.audio-btn:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.7);
}

.audio-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

@keyframes audio-breathe {
  0%, 100% { border-color: rgba(255,255,255,0.3); opacity: 0.55; }
  50%       { border-color: rgba(255,255,255,0.6); opacity: 0.8; }
}

.audio-btn.playing {
  animation: audio-breathe 4s ease-in-out infinite;
}

