:root {
    --primary: #E2001A;
    --primary-light: #ff1a35;
    --secondary: #A0A0A0;
    --dark: #0a0a0a;
    --dark-surface: #1a1a1a;
    --text: #ffffff;
    --text-muted: #b0b0b0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.12em;
    color: currentColor;
}

/* --- Layout --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

.bg-gradient {
    background: linear-gradient(to bottom, var(--dark) 0%, var(--dark-surface) 15%, var(--dark-surface) 85%, var(--dark) 100%);
}

/* --- Navigation --- */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 20px !important;
    width: auto !important;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-call {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle .icon {
    font-size: 1.35rem;
    pointer-events: none;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
    outline: none;
}

.nav-links a:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

select option {
    background: var(--dark-surface);
    color: var(--text);
}

select option:checked {
    background: var(--primary);
    color: #ffffff;
}

select {
    color-scheme: dark;
}

/* --- Hero Section --- */

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero.jpg'), url('images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(transparent, var(--dark));
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* --- Buttons --- */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(226, 0, 26, 0.3);
}

.btn-outline {
    border: 2px solid var(--secondary);
    color: var(--text);
    margin-left: 1rem;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Services --- */

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.service-card {
    background: var(--dark-surface);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-card .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* --- About / Planning --- */

.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.feature-image {
    position: relative;
}

.feature-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* --- Slideshow --- */
.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.slideshow-container::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.22), rgba(226, 0, 26, 0.08));
    pointer-events: none;
}

.slideshow-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    filter: contrast(1.06) saturate(0.95);
    transition: opacity 1s ease-in-out, transform 5.5s ease;
    border-radius: 12px;
}

.slideshow-inner img.active {
    opacity: 1;
    transform: scale(1);
}

.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* --- FAQ Section --- */

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open],
.faq-item:hover {
    border-color: rgba(226, 0, 26, 0.55);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 3.25rem 1.25rem 1.5rem;
    position: relative;
    font-weight: 700;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Process Section --- */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-step {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.75rem 1.4rem;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.process-step:hover {
    border-color: rgba(226, 0, 26, 0.55);
    transform: translateY(-6px);
}

.process-number {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: rgba(226, 0, 26, 0.14);
    color: var(--primary);
    font-weight: 700;
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* --- Contact Section --- */

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--glass);
    border-radius: 12px;
}

.info-item .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-phone {
    margin-top: 0.35rem;
    color: var(--text);
}

.contact-phone a,
.contact-phone a[x-apple-data-detectors] {
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text);
    text-decoration: none !important;
}

.whatsapp-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(37, 211, 102, 0.45);
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-contact-link:hover,
.whatsapp-contact-link:focus-visible {
    background: #25D366;
    color: #06140b;
    border-color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.16);
}

.info-item .whatsapp-contact-link .icon {
    flex: 0 0 auto;
    margin: 0;
    color: currentColor;
    font-size: 1.2rem;
}

.inline-icon {
    margin-right: 0.5rem;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #2ee66f, #19ba55);
    color: #ffffff;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), 0 0 0 8px rgba(37, 211, 102, 0.08);
    transition: var(--transition);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(37, 211, 102, 0.13);
}

.whatsapp-float .icon {
    font-size: 2.05rem;
}

.form-status {
    display: none;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    font-size: 0.95rem;
}

.form-status.success {
    display: block;
    border-color: rgba(37, 211, 102, 0.55);
    background: rgba(37, 211, 102, 0.12);
}

.form-status.error {
    display: block;
    border-color: rgba(226, 0, 26, 0.65);
    background: rgba(226, 0, 26, 0.12);
}

.form-status.sending {
    display: block;
    border-color: rgba(255, 255, 255, 0.25);
}

.form-intro {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form-panel {
    max-width: 600px;
    margin: 0 auto;
    background: var(--dark-surface);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    border-radius: 4px;
    font: inherit;
    transition: var(--transition);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    color-scheme: dark;
}

.form-check {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-check input {
    flex: 0 0 auto;
    margin-top: 0.25rem;
    accent-color: var(--primary);
}

.form-check label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-check a {
    color: var(--primary);
}

.form-submit {
    width: 100%;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Footer --- */

footer {
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: #050505;
}

.footer-logo img {
    height: 40px !important;
    width: auto !important;
    margin-bottom: 2rem;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Animations --- */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    animation: fadeIn 1s ease forwards;
}

/* --- Section Specific Adjustments --- */
#services, #craftsmanship {
    padding: 140px 0 120px 0;
}

#services .section-title {
    margin-bottom: 2.5rem;
}

#services .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}



/* --- Responsive --- */
@media (max-width: 1024px) {
    #services .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    nav {
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(20px);
        padding: 1rem 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1rem);
        left: 2rem;
        right: 2rem;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0.75rem 1rem;
        background: rgba(10, 10, 10, 0.96);
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li + li {
        border-top: 1px solid var(--glass-border);
    }

    .nav-links a {
        display: block;
        padding: 0.9rem 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero {
        min-height: 720px;
        height: auto;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-btns {
        display: grid;
        gap: 1rem;
    }

    .btn-outline {
        margin-left: 0;
    }

    .feature-section {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .contact-form-panel {
        padding: 2rem !important;
    }

    #services .services-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        min-height: auto;
    }

    .section-title h2,
    .feature-content h2 {
        font-size: 2rem;
    }

    .footer-links {
        display: grid;
        gap: 0.75rem;
    }

    .footer-links a {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .btn-call {
        display: none;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-form-panel {
        padding: 1.25rem !important;
    }
}
