/* ==========================================================================
   STUDIO MIKE ON DESIGN - DESIGN SYSTEM & STYLES
   ========================================================================== */

/* Variables & Design Tokens */
:root {
    --primary-color: #121212;      /* Deep charcoal black */
    --secondary-color: #0A0A0A;    /* Absolute black */
    --accent-color: #81bf3f;       /* Brand Green from Logo */
    --accent-color-hover: #96d652; /* Lighter Green */
    --bg-light: #F4F6F4;           /* Soft gray-green tint */
    --bg-white: #FFFFFF;
    --text-dark: #1E1E1E;
    --text-muted: #7a7d7a;         /* Brand Slate Gray from Logo */
    --text-light: #F9FDF9;         /* Off-white green tint */
    --border-color: #e5e8e5;       /* Soft light gray-green border */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Utilities & Layout */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.container-sm {
    width: 90%;
    max-width: 760px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--primary-color);
}

.text-light {
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.items-center {
    align-items: center;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gap-md {
    gap: 40px;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-header.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 12px;
    display: inline-block;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.bg-dark .section-header h2 {
    color: var(--text-light);
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 20px 0;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 0; /* Strict square elegance */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* Header & Nav */
.main-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px; /* Slightly taller for standalone visibility */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.scrolled .logo-img {
    height: 50px; /* Shrinks elegantly on scroll */
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-light {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1.15rem;
    letter-spacing: 3px;
    color: var(--text-dark);
}

.logo-bold {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 3px;
    color: var(--text-dark);
    margin-top: 1px;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-top: 3px;
    text-transform: uppercase;
}

/* Nav Menu toggle for mobile */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition-smooth);
}

/* Mobile Nav Styles */
.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 1005;
    padding: 100px 40px;
    transition: var(--transition-smooth);
}

.main-nav.open {
    right: 0;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
    padding-left: 8px;
}

.nav-btn {
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    text-align: center;
}

.nav-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light) !important;
    padding-left: 20px;
}

/* Desktop Nav Styles */
@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }
    .main-nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }
    .main-nav ul {
        flex-direction: row;
        align-items: center;
        gap: 35px;
    }
    .nav-link {
        font-size: 0.85rem;
        font-weight: 500;
        letter-spacing: 2px;
    }
    .nav-link:hover, .nav-link.active {
        padding-left: 0;
    }
    .nav-btn {
        margin-left: 10px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--text-light);
    padding-top: var(--header-height);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.9) 30%, rgba(10, 10, 10, 0.5) 70%, rgba(10, 10, 10, 0.2));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
}

@media (min-width: 992px) {
    .hero-split-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 60px;
    }
}

.hero-text-side {
    max-width: 700px;
}

.hero-logo-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    height: auto;
    max-height: 360px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
}

.hero-badge {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: inline-block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.8rem;
    }
}

.hero-title .highlight {
    color: var(--accent-color);
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

.scroll-arrow {
    font-size: 0.9rem;
}

/* Section Blocks (MEP & Cómputos) */
.section-block {
    margin-bottom: 80px;
}

.section-block:last-child {
    margin-bottom: 0;
}

.block-text {
    padding: 0 40px;
}

@media (max-width: 767px) {
    .block-text {
        padding: 20px 0;
    }
    .section-block.reverse {
        display: flex;
        flex-direction: column-reverse;
    }
}

.block-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--accent-color);
    display: block;
    line-height: 1;
    margin-bottom: 15px;
}

.block-text h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.block-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.block-visual {
    padding: 10px;
}

.visual-stack {
    position: relative;
    z-index: 2;
}

.visual-bg {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    z-index: -1;
}

.visual-img {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    width: 100%;
    object-fit: cover;
}

/* Tabs Container for Case Study */
.tabs-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.02);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 50px;
}

.tab-buttons {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.tab-btn {
    flex: 1;
    min-width: 180px;
    padding: 22px 15px;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
    text-align: center;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    color: var(--primary-color);
    background-color: var(--bg-white);
    border-bottom-color: var(--accent-color);
}

.tab-content-wrapper {
    padding: 50px 40px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tab-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.tab-images {
    padding: 10px;
}

.image-gallery-single {
    position: relative;
    overflow: hidden;
}

.image-gallery-single img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.zoom-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(18, 18, 18, 0.85);
    color: var(--text-light);
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.zoom-btn:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.images-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.images-split .img-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.images-split img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.images-split .img-box:hover img {
    transform: scale(1.05);
}

.images-split .img-box a {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(18, 18, 18, 0.5);
    color: var(--text-light);
    font-size: 1.3rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.images-split .img-box:hover a {
    opacity: 1;
}

/* Projects Cards Grid */
.project-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(18, 18, 18, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-overlay a {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border-radius: 50%;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.08);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-overlay a {
    transform: translateY(0);
}

.project-info {
    padding: 30px;
}

.project-info .project-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.project-client {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.project-info p:not(.project-client) {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Locations / Offices */
.location-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px 30px;
    text-align: center;
    transition: var(--transition-smooth);
}

.location-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
}

.loc-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.location-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.loc-city {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.loc-address {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 25px;
    min-height: 48px;
}

.loc-phone {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 4px;
}

.loc-phone i {
    margin-right: 6px;
    font-size: 0.85rem;
}

.loc-phone:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Contact Form Layout */
.contact-form {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition-smooth);
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    outline: none;
}

.form-status {
    margin-top: 20px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
}

.form-status.success {
    color: #2e7d32;
}

.form-status.error {
    color: #c62828;
}

/* Footer Section */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo-wrapper {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    height: 120px; /* Enlarged as requested */
    width: auto;
    object-fit: contain;
    filter: brightness(0.95); /* Matches dark footer elegantly */
}

.footer-text {
    max-width: 500px;
    margin: 0 auto 30px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border-color: var(--accent-color);
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.4;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 75vh;
    object-fit: contain;
    animation: zoom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--text-light);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-caption {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin-top: 25px;
}

.caption-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.caption-desc {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Video Gallery Section */
.video-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.video-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 25px 20px;
}

.video-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.video-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.video-fallback-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    border-bottom: 1px dashed var(--accent-color);
    padding-bottom: 2px;
}

.video-fallback-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}


