/* Carolina Scarafía — dark, botanical, champagne-gold.
   Fonts: Cinzel (display capitals) · Cormorant Garamond (lead / italic accents) · Montserrat (body).
   Palette: near-black with nature photography under a black overlay; gold for type, lavender + sage for small accents. */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --bg: #0d0e0c;
  --bg-2: #141612;
  --panel: rgba(255, 255, 255, .035);
  --line: rgba(216, 195, 154, .28);
  --gold: #d8c39a;
  --gold-soft: #a99673;
  --text: #ece7dc;
  --text-dim: #bdb7aa;
  --lav: #b48cc9;
  --sage: #8fae78;
  --radius: 8px;
  --maxw: 1160px;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;
  /* nature backgrounds (overridden from content/site.json → images.bgHero / bgPage) */
  --bg-hero: url('/assets/images/bg-lavender.jpg');
  --bg-page: url('/assets/images/bg-ivy.jpg');
  --veil: linear-gradient(rgba(8, 9, 7, .74), rgba(8, 9, 7, .86));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.85;
  color: var(--text-dim); background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
strong { color: var(--text); font-weight: 500; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 5.2vw, 3.9rem); letter-spacing: .08em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); }
h3 { font-size: 1.02rem; letter-spacing: .1em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--lav); }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; font-family: var(--display); font-size: .72rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--lav); margin-bottom: 16px; }
.lead { font-family: var(--serif); font-size: 1.32rem; line-height: 1.6; color: var(--text); font-weight: 400; }

/* thin botanical ornament under section titles */
.section-head h2::after, .page-hero h1::after {
  content: ""; display: block; width: 92px; height: 24px; margin-top: 16px;
  background: no-repeat left center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 22' fill='none' stroke='%23d8c39a' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M2 11h28M54 11h28' opacity='.55'/%3E%3Cpath d='M42 21V3'/%3E%3Cpath d='M42 8c-4-1-6-4-6-6 4 0 6 3 6 6zM42 8c4-1 6-4 6-6-4 0-6 3-6 6zM42 13c-4-1-6-4-6-6 4 0 6 3 6 6zM42 13c4-1 6-4 6-6-4 0-6 3-6 6zM42 18c-4-1-6-4-6-6 4 0 6 3 6 6zM42 18c4-1 6-4 6-6-4 0-6 3-6 6z'/%3E%3C/svg%3E");
}
.band-pine .section-head h2::after { margin-left: auto; margin-right: auto; background-position: center; }

/* language toggle: show only active language */
html[lang="es"] [lang="en"], html[lang="en"] [lang="es"] { display: none !important; }

/* header: transparent over the hero, soft glass once you scroll */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.scrolled { background: rgba(10, 11, 9, .72); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .3s; }
.site-header.scrolled .nav { height: 64px; }
.brand { color: var(--gold); text-decoration: none; font-family: var(--display); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; font-size: .92rem; white-space: nowrap; margin-right: 24px; word-spacing: -.14em; }
.brand span { font: inherit; font-weight: 400; letter-spacing: inherit; text-transform: inherit; color: inherit; margin-left: 0; }
.nav-links { display: flex; gap: 20px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { white-space: nowrap; color: var(--text); text-decoration: none; font-family: var(--display); font-size: .72rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.lang-btn { background: transparent; color: var(--gold); border: 1px solid var(--line); border-radius: 2px; padding: 6px 13px; font: 500 .7rem var(--display); letter-spacing: .18em; cursor: pointer; transition: background .2s, color .2s; }
.lang-btn:hover { background: var(--gold); color: var(--bg); }
.menu-btn { display: none; background: none; border: 0; color: var(--gold); font-size: 1.7rem; cursor: pointer; }

@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(10, 11, 9, .96); backdrop-filter: blur(14px); padding: 6px 24px 24px; display: none; border-top: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(216, 195, 154, .12); }
  .nav-links a { border-bottom: 0; }
}

/* buttons: thin, refined */
.btn { display: inline-block; padding: 14px 32px; border-radius: 2px; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-lav, .btn-pine { background: var(--gold); color: #17150f; border-color: var(--gold); }
.btn-lav:hover, .btn-pine:hover { background: #ecdcb8; border-color: #ecdcb8; }
.btn-ghost { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-ghost:hover { background: rgba(216, 195, 154, .12); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
button.btn:disabled { opacity: .55; cursor: wait; }

/* photos */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px; background: linear-gradient(135deg, #1c211a, #2a2133); display: flex; align-items: flex-end; color: var(--text); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.photo .ph-label { position: relative; margin: 14px; padding: 4px 12px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(8, 9, 7, .7); border-radius: 2px; }
.photo.has-img .ph-label { display: none; }

/* bands with a nature photo under a black veil */
.hero, .page-hero, .band-pine, .site-footer { background: var(--veil), var(--bg-hero) center / cover no-repeat; background-color: var(--bg); position: relative; }
.page-hero, .site-footer { background: var(--veil), var(--bg-page) center / cover no-repeat; background-color: var(--bg); }

/* hero */
.hero { color: var(--text); padding: 150px 0 84px; overflow: hidden; min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero > .wrap { width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero p.lead { max-width: 46ch; }
.hero .photo { min-height: 540px; border-radius: 260px 260px 6px 6px; outline: 1px solid var(--line); outline-offset: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.tagline { margin: 52px 0 0; font-family: var(--display); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); display: flex; flex-wrap: wrap; gap: 8px 0; }
.tagline > span:not(:last-child)::after { content: "|"; margin: 0 .9em; color: var(--gold-soft); opacity: .6; }
@media (max-width: 860px) {
  .hero { padding-top: 120px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero .photo { min-height: 400px; order: -1; margin: 0 14px; }
}

.page-hero { color: var(--text); padding: 160px 0 72px; }
.page-hero p { max-width: 60ch; font-family: var(--serif); font-size: 1.3rem; line-height: 1.6; color: var(--text); margin: 0; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--lav); }

/* sections */
section { padding: 92px 0; }
.band-lav { background: var(--bg-2); }
.band-pine { color: var(--text); text-align: center; }
.band-pine .eyebrow { color: var(--lav); }
.band-pine p { color: var(--text); font-family: var(--serif); font-size: 1.25rem; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { font-family: var(--serif); font-size: 1.2rem; color: var(--text-dim); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip .photo { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.flip .photo { order: 0; } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.cards.five { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-decoration: none; color: var(--text-dim); display: block; transition: transform .25s, border-color .25s, background .25s; }
a.card:hover { transform: translateY(-5px); border-color: var(--gold); background: rgba(216, 195, 154, .06); }
.card .card-img { max-width: none; width: calc(100% + 52px); height: 190px; object-fit: cover; margin: -30px -26px 22px; border-radius: var(--radius) var(--radius) 0 0; filter: saturate(.92) brightness(.92); transition: filter .3s; }
a.card:hover .card-img { filter: none; }
.card h3 { margin-bottom: .5em; }
.card p { font-size: .92rem; margin: 0; }
.card .more { display: inline-block; margin-top: 18px; color: var(--gold); font-family: var(--display); font-weight: 500; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--line); color: var(--gold); padding: 7px 18px; border-radius: 2px; font-family: var(--display); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }

.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 14px; height: 8px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8' fill='none' stroke='%23b48cc9' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M1 4h9'/%3E%3Cpath d='M10 4c-1.5-.4-2.5-1.6-2.5-3C9 1 10 2 10 4zM10 4c-1.5.4-2.5 1.6-2.5 3C9 7 10 6 10 4z'/%3E%3C/svg%3E"); }

/* modalities */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.mode { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--panel); }
.mode h3 { margin-bottom: .35em; font-size: .9rem; }
.mode p { margin: 0; font-size: .9rem; }

/* video */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #0a0b09; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--text); padding: 24px; background: linear-gradient(135deg, #14181a, #2a2133); font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.video-ph .play { font-size: 2.6rem; display: block; margin-bottom: 8px; color: var(--gold); }
.video-ph small { color: var(--text-dim); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.video-grid h3 { margin: 18px 0 4px; }
.video-grid p { font-size: .9rem; margin: 0; }
.spotify { margin-top: 56px; }
.spotify iframe { width: 100%; height: 352px; border: 0; border-radius: var(--radius); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gallery .photo { min-height: 280px; }

/* course player */
.player { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.player-side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.player-side h3 { padding: 22px 22px 8px; margin: 0; }
.progress { margin: 0 22px 14px; height: 3px; border-radius: 3px; background: rgba(216, 195, 154, .2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.lessons { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow: auto; }
.lessons button { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid rgba(216, 195, 154, .14); padding: 15px 22px; font: inherit; font-size: .9rem; cursor: pointer; display: flex; gap: 14px; align-items: center; color: var(--text-dim); }
.lessons button:hover { background: rgba(216, 195, 154, .06); color: var(--text); }
.lessons button.active { background: rgba(216, 195, 154, .1); color: var(--gold); }
.lessons .num { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: .72rem; flex: none; }
.lessons button.done .num { background: var(--gold); color: #17150f; border-color: var(--gold); }
.lesson-meta { margin-top: 24px; }
.lesson-meta .btn { margin-top: 6px; }
@media (max-width: 960px) { .player { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
form label { display: block; font-family: var(--display); font-weight: 500; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
form .field { margin-bottom: 20px; }
form input, form select, form textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 2px; font: inherit; font-size: .95rem; background: rgba(255, 255, 255, .05); color: var(--text); }
form select option { color: #111; }
form input:focus, form select:focus, form textarea:focus { outline: 0; border-color: var(--gold); background: rgba(255, 255, 255, .08); }
.note { font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; font-weight: 500; min-height: 1.6em; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: #e59a8a; }

/* footer */
.site-footer { color: var(--text-dim); padding: 72px 0 34px; font-size: .9rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; margin: 40px 0 34px; }
.site-footer .tagline { margin: 0; justify-content: center; text-align: center; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer h4 { color: var(--gold); font-family: var(--display); font-weight: 500; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 16px; }
.copy { border-top: 1px solid rgba(216, 195, 154, .16); padding-top: 22px; font-size: .78rem; color: var(--gold-soft); }
.social { display: flex; gap: 12px; }
.site-footer .social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-soft); display: grid; place-items: center; color: var(--gold); transition: background .2s, color .2s, transform .2s; }
.site-footer .social a:hover { background: var(--gold); color: #17150f; transform: translateY(-2px); }
.social svg { width: 21px; height: 21px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .site-footer .tagline { justify-content: flex-start; text-align: left; } }

/* theatre plays with posters */
.play { display: grid; gap: 48px; margin-bottom: 32px; }
.play.has-poster { grid-template-columns: minmax(0, 340px) 1fr; align-items: center; }
.play .poster { width: 100%; border-radius: 4px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); outline: 1px solid var(--line); outline-offset: 10px; }
.play-author { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--text); }
.credits { list-style: none; padding: 0; margin: 18px 0 0; }
.credits li { padding: 10px 0; border-top: 1px solid rgba(216, 195, 154, .18); font-size: .93rem; }
.credits li:last-child { border-bottom: 1px solid rgba(216, 195, 154, .18); }
@media (max-width: 760px) { .play.has-poster { grid-template-columns: 1fr; } .play .poster { max-width: 340px; margin: 0 14px; } }
