/* Maria Mendes Atelier - Arquitectura */
/* Design moderno e minimalista */

:root {
    --primary: #0a0a0a;
    --secondary: #d4a574;
    --accent: #c49a6c;
    --text: #1a1a1a;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --off-white: #fafafa;
    --light-gray: #f5f5f5;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Sora', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

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

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--white);
    transition: color 0.3s ease;
}

.logo-atelier {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    margin-top: 2px;
}

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

.navbar.scrolled .logo-atelier {
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-toggle span {
    background: var(--primary);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    background-image: url('images/hero-wix.jpg');
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 0 24px;
}

.hero-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
    letter-spacing: 0.5px;
}

.btn-primary {
    display: inline-block;
    padding: 18px 48px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
}

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

.section-dark .btn-primary {
    border-color: var(--secondary);
    color: var(--secondary);
}

.section-dark .btn-primary:hover {
    background: var(--secondary);
    color: var(--primary);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-down span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-down span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ========================================
   Section Styles
======================================== */
.section {
    padding: 120px 0;
}

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

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

.section-header.center {
    text-align: center;
}

.section-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 16px;
}

.section-label.light {
    color: var(--secondary);
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.section-dark h2 {
    color: var(--white);
}

/* ========================================
   Sobre Section
======================================== */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sobre-content h2 {
    margin-bottom: 30px;
}

.sobre-content .lead {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 300;
}

.sobre-content p {
    color: var(--text-light);
    margin-bottom: 40px;
}

.stats {
    display: flex;
    gap: 50px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.sobre-image {
    position: relative;
}

.image-placeholder,
.portfolio-placeholder {
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

.sobre-image .image-placeholder {
    aspect-ratio: 4/5;
}

/* ========================================
   Serviços Section
======================================== */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.servico-card {
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.servico-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.servico-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--secondary);
    opacity: 0.4;
    margin-bottom: 24px;
}

.servico-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.servico-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    font-weight: 300;
}

/* ========================================
   Portfolio Section
======================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item .portfolio-placeholder {
    aspect-ratio: 1;
    transition: transform 0.5s ease;
}

.portfolio-item.large {
    grid-column: span 2;
}

.portfolio-item.large .portfolio-placeholder {
    aspect-ratio: 2/1;
}

.portfolio-item:hover .portfolio-placeholder {
    transform: scale(1.05);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-info h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.portfolio-info p {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ========================================
   Contacto Section
======================================== */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contacto-info h2 {
    margin: 15px 0 20px;
}

.contacto-info > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.contacto-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contacto-item strong {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 10px;
}

.contacto-item p {
    font-size: 15px;
    font-weight: 300;
}

.contacto-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-item a:hover {
    color: var(--secondary);
}

.contacto-item small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Contact Form */
.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    transition: all 0.3s ease;
    border-radius: 0;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contacto-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.contacto-form select option {
    background: var(--primary);
    color: var(--white);
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
}

.contacto-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contacto-form .btn-primary {
    align-self: flex-start;
    margin-top: 10px;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--off-white);
    padding: 60px 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo .logo-name {
    color: var(--primary);
    font-size: 18px;
}

.footer-logo .logo-atelier {
    color: var(--text-light);
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.footer-copyright {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 300;
}

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

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

    .portfolio-item.large {
        grid-column: span 1;
    }

    .portfolio-item.large .portfolio-placeholder {
        aspect-ratio: 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }

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

    .nav-menu a {
        color: var(--white);
        font-size: 18px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span {
        background: var(--white);
    }

    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .section {
        padding: 80px 0;
    }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .sobre-image {
        order: -1;
    }

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

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

    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contacto-form .btn-primary {
        width: 100%;
    }
}

/* ========================================
   Animations
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: #2d8a4e;
}

.notification.error {
    background: #c0392b;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
