/* --- Sensinuity brand tokens --- */
:root {
    --smoke: #65705F;
    --cedar: #677249;
    --steel: #5A686A;
    --onyx: #1D1D1B;
    --ivory: #FFFFFC;
    --terra: #7C9670;
    --smoke-10: #F0F1EF;
    --smoke-20: #E0E2DF;
    --smoke-30: #D1D4CF;
    --smoke-70: #939B8F;
    --header-h: 96px;
}

/* --- General Body & Typography --- */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--onyx);
    color: var(--ivory);
    overscroll-behavior: none;
}

h1, h2, h3 {
    font-family: 'Roboto Light', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
}

/* --- Header Styles --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5vw;
    box-sizing: border-box;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(29, 29, 27, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 252, 0.1);
}

.main-nav {
    display: flex;
    gap: 18px;
}

.nav-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 252, 0.4);
    border-radius: 30px;
    padding: 10px 22px;
    color: var(--ivory);
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 300;
    text-decoration: none;
    display: inline-block;
}

.nav-button:hover {
    background-color: var(--terra);
    border-color: var(--terra);
    color: var(--ivory);
}

.header-logo {
    height: 80px;
    width: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Hero: single static panel, no carousel, no scroll-jacking --- */
.hero {
    position: relative;
    min-height: 92vh;
    width: 100%;
    box-sizing: border-box;
    padding: calc(var(--header-h) + 4vh) 5vw 6vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--onyx);
    background-image:
        linear-gradient(180deg, rgba(29, 29, 27, 0.55), rgba(29, 29, 27, 0.94)),
        repeating-linear-gradient(0deg, rgba(124, 150, 112, 0.10) 0px, rgba(124, 150, 112, 0.10) 1px, transparent 1px, transparent 48px),
        repeating-linear-gradient(90deg, rgba(124, 150, 112, 0.10) 0px, rgba(124, 150, 112, 0.10) 1px, transparent 1px, transparent 48px),
        radial-gradient(circle at 78% 28%, rgba(124, 150, 112, 0.30), transparent 45%);
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    color: var(--terra);
    font-size: 0.85rem;
    letter-spacing: 3px;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 0 20px;
}

.hero h2 {
    color: var(--ivory);
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.14;
    letter-spacing: -0.5px;
    margin: 0;
}

.hero h2 em {
    font-style: normal;
    font-weight: 500;
}

.hero-sub {
    color: var(--smoke-30);
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 300;
    max-width: 560px;
    margin: 22px 0 0;
}

.scrolldown {
    align-self: flex-end;
    margin-top: 6vh;
    color: var(--smoke-30);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 2px;
    height: 22px;
    background-color: var(--smoke-30);
}

/* --- Sections --- */
.section {
    padding: 8vh 5vw;
    box-sizing: border-box;
}

.section-light {
    background-color: var(--ivory);
    color: var(--steel);
}

.section-alt {
    background-color: var(--smoke-10);
    color: var(--steel);
}

.section-dark {
    background-color: var(--onyx);
    color: var(--ivory);
}

.eyebrow-center {
    text-align: center;
    color: var(--smoke);
}

.eyebrow-accent {
    color: var(--terra);
}

.section-title {
    text-align: center;
    color: var(--smoke);
    font-size: 2rem;
    margin: 0 auto 48px;
}

.section-title-dark {
    color: var(--ivory);
}

/* --- Card grid (Our Expertise) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--ivory);
    border: 1px solid var(--smoke-30);
    border-radius: 14px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-photo {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.card-body {
    padding: 26px 28px 30px;
    position: relative;
}

.badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--terra);
    color: var(--ivory);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -22px;
    right: 26px;
    border: 4px solid var(--ivory);
}

.card h3 {
    color: var(--onyx);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 12px;
}

.card p {
    color: var(--steel);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 10px;
}

/* --- Our Work strip --- */
.work-strip {
    padding-top: 2vh;
}

.work-strip-head {
    max-width: 1200px;
    margin: 0 auto 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.work-strip-title {
    text-align: left;
    margin: 8px 0 0;
}

.work-strip-caption {
    color: var(--smoke-70);
    font-size: 0.85rem;
    line-height: 1.55;
    max-width: 380px;
    margin: 0;
    text-align: right;
}

.work-imgs {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.work-imgs img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--smoke-30);
}

/* --- Two-column (Advantage / Difference) --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.two-col .card h3 {
    color: var(--smoke);
    font-family: 'Roboto Light', 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.two-col .card {
    background-color: var(--ivory);
    opacity: 1;
    transform: none;
}

/* --- Testimonials --- */
.testimonial {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 252, 0.04);
    border: 1px solid rgba(255, 255, 252, 0.12);
    border-radius: 14px;
    padding: 44px 48px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.testimonial.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.quotemark {
    color: var(--terra);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial .quote {
    color: var(--ivory);
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 300;
    font-style: italic;
    margin: 8px 0 0;
}

.testimonial .attrib {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--steel);
    flex-shrink: 0;
}

.testimonial .name {
    color: var(--ivory);
    font-weight: 500;
    font-size: 0.95rem;
}

.testimonial .role {
    color: var(--smoke-30);
    font-size: 0.8rem;
    margin-top: 2px;
}

.placeholder-note {
    margin: 18px 0 0;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--smoke-70);
}

/* --- Final CTA --- */
.section-cta {
    text-align: center;
}

.section-cta p {
    font-size: 1.1rem;
    color: var(--steel);
    max-width: 600px;
    margin: 0 auto 24px;
}

.content-cta-button {
    display: inline-block;
    background-color: var(--smoke);
    color: var(--ivory);
    padding: 15px 32px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.content-cta-button:hover {
    background-color: var(--cedar);
    transform: translateY(-2px);
}

/* --- Standard pages (about / contact) --- */
.page-content-wrapper {
    position: relative;
    padding-top: calc(var(--header-h) + 40px);
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    padding-bottom: 60px;
    background-color: var(--onyx);
}

.static-box {
    background-color: rgba(90, 104, 106, 0.4);
    padding: 40px;
    border-left: 4px solid var(--terra);
    backdrop-filter: blur(5px);
    max-width: 900px;
    width: 80%;
}

.static-box h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--terra);
    margin-top: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.static-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: var(--ivory);
}

.static-box p, .static-box ul {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ivory);
}

.static-box ul {
    list-style: none;
    padding-left: 0;
}

.static-box li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}

.static-box li::before {
    content: '\2713 ';
    position: absolute;
    left: 0;
    color: var(--terra);
    font-weight: bold;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--ivory);
    font-size: 0.85rem;
    background-color: var(--onyx);
}

footer p {
    margin: 5px 0;
}

/* --- Hamburger Menu --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--ivory);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.open span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .two-col {
        grid-template-columns: 1fr;
    }
    .work-imgs {
        grid-template-columns: 1fr;
    }
    .work-strip-caption {
        text-align: left;
        max-width: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 76px;
    }

    .hamburger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(29, 29, 27, 0.97);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease-out;
    }

    .main-nav.nav-open {
        opacity: 1;
        pointer-events: auto;
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav-button {
        font-size: 1.3rem;
        border: none;
        padding: 10px 20px;
    }

    .header-logo {
        height: 56px;
    }

    .main-header {
        padding: 12px 5vw;
    }

    .hero {
        min-height: 86vh;
        padding: calc(var(--header-h) + 6vh) 6vw 6vh;
    }

    .scrolldown {
        align-self: center;
    }

    .section {
        padding: 7vh 6vw;
    }

    .testimonial {
        padding: 32px 26px;
    }

    .static-box {
        width: 90%;
        padding: 25px;
    }

    .static-box h2 {
        font-size: 1.5rem;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .card, .testimonial {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .content-cta-button {
        transition: none;
    }
}
