/* ================================================
   STRETCH CEILINGS MARBELLA
   Dark / Light Theme · Premium Design
   ================================================ */

/* ---- Theme Variables ---- */
:root {
    /* Shared */
    --gold: #c9a96e;
    --gold-light: #e8d5a8;
    --gold-dark: #a08550;
    --cyan: #00d4ff;
    --cyan-dark: #0099cc;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --container: 1200px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 16px;
}

[data-theme="dark"] {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0d1222;
    --bg-card: #121830;
    --bg-card-hover: #1a1f3d;
    --bg-input: #121830;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(201,169,110,0.5);
    --text-primary: #f5f5f7;
    --text-secondary: rgba(245,245,247,0.65);
    --text-muted: rgba(245,245,247,0.4);
    --overlay-nav: rgba(10,14,26,0.92);
    --overlay-img: linear-gradient(180deg, rgba(10,14,26,0.5) 0%, rgba(10,14,26,0.2) 30%, rgba(10,14,26,0.7) 100%);
    --overlay-dark: rgba(10,14,26,0.82);
    --shadow: 0 20px 60px rgba(0,0,0,0.4);
    --glow: rgba(0,212,255,0.08);
}

[data-theme="light"] {
    --bg-primary: #f8f7f4;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0efe8;
    --bg-input: #f0efe8;
    --border: rgba(0,0,0,0.08);
    --border-hover: rgba(201,169,110,0.5);
    --text-primary: #1a1a2e;
    --text-secondary: rgba(26,26,46,0.65);
    --text-muted: rgba(26,26,46,0.4);
    --overlay-nav: rgba(248,247,244,0.92);
    --overlay-img: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.55) 100%);
    --overlay-dark: rgba(20,20,30,0.75);
    --shadow: 0 20px 60px rgba(0,0,0,0.08);
    --glow: rgba(201,169,110,0.08);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.5s ease, color 0.5s ease;
}
a { color: inherit; text-decoration: none; transition: color 0.3s; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* Accent gradient */
.accent {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================
   NAV
   ================================================ */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}
#navbar.scrolled {
    background: var(--overlay-nav);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(20px,4vw,40px);
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
    font-weight: 700; font-size: 1.05rem; letter-spacing: 0.25em;
    color: var(--text-primary);
}
.logo-sub {
    font-weight: 400; font-size: 0.6rem; letter-spacing: 0.35em;
    color: var(--gold); text-transform: uppercase;
}
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em;
    color: var(--text-secondary); position: relative; padding: 4px 0;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 1px; background: var(--gold);
    transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
    color: #0a0e1a !important; padding: 9px 22px !important;
    border-radius: 50px; font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,169,110,0.3); }

/* Controls */
.nav-controls { display: flex; gap: 8px; }
.theme-toggle, .lang-toggle {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s ease; color: var(--text-secondary);
}
.theme-toggle:hover, .lang-toggle:hover {
    border-color: var(--gold); color: var(--gold);
}
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
.lang-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}
.hamburger span { width: 24px; height: 2px; background: var(--text-primary); transition: 0.3s; transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ================================================
   PHOTO SECTIONS (Split Layout)
   ================================================ */
.photo-section { position: relative; }

.section-split {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 100vh; align-items: center;
}

.layout-left .section-split { direction: ltr; }
.layout-right .section-split { direction: ltr; }

/* Image side */
.split-image {
    position: relative; overflow: hidden;
    height: 100%; min-height: 600px;
}
.split-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.split-image:hover img { transform: scale(1.04); }
.image-frame {
    position: absolute; inset: 20px;
    border: 1px solid var(--gold);
    border-radius: 4px; opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.split-image:hover .image-frame { opacity: 0.6; }

/* Content side */
.split-content {
    padding: clamp(40px, 6vw, 100px);
    display: flex; flex-direction: column;
    justify-content: center; gap: 0;
}
.section-tag {
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 16px;
    display: flex; align-items: center; gap: 12px;
}
.section-tag::before {
    content: ''; width: 32px; height: 1px;
    background: var(--cyan); flex-shrink: 0;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600; line-height: 1.2;
    margin-bottom: 20px;
}
.section-text {
    color: var(--text-secondary); font-size: 0.95rem;
    line-height: 1.8; margin-bottom: 20px;
}
.center-text { text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Feature list (Showroom) */
.feature-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.feature-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--gold); margin-top: 6px; flex-shrink: 0;
    box-shadow: 0 0 12px rgba(201,169,110,0.3);
}
.feature-dot.dot-cyan { background: var(--cyan); box-shadow: 0 0 12px rgba(0,212,255,0.3); }
.feature-dot.dot-gradient {
    background: linear-gradient(135deg, var(--gold), var(--cyan));
    box-shadow: 0 0 12px rgba(0,212,255,0.2);
}
.feature-item strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.feature-item span { font-size: 0.8rem; color: var(--text-muted); }

/* Stats row (Installation) */
.stats-row { display: flex; gap: clamp(24px, 4vw, 48px); margin-bottom: 32px; }
.mini-stat { text-align: center; }
.mini-stat-num {
    font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mini-stat-plus {
    font-size: 1rem; font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mini-stat-label {
    display: block; font-size: 0.7rem;
    color: var(--text-muted); letter-spacing: 0.05em; margin-top: 2px;
}

/* About values (Team) */
.about-values { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.value-item {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.88rem; color: var(--text-secondary);
}
.value-item svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* ================================================
   HERO SECTION (Fullscreen)
   ================================================ */
.hero-section {
    min-height: 100vh; display: flex;
    align-items: center; justify-content: center;
    overflow: hidden;
}
.photo-bg {
    position: absolute; inset: 0; z-index: 0;
}
.photo-bg-img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-section .photo-bg-img {
    filter: blur(6px);
    transform: scale(1.06);
}
.photo-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: var(--overlay-img);
}
.hero-section .photo-overlay {
    background: linear-gradient(180deg, rgba(10,14,26,0.7) 0%, rgba(10,14,26,0.55) 30%, rgba(10,14,26,0.85) 100%);
}
.overlay-dark { background: var(--overlay-dark) !important; }
.photo-content {
    position: relative; z-index: 2;
}
.hero-content {
    text-align: center; padding: 0 20px; max-width: 900px;
}
.hero-badge {
    display: inline-block; padding: 8px 24px;
    border: 1px solid var(--gold); border-radius: 50px;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 28px;
}
.hero-title { margin-bottom: 12px; }
.title-line {
    display: block; font-weight: 900;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    letter-spacing: 0.15em; line-height: 1.05;
    color: #fff;
}
.title-accent {
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.title-sub {
    display: block; font-weight: 300;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    letter-spacing: 0.4em; color: rgba(255,255,255,0.5);
    margin-top: 8px;
}
.hero-tagline {
    font-size: 0.95rem; letter-spacing: 0.3em;
    color: rgba(255,255,255,0.5); margin-bottom: 12px;
}
.hero-desc {
    font-size: 1rem; color: rgba(255,255,255,0.6);
    line-height: 1.8; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Scroll hint */
.scroll-hint {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%); z-index: 2;
    opacity: 0; animation: fadeIn 0.8s ease 2s forwards;
}
.scroll-mouse {
    width: 22px; height: 34px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px; position: relative;
}
.scroll-wheel {
    width: 3px; height: 8px; background: var(--gold);
    border-radius: 2px; position: absolute;
    top: 6px; left: 50%; transform: translateX(-50%);
    animation: wheelScroll 2s ease-in-out infinite;
}
@keyframes wheelScroll {
    0%,100% { opacity:1; transform:translateX(-50%) translateY(0); }
    50% { opacity:0.3; transform:translateX(-50%) translateY(10px); }
}
@keyframes fadeIn { to { opacity: 1; } }

/* ================================================
   FULL‑WIDTH PHOTO (Process Section)
   ================================================ */
.full-width-photo {
    min-height: 100vh; display: flex;
    align-items: center; justify-content: center;
    overflow: hidden;
}
.centered-content {
    text-align: center; padding: 80px 20px; max-width: 1100px;
}
.centered-content .section-tag {
    justify-content: center;
}
.centered-content .section-tag::before { display: none; }
.tag-light { color: var(--cyan); }
.big-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 600; line-height: 1.2;
    color: #fff; margin-bottom: 48px;
}
.process-steps {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.p-step {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); padding: 32px 20px;
    text-align: center;
    transition: all 0.4s var(--ease);
}
.p-step:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-6px);
    border-color: var(--gold);
}
.p-step-num {
    font-size: 2rem; font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 14px;
}
.p-step h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.p-step p { color: rgba(255,255,255,0.6); font-size: 0.82rem; line-height: 1.6; }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 32px; border-radius: 50px;
    font-family: var(--font-primary); font-size: 0.88rem;
    font-weight: 600; letter-spacing: 0.04em;
    cursor: pointer; transition: all 0.4s var(--ease);
    border: none; text-decoration: none;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    color: #0a0e1a;
    box-shadow: 0 4px 20px rgba(201,169,110,0.2);
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(201,169,110,0.4);
}
.btn-outline {
    background: transparent; color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-full { width: 100%; justify-content: center; }
.btn-full svg { width: 18px; height: 18px; }

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact-section {
    padding: clamp(80px,10vw,140px) 0;
    background: var(--bg-secondary);
}
.section-header-center {
    text-align: center; margin-bottom: 56px;
}
.section-header-center .section-tag { justify-content: center; }
.section-header-center .section-tag::before { display: none; }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 48px; align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
}
.contact-card:hover { border-color: var(--border-hover); transform: translateX(4px); }
.cc-icon {
    flex-shrink: 0; width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--bg-card-hover);
    display: flex; align-items: center; justify-content: center;
}
.cc-icon svg { width: 20px; height: 20px; color: var(--gold); }
.contact-card strong {
    display: block; font-size: 0.72rem;
    color: var(--text-muted); letter-spacing: 0.05em;
    text-transform: uppercase; margin-bottom: 2px;
}
.contact-card a, .contact-card span { font-size: 0.92rem; color: var(--text-primary); }
.contact-card a:hover { color: var(--gold); }

/* WhatsApp */
.whatsapp-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; width: 100%; padding: 15px;
    background: linear-gradient(135deg, #128c7e, #25d366);
    border-radius: 14px; font-weight: 600; font-size: 0.95rem;
    color: #fff !important;
    transition: all 0.3s ease;
}
.whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.3); }
.whatsapp-btn svg { width: 22px; height: 22px; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px; color: var(--text-primary);
    font-family: var(--font-primary); font-size: 0.92rem;
    transition: 0.3s; outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group select {
    cursor: pointer; color: var(--text-muted);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a96e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.form-group select option { background: var(--bg-card); color: var(--text-primary); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ================================================
   FOOTER
   ================================================ */
#footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 56px 0 28px;
    transition: background 0.5s ease;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px; margin-bottom: 40px;
}
.footer-brand p { margin-top: 14px; font-size: 0.82rem; color: var(--text-muted); max-width: 260px; line-height: 1.7; }
.footer-col h4 {
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 16px; color: var(--text-primary);
}
.footer-col a, .footer-col span {
    display: block; font-size: 0.82rem;
    color: var(--text-muted); padding: 3px 0;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px; text-align: center;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

/* ================================================
   REVEAL ANIMATIONS
   ================================================ */
.reveal-fade {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--d, 0s);
}
.reveal-slide {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0s);
}
.reveal-image {
    opacity: 0; transform: scale(0.95);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-fade.visible, .reveal-slide.visible, .reveal-image.visible {
    opacity: 1; transform: translateY(0) scale(1);
}

/* Hero animations fire on load, not scroll */
.hero-section .reveal-fade,
.hero-section .reveal-slide {
    animation-fill-mode: forwards;
}
.hero-section .reveal-fade { animation: revealFade 0.7s var(--ease) var(--d, 0s) forwards; }
.hero-section .reveal-slide { animation: revealSlide 0.8s var(--ease) var(--d, 0s) forwards; }

@keyframes revealFade {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes revealSlide {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .section-split { grid-template-columns: 1fr; min-height: auto; }
    .split-image { min-height: 400px; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border);
        flex-direction: column; justify-content: center;
        gap: 24px; padding: 40px;
        transition: right 0.4s var(--ease);
        z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.05rem; }
    .nav-cta { text-align: center; width: 100%; }
    .split-image { min-height: 300px; }
    .process-steps { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .stats-row { gap: 20px; }
    .title-line { font-size: clamp(2rem, 10vw, 3.5rem); }
}
