/* =====================================================
   Chelsea Contracting – Enhanced Final
   New full logo · Scroll reveals · Smooth interactions
   ===================================================== */

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

:root {
    /* DARK PREMIUM */
    --black: #050505;
    --black-2: #0a0a0a;
    --black-3: #111111;
    --charcoal: #1a1a1a;
    --surface: #0e0e0e;
    --surface-2: #151515;
    --white: #ffffff;
    --red: #ef233c;
    --red-dark: #d90429;
    --red-soft: rgba(239, 35, 60, 0.15);
    --text: #f5f5f5;
    --text-muted: #a0a0a0;
    --text-soft: #6b6b6b;
    --border: #2a2a2a;
    --border-strong: #3a3a3a;
    
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --header-h: 76px;
    --max: 1120px;
    --radius: 10px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    width: min(var(--max), 92%);
    margin-inline: auto;
}

/* ========== HEADER ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--header-h);
    border-bottom: 3px solid var(--red);
    transition: background 0.3s var(--ease);
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 1.5rem;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img {
    height: 56px;
    width: auto;
    max-width: 220px;
    background: var(--white);
    padding: 4px 10px;
    border-radius: 5px;
    object-fit: contain;
    transition: transform 0.25s var(--ease);
}

.header-logo:hover img {
    transform: scale(1.04);
}

.nav {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    position: relative;
    transition: color 0.2s var(--ease);
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.25s var(--ease);
}

.nav a:hover {
    color: var(--white);
}

.nav a:hover::after {
    width: 100%;
}

.header-phone {
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.55rem 1.15rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.header-phone:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(225, 29, 46, 0.4);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-btn span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.25s var(--ease);
}

.menu-btn.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0a0a0a;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.72) 42%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 5.5rem 0 6rem;
    max-width: 720px;
    color: var(--white);
}

.hero-text-block {
    max-width: 640px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--red);
    color: var(--white);
    padding: 0.45rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.35rem;
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.25rem;
    line-height: 1.7;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.7rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 7px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

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

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(225, 29, 46, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.9);
}

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

.btn-outline.dark {
    color: var(--text);
    border-color: var(--border);
}

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

.btn.full { width: 100%; }

/* ========== SECTIONS ========== */
.section {
    padding: 5.75rem 0;
}

.section-head {
    margin-bottom: 2.85rem;
    max-width: 560px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.55rem;
    color: var(--text);
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.08rem;
}

.section-head.light h2 { color: var(--white); }
.section-head.light p { color: rgba(255,255,255,0.68); }

/* ========== SERVICES ========== */
.services {
    background: var(--surface);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--black-3);
    border: 2px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.service-card:hover {
    border-color: var(--red);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    transform: translateY(-6px);
}

.service-icon {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 0.9rem;
    letter-spacing: -0.02em;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: 1.35rem;
    line-height: 1.6;
}

.service-link {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    padding-bottom: 2px;
    align-self: flex-start;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), letter-spacing 0.2s var(--ease);
}

.service-link:hover {
    color: var(--red);
    border-color: var(--red);
    letter-spacing: 0.02em;
}

/* ========== WHY ========== */
.why {
    background: linear-gradient(180deg, var(--black-2) 0%, var(--black-3) 100%);
    color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
}

.why-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--red);
    border-radius: 0 0 8px 8px;
    padding: 1.5rem 1.25rem;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.why-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-4px);
}

.why-item strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
    color: var(--white);
}

.why-item span {
    font-size: 0.93rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.5;
}

/* ========== ABOUT ========== */
.about {
    background: var(--surface-2);
}

.about-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3.25rem;
    align-items: center;
}

.about-logo {
    height: 160px;
    width: auto;
    max-width: 420px;
    background: var(--white);
    padding: 12px 16px;
    border-radius: 12px;
    border: 3px solid var(--red);
    box-shadow: 0 10px 32px rgba(0,0,0,0.1);
    object-fit: contain;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.about-logo:hover {
    transform: scale(1.03);
    box-shadow: 0 14px 40px rgba(0,0,0,0.14);
}

.about-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 0.95rem;
    font-size: 1.05rem;
    line-height: 1.65;
}

.abn {
    font-size: 0.9rem !important;
    color: var(--text-soft) !important;
    margin-top: 1.35rem;
}

/* ========== CONTACT ========== */
.contact {
    background: var(--surface);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.info-card {
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.3rem;
    background: var(--black-3);
    border: 2px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.info-card:hover:not(.static) {
    border-color: var(--red);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    transform: translateY(-3px);
}

.info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
}

.form {
    background: var(--black-3);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: box-shadow 0.3s var(--ease);
}

.form:focus-within {
    box-shadow: 0 0 0 3px var(--red-soft);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    margin-bottom: 1.15rem;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-strong);
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--black-2);
    color: var(--white);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-soft);
    opacity: 1;
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a0a0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.field select option {
    background: #111111;
    color: #ffffff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
    background: var(--black);
    color: var(--white);
}

.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.form-success {
    background: var(--white);
    border: 2px solid var(--red);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    animation: successPop 0.45s var(--ease);
}

@keyframes successPop {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    width: 54px;
    height: 54px;
    background: var(--red);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.form-success h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
    color: #111111;
}

.form-success p {
    color: #555555;
    margin-bottom: 1.35rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3.5rem 0 2.5rem;
    border-top: 3px solid var(--red);
    text-align: center;
}

.footer-logo {
    height: 90px;
    width: auto;
    max-width: 340px;
    margin: 0 auto 1.35rem;
    background: var(--white);
    padding: 8px 14px;
    border-radius: 8px;
    object-fit: contain;
}

.footer-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.footer-meta {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--red);
    font-weight: 600;
    transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 0.8; text-decoration: underline; }

.footer-links span {
    margin: 0 0.45rem;
    color: rgba(255,255,255,0.3);
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.38);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--black);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        border-bottom: 3px solid var(--red);
        transform: translateY(-130%);
        opacity: 0;
        pointer-events: none;
        transition: 0.3s var(--ease);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-btn { display: flex; }
    .header-phone { display: none; }

    .header-logo img {
        height: 44px;
        max-width: 160px;
    }

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

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

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-logo {
        margin: 0 auto;
        height: 110px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 78vh;
    }

    .hero h1 {
        font-size: 2.15rem;
    }
}

@media (max-width: 560px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn { width: 100%; }

    .hero {
        min-height: 72vh;
    }

    .hero-content {
        padding: 4rem 0 4.5rem;
    }

    .hero h1 {
        font-size: 1.95rem;
    }

    .hero-sub {
        font-size: 1.05rem;
    }
}
