/* ========================================
   ANDRADE DRYWALL SERVICES - FINAL CSS
   ======================================== */

:root {
    --color-black: #000000;
    --color-red: #E11D2E;
    --color-red-dark: #c41828;
    --color-white: #FFFFFF;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #128C7E;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.16);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   RESET
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-800);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

ul {
    list-style: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

/* ========================================
   GLOBAL
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

[id] {
    scroll-margin-top: 100px;
}

.section-header {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(225, 29, 46, 0.08);
    color: var(--color-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 16px;
    color: var(--color-black);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.15;
}

.section-subtitle {
    color: var(--color-gray-500);
    font-size: 1.1rem;
    line-height: 1.75;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    position: relative;
    color: var(--color-gray-700);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 0;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width var(--transition-normal);
}

.nav-list a:hover {
    color: var(--color-black);
}

.nav-list a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gray-500);
    font-size: 14px;
    font-weight: 700;
}

.lang-btn {
    color: var(--color-gray-500);
    padding: 4px 6px;
    font-size: 14px;
    font-weight: 700;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--color-red);
}

.btn-phone,
.btn-whatsapp-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.btn-phone {
    background: var(--color-gray-100);
    color: var(--color-gray-800);
}

.btn-phone:hover {
    background: var(--color-gray-200);
}

.btn-whatsapp-header {
    background: var(--color-whatsapp);
    color: var(--color-white);
}

.btn-whatsapp-header:hover {
    background: var(--color-whatsapp-dark);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 84px;
}

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-bg {
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    z-index: 2;
    background:
        linear-gradient(135deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.72) 52%, rgba(0,0,0,0.58) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(225, 29, 46, 0.9);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.hero-title {
    margin-bottom: 18px;
    color: var(--color-white);
    font-size: clamp(2.6rem, 6vw, 4.3rem);
    font-weight: 900;
    line-height: 1.05;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.hero-subtitle {
    max-width: 760px;
    margin: 0 auto 34px;
    color: rgba(255,255,255,0.92);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.hero-buttons,
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.hero-buttons {
    margin-bottom: 42px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    font-size: 16px;
    font-weight: 800;
    transition: all var(--transition-fast);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
    box-shadow: 0 10px 24px rgba(225, 29, 46, 0.25);
}

.btn-primary:hover {
    background: var(--color-red-dark);
    border-color: var(--color-red-dark);
    box-shadow: 0 16px 28px rgba(225, 29, 46, 0.28);
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.btn-large {
    min-height: 58px;
    padding: 16px 34px;
    font-size: 17px;
}

.btn-full {
    width: 100%;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.92);
    font-size: 15px;
    font-weight: 600;
}

.trust-item svg {
    color: var(--color-red);
    flex-shrink: 0;
}

/* ========================================
   SERVICES / REVIEWS
   ======================================== */
.services {
    background: var(--color-gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(225, 29, 46, 0.35);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(225, 29, 46, 0.08);
    color: var(--color-red);
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--color-black);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
}

.service-card p {
    color: var(--color-gray-500);
    font-size: 15px;
    line-height: 1.7;
}

#reviews .service-card {
    text-align: left;
    position: relative;
    padding-top: 28px;
}

#reviews .service-card h3 {
    color: #ffb400;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

#reviews .service-card strong {
    display: inline-block;
    margin-top: 18px;
    color: var(--color-black);
    font-size: 15px;
    font-weight: 800;
}

/* ========================================
   GALLERY
   ======================================== */
.gallery {
    background: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.video-item {
    grid-column: span 2;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    padding: 22px 28px;
    border-radius: var(--radius-lg);
    background: var(--color-red);
    color: var(--color-white);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.badge-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.badge-text {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
}

.about-content p {
    margin-bottom: 18px;
    color: var(--color-gray-500);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    margin-top: 28px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-gray-700);
    font-size: 15px;
    font-weight: 700;
}

.feature svg {
    color: var(--color-red);
    flex-shrink: 0;
}

/* ========================================
   CTA
   ======================================== */
.cta-section {
    padding: 82px 0;
    background: var(--color-black);
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 16px;
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 900;
    line-height: 1.15;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--color-gray-400);
    font-size: 1.1rem;
    line-height: 1.75;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    background: var(--color-gray-100);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    margin-bottom: 46px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.contact-card {
    background: var(--color-white);
    padding: 28px 24px;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
}

.contact-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(225, 29, 46, 0.1);
    color: var(--color-red);
}

.contact-icon.whatsapp-icon {
    background: var(--color-whatsapp);
    color: var(--color-white);
}

.contact-card h3 {
    margin-bottom: 8px;
    color: var(--color-gray-500);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-card p,
.contact-link {
    color: var(--color-black);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
}

.contact-link:hover {
    color: var(--color-red);
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
}

.contact-form h3 {
    color: var(--color-black);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.contact-form p {
    color: var(--color-gray-500);
    line-height: 1.8;
}

.map-container {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 64px 0 0;
    background: var(--color-black);
    color: var(--color-white);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 42px;
    padding-bottom: 46px;
    border-bottom: 1px solid var(--color-gray-800);
}

.footer-brand img {
    height: 62px;
    width: auto;
    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 320px;
    color: var(--color-gray-400);
    line-height: 1.8;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    margin-bottom: 18px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-services li,
.footer-contact p {
    color: var(--color-gray-400);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact a {
    color: var(--color-red);
    font-weight: 800;
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding: 22px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-gray-500);
    font-size: 14px;
}

/* ========================================
   FLOATING WHATSAPP
   ======================================== */
.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-whatsapp);
    color: var(--color-white);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.08);
    background: var(--color-whatsapp-dark);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
    }
    50% {
        box-shadow: 0 10px 34px rgba(37, 211, 102, 0.5);
    }
}

/* ========================================
   MOBILE / TABLET
   ======================================== */
@media (max-width: 1100px) {
    .nav-list {
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 700px;
        margin: 0 auto;
    }

    .contact-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 78px 0;
    }

    .header-content {
        height: 78px;
    }

    .logo img {
        height: 50px;
    }

    .nav {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: 22px 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .menu-toggle {
        display: flex;
    }

    .btn-phone span,
    .btn-whatsapp-header span {
        display: none;
    }

    .language-switcher {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 78px;
    }

    .hero-content {
        padding: 40px 10px;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        gap: 14px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 210px;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item.video-item {
        grid-column: span 2;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 64px 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .services-grid,
    .contact-info,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large,
    .gallery-item.video-item {
        grid-column: span 1;
    }

    .gallery-grid {
        grid-auto-rows: 220px;
    }

    .service-card,
    .contact-card,
    .contact-form-wrapper {
        padding: 24px;
    }

    .about-badge {
        right: 16px;
        bottom: 16px;
        padding: 16px 20px;
    }

    .badge-number {
        font-size: 2.1rem;
    }

    .floating-whatsapp {
        width: 58px;
        height: 58px;
        right: 16px;
        bottom: 16px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.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;
}