/*
Theme Name: Tenerife Luxury Events
Author: Gemini CLI
Version: 1.0
Description: A clean minimalist theme for Tenerife Luxury Events.
*/

:root { --bg-color: #fff; --text-color: #1A1A1A; --font-main: "Optima", "Segoe UI", system-ui, -apple-system, sans-serif; --overlay-bg: rgba(0,0,0,0.6); }
* { margin: 0; padding: 0; box-sizing: border-box; color: var(--text-color); }
button { font-family: var(--font-main); font-weight: 400; font-size: 1rem; -webkit-appearance: none; appearance: none; }
html { font-size: 16px; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { display: inline-flex; font-size: 1.2rem; line-height: 1; font-weight: 400; scroll-margin-top: 100px; hyphens: auto; width: fit-content; text-wrap: balance; font-family: var(--font-main); text-transform: uppercase; z-index: 1; }
body { width: 100%; overflow-x: hidden; background: var(--bg-color); font-family: var(--font-main) !important; -webkit-font-smoothing: antialiased; }
p { font-size: 1.2rem; line-height: 1; font-weight: 400; text-align: left; text-wrap: pretty; max-width: fit-content; }
a { display: inline; line-height: 1; font-size: 1.2rem; font-weight: 400; text-decoration: none; padding: 0; margin: 0; transition: all 0.3s; }
a:hover { opacity: 0.7; }
a img { display: block; margin: 0; max-width: 100%; }
p a { hyphens: auto; text-decoration: underline; text-transform: uppercase; word-break: break-word; overflow-wrap: break-word; }
h3 a, h4 a { text-decoration: none; }
.main-content a { text-decoration: underline; text-transform: uppercase; }
span { font-size: 1.2rem; line-height: 1; }

/* ─── Header ─── */
.header-section { position: absolute; top: 0; left: 0; width: 100%; height: 60px; display: flex; justify-content: center; align-items: center; z-index: 10; }
.header-wrapper { display: flex; width: 100%; padding: 0 20px; justify-content: space-between; align-items: center; }
.text-logo { display: inline-flex; font-size: 1rem; line-height: 1; text-transform: uppercase; font-family: var(--font-main); color: #fff; text-decoration: none; letter-spacing: 0.1em; }
.site-logo-link { display: inline-flex; align-items: center; transition: opacity 0.3s; }
.site-logo-link:hover { opacity: 0.7; }
.site-logo { height: 1.2rem; width: auto; display: block; }

/* ─── Sections ─── */
.hero-section, .about-section, .secondary-section { position: relative; height: 100vh; height: 100svh; width: 100%; overflow: hidden; touch-action: pan-y; }
.hero-section, .about-section { color: #fff; }
.hero-section::before, .about-section::before, .secondary-section::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 2; }
.hero-bg-img, .about-bg-img, .secondary-bg-img, .content-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #1a1a1a; background-size: cover; background-position: center; z-index: 1; transform: translate3d(0,0,0); -webkit-transform: translate3d(0,0,0); will-change: transform; }
.hero-content { position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 5; text-align: left; text-transform: uppercase; }
.hero-content h1 { font-size: 1.2rem; color: #fff; font-weight: normal; }

/* ─── CTA Bars ─── */
.cta-contact, .cta-socials { position: absolute; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.cta-contact { bottom: 20px; }
.cta-socials { top: 20px; }
.cta-contact a, .cta-socials a, .cta-interest-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: none; border-radius: 50%; cursor: pointer; transition: background 0.3s; }
.cta-contact a:hover, .cta-socials a:hover, .cta-interest-btn:hover { background: rgba(255,255,255,0.2); }
.cta-contact a svg, .cta-socials a svg, .cta-interest-btn svg { width: 1.2rem; height: 1.2rem; }

/* ─── Ghost Button ─── */
.open-form, .open-form-br, .not-found-back { position: absolute; z-index: 5; background: none; border: 1px solid rgba(255,255,255,0.6); color: #fff; font-size: 1rem; font-family: var(--font-main); text-transform: uppercase; padding: 10px 14px; cursor: pointer; transition: border-color 0.3s, opacity 0.3s; }
.open-form, .not-found-back { top: 20px; left: 20px; }
.open-form-br { bottom: 20px; right: 20px; }
.open-form:hover, .open-form-br:hover, .not-found-back:hover { border-color: #fff; opacity: 0.8; }

/* ─── About Section ─── */
.about-content { position: absolute; top: 18px; left: 20px; z-index: 5; max-width: 480px; }
.about-content p { color: #fff; line-height: 1.6; padding-right: 20px; }

/* ─── Form Panel ─── */
.panel-overlay { position: fixed; inset: 0; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.panel-overlay.active { opacity: 1; pointer-events: all; }
.form-panel { position: fixed; top: 0; right: 0; width: 360px; height: 100vh; height: 100svh; backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); padding: 20px; z-index: 1000; transform: translateX(100%); transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1); display: flex; flex-direction: column; justify-content: center; }
.form-panel.active { transform: translateX(0); }
@media (max-width: 480px) {
    .form-panel { top: auto; bottom: 0; left: 0; width: 100%; height: auto; padding: 32px 24px 40px; justify-content: flex-start; transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1); }
    .form-panel.active { transform: translateY(0); }
    .panel-close { top: 16px; right: 16px; }
}
.panel-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; }
.panel-close:hover { opacity: 1; }
.panel-title { color: #fff; font-size: 1.2rem; font-weight: normal; text-transform: uppercase; margin-bottom: 10px; }
.panel-divider { width: 20px; height: 1px; background: #fff; opacity: 0.3; margin-bottom: 20px; }
.interest-form { display: flex; flex-direction: column; gap: 20px; }
.interest-form input { background: none; border: none; border-bottom: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 1rem; font-family: var(--font-main); padding: 10px 0; outline: none; transition: border-color 0.3s; -webkit-appearance: none; appearance: none; border-radius: 0; }
.interest-form input::placeholder { color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.08em; }
.interest-form input:focus { border-bottom-color: #fff; }
.interest-form button { background: none; border: 1px solid rgba(255,255,255,0.5); color: #fff; font-size: 1rem; font-family: var(--font-main); font-weight: 400; text-transform: uppercase; padding: 10px 20px; margin-top: 10px; cursor: pointer; transition: border-color 0.3s, opacity 0.3s; -webkit-appearance: none; appearance: none; border-radius: 0; }
.interest-form button:hover:not(:disabled) { border-color: #fff; opacity: 0.8; }
.interest-form button:disabled { opacity: 0.4; cursor: default; }
.interest-form button.sending { border-color: rgba(255,255,255,0.3); }
.form-fields { display: contents; transition: opacity 0.4s; }
.form-fields.hiding { opacity: 0; }
.form-success { display: none; color: #fff; font-size: 1.2rem; opacity: 0; text-transform: uppercase; letter-spacing: 0.08em; transition: opacity 0.5s ease; }
.form-success.visible { opacity: 0.9; }
.form-note { font-size: .85rem; color: rgba(255,255,255,0.35); line-height: 1.5; }
.form-note a { font-size: .85rem; color: rgba(255,255,255,0.5); text-decoration: underline; text-transform: uppercase; }

/* ─── Content Section ─── */
.content-section { position: relative; height: 100vh; height: 100svh; width: 100%; overflow: hidden; touch-action: pan-y; }
.content-section::before { content: ""; position: absolute; inset: 0; background: var(--overlay-bg); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 2; }
.content-section::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.35) 100%); z-index: 3; pointer-events: none; }
.content-section .main-content { position: absolute; top: 0; left: 0; height: 480px; z-index: 5; padding: 0; color: #fff; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.content-section .main-content::-webkit-scrollbar { display: none; }
.content-section .main-content, .content-section .main-content * { color: #fff; }
@media (min-width: 1024px) { .content-section .main-content { width: 560px; } }

/* ─── Accordion ─── */
.accordion-item { padding: 0 20px; }
.accordion-header { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 60px; padding: 0; cursor: pointer; color: #fff; text-transform: uppercase; font-size: 1.2rem; font-family: var(--font-main); background: none; border: none; text-align: left; letter-spacing: 0.05em; }
.accordion-header::after { content: '+'; font-size: 1.2rem; opacity: 0.5; flex-shrink: 0; margin-left: 10px; }
.accordion-header.open::after { content: '−'; }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.76, 0, 0.24, 1); }
.accordion-body-inner { padding-bottom: 16px; }
.accordion-body-inner p, .accordion-body-inner li { font-size: 1.2rem; line-height: 1.6; color: rgba(255,255,255,0.75); }
.accordion-body-inner a { color: rgba(255,255,255,0.6); }

/* ─── Footer ─── */
.footer-section { position: absolute; bottom: 0; left: 0; width: 100%; height: 60px; display: flex; justify-content: center; align-items: center; z-index: 5; }
.footer-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 20px; text-transform: uppercase; font-size: 1.2rem; color: #fff; }
