/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: #ffffff;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding: 0 24px;
    }
}

/* Header */
header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e7;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* TEST: Urgency Banner in Navbar */
header .urgency-banner {
    background: #ff3b30 !important;
    background-color: #ff3b30 !important;
    color: white !important;
    padding: 6px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* TEST: Header Phone */
.header-phone {
    display: none;
}

.header-phone a {
    color: #007aff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f0f8ff;
    transition: all 0.2s ease;
}

.header-phone a:hover {
    background: #007aff;
    color: white;
}

@media (min-width: 768px) {
    .header-phone {
        display: block;
    }
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
}

.logo img {
    height: 110px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
}

@media (max-width: 480px) {
    .logo img {
        height: 85px;
        max-width: 320px;
    }
}

nav {
    display: flex;
    gap: 8px;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    min-height: 32px;
    display: flex;
    align-items: center;
    background: #1d1d1f;
    border: 1px solid #1d1d1f;
}

nav a:hover,
nav a:focus {
    background: #424245;
    border-color: #424245;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* TEST: Social Proof */
.social-proof {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e7;
}

.proof-items {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.proof-item {
    background: #f0f9ff;
    color: #007aff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #007aff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ea 100%);
    padding: 48px 0 56px;
    text-align: center;
}

.hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    line-height: 1.2;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 18px;
    color: #424245;
    margin-bottom: 32px;
    font-weight: 500;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.trust-badge {
    background: rgba(255,255,255,0.9);
    color: #1d1d1f;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 3D House Model */
.hero-3d-house {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#house-3d-container {
    width: 120px;
    height: 120px;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

#house-3d-container:hover {
    transform: scale(1.05);
}

#house-3d-container canvas {
    display: block;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.value-btn {
    display: inline-block;
    background: #007aff;
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 280px;
    margin: 0 auto;
}

.value-btn:hover,
.value-btn:focus {
    background: #0056cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* Buttons */
.whatsapp-btn {
    display: inline-block;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 280px;
    margin: 0 auto;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn.large {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
}

.phone-btn {
    display: block;
    background: #007aff;
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-btn:hover,
.phone-btn:focus {
    background: #0056cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* Services */
.services {
    padding: 56px 0;
    background: #f5f5f7;
}

.services h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 32px;
    text-align: center;
}

.service-item {
    background: #f5f5f7;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e7;
    transition: all 0.2s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 12px;
    text-align: center;
}

.service-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
    text-align: center;
}

.service-item p {
    font-size: 16px;
    color: #424245;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
}

.service-details {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-details span {
    font-size: 14px;
    color: #1d1d1f;
    padding: 6px 12px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    font-weight: 500;
}

/* TEST: Service Areas */
.service-areas {
    margin-top: 32px;
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    border: 1px solid #e5e5e7;
}

.service-areas p {
    font-size: 14px;
    color: #424245;
    font-weight: 600;
    margin-bottom: 12px;
}

.areas-list {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.areas-list span {
    background: #007aff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Projects */
.projects {
    padding: 56px 0;
    background: #f5f5f7;
}

.projects h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 32px;
    text-align: center;
}

.project-item {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e7;
    transition: all 0.2s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.project-images {
    height: 140px;
    background: linear-gradient(135deg, #e5e5e7 0%, #d1d1d6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.before-after {
    color: #424245;
    font-size: 16px;
    font-weight: 600;
    background: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.project-item p {
    font-size: 16px;
    color: #1d1d1f;
    font-weight: 600;
    text-align: center;
}

/* Why Us */
.why-us {
    padding: 56px 0;
    background: white;
}

.why-us h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 32px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.feature {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f5f5f7;
    border-radius: 12px;
    border: 1px solid #e5e5e7;
    transition: all 0.2s ease;
}

.feature:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.check {
    color: #34c759;
    font-size: 20px;
    font-weight: 700;
    margin-right: 16px;
    min-width: 24px;
}

.feature span:last-child {
    font-size: 16px;
    color: #1d1d1f;
    font-weight: 600;
    line-height: 1.4;
}

.trust-message {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ea 100%);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin-top: 32px;
    border: 2px solid #e5e5e7;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}



/* Contact */
.contact {
    padding: 56px 0;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ea 100%);
    text-align: center;
}

.contact h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 32px;
}

.contact-info {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info p {
    font-size: 16px;
    color: #1d1d1f !important;
    font-weight: 700;
    background: rgba(255,255,255,0.95) !important;
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-block;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid #ff3b30 !important;
}

/* Footer */
footer {
    background: #1d1d1f;
    color: #a1a1a6;
    text-align: center;
    padding: 32px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    text-align: left;
}

.footer-address,
.footer-contact {
    flex: 1;
}

.footer-address h3,
.footer-contact h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-address p,
.footer-contact p {
    font-size: 14px;
    color: #a1a1a6;
    margin-bottom: 6px;
    font-weight: 500;
}

footer > .container > p {
    font-size: 12px;
    font-weight: 500;
    border-top: 1px solid #424245;
    padding-top: 16px;
    margin-top: 16px;
}

/* Fixed WhatsApp Button */
.fixed-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.fixed-whatsapp a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.fixed-whatsapp a:hover,
.fixed-whatsapp a:focus {
    background: #22c55e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding: 0 32px;
    }
    
    .hero {
        padding: 64px 0 72px;
    }
    
    .hero h1 {
        font-size: 36px;
        max-width: 500px;
    }
    
    .hero p {
        font-size: 20px;
        max-width: 400px;
    }
    
    .services,
    .projects,
    .why-us,
    .contact {
        padding: 72px 0;
    }
    
    .services h2,
    .projects h2,
    .why-us h2,
    .contact h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .service-item,
    .project-item {
        padding: 32px;
        margin-bottom: 24px;
    }
    
    .whatsapp-btn,
    .phone-btn {
        max-width: 320px;
        font-size: 20px;
        padding: 18px 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    nav {
        gap: 16px;
    }
    
    nav a {
        font-size: 14px;
        padding: 6px 8px;
    }
    
    .hero-trust {
        gap: 12px;
    }
    
    .trust-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* Accessibility */
a:focus,
button:focus {
    outline: 3px solid #007aff;
    outline-offset: 2px;
}

/* Touch Targets */
a, button {
    min-height: 44px;
    min-width: 44px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.whatsapp-btn:active,
.phone-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Print Styles */
@media print {
    header {
        position: static;
    }
    
    .whatsapp-btn,
    .phone-btn {
        background: transparent !important;
        color: #1d1d1f !important;
        border: 2px solid #1d1d1f !important;
    }
}