/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* Metropolis fallback - using Inter as closest web-safe alternative */
@font-face {
    font-family: 'Metropolis';
    src: local('Metropolis'), local('Inter');
    font-weight: 400 800;
    font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --surface: #fcf8fa;
    --surface-dim: #dcd9db;
    --surface-bright: #fcf8fa;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f6f3f5;
    --surface-container: #f0edef;
    --surface-container-high: #eae7e9;
    --surface-container-highest: #e4e2e4;
    --on-surface: #1b1b1d;
    --on-surface-variant: #45464d;
    --inverse-surface: #303032;
    --inverse-on-surface: #f3f0f2;
    --outline: #76777d;
    --outline-variant: #c6c6cd;
    --surface-tint: #565e74;
    --primary: #000000;
    --on-primary: #ffffff;
    --primary-container: #131b2e;
    --on-primary-container: #7c839b;
    --inverse-primary: #bec6e0;
    --secondary: #5d5e66;
    --on-secondary: #ffffff;
    --secondary-container: #e3e1ec;
    --on-secondary-container: #63646c;
    --tertiary: #000000;
    --on-tertiary: #ffffff;
    --tertiary-container: #2b1700;
    --on-tertiary-container: #a37d53;
    --error: #ba1a1a;
    --on-error: #ffffff;
    --background: #fcf8fa;
    --on-background: #1b1b1d;
    --surface-variant: #e4e2e4;
    --whatsapp-green: #25D366;
    --whatsapp-green-hover: #128C7E;

    /* Typography */
    --font-headline: 'Metropolis', 'Inter', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-label: 'Inter', sans-serif;

    /* Spacing */
    --base: 8px;
    --container-max: 1280px;
    --gutter: 24px;
    --margin-mobile: 16px;
    --margin-desktop: 40px;
    --stack-sm: 8px;
    --stack-md: 24px;
    --stack-lg: 48px;

    /* Border Radius */
    --rounded-sm: 0.125rem;
    --rounded: 0.25rem;
    --rounded-md: 0.375rem;
    --rounded-lg: 0.5rem;
    --rounded-xl: 0.75rem;
    --rounded-full: 9999px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--background);
    color: var(--on-background);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

/* ===== TYPOGRAPHY ===== */
.headline-xl {
    font-family: var(--font-headline);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.headline-lg {
    font-family: var(--font-headline);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.headline-md {
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.headline-lg-mobile {
    font-family: var(--font-headline);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.body-lg {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.body-md {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.label-caps {
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===== LAYOUT ===== */
.container-main {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-padding {
    padding: var(--stack-lg) var(--margin-mobile);
}

/* ===== GLASS PANEL ===== */
.glass-panel {
    background: rgba(252, 248, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(198, 198, 205, 0.2);
}

/* ===== NAVBAR ===== */
.site-navbar {
    background: rgba(252, 248, 250, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px var(--margin-desktop);
}

.site-navbar .site-logo {
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--primary);
}

.site-navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-navbar .nav-links a {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--secondary);
    transition: color 0.3s;
}

.site-navbar .nav-links a:hover,
.site-navbar .nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}

.site-navbar .nav-links a.active {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: var(--margin-mobile);
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.mobile-header .site-logo {
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--primary);
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--on-surface);
    cursor: pointer;
    font-size: 24px;
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface);
    z-index: 100;
    flex-direction: column;
    padding: var(--stack-lg) var(--margin-mobile);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--on-surface);
}

.mobile-menu a {
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    padding: 16px 0;
    border-bottom: 1px solid var(--outline-variant);
}

/* ===== WHATSAPP BUTTON ===== */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--whatsapp-green);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--rounded-xl);
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-hero {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 12px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.whatsapp-floating:hover {
    background: var(--whatsapp-green-hover);
    transform: scale(1.1);
}

.whatsapp-floating svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 819px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--stack-lg) var(--margin-mobile);
    margin-bottom: var(--stack-lg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(19, 27, 46, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 768px;
    text-align: center;
    padding: 32px 48px;
    border-radius: var(--rounded-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: var(--stack-lg);
}

.hero-content h1 {
    color: var(--primary);
    margin-bottom: var(--stack-md);
}

.hero-content p {
    color: var(--on-surface-variant);
    margin-bottom: var(--stack-lg);
}

/* ===== TRUST SECTION ===== */
.trust-section {
    padding: var(--stack-lg) var(--margin-mobile);
    margin-bottom: var(--stack-lg);
    border-bottom: 1px solid rgba(228, 226, 228, 0.5);
}

.trust-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 384px;
}

.trust-item .material-symbols-outlined {
    font-size: 36px;
    color: var(--on-tertiary-container);
    margin-bottom: 16px;
    font-variation-settings: 'FILL' 1;
}

.trust-item p {
    color: var(--on-surface-variant);
}

.trust-divider {
    display: none;
    width: 1px;
    height: 64px;
    background: rgba(198, 198, 205, 0.3);
}

/* ===== SERVICES GRID ===== */
.services-section {
    padding: var(--stack-lg) var(--margin-mobile);
    margin-bottom: var(--stack-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--stack-lg);
}

.section-header h2 {
    color: var(--primary);
    margin-bottom: var(--stack-sm);
}

.section-header p {
    color: var(--secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

.service-card {
    background: var(--surface-container-low);
    border-radius: var(--rounded-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card-image {
    position: relative;
    height: 256px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-image .gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.service-card-image h3 {
    position: absolute;
    bottom: 16px;
    left: 24px;
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 700;
    color: var(--surface);
}

.service-card-body {
    padding: 24px;
}

.service-card-body p {
    color: var(--on-surface-variant);
    margin-bottom: 16px;
}

.service-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.service-tag {
    background: var(--surface-variant);
    padding: 4px 12px;
    border-radius: var(--rounded-full);
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
}

/* ===== MATERIALS SECTION ===== */
.materials-section {
    background: var(--surface-container-low);
    padding: var(--stack-lg) var(--margin-mobile);
    margin-bottom: var(--stack-lg);
    border-radius: var(--rounded-xl);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-left: var(--margin-mobile);
    margin-right: var(--margin-mobile);
}

.materials-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.materials-text {
    width: 100%;
}

.materials-text h2 {
    color: var(--primary);
    margin-bottom: var(--stack-md);
}

.materials-text > p {
    color: var(--on-surface-variant);
    margin-bottom: var(--stack-md);
}

.materials-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-item .material-symbols-outlined {
    color: var(--on-tertiary-container);
    margin-top: 4px;
    font-variation-settings: 'FILL' 1;
    flex-shrink: 0;
}

.feature-item h4 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--on-surface);
}

.feature-item p {
    color: var(--secondary);
}

.materials-images {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.materials-images img {
    border-radius: var(--rounded-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 192px;
    object-fit: cover;
}

.materials-images img:nth-child(2) {
    margin-top: 32px;
}

/* ===== PROCESS SECTION ===== */
.process-section {
    padding: var(--stack-lg) var(--margin-mobile);
    margin-bottom: var(--stack-lg);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    position: relative;
}

.process-line {
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(198, 198, 205, 0.3);
    z-index: 0;
    transform: translateY(-50%);
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--surface);
    padding: 24px;
    border-radius: var(--rounded-xl);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(228, 226, 228, 0.2);
}

.process-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-container);
    color: var(--on-primary);
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.process-step h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 8px;
}

.process-step p {
    color: var(--secondary);
}

/* ===== FOOTER ===== */
.site-footer {
    width: 100%;
    padding: var(--stack-lg) var(--margin-desktop);
    background: var(--primary-container);
    border-top: 1px solid rgba(198, 198, 205, 0.2);
    color: var(--on-primary-container);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

.footer-brand h2 {
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 700;
    color: var(--surface);
    margin-bottom: 16px;
}

.footer-nav h3,
.footer-location h3,
.footer-contact h3 {
    font-family: var(--font-headline);
    font-size: 18px;
    color: var(--surface);
    margin-bottom: 16px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav a {
    color: rgba(124, 131, 155, 0.8);
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--surface);
    text-decoration: underline;
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(124, 131, 155, 0.8);
    transition: color 0.3s;
}

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

.footer-bottom {
    grid-column: 1 / -1;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(198, 198, 205, 0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(124, 131, 155, 0.6);
}

/* ===== BOTTOM NAV (MOBILE) ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--surface);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.05);
    justify-content: space-around;
    padding: 12px 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
    z-index: 50;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary);
    font-size: 10px;
}

.bottom-nav a.active {
    color: var(--primary);
    font-weight: 700;
}

.bottom-nav .material-symbols-outlined {
    font-size: 24px;
    margin-bottom: 4px;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .section-padding {
        padding: var(--stack-lg) var(--margin-desktop);
    }

    .hero-section {
        padding: var(--stack-lg) var(--margin-desktop);
    }

    .hero-content h1 {
        font-size: 48px;
        line-height: 1.1;
        letter-spacing: -0.02em;
    }

    .site-navbar {
        display: flex;
    }

    .mobile-header {
        display: none !important;
    }

    .trust-grid {
        flex-direction: row;
        gap: 64px;
    }

    .trust-divider {
        display: block;
    }

    .services-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .service-card-kitchen {
        grid-column: span 8;
    }

    .service-card-closets {
        grid-column: span 4;
    }

    .service-card-closets .service-card-image {
        height: 320px;
    }

    .service-card-bathrooms,
    .service-card-entertainment {
        grid-column: span 6;
    }

    .materials-section {
        padding: var(--stack-lg) var(--margin-desktop);
        margin-left: 0;
        margin-right: 0;
    }

    .materials-grid {
        flex-direction: row;
    }

    .materials-text {
        width: 50%;
    }

    .materials-images {
        width: 50%;
    }

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

    .process-line {
        display: block;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-section,
    .process-section {
        padding: var(--stack-lg) var(--margin-desktop);
    }

    .trust-section {
        padding: var(--stack-lg) var(--margin-desktop);
    }
}

@media (max-width: 767px) {
    .site-navbar {
        display: none !important;
    }

    .mobile-header {
        display: flex !important;
    }

    .bottom-nav {
        display: flex !important;
    }

    .hero-content {
        padding: 24px;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .btn-whatsapp-hero {
        width: 100%;
    }

    .whatsapp-floating {
        bottom: 80px;
    }
}

/* ===== WORDPRESS ADMIN BAR FIX ===== */
body.admin-bar .site-navbar {
    top: 32px;
}

body.admin-bar .mobile-header {
    top: 46px;
}

@media (max-width: 782px) {
    body.admin-bar .site-navbar {
        top: 46px;
    }
    body.admin-bar .mobile-header {
        top: 46px;
    }
}
