/* Main Layout Styles */

/* Navigation */
#cs-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-warm);
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

#cs-navigation .cs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 85rem;
    margin: 0 auto;
    padding: 0 2rem;
}

#cs-navigation .cs-logo {
    display: flex;
    align-items: center;
}

#cs-navigation .cs-logo img {
    height: 3.25rem;
    width: auto;
}

#cs-navigation .cs-ul {
    display: flex;
    gap: 3rem;
}

#cs-navigation .cs-li {
    list-style: none;
}

#cs-navigation .cs-li-link {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0.05em;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

#cs-navigation .cs-li-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

#cs-navigation .cs-li-link:hover::after,
#cs-navigation .cs-li-link.cs-active::after {
    width: 100%;
}

#cs-navigation .cs-li-link:hover,
#cs-navigation .cs-li-link.cs-active {
    color: var(--primary);
}

#cs-navigation .cs-contact-group {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#cs-navigation .cs-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    transition: transform 0.3s ease;
}

#cs-navigation .cs-phone:hover {
    text-decoration: underline;
}

#cs-navigation .cs-social {
    display: flex;
    gap: 1rem;
}

#cs-navigation .cs-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #f7f7f7;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#cs-navigation .cs-social-icon {
    width: 1.125rem;
    height: 1.125rem;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

#cs-navigation .cs-social-link:hover {
    background-color: var(--primary);
}

#cs-navigation .cs-social-link:hover .cs-social-icon {
    filter: grayscale(0) brightness(0) invert(1);
    opacity: 1;
}

/* Mobile Toggle */
.cs-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.cs-toggle .cs-line {
    display: block;
    width: 2rem;
    height: 2px;
    background-color: var(--text-main);
    margin: 6px auto;
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    position: relative;
    height: 80vh;
    min-height: 40rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    overflow: hidden;
    margin-top: 5.5rem; /* Space for fixed nav */
}

#hero .cs-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#hero .cs-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

#hero .cs-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hero .cs-content {
    max-width: 50rem;
    padding: 0 2rem;
    z-index: 1;
}

#hero .cs-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--text-white);
    margin-bottom: 1rem;
}

#hero .cs-text {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 100%;
}

/* Projects / Gallery */
.gallery-section {
    padding: clamp(4rem, 10vw, 8rem) 1.5rem 0; /* Reduced bottom padding */
}

.widget-container {
    margin-top: 3rem;
}

/* About Side-by-Side */
.sbs-section {
    padding: var(--sectionPadding);
    background-color: var(--bg-white);
}

.sbs-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.sbs-image-group {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.sbs-image-group div {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
}

.sbs-image-group div:hover {
    transform: scale(1.02);
}

.sbs-image-group img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sbs-image-group .img-large {
    width: 85%;
    height: 35rem;
    z-index: 1;
}

.sbs-image-group .img-small {
    width: 60%;
    height: 25rem;
    position: absolute;
    bottom: -3rem;
    right: -2rem;
    z-index: 2;
    border: 12px solid var(--bg-white);
}

.cs-quote {
    margin-top: 4rem;
    padding: 3rem;
    border-radius: 1rem;
    background-color: var(--bg-warm);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.cs-quote::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: 2rem;
    font-family: var(--font-serif);
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

.cs-quote-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    display: block;
    margin-bottom: 1rem;
}

.cs-job {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Services / Architectural Joinery */
.services-section {
    padding: var(--sectionPadding);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
}

.service-card-content {
    padding: 2.5rem;
}

.service-card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Contact CTA Redesign */
.cta-section {
    padding: 0 1.5rem clamp(4rem, 10vw, 8rem); /* Reduced top padding */
}

.cta-card {
    background-color: var(--primary);
    color: var(--text-white);
    padding: clamp(3rem, 8vw, 6rem);
    border-radius: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4rem 8rem rgba(103, 14, 16, 0.2);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/northeast-logo.svg') no-repeat center;
    background-size: contain;
    opacity: 0.03;
    filter: brightness(0) invert(1);
    transform: scale(2) rotate(-15deg);
    pointer-events: none;
}

.cta-card .cs-title {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.cta-card .cs-text {
    color: rgba(255,255,255,0.8);
    margin: 0 auto 3rem;
    max-width: 40rem;
}

.cta-card .btn-outline {
    border-color: rgba(255,255,255,0.4);
    color: var(--text-white);
}

.cta-card .btn-outline:hover {
    background-color: var(--text-white);
    color: var(--primary);
}

/* Contact */
.contact-section {
    padding: var(--sectionPadding);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
}

.contact-info ul {
    margin-top: 3rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    border-radius: 1rem;
}

.contact-info li:hover {
    background-color: transparent;
}

.contact-info .icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--bg-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info li:hover .icon-box {
    background-color: #ffffff;
    border: 1px solid var(--primary);
}

.contact-info li:hover .cs-header + a {
    color: var(--primary);
}

.contact-form {
    background-color: var(--bg-white);
    padding: 4rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sans);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(103, 14, 16, 0.1);
}

.form-group textarea {
    height: 10rem;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--text-white);
    padding: 5rem 2rem 3rem;
}

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

footer .footer-logo {
    margin-bottom: 3rem;
}

footer .footer-logo img {
    height: 5rem;
    filter: brightness(0) invert(1);
}

footer .footer-nav {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
}

footer .footer-nav a:hover {
    color: #D4A373; /* Warm Gold */
}

footer .footer-bottom {
    width: 100%;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.7);
}

footer .cs-copyright a {
    transition: color 0.3s ease;
}

footer .cs-copyright a:hover {
    color: #D4A373; /* Warm Gold */
}

footer .social-links a img {
    transition: filter 0.3s ease, transform 0.3s ease;
}

footer .social-links a:hover img {
    filter: invert(74%) sepia(35%) saturate(442%) hue-rotate(351deg) brightness(93%) contrast(85%);
}

footer .social-links {
    display: flex;
    gap: 1.5rem;
}

/* Mobile Responsiveness */
@media screen and (max-width: 1024px) {
    #cs-navigation .cs-container {
        padding: 0 1.5rem;
    }

    #cs-navigation .cs-contact-group {
        display: none;
    }

    .cs-toggle {
        display: block;
    }

    #cs-navigation .cs-ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-warm);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-top: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
        display: flex;
    }

    #cs-navigation.cs-active .cs-ul {
        transform: scaleY(1);
    }

    #cs-navigation .cs-li-link {
        font-size: 1.125rem;
    }

    .sbs-section .container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .sbs-section .cs-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sbs-section .cs-text {
        text-align: center;
    }

    .sbs-image-group {
        padding: 0;
        width: 100%;
        max-width: 30rem;
        margin: 0 auto;
    }

    .sbs-image-group .img-large {
        width: 90%;
        height: 25rem;
    }

    .sbs-image-group .img-small {
        width: 65%;
        height: 20rem;
        right: 0;
        bottom: -2rem;
        border-width: 8px;
    }
    
    .contact-grid .contact-info {
        order: 1;
    }
    
    .contact-grid .contact-form {
        order: 2;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
    }
}

@media screen and (max-width: 480px) {
    #hero {
        height: auto;
        padding: 6rem 1rem;
    }

    .contact-form {
        padding: 2rem;
    }

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