/* ==========================================================================
   infra.limited -- Consultancy Professional Grid
   Colors: #FFFFFF, #2C3E50, #5D6D7E, #BDC3C7, #1B2838, #F8F9FA
   Fonts: DM Serif Display, DM Sans
   ========================================================================== */

/* --- Reset & Base --- */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #2C3E50;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* --- Typography --- */

h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
}

.firm-name {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    letter-spacing: 0.02em;
    color: #2C3E50;
    opacity: 0;
    transition: opacity 400ms ease;
}

.firm-name.visible {
    opacity: 1;
}

.firm-descriptor {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #5D6D7E;
    margin-top: 1.2rem;
    opacity: 0;
    transition: opacity 400ms ease;
}

.firm-descriptor.visible {
    opacity: 1;
}

.service-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #2C3E50;
    margin-bottom: 0.6rem;
}

.service-description {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #5D6D7E;
}

/* --- Layout --- */

.section-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

/* --- Hero Section --- */

#hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* 12-Column Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1080px;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    pointer-events: none;
    padding: 0 2rem;
}

.grid-overlay .grid-line {
    border-right: 1px solid rgba(44, 62, 80, 0.03);
}

.grid-overlay .grid-line:first-child {
    border-left: 1px solid rgba(44, 62, 80, 0.03);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-rule {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    border: none;
    background-color: rgba(44, 62, 80, 0.2);
    transition: width 600ms ease-out;
}

.hero-rule.drawn {
    width: 100%;
}

/* --- Section Rules --- */

.section-rule {
    border: none;
    height: 1px;
    background-color: rgba(44, 62, 80, 0.2);
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
    display: block;
}

hr.section-rule {
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 4rem);
    max-width: 1080px;
}

/* --- Services Grid --- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2.5rem;
}

.service-block {
    position: relative;
    padding-top: 1.2rem;
}

.service-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2C3E50;
    transition: width 200ms ease-out;
}

.service-block.revealed .service-border {
    width: 100%;
}

/* --- Featured Insight --- */

.insight-grid {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 3rem;
    align-items: start;
}

.insight-quote blockquote {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #2C3E50;
    border: none;
    padding: 0;
    margin: 0;
}

.insight-text p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #5D6D7E;
    margin-bottom: 1rem;
}

.insight-text p:last-child {
    margin-bottom: 0;
}

/* --- Credentials --- */

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

.credential-block {
    text-align: left;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #BDC3C7;
}

.credential-number {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #2C3E50;
    line-height: 1.1;
}

.credential-suffix {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #2C3E50;
    line-height: 1.1;
}

.credential-label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #5D6D7E;
    margin-top: 0.4rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* --- Reveal Animation --- */

.reveal-item {
    opacity: 0;
    transition: opacity 400ms ease;
}

.reveal-item.revealed {
    opacity: 1;
}

#pullQuote {
    opacity: 0;
    transition: opacity 600ms ease;
}

#pullQuote.revealed {
    opacity: 1;
}

/* --- Footer --- */

#footer {
    padding: 3rem 0;
    background-color: #FFFFFF;
}

.footer-rule {
    border: none;
    height: 2px;
    background-color: #2C3E50;
    margin-bottom: 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    align-items: baseline;
}

.footer-name {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #2C3E50;
}

.footer-detail {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #5D6D7E;
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .insight-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .section {
        padding: 60px 0;
    }

    #hero {
        height: auto;
        min-height: 50vh;
        padding: 80px 0 60px;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .credentials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-inner {
        padding: 0 1.2rem;
    }

    .grid-overlay {
        padding: 0 1.2rem;
    }

    hr.section-rule {
        width: calc(100% - 2.4rem);
    }
}
