/* =====================================================
   LALO RODRIGUEZ REMODELING — LUXURY DESIGN SYSTEM
   Palette: charcoal #0F0F0F / brass #C9A227 / cream #F5F1EA
   Type: Playfair Display (display) + Inter (body)
   ===================================================== */

:root {
    --ink-900: #0F0F0F;
    --ink-800: #1A1A1A;
    --ink-700: #242424;
    --brass: #C9A227;
    --brass-light: #E0C56A;
    --brass-dark: #9C7C1A;
    --cream: #F5F1EA;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body { overflow-x: hidden; }

/* Custom scrollbar — subtle luxury */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-800); }
::-webkit-scrollbar-thumb { background: var(--ink-700); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--brass-dark); }

/* ===================== BUTTONS ===================== */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, var(--brass) 0%, var(--brass-dark) 100%);
    color: var(--ink-900);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid var(--brass);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px -8px rgba(201, 162, 39, 0.45);
}
.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brass-light) 0%, var(--brass) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-gold > * { position: relative; z-index: 1; }
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -10px rgba(201, 162, 39, 0.6);
}
.btn-gold:hover::before { opacity: 1; }
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: transparent;
    color: var(--cream);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid rgba(245, 241, 234, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-ghost:hover {
    border-color: var(--brass);
    color: var(--brass);
    background: rgba(201, 162, 39, 0.06);
}

.btn-gold-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: transparent;
    color: var(--brass);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid var(--brass);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-gold-outline:hover {
    background: var(--brass);
    color: var(--ink-900);
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--ink-900);
    color: var(--cream);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid var(--ink-900);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.6);
}

.btn-ink-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: transparent;
    color: var(--ink-900);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1.5px solid var(--ink-900);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-ink-outline:hover {
    background: var(--ink-900);
    color: var(--brass);
}

/* ===================== TYPOGRAPHY HELPERS ===================== */
.eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--brass);
    position: relative;
    padding-left: 2.5rem;
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 1px;
    background: var(--brass);
}
.text-center .eyebrow { padding-left: 0; padding-right: 2.5rem; }
.text-center .eyebrow::before { left: 50%; transform: translate(-50%, -50%); }
/* When eyebrow is centered we want a centered divider, no left padding */
.text-center .eyebrow {
    padding: 0;
}
.text-center .eyebrow::before {
    width: 2rem;
    left: 50%;
    transform: translate(-50%, 0);
}

/* ===================== NAV LINKS ===================== */
.nav-link {
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.25s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--brass);
    transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
    color: var(--brass);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header shadow on scroll */
#header.scrolled {
    background: rgba(15, 15, 15, 0.97);
    box-shadow: 0 6px 30px -10px rgba(0, 0, 0, 0.6);
}

/* ===================== SERVICE CARDS ===================== */
.service-card {
    background: var(--ink-900);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 162, 39, 0.15);
}
.service-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover .service-img img {
    transform: scale(1.08);
}
.service-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.6) 0%, transparent 50%);
}
.service-body {
    padding: 1.75rem;
    flex: 1;
}
.service-icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brass);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card:hover .service-icon {
    background: var(--brass);
    color: var(--ink-900);
    border-color: var(--brass);
}

/* Service pills in catalog */
.service-pill {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    color: rgba(245, 241, 234, 0.7);
    font-size: 0.85rem;
    transition: all 0.25s ease;
    position: relative;
    padding-left: 1.75rem;
}
.service-pill::before {
    content: '';
    position: absolute;
    left: 0.9rem;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brass);
    transform: translateY(-50%);
}
.service-pill:hover {
    background: rgba(201, 162, 39, 0.08);
    border-color: rgba(201, 162, 39, 0.3);
    color: var(--cream);
}

/* ===================== PROCESS STEPS ===================== */
.process-step {
    position: relative;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
    transition: all 0.4s ease;
}
.process-step::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brass);
    transition: width 0.5s ease;
}
.process-step:hover {
    background: rgba(201, 162, 39, 0.03);
}
.process-step:hover::before {
    width: 100%;
}
.process-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    color: var(--brass);
    line-height: 1;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* ===================== PORTFOLIO ===================== */
.filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(245, 241, 234, 0.6);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.filter-btn:hover {
    color: var(--brass);
    border-color: rgba(201, 162, 39, 0.4);
}
.filter-btn.active {
    background: var(--brass);
    color: var(--ink-900);
    border-color: var(--brass);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item:hover img {
    transform: scale(1.08);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.92) 0%, rgba(15, 15, 15, 0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-tag {
    color: var(--cream);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.9rem;
    background: rgba(201, 162, 39, 0.18);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 2px;
    backdrop-filter: blur(6px);
}

/* Portfolio hide on filter */
.portfolio-item.is-hidden {
    display: none;
}

/* ===================== TESTIMONIALS ===================== */
.testimonial-slide {
    flex: 0 0 100%;
    padding: 1rem 1.5rem;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}
.testimonial-slide svg { margin-left: auto; margin-right: auto; }

.testimonial-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: var(--brass);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.testimonial-arrow:hover {
    background: var(--brass);
    color: var(--ink-900);
}
.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(245, 241, 234, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}
.testimonial-dot.active {
    background: var(--brass);
    width: 24px;
    border-radius: 4px;
}

/* ===================== FAQ ===================== */
.faq-item {
    background: var(--ink-800);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.faq-item[open] {
    border-color: rgba(201, 162, 39, 0.35);
    background: rgba(26, 26, 26, 0.9);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brass); }
.faq-item[open] summary { color: var(--brass); padding-bottom: 1rem; }
.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
}
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform 0.3s ease;
}
.faq-icon::before {
    top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%);
}
.faq-icon::after {
    left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
}
.faq-item[open] .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
}
.faq-item p {
    padding: 0 1.5rem 1.5rem;
    color: rgba(245, 241, 234, 0.65);
    line-height: 1.7;
    font-size: 0.95rem;
}
.faq-item p a { color: var(--brass); }

/* ===================== FORM ===================== */
.form-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(245, 241, 234, 0.55);
    margin-bottom: 0.4rem;
    font-weight: 500;
}
.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    color: var(--cream);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s ease;
}
.form-input::placeholder { color: rgba(245, 241, 234, 0.3); }
.form-input:focus {
    outline: none;
    border-color: var(--brass);
    background: rgba(15, 15, 15, 0.9);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}
.form-input.error {
    border-color: #d9534f;
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.12);
}
select.form-input option {
    background: var(--ink-800);
    color: var(--cream);
}

#formStatus.success {
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: var(--brass-light);
}
#formStatus.error {
    background: rgba(217, 83, 79, 0.12);
    border: 1px solid rgba(217, 83, 79, 0.4);
    color: #f1a8a4;
}

/* ===================== CONTACT ROWS ===================== */
.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}
.contact-row:hover {
    border-color: rgba(201, 162, 39, 0.3);
    background: rgba(201, 162, 39, 0.04);
}
.contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--brass);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; }

/* ===================== FOOTER ===================== */
.footer-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 1px;
    background: var(--brass);
}
.footer-link {
    color: rgba(245, 241, 234, 0.55);
    transition: color 0.25s ease, padding-left 0.25s ease;
    display: inline-block;
}
.footer-link:hover {
    color: var(--brass);
    padding-left: 6px;
}

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside visible containers */
.reveal.visible > .reveal { /* noop, just safety */ }

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

/* ===================== UTILITIES ===================== */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile sticky bar padding for footer */
@media (max-width: 1023px) {
    body { padding-bottom: 0; }
}
