/* =========================================================
   TECHRASSIC
   Global Stylesheet
========================================================= */


/* ---------- BRAND COLORS ---------- */

:root {
    --green: #2f6f4e;
    --green-dark: #214d36;
    --green-light: #e8f0eb;

    --black: #111411;
    --dark-grey: #343a36;
    --grey: #68706b;

    --light-grey: #f3f5f2;
    --border: #dfe4df;

    --white: #ffffff;
}


/* ---------- RESET ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
}

img {
    max-width: 100%;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ---------- GLOBAL ---------- */

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.section-label {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 50px;
}

.section-heading-row h2 {
    font-size: clamp(40px, 5vw, 65px);
    line-height: 1;
    letter-spacing: -3px;
}

.section-heading-row > p {
    max-width: 360px;
    color: var(--grey);
}


/* ---------- NAVBAR ---------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(10px);
}

.nav-container {
    min-height: 80px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 145px;
    display: block;
}


/* ---------- NAVIGATION LINKS ---------- */

.nav-links,
.nav-container nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a,
.nav-container nav a {
    position: relative;

    font-size: 14px;
    font-weight: 600;

    color: var(--dark-grey);

    transition: color 0.25s ease;
}

.nav-links a::after,
.nav-container nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--green);

    transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-container nav a:hover {
    color: var(--green);
}

.nav-links a:hover::after,
.nav-container nav a:hover::after {
    width: 100%;
}


/* ---------- BUTTONS ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 15px 25px;

    font-size: 14px;
    font-weight: 700;

    border-radius: 4px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-outline {
    border: 1px solid var(--black);
    color: var(--black);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--green-dark);
}

.btn-light:hover {
    background: var(--green-light);
}


/* ---------- HERO ---------- */

.hero {
    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;

    background: var(--light-grey);

    padding: 100px 0;
}

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

.eyebrow {
    color: var(--green);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 4px;

    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(60px, 9vw, 115px);

    line-height: 0.9;

    letter-spacing: -7px;

    margin-bottom: 35px;
}

.hero h1 {
    font-size: clamp(60px, 9vw, 115px);
    line-height: 0.9;
    letter-spacing: -7px;
    margin-bottom: 35px;
}

.hero-line {
    display: block;
}

.hero-line:nth-child(2) {
    transform: translateX(-3px);
}

.hero-line span {
    color: var(--green);
}
.hero-text {
    max-width: 620px;

    color: var(--grey);

    font-size: 18px;

    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* ---------- ABOUT ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: start;
}

.about-grid h2 {
    font-size: clamp(40px, 5vw, 65px);

    line-height: 1;

    letter-spacing: -3px;
}

.about-grid h2 span {
    color: var(--green);
}

.about-text {
    max-width: 600px;
}

.about-text p {
    font-size: 20px;

    color: var(--grey);

    margin-bottom: 25px;
}


/* ---------- SERVICES ---------- */

.services-section {
    background: var(--light-grey);
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.service-card {
    position: relative;

    min-height: 390px;

    padding: 35px;

    display: flex;
    flex-direction: column;

    background: var(--white);

    border: 1px solid var(--border);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);

    border-color: var(--green);

    box-shadow: 0 20px 50px rgba(20, 40, 25, 0.08);
}

.card-number {
    color: var(--green);

    font-size: 13px;

    font-weight: 700;
}

.card-icon {
    width: 55px;
    height: 55px;

    margin-top: 40px;
    margin-bottom: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--green-light);

    color: var(--green);

    font-size: 25px;

    border-radius: 50%;
}

.service-card h3 {
    font-size: 28px;

    line-height: 1.1;

    margin-bottom: 15px;
}

.service-card p {
    color: var(--grey);

    font-size: 15px;
}

.card-link {
    margin-top: auto;

    padding-top: 30px;

    color: var(--green);

    font-size: 14px;

    font-weight: 700;
}


/* ---------- PORTFOLIO ---------- */

.portfolio-section {
    background: var(--white);
}

.text-link {
    color: var(--green);

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;
}

.portfolio-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.portfolio-card {
    border: 1px solid var(--border);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 20px 40px rgba(20, 40, 25, 0.08);
}

.portfolio-image {
    height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--light-grey);
}

.portfolio-image span {
    color: var(--green);

    font-size: 28px;

    font-weight: 800;

    letter-spacing: 3px;
}

.writing-bg {
    background: #edf2ed;
}

.design-bg {
    background: #f1f2ee;
}

.video-bg {
    background: #e9efeb;
}

.portfolio-info {
    padding: 22px;
}

.portfolio-info h3 {
    font-size: 21px;

    margin-bottom: 4px;
}

.portfolio-info p {
    color: var(--grey);

    font-size: 14px;
}


/* ---------- WHY TECHRASSIC ---------- */

.why-section {
    background: var(--light-grey);
}

.why-heading {
    max-width: 800px;

    font-size: clamp(45px, 6vw, 75px);

    line-height: 1;

    letter-spacing: -4px;

    margin-bottom: 60px;
}

.why-heading span {
    color: var(--green);
}

.why-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1px;

    background: var(--border);

    border: 1px solid var(--border);
}

.why-item {
    background: var(--white);

    padding: 35px;

    min-height: 240px;
}

.why-item strong {
    color: var(--green);

    font-size: 13px;
}

.why-item h3 {
    font-size: 20px;

    margin: 45px 0 12px;
}

.why-item p {
    color: var(--grey);

    font-size: 14px;
}


/* ---------- BLOG ---------- */

.blog-preview {
    display: grid;

    grid-template-columns: 1fr 1fr;

    border: 1px solid var(--border);
}

.blog-placeholder {
    min-height: 350px;

    background: var(--light-grey);

    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-placeholder span {
    color: var(--green);

    font-weight: 800;

    letter-spacing: 3px;
}

.blog-content {
    padding: 55px;
}

.blog-tag {
    color: var(--green);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 20px;
}

.blog-content h3 {
    font-size: 35px;

    line-height: 1.1;

    margin-bottom: 20px;
}

.blog-content > p:not(.blog-tag) {
    color: var(--grey);

    margin-bottom: 30px;
}


/* ---------- CTA ---------- */

.cta-section {
    background: var(--green);

    color: var(--white);

    padding: 120px 0;

    text-align: center;
}

.cta-section .eyebrow {
    color: var(--green-light);
}

.cta-section h2 {
    max-width: 850px;

    margin: 0 auto 45px;

    font-size: clamp(50px, 7vw, 90px);

    line-height: 0.95;

    letter-spacing: -5px;
}

.cta-section h2 span {
    color: var(--green-light);
}


/* ---------- FOOTER ---------- */

footer {
    background: var(--black);

    color: var(--white);

    padding: 55px 0 25px;
}

.footer-container {
    display: flex;

    justify-content: space-between;

    gap: 50px;
}

.footer-brand img {
    width: 140px;

    margin-bottom: 10px;
}

.footer-brand p {
    color: #9da49e;

    font-size: 13px;
}

.footer-links {
    display: flex;

    gap: 25px;

    flex-wrap: wrap;

    align-items: center;
}

.footer-links a {
    color: #d4d8d5;

    font-size: 13px;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--green-light);
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid #303530;

    margin-top: 45px;

    padding-top: 20px;
}

.footer-bottom p {
    color: #7f8781;

    font-size: 12px;
}


/* ---------- CONTACT PAGE ---------- */

.contact-section {
    padding: 90px 0;
}

.contact-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 24px;

    margin-top: 50px;
}

.contact-card {
    display: block;

    padding: 35px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 18px;

    text-decoration: none;

    color: var(--black);

    transition: 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);

    border-color: var(--green);

    box-shadow: 0 12px 30px rgba(33, 77, 54, 0.08);
}

.contact-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--green-light);

    border-radius: 12px;

    font-size: 24px;

    margin-bottom: 20px;
}

.contact-card h3 {
    margin-bottom: 10px;

    font-size: 22px;
}

.contact-card p {
    color: var(--grey);

    line-height: 1.7;

    margin-bottom: 20px;
}

.contact-link {
    color: var(--green);

    font-weight: 600;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .nav-links,
    .nav-container nav {
        gap: 18px;
    }

    .nav-links a,
    .nav-container nav a {
        font-size: 13px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================
   BLOG PAGE
========================= */

.blog-section {
    padding: 90px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}

.blog-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(33, 77, 54, 0.08);
}

.blog-image {
    height: 190px;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image span {
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.blog-content {
    padding: 28px;
}

.blog-category {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.blog-content h3 {
    font-size: 21px;
    line-height: 1.4;
    margin-bottom: 14px;
}

.blog-content > p:not(.blog-category) {
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-read {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.blog-read:hover {
    color: var(--green-dark);
}


/* BLOG RESPONSIVE */

@media (max-width: 900px) {

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-image {
        height: 170px;
    }

}
/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .section {
        padding: 75px 0;
    }


    /* NAVBAR */

    .nav-container {
        min-height: 70px;
    }

    .logo img {
        width: 120px;
    }

    .nav-links,
    .nav-container nav {
        display: none;
    }


    /* HERO */

    .hero {
        min-height: calc(100vh - 70px);

        padding: 70px 0;
    }

    .hero h1 {
        font-size: clamp(55px, 16vw, 85px);

        letter-spacing: -5px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .btn {
        width: 100%;
    }


    /* ABOUT */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .about-grid h2 {
        font-size: 45px;
    }

    .about-text p {
        font-size: 17px;
    }


    /* HEADINGS */

    .section-heading-row {
        flex-direction: column;

        align-items: start;

        gap: 15px;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 350px;
    }


    /* PORTFOLIO */

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-image {
        height: 270px;
    }


    /* WHY */

    .why-heading {
        font-size: 48px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }


    /* BLOG */

    .blog-preview {
        grid-template-columns: 1fr;
    }

    .blog-placeholder {
        min-height: 230px;
    }

    .blog-content {
        padding: 30px;
    }

    .blog-content h3 {
        font-size: 28px;
    }


    /* CONTACT */

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 28px;
    }


    /* CTA */

    .cta-section {
        padding: 80px 0;
    }

    .cta-section h2 {
        font-size: 55px;

        letter-spacing: -3px;
    }


    /* FOOTER */

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        gap: 18px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 8px;
    }

}