/*
Theme Name: Mabel Arquitectura
Description: Estilos principales del tema Mabel Arquitectura.
Version: 1.0
*/

/* =========================================================
   1. VARIABLES Y RESET
========================================================= */

:root{
    --ma-black:#101214;
    --ma-black-2:#17191b;
    --ma-cream:#f5f3ee;
    --ma-white:#ffffff;
    --ma-gold:#c5a15b;
    --ma-gray:#6f7478;
    --ma-border:#ddd9d0;
    --ma-max:1280px;
}

*,
*::before,
*::after{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    padding:0;
    background:var(--ma-cream);
    color:var(--ma-black);
    font-family:"Montserrat",Arial,sans-serif;
    font-size:16px;
    line-height:1.7;
}

img{
    max-width:100%;
    height:auto;
}

a{
    color:inherit;
}

button,
input,
textarea,
select{
    font:inherit;
}

/* =========================================================
   2. CONTENEDOR
========================================================= */

.ma-container{
    width:min(100% - 48px,var(--ma-max));
    margin-inline:auto;
}

/* =========================================================
   3. HEADER
========================================================= */

.ma-header{
    position:relative;
    z-index:1000;
    width:100%;
    background:rgba(245,243,238,.97);
    border-bottom:1px solid rgba(16,18,20,.12);
}

.ma-header__inner{
    min-height:92px;
    display:flex;
    align-items:center;
    gap:28px;
}

.ma-brand{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:max-content;
    text-decoration:none;
}

.ma-brand__mark{
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    border:1px solid var(--ma-gold);
    color:var(--ma-gold);
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:20px;
    line-height:1;
}

.ma-brand__name{
    display:block;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:20px;
    font-weight:600;
    letter-spacing:.08em;
    line-height:1.1;
}

.ma-brand__role{
    display:block;
    margin-top:4px;
    color:var(--ma-gold);
    font-size:10px;
    font-weight:600;
    letter-spacing:.22em;
    line-height:1;
}

.ma-logo{
    width:50px;
    height:auto;
    display:block;
    object-fit:contain;
}

.ma-nav{
    margin-left:auto;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:26px;
}

.ma-nav a{
    position:relative;
    text-decoration:none;
    color:var(--ma-black);
    font-size:12px;
    font-weight:500;
    letter-spacing:.08em;
    text-transform:uppercase;
    white-space:nowrap;
}

.ma-nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-7px;
    width:0;
    height:1px;
    background:var(--ma-gold);
    transition:width .25s ease;
}

.ma-nav a:hover::after,
.ma-nav a:focus-visible::after{
    width:100%;
}

.ma-social{
    display:flex;
    align-items:center;
    gap:10px;
}

.ma-social a{
    width:32px;
    height:32px;
    display:grid;
    place-items:center;
    border:1px solid rgba(16,18,20,.18);
    border-radius:50%;
    text-decoration:none;
    font-size:15px;
}

.ma-menu-toggle{
    display:none;
    margin-left:auto;
    border:0;
    background:transparent;
    color:var(--ma-black);
    font-size:27px;
    line-height:1;
    cursor:pointer;
}

/* =========================================================
   4. TIPOGRAFÍA GENERAL
========================================================= */

.ma-eyebrow{
    margin:0 0 18px;
    color:var(--ma-gold);
    font-size:12px;
    font-weight:600;
    letter-spacing:.2em;
    text-transform:uppercase;
}

.ma-title{
    margin:0;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:clamp(2.5rem,5vw,4.6rem);
    font-weight:500;
    line-height:.98;
}

.ma-title--dark{
    color:var(--ma-black);
}

.ma-title--light{
    color:var(--ma-white);
}

/* =========================================================
   5. BOTONES
========================================================= */

.ma-btn{
    display:inline-flex;
    align-items:center;
    gap:18px;
    min-height:48px;
    padding:12px 20px;
    border:1px solid currentColor;
    color:inherit;
    text-decoration:none;
    font-size:11px;
    font-weight:600;
    letter-spacing:.12em;
    text-transform:uppercase;
    transition:background .25s ease,color .25s ease,border-color .25s ease;
}

.ma-btn span{
    font-size:18px;
    line-height:1;
}

.ma-btn:hover{
    background:var(--ma-gold);
    border-color:var(--ma-gold);
    color:var(--ma-black);
}

/* =========================================================
   6. HERO
========================================================= */

.ma-hero{
    position:relative;
    min-height:calc(100vh - 92px);
    display:flex;
    align-items:center;
    overflow:hidden;
    background:
        linear-gradient(90deg,rgba(16,18,20,.88),rgba(16,18,20,.52) 48%,rgba(16,18,20,.12)),
        url("assets/hero.jpg") center/cover no-repeat,
        var(--ma-black);
    color:var(--ma-white);
}

.ma-hero .ma-container{
    position:relative;
    z-index:2;
}

.ma-hero__content{
    max-width:760px;
    padding:90px 0;
}

.ma-hero h1{
    margin:0;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:clamp(3.5rem,7vw,7.4rem);
    font-weight:500;
    line-height:.9;
}

.ma-script{
    display:block;
    color:var(--ma-gold);
    font-family:"Allura",cursive;
    font-size:1.08em;
    font-weight:400;
    line-height:.95;
}

.ma-hero__text{
    max-width:600px;
    margin:30px 0;
    color:rgba(255,255,255,.82);
    font-size:15px;
}

.ma-hero .ma-btn{
    color:var(--ma-white);
}

.ma-hero__counter{
    position:absolute;
    right:42px;
    bottom:35px;
    z-index:2;
    display:flex;
    align-items:center;
    gap:12px;
    color:rgba(255,255,255,.8);
    font-size:11px;
    letter-spacing:.12em;
}

.ma-hero__line{
    width:65px;
    height:1px;
    background:var(--ma-gold);
}

/* =========================================================
   7. SOBRE MABEL
========================================================= */

.ma-about{
    padding:110px 0;
    background:var(--ma-cream);
}

.ma-about__grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:80px;
    align-items:center;
}

.ma-about__visual{
    display:flex;
    flex-direction:column;
    align-items:stretch;
}

.ma-about__image{
    display:block;
    width:100%;
    height:auto;
}

.ma-mother-tribute{
    width:100%;
    min-height:105px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:22px 25px;
    margin-top:10px;
    border:2px solid var(--ma-gold);
    background:#080808;
    text-align:center;
}

.ma-mother-tribute p{
    margin:0;
    padding:0;
    max-width:100%;
    color:var(--ma-gold);
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:1.25rem;
    line-height:1.45;
    font-style:italic;
}

.ma-about__copy > div:first-child > p:not(.ma-eyebrow){
    max-width:650px;
    color:#45484b;
}

.ma-about__stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:55px;
    padding-top:30px;
    border-top:1px solid var(--ma-border);
}

.ma-stat{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.ma-stat__icon{
    color:var(--ma-gold);
    font-size:25px;
}

.ma-stat strong{
    font-size:12px;
    line-height:1.45;
    letter-spacing:.04em;
}

/* =========================================================
   8. SERVICIOS
========================================================= */

.ma-services{
    padding:110px 0;
    background:var(--ma-black);
    color:var(--ma-white);
}

.ma-services__heading{
    max-width:700px;
    margin-bottom:55px;
}

.ma-services__grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:1px;
    background:rgba(255,255,255,.16);
}

.ma-service{
    min-height:270px;
    padding:35px 28px;
    background:var(--ma-black);
}

.ma-service__icon{
    margin-bottom:30px;
    color:var(--ma-gold);
    font-size:28px;
}

.ma-service h3{
    margin:0 0 14px;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:27px;
    font-weight:500;
    line-height:1.05;
}

.ma-service p{
    margin:0;
    color:rgba(255,255,255,.7);
    font-size:13px;
}

/* =========================================================
   9. PORTAFOLIO
========================================================= */

.ma-portfolio{
    padding:110px 0;
    background:var(--ma-cream);
}

.ma-portfolio__heading{
    max-width:800px;
    margin-bottom:50px;
}

.ma-projects{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.ma-project{
    position:relative;
    min-height:360px;
    display:flex;
    align-items:flex-end;
    padding:25px;
    overflow:hidden;
    background:#d8d5ce;
    text-decoration:none;
}

.ma-project::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(180deg,transparent 35%,rgba(0,0,0,.72)),
        linear-gradient(135deg,#d5d0c6,#8d8b86);
    transition:transform .45s ease;
}

.ma-project:hover::before{
    transform:scale(1.05);
}

.ma-project span{
    position:relative;
    z-index:1;
    color:var(--ma-white);
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:25px;
}

.ma-portfolio__button{
    margin-top:45px;
    text-align:center;
}

/* =========================================================
   10. CTA
========================================================= */

.ma-cta{
    padding:115px 24px;
    background:var(--ma-black-2);
    color:var(--ma-white);
    text-align:center;
}

.ma-cta .ma-eyebrow{
    margin-bottom:18px;
}

.ma-cta .ma-title{
    max-width:900px;
    margin-inline:auto;
}

.ma-cta > p:not(.ma-eyebrow){
    max-width:650px;
    margin:30px auto;
    color:rgba(255,255,255,.72);
    font-size:14px;
}

.ma-cta .ma-btn{
    color:var(--ma-white);
}

/* =========================================================
   11. FOOTER
========================================================= */

.site-footer{
    padding:45px 24px;
    background:#080808;
    color:rgba(255,255,255,.7);
    text-align:center;
    font-size:12px;
}

/* =========================================================
   12. REPOSTERÍA
========================================================= */

.mp-comidas-logo{
    position:absolute;
    top:45px;
    left:5%;
    width:190px;
    height:auto;
    max-height:100px;
    object-fit:contain;
    object-position:left center;
    z-index:5;
    filter:drop-shadow(0 3px 8px rgba(0,0,0,.35));
}

.mp-hero-content{
    padding-top:150px;
}

/* =========================================================
   13. PÁGINAS INTERNAS BÁSICAS
========================================================= */

.entry-content,
.page-content{
    max-width:1200px;
    margin:0 auto;
    padding:80px 24px;
}

.entry-content h1,
.page-content h1{
    font-family:"Cormorant Garamond",Georgia,serif;
    font-weight:500;
    font-size:clamp(2.8rem,6vw,5rem);
    line-height:1;
}

.entry-content h2,
.page-content h2{
    font-family:"Cormorant Garamond",Georgia,serif;
    font-weight:500;
}

/* =========================================================
   14. TABLET
========================================================= */

@media (max-width:1000px){

    .ma-header__inner{
        gap:18px;
    }

    .ma-nav{
        gap:16px;
    }

    .ma-nav a{
        font-size:10px;
    }

    .ma-about__grid{
        gap:45px;
    }

    .ma-services__grid{
        grid-template-columns:repeat(2,1fr);
    }

    .ma-projects{
        grid-template-columns:repeat(2,1fr);
    }

    .mp-comidas-logo{
        width:160px;
        top:30px;
        left:4%;
    }

    .mp-hero-content{
        padding-top:135px;
    }
}

/* =========================================================
   15. MÓVIL
========================================================= */

@media (max-width:780px){

    .ma-container{
        width:min(100% - 34px,var(--ma-max));
    }

    .ma-header__inner{
        min-height:76px;
    }

    .ma-menu-toggle{
        display:block;
    }

    .ma-nav{
        position:absolute;
        top:100%;
        left:0;
        right:0;
        display:none;
        flex-direction:column;
        align-items:stretch;
        gap:0;
        padding:12px 20px 20px;
        margin:0;
        background:var(--ma-cream);
        border-bottom:1px solid var(--ma-border);
        box-shadow:0 8px 20px rgba(0,0,0,.08);
    }

    .ma-nav.is-open{
        display:flex;
    }

    .ma-nav a{
        padding:13px 5px;
        font-size:11px;
        border-bottom:1px solid rgba(16,18,20,.08);
    }

    .ma-nav a::after{
        display:none;
    }

    .ma-social{
        display:none;
    }

    .ma-brand__name{
        font-size:16px;
    }

    .ma-brand__mark{
        width:40px;
        height:40px;
        font-size:17px;
    }

    .ma-logo{
        width:45px;
    }

    .ma-hero{
        min-height:calc(100vh - 76px);
    }

    .ma-hero__content{
        padding:70px 0 100px;
    }

    .ma-hero h1{
        font-size:clamp(3rem,15vw,5rem);
    }

    .ma-hero__counter{
        right:20px;
        bottom:22px;
    }

    .ma-about,
    .ma-services,
    .ma-portfolio{
        padding:75px 0;
    }

    .ma-about__grid{
        grid-template-columns:1fr;
        gap:50px;
    }

    .ma-about__stats{
        grid-template-columns:1fr;
        gap:20px;
    }

    .ma-services__grid{
        grid-template-columns:1fr;
    }

    .ma-service{
        min-height:auto;
    }

    .ma-projects{
        grid-template-columns:1fr;
    }

    .ma-project{
        min-height:300px;
    }

    .ma-mother-tribute{
        padding:18px 20px;
        min-height:90px;
    }

    .ma-mother-tribute p{
        font-size:1.1rem;
        line-height:1.4;
    }

    .mp-comidas-logo{
        width:135px;
        top:25px;
        left:20px;
    }

    .mp-hero-content{
        padding-top:125px;
    }
}

/* =========================================================
   16. CELULAR PEQUEÑO
========================================================= */

@media (max-width:520px){

    .ma-brand__mark{
        display:none;
    }

    .ma-brand__name{
        font-size:14px;
    }

    .ma-brand__role{
        font-size:8px;
    }

    .ma-title{
        font-size:clamp(2.35rem,13vw,3.4rem);
    }

    .ma-hero__text{
        font-size:13px;
    }

    .ma-mother-tribute{
        padding:16px 15px;
        min-height:auto;
    }

    .ma-mother-tribute p{
        font-size:1rem;
    }

    .mp-comidas-logo{
        width:125px;
    }
}