/* ============================================================
   PULSE STUDIO — Custom Swiss Modernist Stylesheet
   Design Ethos: Sharp, Geometric, Structured, Minimal, Premium
   ============================================================ */

/* ---------------------- Design Variables ---------------------- */
:root {
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --ink-color: #0f172a;
    --ink-muted: #475569;
    --accent: #0f766e;
    --accent-hover: #115e59;
    --border-dark: #0f172a;
    --border-light: #e2e8f0;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* ---------------------- Reset & Global Styles ---------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-color);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

/* Force absolute removal of shadows and rounded borders globally */
*,
*::before,
*::after,
button,
a,
input,
div,
section,
nav,
footer {
    border-radius: 0px !important;
    box-shadow: none !important;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    filter: grayscale(1) contrast(1.05); /* Desaturated editorial imagery */
}

button {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
}

/* ---------------------- Shared Typography ---------------------- */
.section__heading {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 500;
    color: var(--ink-color);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section__subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--ink-muted);
    margin-bottom: 3.5rem;
    font-weight: 400;
    max-width: 600px;
}

.section__subtitle--center {
    margin-inline: auto;
}

/* ---------------------- Buttons & Interactive Elements ---------------------- */
.hero__btn,
.cta__btn,
.header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bg-color);
    background: var(--ink-color);
    padding: 0.9rem 1.8rem;
    border: 1px solid var(--ink-color);
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.hero__btn:hover,
.cta__btn:hover,
.header__btn:hover {
    background: var(--bg-color);
    color: var(--ink-color);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-dark);
    height: 64px;
}

.header__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.header__logo {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink-color);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.header__logo span {
    font-weight: 400;
    color: var(--accent);
}

/* Nav */
.header__nav-list {
    display: flex;
    gap: 2.5rem;
}

.header__link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.15s;
}

.header__link:hover,
.header__link--active {
    color: var(--ink-color);
}

/* Header Action Button override */
.header__btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
}

/* Hamburger mobile toggle */
.header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 24px;
    justify-content: center;
    z-index: 101;
}

.header__toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink-color);
    transition: all 0.2s ease-in-out;
}

.header__toggle--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__toggle--open span:nth-child(2) {
    opacity: 0;
}

.header__toggle--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO (Asymmetric Grid Layout)
   ============================================================ */
.hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-dark);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 8% 4rem 1.5rem;
    max-width: 720px;
    margin: 0 auto 0 0;
}

.hero__bg {
    position: relative;
    height: 100%;
    width: 100%;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1000&q=80') center / cover no-repeat;
    filter: grayscale(1) contrast(1.1);
    border-left: 1px solid var(--border-dark);
}

.hero__title {
    font-family: var(--font-sans);
    font-size: 2.75rem;
    font-weight: 500;
    color: var(--ink-color);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: var(--ink-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero__btn {
    margin-bottom: 0;
}

/* ============================================================
   ABOUT (Pristine Centered Board)
   ============================================================ */
.about {
    padding: 6rem 1.5rem;
    border-bottom: 1px solid var(--border-dark);
    background: var(--bg-color);
}

.about__inner {
    max-width: 760px;
    margin: 0 auto;
}

.about__text p {
    font-size: 1.05rem;
    color: var(--ink-muted);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

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

/* ============================================================
   SERVICES (Crisp matrix cell grid)
   ============================================================ */
.services {
    padding: 6rem 1.5rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-dark);
}

.services__inner {
    max-width: 1140px;
    margin: 0 auto;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border-dark);
}

.service {
    background: var(--bg-color);
    border-right: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 2.5rem 2rem;
    transition: background-color 0.25s, color 0.25s;
}

/* Grid borders handling */
.services__grid .service:nth-child(3n) {
    border-right: none;
}

.services__grid .service:nth-child(n+4) {
    border-bottom: none;
}

/* Hover inversion: Clean visual feedback */
.service:hover {
    background: var(--ink-color);
    color: var(--bg-color);
}

.service__icon {
    margin-bottom: 1.5rem;
}

/* Invert SVG strokes elegantly on hover */
.service:hover .service__icon svg rect {
    fill: rgba(255, 255, 255, 0.08);
}
.service:hover .service__icon svg circle,
.service:hover .service__icon svg path {
    stroke: var(--bg-color);
}

.service__title {
    font-size: 1.1rem;
    font-weight: 500;
    color: inherit;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service__desc {
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.6;
    transition: color 0.25s;
}

.service:hover .service__desc {
    color: #94a3b8;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta {
    padding: 6rem 1.5rem;
    background: var(--accent);
    color: var(--bg-color);
    text-align: center;
    border-bottom: 1px solid var(--border-dark);
}

.cta__inner {
    max-width: 640px;
    margin: 0 auto;
}

.cta__title {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.cta__btn {
    background: var(--bg-color);
    color: var(--ink-color);
    border-color: var(--bg-color);
}

.cta__btn:hover {
    background: var(--ink-color);
    color: var(--bg-color);
    border-color: var(--bg-color);
}

/* ============================================================
   CONTACT (Prismatic outline blocks)
   ============================================================ */
.contact {
    padding: 6rem 1.5rem;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-dark);
}

.contact__inner {
    max-width: 1140px;
    margin: 0 auto;
}

.contact__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border-dark);
    margin-top: 1rem;
}

.contact__card {
    background: var(--bg-color);
    border-right: 1px solid var(--border-dark);
    padding: 2.5rem 2rem;
    text-align: left;
}

.contact__card:last-child {
    border-right: none;
}

.contact__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.contact__value {
    font-size: 1.05rem;
    color: var(--ink-color);
    font-weight: 500;
    word-break: break-word;
}

a.contact__value:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ============================================================
   FOOTER (Strict grid blocks)
   ============================================================ */
.footer {
    background: var(--ink-color);
    color: #cbd5e1;
    padding: 5rem 1.5rem 2.5rem;
    font-size: 0.85rem;
}

.footer__inner {
    max-width: 1140px;
    margin: 0 auto;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 2rem;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__logo {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bg-color);
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.footer__logo span {
    font-weight: 400;
    color: var(--accent);
}

.footer__desc {
    line-height: 1.7;
    color: #94a3b8;
    max-width: 280px;
}

.footer__col-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__col a {
    color: #cbd5e1;
    transition: color 0.15s;
}

.footer__col a:hover {
    color: var(--bg-color);
}

.footer__contact-list li {
    color: #cbd5e1;
    line-height: 1.6;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.78rem;
}

/* ============================================================
   RESPONSIVE (Fluid stacking structure)
   ============================================================ */

@media (max-width: 900px) {
    /* Header nav panel slide-out */
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-color);
        border-left: 1px solid var(--border-dark);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 100;
    }

    .header__nav--open {
        right: 0;
    }

    .header__nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .header__link {
        font-size: 1.05rem;
    }

    .header__btn {
        display: none;
    }

    .header__toggle {
        display: flex;
    }

    .header__overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .header__overlay--on {
        opacity: 1;
        pointer-events: auto;
    }

    /* Asymmetrical hero transitions to layout stack */
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero__inner {
        padding: 4rem 1.5rem;
        max-width: 100%;
    }

    .hero__bg {
        height: 380px;
        border-left: none;
        border-top: 1px solid var(--border-dark);
    }

    .hero__title {
        font-size: 2.25rem;
    }

    /* About section layout centered globally, columns reset */

    /* Grid borders adjustment for 2 columns */
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services__grid .service {
        border-right: 1px solid var(--border-dark);
        border-bottom: 1px solid var(--border-dark);
    }

    .services__grid .service:nth-child(2n) {
        border-right: none;
    }

    .services__grid .service:nth-child(2n+1):last-child {
        border-right: none;
    }

    .services__grid .service:last-child {
        border-bottom: none;
    }

    .services__grid .service:nth-last-child(2) {
        border-bottom: none;
    }

    /* Contact columns stack */
    .contact__cards {
        grid-template-columns: 1fr;
    }

    .contact__card {
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
    }

    .contact__card:last-child {
        border-bottom: none;
    }

    /* Footer columns transition to 2x2 grid */
    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .hero__bg {
        height: 280px;
    }

    .hero__title {
        font-size: 1.85rem;
    }

    .section__heading {
        font-size: 1.6rem;
    }

    .about,
    .services,
    .contact {
        padding: 4rem 1.5rem;
    }

    .services__subtitle,
    .section__subtitle {
        margin-bottom: 2.5rem;
    }

    /* Services grid completely stacks */
    .services__grid {
        grid-template-columns: 1fr;
    }

    .services__grid .service {
        border-right: none !important;
        border-bottom: 1px solid var(--border-dark) !important;
    }

    .services__grid .service:last-child {
        border-bottom: none !important;
    }

    /* Footer column completely stacks */
    .footer__top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}