/*
Theme Name: Casa Loca
Theme URI: https://band.tomward.tech
Author: Casa Loca
Description: A luxury, performance-led WordPress theme for Casa Loca party band.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: casa-loca
*/

:root {
    --teal: #006c64;
    --teal-deep: #03453f;
    --teal-dark: #022f2b;
    --gold: #f2d09a;
    --gold-strong: #e7b86e;
    --cream: #f5f0e7;
    --paper: #fbf8f2;
    --ink: #14211f;
    --muted: #68736f;
    --line: rgba(20, 33, 31, .16);
    --shell: min(1380px, calc(100vw - 88px));
    --serif: Georgia, 'Times New Roman', serif;
    --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding-block: 132px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 1000; background: var(--gold); color: var(--ink); padding: 12px 18px; }
.skip-link:focus { top: 20px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: .98; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -.045em; }
h1 { font-size: clamp(4rem, 8.7vw, 9.2rem); }
h2 { font-size: clamp(3rem, 6vw, 6.8rem); }
h3 { font-size: 2rem; font-family: var(--serif); }
em { font-weight: 400; color: var(--gold); }
.eyebrow { margin-bottom: 22px; font-size: .72rem; font-weight: 700; letter-spacing: .22em; line-height: 1.3; text-transform: uppercase; }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }

.button { display: inline-flex; min-height: 56px; align-items: center; justify-content: center; padding: 15px 28px; border: 1px solid var(--gold); background: var(--gold); color: var(--ink); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button:hover { background: transparent; color: var(--gold); transform: translateY(-2px); }
.button-dark { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--cream); }
.button-dark:hover { color: var(--teal-deep); background: transparent; }
.button-light { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.text-link, .arrow-link { display: inline-flex; align-items: center; gap: 16px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.text-link { color: #fff; }
.text-link span, .arrow-link span { font-size: 1.25rem; transition: transform .2s ease; }
.text-link:hover span, .arrow-link:hover span { transform: translateX(6px); }
.arrow-link { padding-bottom: 8px; border-bottom: 1px solid currentColor; }
.arrow-link.light { color: var(--gold); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: #fff; transition: background .25s ease, box-shadow .25s ease; }
.site-header.scrolled { background: rgba(2, 47, 43, .95); box-shadow: 0 6px 30px rgba(0,0,0,.15); backdrop-filter: blur(14px); }
.header-inner { height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { width: 265px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.primary-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 52px); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.primary-nav > a:not(.nav-cta) { position: relative; padding-block: 12px; }
.primary-nav > a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1px; background: var(--gold); transition: right .2s ease; }
.primary-nav > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { padding: 14px 20px; border: 1px solid var(--gold); color: var(--gold); transition: .2s ease; }
.nav-cta:hover { background: var(--gold); color: var(--ink); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 12px; border: 0; background: transparent; }
.menu-toggle > span:not(.screen-reader-text) { display: block; height: 1px; margin: 5px 0; background: #fff; transition: transform .25s ease, opacity .25s ease; }

.hero { position: relative; min-height: 900px; height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--teal-dark); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-collage { width: 100%; height: 100%; display: grid; grid-template-columns: 1.2fr .8fr 1fr; animation: heroScale 16s ease-in-out infinite alternate; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); }
.hero-collage img:first-child { object-position: 48% 38%; }
.hero-collage img:nth-child(2) { object-position: 50% 25%; }
.hero-collage img:nth-child(3) { object-position: 48% 35%; }
@keyframes heroScale { from { transform: scale(1); } to { transform: scale(1.04); } }
.hero-shade { background: linear-gradient(90deg, rgba(2,35,32,.92) 0%, rgba(2,35,32,.53) 50%, rgba(2,35,32,.28) 100%), linear-gradient(0deg, rgba(2,25,23,.86) 0%, transparent 58%); }
.hero-content { position: relative; z-index: 2; padding-bottom: 90px; }
.hero-eyebrow { color: var(--gold); }
.hero h1 { max-width: 1060px; margin-bottom: 28px; font-size: clamp(4.5rem, 8.5vw, 9rem); }
.hero-intro { max-width: 680px; margin-bottom: 38px; color: rgba(255,255,255,.8); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.hero-actions { display: flex; align-items: center; gap: 34px; }
.hero-side-note { position: absolute; z-index: 2; right: 22px; bottom: 90px; writing-mode: vertical-rl; transform: rotate(180deg); color: rgba(255,255,255,.62); font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.ticker { overflow: hidden; padding: 22px 0; background: var(--gold); color: var(--teal-dark); }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 38px; animation: ticker 28s linear infinite; font-size: .72rem; font-weight: 900; letter-spacing: .2em; white-space: nowrap; }
.ticker-track i { font-size: .8rem; font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.intro-section { display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(300px, .62fr); gap: 48px; align-items: start; }
.section-number { padding-top: 10px; color: var(--teal); font-family: var(--serif); font-size: 1.35rem; }
.intro-heading h2 { margin: 0; }
.intro-copy { padding-top: 62px; color: var(--muted); font-size: 1.08rem; }
.intro-copy p { margin-bottom: 24px; }
.intro-copy .arrow-link { margin-top: 18px; color: var(--teal); }

.dark-section { background: var(--teal-dark); color: var(--cream); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 68px; }
.section-head h2 { margin-bottom: 0; }
.section-head .eyebrow { color: var(--gold); }
.showreel-frame { position: relative; overflow: hidden; aspect-ratio: 16/8.5; border: 1px solid rgba(242,208,154,.25); background: #011d1a; }
.video-placeholder { width: 100%; height: 100%; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(circle at 50% 50%, rgba(242,208,154,.12), transparent 35%), linear-gradient(135deg, #024d47, #011c19); color: var(--gold); }
.play-mark { width: 88px; height: 88px; display: grid; place-items: center; padding-left: 6px; border: 1px solid var(--gold); border-radius: 50%; font-size: 1.35rem; }
.video-placeholder p { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.video-embed, .video-embed iframe, .video-embed video { width: 100%; height: 100%; aspect-ratio: 16/9; }
.video-embed iframe, .video-embed video { border: 0; object-fit: cover; }

.why-section .section-head { max-width: 950px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { min-height: 355px; padding: 34px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s ease, color .3s ease; }
.feature-card:hover { background: var(--teal); color: #fff; }
.feature-card > span { display: block; margin-bottom: 100px; color: var(--teal); font-family: var(--serif); }
.feature-card:hover > span { color: var(--gold); }
.feature-card h3 { margin-bottom: 20px; }
.feature-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.feature-card:hover p { color: rgba(255,255,255,.72); }

.quote-band { padding: 90px 0; background: var(--teal); color: var(--cream); }
.quote-band .shell { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.quote-band p { margin: 0; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.quote-band strong { font-family: var(--serif); font-size: clamp(2rem, 4vw, 4.8rem); font-weight: 400; line-height: 1; }

.booking-preview { display: grid; grid-template-columns: 1.1fr .7fr; gap: 100px; align-items: end; }
.booking-preview h2 { margin: 0; }
.booking-preview > div:last-child { color: var(--muted); font-size: 1.08rem; }
.booking-preview .button { margin-top: 25px; }

.page-hero { min-height: 720px; display: flex; align-items: flex-end; padding: 220px 0 90px; color: #fff; background: linear-gradient(135deg, var(--teal-dark), var(--teal)); }
.page-hero .shell { position: relative; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { max-width: 1100px; margin-bottom: 32px; }
.page-hero p:last-child { max-width: 700px; margin: 0; color: rgba(255,255,255,.75); font-size: 1.15rem; }
.about-hero { background: radial-gradient(circle at 80% 20%, rgba(242,208,154,.14), transparent 25%), linear-gradient(135deg, #033d38, #006c64); }
.video-hero { background: linear-gradient(120deg, rgba(2,31,28,.96), rgba(0,108,100,.82)); }
.faq-hero { background: radial-gradient(circle at 75% 35%, rgba(242,208,154,.15), transparent 25%), var(--teal-deep); }
.booking-hero { background: linear-gradient(135deg, var(--teal-dark), #087970); }

.lineup-strip { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.14); background: var(--teal-dark); color: var(--gold); }
.lineup-strip .shell { display: flex; justify-content: space-between; gap: 20px; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.members { display: grid; gap: 120px; }
.member-card { min-height: 590px; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); background: var(--cream); }
.member-reverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.member-reverse .member-image { order: 2; }
.member-image { min-height: 590px; overflow: hidden; background: #d8d2c8; }
.member-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .8s cubic-bezier(.22,1,.36,1), filter .3s ease; }
.member-card:hover .member-image img { transform: scale(1.025); filter: saturate(1); }
.member-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 70px clamp(42px, 6vw, 100px); overflow: hidden; }
.member-copy .eyebrow { color: var(--teal); }
.member-copy h2 { margin-bottom: 32px; font-size: clamp(3.2rem, 5vw, 6rem); }
.member-copy > p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.member-number { position: absolute; right: 24px; bottom: -34px; color: rgba(0,108,100,.08); font-family: var(--serif); font-size: 10rem; line-height: 1; }

.video-page-section { padding-top: 110px; }
.featured-video > .eyebrow { color: var(--gold); }
.featured-video .video-placeholder { aspect-ratio: 16/8.4; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 90px; }
.song-video { position: relative; }
.song-video .video-placeholder { min-height: 230px; }
.video-index { margin-bottom: 14px; color: var(--gold); font-family: var(--serif); }
.song-video h2 { margin-top: 24px; font-size: 2rem; letter-spacing: -.02em; }
.video-page-section + .quote-band .shell { flex-wrap: wrap; }

.faq-section { max-width: 1120px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; display: grid; grid-template-columns: 72px 1fr 40px; gap: 18px; align-items: center; padding: 34px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.faq-item button > span:nth-child(2) { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2.6rem); line-height: 1.15; }
.faq-number { color: var(--teal); font-family: var(--serif); }
.faq-item button i { font-size: 2rem; font-style: normal; font-weight: 300; transition: transform .3s ease; }
.faq-item.open button i { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-answer > p { min-height: 0; overflow: hidden; max-width: 780px; margin: 0 0 0 90px; color: var(--muted); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer > p { padding-bottom: 36px; }
.faq-more { display: flex; align-items: center; justify-content: space-between; margin-top: 60px; padding: 38px; background: var(--cream); }
.faq-more p { margin: 0; font-family: var(--serif); font-size: 2rem; }
.faq-more .arrow-link { color: var(--teal); }

.booking-section { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 100px; align-items: start; }
.booking-aside { position: sticky; top: 150px; }
.booking-aside > .eyebrow { color: var(--teal); }
.booking-aside ol { margin: 0; padding: 0; list-style: none; }
.booking-aside li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 25px 0; border-top: 1px solid var(--line); }
.booking-aside li > span { color: var(--teal); font-family: var(--serif); }
.booking-aside li strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.booking-aside li p { margin: 0; color: var(--muted); font-size: .9rem; }
.booking-note { margin-top: 38px; padding: 28px; background: var(--teal-deep); color: #fff; }
.booking-note strong { color: var(--gold); font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.booking-note p { margin: 10px 0 0; color: rgba(255,255,255,.7); font-size: .9rem; }
.booking-form-wrap { padding: clamp(32px, 5vw, 70px); background: var(--cream); }
.booking-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.field label span { color: #af3d2f; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(20,33,31,.32); border-radius: 0; outline: none; background: transparent; color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--teal); box-shadow: 0 1px 0 var(--teal); }
.form-submit { align-items: start; margin-top: 12px; }
.form-submit .button { width: max-content; border: 1px solid var(--teal-deep); cursor: pointer; }
.form-submit p { max-width: 520px; margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.form-notice { margin-bottom: 30px; padding: 20px 24px; border-left: 4px solid var(--teal); background: #fff; }
.form-notice.error { border-color: #ae3d2f; }

.prose { max-width: 900px; }
.prose h2 { margin-top: 70px; font-size: 3rem; }
.not-found { min-height: 100svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 130px; }
.not-found .eyebrow { color: var(--teal); }
.not-found h1 { font-size: clamp(4rem, 8vw, 8rem); }
.not-found em { color: var(--teal); }

.site-footer { background: var(--teal-dark); color: var(--cream); }
.footer-cta { padding-block: 120px; text-align: center; }
.footer-cta .eyebrow { color: var(--gold); }
.footer-cta h2 { max-width: 1000px; margin: 0 auto 42px; }
.footer-bottom { min-height: 130px; display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 30px; align-items: center; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.55); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-bottom p { margin: 0; }
.footer-bottom p:last-child { text-align: right; }
.footer-brand { color: var(--gold); font-family: var(--serif); font-size: 1.25rem; letter-spacing: .12em; }

@media (max-width: 1100px) {
    :root { --shell: min(100% - 56px, 1100px); }
    .section { padding-block: 100px; }
    .primary-nav { gap: 22px; }
    .brand { width: 220px; }
    .intro-section { grid-template-columns: 50px 1fr; }
    .intro-copy { grid-column: 2; padding-top: 0; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card > span { margin-bottom: 65px; }
    .member-card, .member-reverse { grid-template-columns: 1fr 1fr; }
    .booking-section { gap: 60px; }
}

@media (max-width: 820px) {
    :root { --shell: calc(100vw - 40px); }
    .section { padding-block: 78px; }
    .header-inner { height: 88px; }
    .brand { width: 210px; }
    .menu-toggle { display: block; position: relative; z-index: 2; }
    .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .primary-nav { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 100px 40px 60px; background: var(--teal-dark); transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.22,1,.36,1), visibility .35s; }
    .primary-nav.open { transform: none; visibility: visible; }
    .primary-nav a { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; letter-spacing: -.02em; text-transform: none; }
    .primary-nav .nav-cta { margin-top: 22px; font-family: var(--sans); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
    .hero { min-height: 760px; height: 100svh; }
    .hero-collage { grid-template-columns: 1fr 1fr; }
    .hero-collage img:nth-child(3) { display: none; }
    .hero-shade { background: linear-gradient(0deg, rgba(2,30,27,.94) 0%, rgba(2,30,27,.5) 70%, rgba(2,30,27,.45) 100%); }
    .hero-content { padding-bottom: 58px; }
    .hero h1 { font-size: clamp(3.7rem, 15vw, 6.5rem); }
    .hero-intro { max-width: 580px; }
    .hero-side-note { display: none; }
    .intro-section { grid-template-columns: 1fr; gap: 20px; }
    .section-number { display: none; }
    .intro-copy { grid-column: auto; }
    .section-head { display: grid; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .quote-band .shell { flex-direction: column; align-items: flex-start; }
    .booking-preview { grid-template-columns: 1fr; gap: 42px; }
    .page-hero { min-height: 650px; padding-top: 180px; }
    .lineup-strip .shell { overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
    .lineup-strip span { min-width: max-content; }
    .members { gap: 70px; }
    .member-card, .member-reverse { min-height: auto; grid-template-columns: 1fr; }
    .member-reverse .member-image { order: 0; }
    .member-image { min-height: 520px; max-height: 680px; }
    .member-copy { min-height: 420px; padding: 48px 38px; }
    .video-grid { grid-template-columns: 1fr; gap: 55px; }
    .booking-section { grid-template-columns: 1fr; }
    .booking-aside { position: static; }
    .footer-bottom { grid-template-columns: 1fr; padding-block: 38px; }
    .footer-bottom p:last-child { text-align: left; }
}

@media (max-width: 560px) {
    :root { --shell: calc(100vw - 30px); }
    body { font-size: 15px; }
    .section { padding-block: 64px; }
    .brand { width: 180px; }
    .hero { min-height: 720px; }
    .hero-collage { grid-template-columns: 1fr; }
    .hero-collage img:nth-child(2) { display: none; }
    .hero-content { padding-bottom: 42px; }
    .hero h1 { font-size: clamp(3.2rem, 15.2vw, 5rem); }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
    .hero-intro { margin-bottom: 30px; }
    .ticker { padding-block: 17px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 300px; }
    .feature-card > span { margin-bottom: 48px; }
    .showreel-frame { aspect-ratio: 4/3; }
    .video-placeholder { min-height: 250px; }
    .play-mark { width: 68px; height: 68px; }
    .page-hero { min-height: 580px; padding: 150px 0 62px; }
    .page-hero h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
    .member-image { min-height: 430px; }
    .member-copy { min-height: 390px; padding: 40px 26px; }
    .faq-item button { grid-template-columns: 42px 1fr 24px; padding: 26px 0; }
    .faq-answer > p { margin-left: 60px; }
    .faq-more { align-items: flex-start; flex-direction: column; gap: 25px; padding: 28px; }
    .booking-form-wrap { padding: 28px 22px; }
    .booking-form { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .footer-cta { padding-block: 90px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

