/* ============================================
   MA Builders - Professional Website Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2540;
    --accent: #c9a227;
    --accent-light: #dbb84d;
    --text: #2d3748;
    --text-light: #718096;
    --text-white: #ffffff;
    --bg: #ffffff;
    --bg-light: #f7fafc;
    --bg-dark: #1a202c;
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

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

.btn-nav {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 14px;
}

.btn-nav:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--text-white);
    padding: 16px 32px;
    font-size: 18px;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp-large {
    background: var(--whatsapp);
    color: var(--text-white);
    padding: 20px 40px;
    font-size: 18px;
    border-radius: var(--radius-lg);
    width: 100%;
}

.btn-whatsapp-large:hover {
    background: var(--whatsapp-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--bg);
    box-shadow: var(--shadow);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
}

.navbar.scrolled .logo {
    color: var(--primary-dark);
}

.logo span {
    color: var(--accent);
}

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

.nav-links li a {
    font-weight: 500;
    color: var(--text-white);
    font-size: 15px;
    position: relative;
}

.navbar.scrolled .nav-links li a {
    color: var(--text);
}

.nav-links li a:not(.btn):hover {
    color: var(--accent);
}

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links li a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--primary-dark);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/bedroom-finish.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.95) 0%, rgba(44, 82, 130, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 0 80px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    color: var(--text-white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.trust-badges {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
}

.badge svg {
    color: var(--accent);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    stroke: var(--text-white);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.services-note {
    margin-top: 48px;
    padding: 24px 32px;
    background: rgba(26, 54, 93, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.services-note p {
    color: var(--text);
    font-size: 15px;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/5;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    color: var(--text-white);
    font-weight: 600;
    font-size: 18px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 24px;
}

.about-text .lead {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-features li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-features li svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 4px;
}

.about-features li strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.about-features li p {
    color: var(--text-light);
    font-size: 15px;
    margin: 0;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Areas Section */
.areas {
    padding: 100px 0;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.area-group {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius-lg);
}

.area-group h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.area-group ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.area-group li {
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.area-group li strong {
    color: var(--primary-dark);
}

.areas-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-light);
    font-size: 16px;
}

.areas-note a {
    color: var(--primary);
    font-weight: 500;
}

.areas-note a:hover {
    color: var(--accent);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-item {
    background: var(--bg);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-item h3 {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.faq-item p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    text-align: center;
}

.cta h2 {
    color: var(--text-white);
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    color: var(--primary);
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
}

.contact-icon.whatsapp svg {
    color: var(--whatsapp);
}

.contact-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--whatsapp-dark);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--whatsapp);
}

.contact-cta {
    background: var(--bg-light);
    padding: 48px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.contact-cta h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.contact-cta p {
    color: var(--text-light);
    margin-bottom: 32px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 80px 0 32px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand p {
    line-height: 1.7;
    max-width: 300px;
}

.footer h4 {
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer ul li a:hover {
    color: var(--accent);
}

.footer-services ul li {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    color: var(--text-white);
}

.whatsapp-float:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.1);
    color: var(--text-white);
}

.whatsapp-float::before {
    content: 'Chat with us';
    position: absolute;
    right: 80px;
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.whatsapp-float:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .about-content {
        gap: 48px;
    }

    .contact-content {
        gap: 48px;
    }

    .footer-content {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 400px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        color: var(--text);
        font-size: 18px;
    }

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

    .btn-nav {
        width: 100%;
        text-align: center;
    }

    .hero-content {
        padding: 100px 0 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 16px;
    }

    .services {
        padding: 60px 0;
    }

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

    .gallery {
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }

    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.7));
    }

    .about {
        padding: 60px 0;
    }

    .about-image img {
        height: 300px;
    }

    .areas {
        padding: 60px 0;
    }

    .areas-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .area-group {
        padding: 24px;
    }

    .faq {
        padding: 60px 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-item {
        padding: 24px;
    }

    .cta {
        padding: 60px 0;
    }

    .contact {
        padding: 60px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-cta {
        padding: 32px 24px;
    }

    .footer {
        padding: 60px 0 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-float::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .about-features li {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .btn-whatsapp-large {
        padding: 16px 24px;
        font-size: 16px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .whatsapp-float,
    .cta,
    .btn {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
        background: var(--bg-light);
    }

    .hero h1 {
        color: var(--primary-dark);
    }

    .hero-subtitle {
        color: var(--text);
    }
}
