/* ========================================
   RESET
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #111111;
    background: #ffffff;
    line-height: 1.6;
}

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


/* ========================================
   GLOBAL
======================================== */

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

.section {
    padding: 120px 0;
}

.section-light {
    background: #f5f5f2;
}

.section-dark {
    background: #111111;
    color: #ffffff;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
}

.section-heading {
    margin-bottom: 70px;
}

.section-heading h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}


/* ========================================
   NAVIGATION
======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 0;
    z-index: 1000;

    background: rgba(245, 245, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid transparent;

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

.navbar.scrolled {
    background: rgba(225, 225, 220, 0.94);
    padding: 16px 0;
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

nav {
    display: flex;
    gap: 10px;
}

nav a {
    position: relative;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 999px;

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

nav a:hover {
    background: #111111;
    color: #ffffff;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #111111;
    border-radius: 2px;
}

/* ========================================
   HERO
======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f5f5f2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 60px;
}

.hero p {
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: clamp(4rem, 10vw, 8.5rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
    max-width: 1000px;
}

.hero h1 span {
    font-weight: 400;
}

.hero-description {
    max-width: 520px;
    margin-top: 40px;
    font-size: 1.2rem;
    color: #555555;
}

.button {
    display: inline-block;
    margin-top: 35px;
    padding: 18px 34px;

    background: #111111;
    color: #ffffff;

    border: 1px solid #111111;
    border-radius: 999px;

    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.button:hover {
    background: transparent;
    color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}


/* ========================================
   SERVICES
======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #cccccc;
    border-left: 1px solid #cccccc;
}


.service-card {
    padding: 45px;
    min-height: 480px;

    border-right: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;

    overflow: hidden;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

/* IMAGE AREA */

.service-image-wrapper {
    height: 220px;

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

    margin: 25px 0 30px;
}



.service-image {
    width: 100%;
    max-width: 286px;
    height: 100%;
    max-height: 268px;
    

    object-fit: contain;
    border-radius: 100px;
    

    transition: transform 0.35s ease;
}


/* TEXT */

.service-card h3 {
    margin-top: 0;

    font-size: 1.7rem;
}

.service-card p {
    margin-top: 15px;

    max-width: 420px;

    color: #666666;
}


/* HOVER EFFECT */

.service-card:hover {
    background: #f5f5f2;
}

.service-card:hover .service-image {
    transform: translateY(-8px) scale(1.03);
}

/* ========================================
   WHY GRIDWOVEN
======================================== */

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.value {
    border-top: 1px solid #555555;
    padding-top: 25px;
}

.value h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.value p {
    color: #aaaaaa;
}


/* ========================================
   WORK
======================================== */

.project-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}


/* PROJECT BROWSER PREVIEW */

.project-preview {
    overflow: hidden;
    border: 1px solid #dddddd;
    border-radius: 16px;
    background: #ffffff;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);

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

.project-preview:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.15);
}

/* Browser toolbar */

.browser-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}

.browser-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.browser-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cccccc;
}

.browser-dots span:first-child {
    background: #ff6b6b;
}

.browser-dots span:nth-child(2) {
    background: #ffd166;
}

.browser-dots span:last-child {
    background: #06d6a0;
}

.browser-address {
    font-size: 0.7rem;
    color: #777777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Screenshot */

.project-image {
    display: block;
    width: 100%;
    height: auto;
}


.project-info h3 {
    font-size: 2rem;
    margin: 15px 0;
}

.project-info p {
    color: #666666;
}

.project-type {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.text-link {
    display: inline-block;
    margin-top: 25px;
    font-weight: 700;
    border-bottom: 1px solid #111111;
}


/* ========================================
   ABOUT
======================================== */

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

    align-items: center;
}

.about-grid > div:last-child {
    max-width: 480px;
}


.about-grid h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.about-grid p {
    font-size: 1.15rem;
    color: #555555;
    margin-bottom: 25px;
}


/* ========================================
   CONTACT
======================================== */

.contact-section {
    background: #e7e7e2;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact-heading h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.contact-heading > p:last-child {
    margin-top: 30px;
    max-width: 400px;
    color: #555555;
}

.contact-form {
    background: #111111;
    padding: 50px;
    border-radius: 28px;
    color: #ffffff;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    margin-bottom: 18px;

    background: #1d1d1d;
    border: 1px solid #333333;
    border-radius: 14px;

    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;

    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}


.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}


.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999999;
}



.contact-form .button {
    background: #ffffff;
    color: #111111;
    border-color: #ffffff;
}


.contact-form .button:hover {
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}


.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #777777;
    background: #222222;
}




.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid #999999;
    background: transparent;
    font: inherit;
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #111111;
}

.contact-form .button {
    align-self: flex-start;
}



/* ========================================
   CONTACT FORM STATUS
======================================== */

.form-status {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 18px;
}

.form-status:empty {
    display: none;
}

.form-status.success {
    color: #86efac;
}

.form-status.error {
    color: #fca5a5;
}

/* Disabled submit button */

.contact-form .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================================
   FOOTER
======================================== */

.footer {
    background: #111111;
    color: #ffffff;
    padding: 75px 0 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr;
    gap: 65px;
    padding-bottom: 65px;
}

.footer-brand { max-width: 310px; }

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 12px;
}

.footer p {
    color: #b5b5b5;
    font-size: 0.9rem;
    line-height: 1.75;
}

.footer-brand .footer-tagline {
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-column h2 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 5px 0 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-links a,
.footer-bottom a {
    color: #b5b5b5;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-bottom a:hover,
.footer-cta:hover {
    color: #ffffff;
}

.footer-cta {
    display: inline-block;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 18px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ffffff;
    transition: color 0.2s ease;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid #333333;
}

.footer a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 5px;
    border-radius: 2px;
}

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

@media (max-width: 768px) {

    .section {
        padding: 80px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-container {
        position: relative;
    }

    nav {
        display: none;
        position: absolute;
        top: calc(100% + 16px);
        right: 0;

        flex-direction: column;
        gap: 5px;

        width: min(260px, 90vw);
        padding: 15px;

        background: #f5f5f2;
        border: 1px solid #dddddd;
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    }

    nav.open {
        display: flex;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 16vw, 6rem);
    }

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

    .service-card {
        min-height: auto;
        padding: 30px;
    }

    .service-card h3 {
        margin-top: 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-card {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .service-image-wrapper {
    height: 190px;
    margin: 20px 0 25px;
    }

.service-image {
    max-width: 240px;
    max-height: 225px;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer { padding: 55px 0 25px; }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 38px;
        padding-bottom: 45px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ========================================
   PRIVACY POLICY & LEGAL LINKS
======================================== */

.privacy-note {
    margin-top: 16px;
    color: #c9c9c9;
    font-size: 0.8rem;
    line-height: 1.7;
}

.privacy-note a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-note a:hover { color: #ffffff; }

.privacy-page {
    padding: 170px 0 110px;
    min-height: 70vh;
    background: #f5f5f2;
}

.privacy-content {
    max-width: 820px;
}

.privacy-content h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin-bottom: 16px;
}

.privacy-effective {
    color: #666666;
    font-size: 0.95rem;
    margin-bottom: 44px;
}

.privacy-content section { margin-top: 36px; }

.privacy-content h2 {
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.privacy-content p,
.privacy-content li {
    color: #444444;
    line-height: 1.8;
}

.privacy-content p + p { margin-top: 12px; }
.privacy-content ul { margin: 12px 0 0 24px; }
.privacy-content li + li { margin-top: 6px; }

.privacy-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .privacy-page { padding: 135px 0 75px; }
}
