/* ============================================================
   NEST DIGITALS — Dark Gold Editorial Stylesheet
   ============================================================ */

/* ---------------------- Variables ---------------------- */
:root {
    --bg:          #ffffff;
    --bg-alt:      #f7f6f3;
    --bg-dark:     #09090b;
    --ink:         #09090b;
    --ink-muted:   #71717a;
    --accent:      #ca8a04;
    --border:      #e4e4e7;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* ---------------------- Reset ---------------------- */
*, *::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);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* Globally strip shadows & rounded corners */
*, *::before, *::after,
button, a, input, div, section, nav, footer {
    border-radius: 0 !important;
    box-shadow: none !important;
}

a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ---------------------- Shared typography ---------------------- */
.section__heading {
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.9rem;
    letter-spacing: -0.015em;
}

.section__subtitle {
    font-size: 0.92rem;
    color: var(--ink-muted);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 520px;
}

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

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

.header__logo {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.header__logo span {
    font-weight: 400;
    color: var(--accent);
}

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

.header__link {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.15s;
}
.header__link:hover,
.header__link--active { color: var(--ink); }

.header__btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.42rem 1.1rem;
    color: var(--bg);
    background: var(--ink);
    border: 1px solid var(--ink);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.header__btn:hover {
    background: var(--bg);
    color: var(--ink);
}

.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: 1.5px;
    width: 100%;
    background: var(--ink);
    transition: all 0.2s ease-in-out;
}
.header__toggle--open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__toggle--open span:nth-child(2) { opacity: 0; }
.header__toggle--open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO — Full-screen dark with background image via ::before
   ============================================================ */
.hero {
    position: relative;
    height: calc(100vh - 64px);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    overflow: hidden;
}

/* Background photo — grayscale + very low opacity */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1400&q=80') center / cover no-repeat;
    filter: grayscale(1);
    opacity: 0.22;
    z-index: 0;
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(202, 138, 4, 0.4);
    padding: 0.3rem 1rem;
    margin-bottom: 2.25rem;
}

.hero__title {
    font-size: 2.8rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.hero__subtitle {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 580px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.72rem 1.6rem;
    color: var(--bg-dark);
    background: var(--accent);
    border: 1px solid var(--accent);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.hero__btn:hover {
    background: transparent;
    color: var(--accent);
}

.hero__cta-link {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
.hero__cta-link:hover { color: var(--accent); }

/* ============================================================
   ABOUT — 2-col: text left, stats right
   ============================================================ */
.about {
    padding: 5.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

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

.about__text .section__heading {
    margin-bottom: 1.25rem;
}

.about__text p {
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.85;
    margin-bottom: 1.2rem;
}
.about__text p:last-child { margin-bottom: 0; }



/* ============================================================
   SERVICES — 3-col numbered matrix
   ============================================================ */
.services {
    padding: 5.5rem 1.5rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

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

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

.service {
    position: relative;
    background: var(--bg);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 1.75rem 2rem 3.25rem;
    transition: background 0.22s, color 0.22s;
}

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

.service:hover {
    background: var(--bg-dark);
    color: #ffffff;
}

.service__num {
    position: absolute;
    top: 1.75rem;
    left: 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.service__icon { margin-bottom: 1rem; }

.service:hover .service__icon svg circle,
.service:hover .service__icon svg path,
.service:hover .service__icon svg rect {
    stroke: rgba(202, 138, 4, 0.65);
}

.service__title {
    font-size: 0.95rem;
    font-weight: 500;
    color: inherit;
    margin-bottom: 0.55rem;
    letter-spacing: -0.005em;
}

.service__desc {
    font-size: 0.82rem;
    color: var(--ink-muted);
    line-height: 1.65;
    transition: color 0.22s;
}
.service:hover .service__desc { color: #71717a; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta {
    padding: 5rem 1.5rem;
    background: var(--bg-dark);
    text-align: center;
}

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

.cta__title {
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.cta__text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.cta__btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.72rem 1.6rem;
    color: var(--bg-dark);
    background: var(--bg);
    border: 1px solid var(--bg);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.cta__btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: 5.5rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

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

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

.contact__card {
    border-right: 1px solid var(--border);
    padding: 2.25rem 2rem;
}
.contact__card:last-child { border-right: none; }

.contact__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.65rem;
}

.contact__value {
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 400;
    word-break: break-word;
    line-height: 1.7;
}
a.contact__value:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-dark);
    color: #71717a;
    padding: 4.5rem 1.5rem 2.5rem;
    font-size: 0.82rem;
}

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

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

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

.footer__logo {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fafafa;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}
.footer__logo span {
    font-weight: 400;
    color: var(--accent);
}

.footer__desc {
    line-height: 1.7;
    color: #52525b;
    max-width: 240px;
}

.footer__col-title {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1.1rem;
}

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

.footer__col a {
    color: #71717a;
    transition: color 0.15s;
}
.footer__col a:hover { color: #fafafa; }

.footer__contact-list li {
    color: #71717a;
    line-height: 1.65;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #3f3f46;
    font-size: 0.73rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    /* Mobile nav */
    .header__nav {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; max-width: 300px;
        height: 100vh;
        background: var(--bg);
        border-left: 1px solid var(--border);
        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: 0.95rem; }
    .header__btn  { display: none; }
    .header__toggle { display: flex; }

    .header__overlay {
        position: fixed; inset: 0;
        background: rgba(9, 9, 11, 0.45);
        z-index: 99;
        opacity: 0; pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .header__overlay--on { opacity: 1; pointer-events: auto; }

    /* Hero */
    .hero__title { font-size: 2.1rem; }

    /* About */
    .about__inner { grid-template-columns: 1fr; gap: 3rem; }

    /* Services 2-col */
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .services__grid .service { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    .services__grid .service:nth-child(2n)  { border-right: none; }
    .services__grid .service:nth-child(n+4) { border-bottom: 1px solid var(--border); }
    .services__grid .service:nth-child(5),
    .services__grid .service:nth-child(6)   { border-bottom: none; }

    /* Contact */
    .contact__cards { grid-template-columns: 1fr; }
    .contact__card  { border-right: none; border-bottom: 1px solid var(--border); }
    .contact__card:last-child { border-bottom: none; }

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

@media (max-width: 600px) {
    .hero__title { font-size: 1.65rem; }
    .hero__actions { flex-direction: column; gap: 1.25rem; }
    .section__heading { font-size: 1.3rem; }

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

    .services__grid { grid-template-columns: 1fr; }
    .services__grid .service { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
    .services__grid .service:last-child { border-bottom: none !important; }

    .footer__top { grid-template-columns: 1fr; gap: 2rem; }
    .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}