/* =========================
   GLOBAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f5;
    color: #111111;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
}


/* =========================
   HEADER
========================= */

.header {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.nav-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.logo span {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
}

.nav {
    display: flex;
    gap: 32px;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav a {
    transition: opacity 0.2s ease;
}

.nav a:hover {
    opacity: 0.55;
}

.nav-button {
    background: #111111;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
}


/* =========================
   HERO
========================= */

.hero {
    background: #111111;
    color: #ffffff;
    padding: 110px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 70px;
}

.hero-text h1 {
    max-width: 700px;
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
    margin-bottom: 30px;
}

.hero-text h1 span {
    display: block;
    color: #a8a8a8;
}

.hero-description {
    max-width: 590px;
    color: #c6c6c6;
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 15px 23px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
}

.primary-button {
    background: #ffffff;
    color: #111111;
}

.secondary-button {
    border: 1px solid #555555;
    color: #ffffff;
}

.hero-trust {
    display: flex;
    gap: 42px;
    margin-top: 55px;
    padding-top: 25px;
    border-top: 1px solid #333333;
}

.hero-trust div {
    display: flex;
    flex-direction: column;
}

.hero-trust strong {
    font-size: 1.35rem;
}

.hero-trust span {
    color: #999999;
    font-size: 0.75rem;
}


/* =========================
   HERO CARD
========================= */

.hero-card {
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    padding: 35px;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.05)
        ),
        url("images/hero.png") center / cover;
    border-radius: 8px;
}

.hero-card-content p {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.hero-card-content h2 {
    max-width: 350px;
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-card-content a {
    font-weight: 700;
    font-size: 0.9rem;
}


/* =========================
   SERVICES
========================= */

.services {
    padding: 110px 0;
}

.services h2,
.about h2,
.reviews h2,
.cta h2 {
    max-width: 700px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 55px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card {
    min-height: 250px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 30px;
    border-radius: 7px;
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 18px;
}

.service-card p {
    color: #666666;
    font-size: 0.9rem;
}


/* =========================
   ABOUT
========================= */

.about {
    background: #eaeae7;
    padding: 110px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.about h2 {
    margin-bottom: 0;
}

.about-content > div:last-child {
    color: #555555;
}

.about-content p {
    margin-bottom: 22px;
}


/* =========================
   REVIEWS
========================= */

.reviews {
    background: #ffffff;
    padding: 110px 0;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.review {
    padding: 30px;
    background: #f7f7f5;
    border-radius: 7px;
}

.stars {
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.review p {
    color: #444444;
    margin-bottom: 25px;
}

.review strong {
    font-size: 0.85rem;
}

.demo-note {
    margin-top: 25px;
    color: #999999;
    font-size: 0.75rem;
}


/* =========================
   CTA
========================= */

.cta {
    background: #111111;
    color: #ffffff;
    text-align: center;
    padding: 120px 20px;
}

.cta h2 {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
}

.cta p:not(.eyebrow) {
    max-width: 550px;
    margin: 0 auto 35px;
    color: #aaaaaa;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #0b0b0b;
    color: #ffffff;
    padding: 35px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer p {
    color: #777777;
    font-size: 0.75rem;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 850px) {

    .nav {
        display: none;
    }

    .hero {
        padding: 75px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-card {
        min-height: 360px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 550px) {

    .nav-button {
        padding: 10px 14px;
        font-size: 0.75rem;
    }

    .hero-text h1 {
        font-size: 3.3rem;
    }

    .hero-trust {
        gap: 20px;
        flex-wrap: wrap;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* =========================
   CONTACT FORM
========================= */

.contact-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-intro h2 {
    margin-bottom: 25px;
}

.contact-intro > p:not(.eyebrow) {
    color: #aaaaaa;
}

.quote-form {
    background: #ffffff;
    color: #111111;
    padding: 35px;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #dddddd;
    border-radius: 5px;
    padding: 14px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fafafa;
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #111111;
}

.form-button {
    width: 100%;
    border: none;
    background: #111111;
    color: #ffffff;
    padding: 16px;
    border-radius: 5px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.form-button:hover {
    opacity: 0.85;
}

.form-note {
    text-align: center;
    margin-top: 15px;
    color: #999999;
    font-size: 0.7rem;
}


/* =========================
   CONTACT MOBILE
========================= */

@media (max-width: 850px) {

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}

@media (max-width: 550px) {

    .form-row {
        grid-template-columns: 1fr;
    }

    .quote-form {
        padding: 25px;
    }

}
/* Full-width, uncropped project imagery on desktop and mobile */
.case-study-image, .case-study-hero-image, .project-image, figure { min-width:0; }
.case-study-image img, .case-study-hero-image img, .project-image img { display:block; width:100%; height:auto !important; max-height:none !important; object-fit:contain !important; object-position:center; }
.case-study-hero-image .container, .case-study-image .container { width:min(1500px,calc(100% - 2 * var(--gutter))); max-width:none; }
@media(max-width:800px) { .case-study-hero-image .container, .case-study-image .container { width:calc(100% - 24px); } }

/* Responsive navigation repair: keep all primary links available on phones. */
.header { position:sticky; top:0; z-index:1000; background:rgba(17,17,17,.97); }
.nav-container { position:relative; }
.mobile-nav-toggle { display:none; width:44px; height:44px; border:1px solid #555; background:transparent; color:#fff; align-items:center; justify-content:center; flex-direction:column; gap:5px; cursor:pointer; }
.mobile-nav-toggle span { display:block; width:21px; height:2px; background:currentColor; transition:transform .2s; }
.mobile-nav-panel { display:none; }
@media(max-width:850px) {
 .nav-container { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; padding-block:12px; }
 .nav { display:none; }
 .mobile-nav-toggle { display:flex; margin-left:auto; }
 .nav-button { order:3; }
 .mobile-nav-panel { display:block; position:absolute; top:100%; left:0; right:0; background:#111; padding:0 22px; max-height:0; overflow:hidden; visibility:hidden; transition:max-height .25s ease, padding .25s ease, visibility .25s; border-top:1px solid transparent; }
 .mobile-nav-panel.is-open { max-height:80vh; overflow-y:auto; visibility:visible; padding:12px 22px 22px; border-top-color:#444; }
 .mobile-nav-panel a { display:block; padding:15px 0; color:#fff; border-bottom:1px solid #333; font-weight:600; }
 .mobile-nav-panel a:last-child { color:#c7f36a; }
}
@media(prefers-reduced-motion:reduce) { .mobile-nav-panel, .mobile-nav-toggle span { transition:none; } }
