
/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f3ee;
    color: #292929;
    line-height: 1.6;
}

/* ===== PROFESSIONAL HEADER ===== */

/* ===== HEADER ===== */


.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 100px;
    padding: 5px 3%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}


.brand {
    display: flex;
    align-items: center;
    flex: 0 1 420px;
    min-width: 0;
    max-width: 45%;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 420px;
    height: 120px;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 1;
    transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.02);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    color: #222;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
}

.main-nav a:hover {
    color: #ED7415;
}

.main-nav .contact-link {
    background: #191919;
    color: #fff;
    padding: 20px 27px;
    border-radius: 0;
}

.main-nav .contact-link:hover {
    background: #ED7415;
}


/* Logo link */
.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    max-width: 42%;
}

/* RNC logo size */
.brand-logo {
    display: block;
    width: 420px;
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    object-position: left center;
    transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.02);
}

/* ===== NAVIGATION ===== */
.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #252525;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
}

/* Animated orange underline */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 0;
    height: 2px;
    background: #f07818;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #e96d0b;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Contact button */
.main-nav .contact-link {
    background: #ed7415;
    color: #ffffff;
    padding: 11px 17px;
    border-radius: 4px;
}

.main-nav .contact-link::after {
    display: none;
}

.main-nav .contact-link:hover {
    background: #242424;
    color: #ffffff;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: #242424;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 7px 12px;
    font-size: 24px;
    cursor: pointer;
}

/* ===== SECTIONS ===== */
section {
    padding: 65px 8%;
    scroll-margin-top: 120px;
}

h2 {
    margin-bottom: 24px;
    color: #292929;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    line-height: 1.3;
}

p {
    margin-bottom: 15px;
}

/* ===== HERO SECTION-FULL-SCREEN HOUSE ===== */
.house-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 75px);
    overflow: hidden;
    padding: 0;
}

.house-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
}

/* Dark overlay across the image */
.house-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.42) 45%,
        rgba(0, 0, 0, 0.10) 100%
    );
    z-index: 1;
}

/* Text positioned on the left */
.house-overlay {
    position: absolute;
    top: 50%;
    left: 7%;
    transform: translateY(-50%);
    z-index: 2;

    width: 50%;
    max-width: 700px;
    padding: 0;
    color: #fff;
    text-align: left;
}

.house-overlay .house-tagline {
    color: #ED7415;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 20px;
}


.house-overlay h2 {
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(40px, 4.5vw, 70px);
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    margin-bottom: 22px;
}


.house-overlay > p:last-child {
    color: #F1F1F1;
    font-size: clamp(14px, 1.3vw, 18px);
    letter-spacing: 0.5px;
    margin-top: 20px;
}


/* ===== BUTTONS ===== */
button,
.btn {
    display: inline-block;
    background: #ed7415;
    color: #ffffff;
    border: 1px solid #ed7415;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease,
                color 0.3s ease,
                transform 0.3s ease;
}

.btn-center {
    display: flex;
    justify-content: center;
}

button:hover,
.btn:hover {
    background: #292929;
    border-color: #292929;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: #292929;
    border-color: #292929;
}

.btn-outline:hover {
    background: #292929;
    color: #ffffff;
}

/* ===== LISTS ===== */
ul {
    max-width: 600px;
    margin: auto;
}

li {
    margin: 10px 0;
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 35px;
    max-width: 650px;
    margin: auto;
    list-style-position: inside;
    padding: 0;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 40px;
}

.about-image img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
}

.about-text h3 {
    margin-bottom: 15px;
    font-size: 23px;
}

.about-list {
    padding-left: 20px;
    margin: 15px 0 25px;
}

/* ===== SECTION HEADINGS ===== */
.section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 35px;
}

.section-heading .eyebrow,
.eyebrow {
    color: #e96d0b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading p {
    margin-bottom: 10px;
}

/* ===== SERVICES ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.service-card {
    background: #ffffff;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.service-card img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.service-info {
    padding: 20px;
}

.service-info h3 {
    margin-bottom: 10px;
    font-size: 19px;
}

/* ===== PROJECT GALLERY ===== */
.projects {
    background: #dfdeda;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.project-filters .filter-btn {
    background: transparent;
    color: #292929;
    border: 1px solid #c9c3b9;
    padding: 9px 17px;
}

.project-filters .filter-btn.active,
.project-filters .filter-btn:hover {
    background: #ed7415;
    color: #ffffff;
    border-color: #ed7415;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.project-card {
    background: #eeebe4;
    overflow: hidden;
    line-height: 0;
}

.project-card img {
    display: block;
    width: 100%;
    height: 280px;

    object-fit: contain; /* Shows the entire image */
    object-position: center;

    margin: 0;
    padding: 0;
    border: none;

    transition: transform 0.4s ease;
}


.project-card:hover img {
    transform: scale(1.04);
}

.project-info {
    padding: 18px;
}

.project-info h3 {
    margin-bottom: 5px;
}

.project-note {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #666666;
}

/* JavaScript uses this class for filtering */
.project-card.hidden {
    display: none;
}

/* ===== WHY CHOOSE US ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.feature {
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    display: inline-block;
    margin-bottom: 12px;
    color: #ed7415;
    font-size: 30px;
}

.feature h3 {
    margin-bottom: 10px;
}

/* ===== CONTACT SECTION ===== */
#contact {
    background: #636363;
    color: #ffffff;
}

#contact h2,
#contact h3 {
    color: #ffffff;
}

#contact .section-heading p {
    color: #dddddd;
}

.contact-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 45px;
    max-width: 1000px;
    margin: auto;
}

.contact-details p {
    margin: 20px 0;
}

.contact-details a {
    color: #ffad62;
    text-decoration: none;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#contact-form label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    background: #ffffff;
    color: #292929;
    font-size: 14px;
}

#contact-form textarea {
    resize: vertical;
}

#contact-form .btn {
    margin-top: 12px;
    align-self: flex-start;
}

#form-message {
    margin-top: 10px;
}

/* ===== FOOTER ===== */
.footer,
footer {
    background: #312e2e;
    color: #ffffff;
    padding: 30px 8%;
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.footer h2 {
    color: #ed7415;
    font-size: 23px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffad62;
}

.copyright {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #444444;
    font-size: 13px;
}

/* ===== ACCESSIBILITY ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #ffad62;
    outline-offset: 3px;
}

/* ===== TABLET RESPONSIVENESS ===== */
@media (max-width: 900px) {
     .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand {
        max-width: 38%;
    }

    .brand-logo {
        width: 250px;
        height: 75px;
    }

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-content {
        gap: 25px;
    }
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 550px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .brand {
        max-width: 75%;
    }

    .brand-logo {
        width: 220px;
        height: 65px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 10px 0;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px;
        font-size: 13px;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav .contact-link {
        text-align: center;
    }

    section {
        padding: 40px 20px;
        scroll-margin-top: 100px;
    }

    h2 {
        font-size: 27px;
    }

    #home h2 {
        font-size: 30px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 230px;
    }

    #home img {
        max-height: 320px;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* ===== SMALL PHONES ===== */
@media (max-width: 420px) {
    .brand {
        max-width: 78%;
    }

    .brand-logo {
        width: 190px;
        height: 58px;
    }

    .menu-list {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .project-filters {
        gap: 7px;
    }

    .project-filters .filter-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* ===== MOBILE HERO ===== */

@media (max-width: 700px) {
    .site-header {
        height: 75px;
        padding: 5px 4%;
    }

    .brand-logo {
        width: 150px;
        height: 60px;
    }

    .house-hero {
        height: calc(100vh - 75px);
        min-height: 500px;
    }

    .house-hero-image {
        object-position: center;
    }

    .house-hero::after {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.25)
        );
    }

    .house-overlay {
        left: 6%;
        width: 88%;
    }

    .house-overlay h2 {
        font-size: clamp(42px, 11vw, 65px);
        line-height: 1.1;
    }

    .house-overlay .house-tagline {
        font-size: 11px;
        letter-spacing: 2px;
    }
}



/* ===== ACTIVE NAV LINK (SPA scroll tracking) ===== */
.main-nav a.active {
    color: #ed7415;
}

.main-nav a.active::after {
    width: 100%;
}

/* ===== FORM VALIDATION STYLES ===== */
#contact-form input:invalid:not(:placeholder-shown):not(:focus),
#contact-form select:invalid:not(:focus),
#contact-form textarea:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
}

#contact-form input:valid:not(:placeholder-shown),
#contact-form select:valid,
#contact-form textarea:valid:not(:placeholder-shown) {
    border-color: #27ae60;
}

.field-error {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: -4px;
    min-height: 0;
    overflow: hidden;
    transition: all 0.25s ease;
}

.field-error:empty {
    margin: 0;
}

/* ===== SMOOTH SCROLL-TO-TOP BUTTON ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ed7415;
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #292929;
}
