@charset "UTF-8";

/* ==========================================================================
   Nuno Santos Landscaping — project detail page
   ========================================================================== */

:root {
    --ns-green: #3f6b4f;
    --ns-green-dark: #2b3a2e;
    --ns-sage: #5a6b58;
    --ns-cream: #eef1ea;
}

/* Overflow safety net — no element should cause horizontal scroll */
.ns-hero,
.ns-section { overflow-x: clip; }

/* ---- Hero ---- */
.ns-hero {
    background-color: #fff;
    padding: 4.5rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.ns-hero__inner {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}

.ns-hero__text { min-width: 0; }

/* Image safety — never let intrinsic size blow out the layout */
.ns-hero img,
.ns-section img,
.ns-browser img { max-width: 100%; height: auto; }

.ns-hero__eyebrow {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ns-green);
    margin-bottom: 1.25rem;
}

.ns-hero__title {
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 200;
    color: #212427;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.ns-hero__tagline {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    font-weight: 300;
    color: #4b5563;
    line-height: 1.65;
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.ns-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 500;
}

.ns-hero__year {
    color: var(--ns-green);
    font-weight: 600;
}

.ns-hero__sep {
    color: #d1d5db;
}

.ns-hero__logo-wrap {
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--ns-sage);
    border-radius: 1rem;
    padding: 2.5rem;
    aspect-ratio: 1 / 1;
}

.ns-hero__logo {
    width: 78%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Sections ---- */
.ns-section {
    padding: 4rem 1.5rem;
    background-color: var(--fi);
}

.ns-section--alt {
    background-color: var(--si);
}

.ns-section--green {
    background-color: var(--ns-green);
}

.ns-container {
    max-width: 80rem;
    margin: 0 auto;
}

.ns-section__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 300;
    color: #212427;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.ns-section__title--light {
    color: #fff;
}

.ns-section__lead {
    font-size: 1rem;
    line-height: 1.75;
    color: #4b5563;
    max-width: 42rem;
    margin: 1.5rem 0 2.5rem;
}

.ns-section__lead--light {
    color: rgba(255,255,255,0.85);
}

.proj-tag--light {
    color: rgba(255,255,255,0.7);
}

/* ---- Browser mockup ---- */
.ns-browser {
    display: block;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.16);
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ns-browser:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 72px rgba(0,0,0,0.22);
}

.ns-browser__bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.ns-browser__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d1d5db;
}

.ns-browser__dot:nth-child(1) { background: #f87171; }
.ns-browser__dot:nth-child(2) { background: #fbbf24; }
.ns-browser__dot:nth-child(3) { background: #34d399; }

.ns-browser__url {
    margin-left: 0.75rem;
    flex: 1;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    color: #6b7280;
    letter-spacing: 0.02em;
}

.ns-browser__viewport {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--ns-sage), var(--ns-green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.ns-browser__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ns-browser__logo {
    width: clamp(120px, 22vw, 200px);
    height: auto;
    border-radius: 0.5rem;
}

.ns-browser__hint {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

.ns-browser__cta {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #212427;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.6rem 1.1rem;
    border-radius: 2rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: gap 0.2s ease;
}

.ns-browser:hover .ns-browser__cta {
    gap: 0.85rem;
}

/* ---- Identity ---- */
.ns-identity-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
}

.ns-identity__mark {
    background: var(--ns-sage);
    border-radius: 1rem;
    padding: 3rem;
    display: flex;
    justify-content: center;
}

.ns-identity__mark img {
    width: 70%;
    height: auto;
}

.ns-identity__notes {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ns-note {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.ns-note:first-child {
    padding-top: 0;
}

.ns-note:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ns-note__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ns-green);
    margin-bottom: 0.4rem;
}

.ns-note__desc {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #4b5563;
}

/* ---- Social feed ---- */
.ns-feed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.ns-post {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 0.75rem;
    overflow: hidden;
}

.ns-post__media {
    aspect-ratio: 1 / 1;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: flex-end;
    padding: 0.9rem;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 10px, rgba(255,255,255,0) 10px 20px);
}

.ns-post__tag {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0,0,0,0.25);
    padding: 0.3rem 0.6rem;
    border-radius: 2rem;
}

.ns-post__caption {
    padding: 0.85rem 0.95rem 1.1rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
}

.ns-feed__note {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.55);
    font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .ns-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .ns-hero__logo-wrap {
        order: -1;
        aspect-ratio: 3 / 2;
        padding: 1.75rem;
    }

    .ns-hero__logo {
        width: auto;
        max-height: 100%;
        height: 11rem;
    }

    .ns-identity-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .ns-feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .ns-browser__cta {
        position: static;
        margin: 1rem;
        justify-content: center;
    }

    .ns-feed {
        grid-template-columns: 1fr;
    }
}
