/* ============================================
   MASIATE CONSTRUCTION — REDESIGN 2026
   ============================================ */

/* --- Design Tokens --- */
:root {
    --gold: #F5A623;
    --gold-dark: #D4891A;
    --dark: #1C1C1C;
    --dark-2: #2A2A2A;
    --dark-3: #333333;
    --light: #F7F7F5;
    --white: #FFFFFF;
    --text: #444444;
    --text-muted: #888888;
    --border: rgba(255,255,255,0.1);
    --transition: 0.3s ease;
    --radius: 4px;
    --shadow: 0 4px 24px rgba(0,0,0,0.10);
    --shadow-heavy: 0 8px 40px rgba(0,0,0,0.22);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

ul { list-style: none; }

/* --- Shared Utilities --- */
.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}

.section-label.light {
    color: var(--gold);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.2;
}

section {
    padding: 96px 8%;
    scroll-margin-top: 73px; /* desktop: accounts for sticky header height */
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

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

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

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--dark);
    padding: 8px 8%;
    border-bottom: 1px solid var(--border);
}

.top-bar-inner {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.top-bar-inner span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-inner i {
    color: var(--gold);
    font-size: 0.75rem;
}

/* ============================================
   HEADER
   ============================================ */
#main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: background var(--transition), box-shadow var(--transition);
}

#main-header.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 8%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.logo strong {
    font-weight: 900;
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dark-3);
    transition: color var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a:hover::after {
    color: var(--gold);
    width: 100%;
}

.main-nav a.cta-nav {
    background: var(--gold);
    color: var(--dark);
    padding: 10px 22px;
    border-radius: var(--radius);
}

.main-nav a.cta-nav::after { display: none; }

.main-nav a.cta-nav:hover {
    background: var(--gold-dark);
    color: var(--dark);
}

/* Hamburger — hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: calc(100vh - 73px);
    height: calc(100vh - 73px);
    display: flex;
    align-items: center;
    background: url('Skidsteer.jpg') center center / cover no-repeat;
    padding: 0 8%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.82) 45%, rgba(0,0,0,0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: var(--white);
}

.about-img-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.about-img-wrap::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    width: 60%;
    height: 60%;
    border: 4px solid var(--gold);
    border-radius: 4px;
    z-index: -1;
}

.about-img-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 8px;
}

.about-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text);
    margin-bottom: 18px;
    line-height: 1.85;
}

.about-text .btn {
    margin-top: 12px;
}

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

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 8px;
    border-bottom: 3px solid transparent;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: default;
}

.service-card:hover {
    border-bottom-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-heavy);
}

.icon-container {
    width: 64px;
    height: 64px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .icon-container {
    background: var(--gold);
    color: var(--dark);
}

.service-card:hover .icon-container svg {
    fill: var(--dark);
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   OUR WORK
   ============================================ */
.work {
    background: var(--white);
}

.work .section-header h2 {
    color: var(--dark);
}

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

.work-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.work-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-item:hover img {
    transform: scale(1.06);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: var(--white);
    transform: translateY(4px);
    transition: transform var(--transition);
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-overlay h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ============================================
   TEAM
   ============================================ */
.team {
    background: var(--light);
}

.team .section-header h2 {
    color: var(--dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.team-img-wrap {
    height: 300px;
    overflow: hidden;
}

.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrap img {
    transform: scale(1.04);
}

.team-info {
    padding: 28px 28px 32px;
}

.team-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    display: block;
    margin-bottom: 14px;
}

.team-info p {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--dark);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding: 96px 8%;
}

.contact-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-info > p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    margin-bottom: 36px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-detail-item i {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-detail-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-detail-item strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
}

.contact-detail-item span {
    color: var(--white);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px 36px;
    border-radius: 8px;
    box-shadow: var(--shadow-heavy);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E5E5E5;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--dark);
    background: #FAFAFA;
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
}

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

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

.form-status {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #111111;
    color: rgba(255,255,255,0.65);
    padding: 100px 8% 0;
}

.footer-inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 120px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo strong {
    font-weight: 900;
}

.footer-col > p {
    font-size: 0.88rem;
    line-height: 1.8;
    max-width: 260px;
    text-align: center;
}

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

/* Single-column for contact list */
.footer-col:last-child ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-col ul li i {
    color: var(--gold);
    width: 14px;
    flex-shrink: 0;
}

.footer-col ul a {
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
}

.footer-col ul a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-img-wrap img {
        height: 360px;
    }
}

@media (max-width: 900px) {
    section { padding: 72px 6%; }

    .contact {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 72px 6%;
    }

    .footer-inner {
        gap: 60px;
    }

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

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

@media (max-width: 768px) {

    /* Mobile: scroll offset for sticky header — set independently from desktop */
    section {
        scroll-margin-top: 73px;
    }
    .top-bar { display: none; }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--dark);
        z-index: 999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.2rem;
        color: var(--white);
    }

    .main-nav a.cta-nav {
        background: var(--gold);
        color: var(--dark);
        padding: 12px 32px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger span {
        background: var(--dark);
    }

    .hamburger.active span {
        background: var(--white);
    }

    .hero {
        min-height: 100svh;
        padding: 0 6%;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

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

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

    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 60px 0 60px;
    }

    .footer-col {
        width: 100%;
        max-width: 320px;
    }

    .footer-col ul {
        justify-content: center;
    }

    footer {
        padding: 60px 6% 0;
    }
}

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

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

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