/* --------------------------------------------------------------------------
   MAURYARTE ARCHITECTURE — Sections (Biography, Editorial, Process & Forms)
   -------------------------------------------------------------------------- */

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: var(--font-accent);
    display: block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 4rem;
    letter-spacing: 0.03em;
    text-transform: none !important;
}

.subpage-hero {
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.subpage-hero-bg,
.hero-image-reveal img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    transform: scale(1);
    filter: brightness(0.4) grayscale(0.2);
    transition: filter 900ms cubic-bezier(.22, 1, .36, 1), transform 1200ms cubic-bezier(.22, 1, .36, 1);
    will-change: filter, transform;
}

.hero-image-reveal {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Hover Reveal State - clear filters and apply subtle depth scale */
.subpage-hero:hover .subpage-hero-bg,
.subpage-hero.revealed .subpage-hero-bg,
.hero-image-reveal:hover img,
.hero-image-reveal.revealed img {
    filter: brightness(1) grayscale(0) !important;
    transform: scale(1.02) !important;
}

.subpage-hero-overlay,
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 1;
    pointer-events: none; /* Allows hover mouseenter events to pass through to the image below */
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
}

.subpage-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 1rem;
}

.subpage-tagline {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
}

.editorial-sidebar {
    grid-column: span 4;
}

.editorial-content {
    grid-column: span 8;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.editorial-content p {
    margin-bottom: 2rem;
}

.editorial-content p:first-of-type {
    font-size: 1.35rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.process-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.process-step {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.process-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.process-step-num {
    grid-column: span 2;
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 300;
    line-height: 1;
    color: rgba(197, 168, 128, 0.35);
}

.process-step-meta {
    grid-column: span 4;
}

.process-step-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.process-step-desc {
    grid-column: span 6;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.fixed-signature {
    position: fixed;
    bottom: 3.5rem;
    right: 4rem;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.signature-img {
    height: 54px;
    width: auto;
    opacity: 0.55;
    filter: brightness(0) invert(1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.fixed-signature:hover .signature-img,
.signature-img:hover {
    opacity: 1;
    transform: scale(1.06);
    filter: brightness(0) invert(1);
}

/* Forms styling */
.contact-structural {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
}

.contact-info {
    grid-column: span 5;
}

.contact-info-block {
    margin-bottom: 3.5rem;
}

.contact-info-label {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 0.8rem;
    display: block;
}

.contact-info-value {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.5;
}

.contact-form-container {
    grid-column: span 7;
}

.architectural-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-accent);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-top: 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-bottom-color: var(--text-primary);
}

.form-select option {
    background-color: var(--background-alt);
    color: var(--text-primary);
}

.form-submit-container {
    grid-column: span 2;
    margin-top: 2rem;
}

.btn-submit {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 1.2rem 3.5rem;
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    background-color: var(--tech-accent);
    color: var(--background);
    border-color: var(--tech-accent);
}

@media (max-width: 1200px) {
    .subpage-title { font-size: 4rem; }
}

@media (max-width: 1024px) {
    .editorial-grid {
        gap: 2rem;
    }
    
    .editorial-sidebar {
        grid-column: span 12;
    }
    
    .editorial-content {
        grid-column: span 12;
    }
    
    .contact-structural {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        grid-column: span 12;
    }
    
    .contact-form-container {
        grid-column: span 12;
    }
    
    .process-step {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-step-num {
        font-size: 3.5rem;
        grid-column: span 12;
    }
    
    .process-step-meta {
        grid-column: span 12;
    }
    
    .process-step-desc {
        grid-column: span 12;
    }
    
    .fixed-signature {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .subpage-title {
        font-size: 3rem;
    }
    
    .architectural-form {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .form-submit-container {
        grid-column: span 1;
    }
}

/* --------------------------------------------------------------------------
   MAURYARTE ARCHITECTURE — Services Editorial Grid
   -------------------------------------------------------------------------- */
.services-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 5rem;
    row-gap: 4.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 4.5rem;
    margin-top: 3rem;
}

.editorial-service-item {
    display: flex;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.4s ease;
}

.editorial-service-item:hover {
    border-bottom-color: var(--tech-accent); /* Cyan line highlight on hover */
}

.service-num {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--accent); /* Gold */
    line-height: 1;
}

.service-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-symbol-container,
.service-icon-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.service-icon {
    height: 58px; /* Slightly larger, premium visual presence */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(0.75) sepia(20%) saturate(300%) hue-rotate(15deg); /* warm gold/grey */
    transition: filter 0.4s ease, transform 0.4s ease;
}

.editorial-service-item:hover .service-icon,
.services-page-item:hover .service-icon {
    filter: invert(69%) sepia(85%) saturate(765%) hue-rotate(134deg) brightness(97%) contrast(97%) !important; /* Cyan highlight on hover */
    transform: scale(1.05);
}

.service-title-en {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.service-title-es {
    font-family: var(--font-accent);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent); /* Gold */
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
}

/* --------------------------------------------------------------------------
   MAURYARTE ARCHITECTURE — Curated Collaborations
   -------------------------------------------------------------------------- */
.collaborations-section {
    padding: 8rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.collaborations-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3.5rem;
    padding: 1rem 0;
}

.collab-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75px; /* increased to give logos more breathing space */
    flex: 1 1 20%;
    min-width: 120px;
}

.collab-item img {
    max-width: 160px; /* enlarged slightly for better presence */
    max-height: 56px; /* enlarged slightly for better presence */
    object-fit: contain;
    filter: brightness(0) invert(0.65);
    opacity: 0.65;
    transition: var(--transition-smooth);
}

.collab-item img:hover {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   MAURYARTE ARCHITECTURE — Cinematic Portfolio Banner
   -------------------------------------------------------------------------- */
.portfolio-transition-banner {
    position: relative;
    height: 60vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 1.8s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.portfolio-transition-banner:hover .portfolio-banner-bg {
    transform: scale(1);
}

.portfolio-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 11, 11, 0.45) 0%, rgba(11, 11, 11, 0.9) 100%);
    z-index: 1;
}

.portfolio-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
}

.portfolio-banner-title {
    font-family: var(--font-serif);
    font-size: 3.8rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    margin: 1.2rem auto;
    color: var(--text-primary);
    line-height: 1.1;
    text-transform: uppercase;
}

.portfolio-banner-desc {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 200;
    max-width: 620px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.portfolio-banner-link {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(245, 242, 236, 0.2);
    padding-bottom: 0.5rem;
}

.portfolio-banner-link:hover {
    color: var(--tech-accent);
    border-bottom-color: var(--tech-accent);
}

.portfolio-banner-link .arrow {
    transition: transform 0.4s ease;
}

.portfolio-banner-link:hover .arrow {
    transform: translateX(8px);
}

/* --------------------------------------------------------------------------
   MAURYARTE ARCHITECTURE — Minimalist Contact CTA
   -------------------------------------------------------------------------- */
.minimalist-cta-section {
    padding: 12rem 2rem;
    text-align: center;
    background-color: var(--background);
    border-bottom: none;
}

.minimalist-cta-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 300;
    margin-bottom: 3.5rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.minimalist-cta-link {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent); /* Gold */
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(209, 178, 138, 0.2);
    padding-bottom: 0.5rem;
}

.minimalist-cta-link:hover {
    color: var(--tech-accent); /* Cyan hover */
    border-bottom-color: var(--tech-accent);
}

.minimalist-cta-link .arrow {
    transition: transform 0.4s ease;
}

.minimalist-cta-link:hover .arrow {
    transform: translateX(8px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .services-editorial-grid {
        grid-template-columns: 1fr;
        row-gap: 3.5rem;
        column-gap: 0;
    }
    .portfolio-banner-title {
        font-size: 3rem;
    }
    .minimalist-cta-title {
        font-size: 2.5rem;
    }
    .minimalist-cta-section {
        padding: 10rem 2rem;
    }
}

@media (max-width: 768px) {
    .editorial-service-item {
        gap: 1.5rem;
        padding-bottom: 2rem;
    }
    .collaborations-section {
        padding: 6rem 2rem;
    }
    .collaborations-row {
        gap: 2.5rem;
    }
    .collab-item {
        flex: 1 1 40%;
    }
    .portfolio-transition-banner {
        height: 50vh;
        min-height: 380px;
    }
    .portfolio-banner-title {
        font-size: 2.2rem;
    }
    .portfolio-banner-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    .minimalist-cta-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    .minimalist-cta-section {
        padding: 8rem 2rem;
    }
}

/* --------------------------------------------------------------------------
   MAURYARTE ARCHITECTURE — Mobile UI Visual & Centering Enhancements
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    /* 1. Rock-Solid Viewport & Horizontal Scroll Lock */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        position: relative !important;
    }
    
    .container {
        padding: 0 1.5rem !important; /* Breathe space on mobile while keeping bounds solid */
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .section {
        padding: 5rem 1.5rem !important;
        overflow-x: hidden !important;
    }

    /* 2. Mobile Cinematic Hero Cover Redesign */
    .subpage-hero {
        height: 80vh !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding-bottom: 4rem !important;
        background-color: var(--background) !important;
        border-bottom: 1px solid var(--border-color) !important;
    }
    
    .subpage-hero-bg {
        background-size: contain !important;
        background-position: center 25% !important;
        background-repeat: no-repeat !important;
        height: 65% !important;
        top: 0 !important;
        filter: none !important;
        -webkit-filter: none !important;
        transform: scale(1) !important;
    }
    
    .subpage-hero .container {
        text-align: center !important;
        padding: 0 1.5rem !important;
        z-index: 2;
        position: relative;
    }

    .subpage-title {
        font-size: 2.2rem !important;
        text-align: center !important;
        margin-bottom: 0.5rem !important;
        letter-spacing: 0.05em !important;
    }

    .subpage-tagline {
        font-size: 0.75rem !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
        letter-spacing: 0.3em !important;
        display: block !important;
    }
    
    .hero-image-reveal img,
    .intro-slide-bg {
        filter: none !important;
        -webkit-filter: none !important;
        transform: scale(1) !important;
    }
    
    /* 3. Center Founder Profile & Editorial Content */
    .editorial-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 2.5rem !important;
        width: 100% !important;
    }
    
    .editorial-sidebar {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    /* Stretch founder photo edge-to-edge on mobile */
    .editorial-sidebar img {
        width: calc(100% + 6rem) !important;
        max-width: calc(100% + 6rem) !important;
        margin-left: -3rem !important;
        margin-right: -3rem !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        object-fit: cover !important;
        border: none !important; /* ZERO borders */
    }
    
    .editorial-sidebar h3 {
        margin-top: 1.5rem !important;
    }
    
    .editorial-content {
        width: 100% !important;
        text-align: center !important;
        padding: 0 0.5rem !important; /* expanded text bounds */
    }

    /* Scale up and display the golden monogram inside Overview heroes */
    .subpage-hero .hero-monogram {
        width: 54px !important;
        height: 54px !important;
        margin: 0.5rem auto 2.2rem auto !important; /* Zero negative margins to prevent container clipping/cutoff */
        display: block !important;
        object-fit: contain !important;
    }
}

@media (max-width: 768px) {
    /* Hide subsequent paragraphs in editorial content on mobile to keep layout quiet and let renders speak */
    .editorial-content p:nth-of-type(n+2) {
        display: none !important;
    }

    /* 4. Luxury Dark-Tinted Background Images for Mobile Text Sections with 0.8 Opacity */
    
    /* Overview Page: Studio Philosophy section */
    .overview-page-body .section:nth-of-type(3) {
        background-image: linear-gradient(rgba(11, 11, 11, 0.80), rgba(11, 11, 11, 0.80)), url('../../works/casa-origen/hero.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Overview Page: Specialties / Our Services section */
    .overview-page-body .section:nth-of-type(4) {
        background-image: linear-gradient(rgba(11, 11, 11, 0.80), rgba(11, 11, 11, 0.80)), url('../../works/ilham/hero.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }
    
    /* Services Page: Comprehensive Design details section */
    .services-page-body .section:nth-of-type(2) {
        background-image: linear-gradient(rgba(11, 11, 11, 0.80), rgba(11, 11, 11, 0.80)), url('../../works/sustra/hero.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }
    
    /* History Page: Biography & Ethos section */
    .history-page-body .section:nth-of-type(2) {
        background-image: linear-gradient(rgba(11, 11, 11, 0.80), rgba(11, 11, 11, 0.80)), url('../../works/casa-nz/hero.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }
    
    /* Process Page: Methodology Intro section */
    .process-page-body .section:nth-of-type(2) {
        background-image: linear-gradient(rgba(11, 11, 11, 0.80), rgba(11, 11, 11, 0.80)), url('../../works/casa-piano/hero.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

    /* Contrast enhancements for high legibility over images */
    .overview-page-body .section:nth-of-type(3) p,
    .overview-page-body .section:nth-of-type(4) p,
    .services-page-body .section:nth-of-type(2) p,
    .history-page-body .section:nth-of-type(2) p,
    .process-page-body .section:nth-of-type(2) p {
        color: #FFFFFF !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75) !important;
    }
}



