
/* =====================================================
   QUALITY HOMES CONSTRUCTION
   PREMIUM ONYX DESIGN
   VERSION 1.3

   Version 1.3:
   - Added elegant slogan styling beneath CONSTRUCTION
   - Preserved historic house logo presentation
   - Retained all existing website styles
   - Retained lighter homepage photographic overlay
   - Retained desktop, tablet and mobile responsiveness
   ===================================================== */


/* =====================================================
   1. WEBSITE COLOURS AND GLOBAL SETTINGS
   ===================================================== */

:root {
    --onyx: #171b1d;
    --onyx-soft: #252b2d;
    --gold: #c6a77a;
    --gold-light: #e4d0ad;
    --white: #ffffff;
    --cream: #f7f5f1;
    --light: #eeece7;
    --text: #24282a;
    --muted: #72787a;
    --line: #dfddd7;

    --font: "Manrope", Arial, sans-serif;
    --body-font: "DM Sans", Arial, sans-serif;

    --max-width: 1240px;
}


/* =====================================================
   2. GLOBAL RESET AND TYPOGRAPHY
   ===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--body-font);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--font);
    line-height: 1.16;
}

h2 {
    font-size: clamp(2.3rem, 4.2vw, 4.2rem);
    font-weight: 600;
    letter-spacing: -0.055em;
}

h2 em {
    font-style: normal;
    font-weight: 400;
    color: #9f8766;
}

.container {
    width: min(
        var(--max-width),
        calc(100% - 52px)
    );
    margin-inline: auto;
}

.section {
    padding: 120px 0;
}

.section-label {
    display: inline-block;
    margin-bottom: 26px;
    color: #a18258;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.section-label-gold {
    color: var(--gold);
}


/* =====================================================
   3. ACCESSIBILITY
   ===================================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 1000;
    background: white;
    color: var(--onyx);
    padding: 10px 18px;
}

.skip-link:focus {
    top: 10px;
}


/* =====================================================
   4. HEADER AND HISTORIC COMPANY LOGO
   ===================================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.16);
}

.header-inner {
    max-width: 1460px;
    margin: auto;
    min-height: 106px;
    padding: 18px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.brand-mark {
    font-family: var(--font);
    font-size: 37px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.12em;
}

.brand-mark span,
.footer-brand span {
    color: var(--gold);
}

/* COMPANY NAME AND CONSTRUCTION LETTERING */

.brand-words {
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.4);
    padding-left: 13px;
    font-family: var(--font);
}

.brand-words strong {
    font-size: 14px;
    letter-spacing: 0.09em;
}

.brand-words small {
    font-size: 9px;
    letter-spacing: 0.38em;
    color: var(--gold-light);
}

/* =====================================================
   NEW VERSION 1.3 - COMPANY SLOGAN

   The slogan will appear directly below:
   QUALITY HOMES
   CONSTRUCTION

   "It's in the Name"

   The class .brand-tagline will be added to index.php
   when we update that file.
   ===================================================== */

.brand-tagline {
    display: block;
    margin-top: 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    letter-spacing: 0.015em;
    color: var(--gold-light);
    white-space: nowrap;
}

/* HISTORIC HOUSE SYMBOL */

.brand-logo {
    width: auto;
    max-width: 230px;
    max-height: 75px;
    object-fit: contain;
}


/* =====================================================
   5. DESKTOP NAVIGATION
   ===================================================== */

.primary-nav {
    display: flex;
    align-items: center;
    gap: 31px;
}

.primary-nav a {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.25s;
}

.primary-nav a:hover {
    color: var(--gold-light);
}

.primary-nav .nav-contact {
    border: 1px solid rgba(255,255,255,0.5);
    padding: 13px 19px;
}

.nav-contact span {
    margin-left: 10px;
    color: var(--gold);
}

.menu-toggle {
    display: none;
}


/* =====================================================
   6. HOMEPAGE HERO SECTION
   ===================================================== */

.hero {
    min-height: 790px;
    height: 95svh;
    max-height: 1050px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;

    background:
        radial-gradient(
            ellipse at 75% 45%,
            #455052 0%,
            transparent 52%
        ),
        linear-gradient(
            125deg,
            #111719,
            #343d40
        );
}

/* HERO PHOTOGRAPH */

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =====================================================
   7. LIGHTER HERO PHOTOGRAPHIC OVERLAY
   ===================================================== */

.hero-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10,15,17,0.72) 0%,
            rgba(10,15,17,0.50) 42%,
            rgba(10,15,17,0.18) 100%
        ),
        linear-gradient(
            0deg,
            rgba(10,15,17,0.30),
            transparent 48%
        );
}

/* SUBTLE ARCHITECTURAL GRID */

.hero-lines {
    position: absolute;
    inset: 0;
    opacity: 0.08;

    background-image:
        linear-gradient(
            90deg,
            white 1px,
            transparent 1px
        ),
        linear-gradient(
            white 1px,
            transparent 1px
        );

    background-size: 130px 130px;
    pointer-events: none;
}

/* HERO TEXT POSITION */

.hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-eyebrow {
    color: var(--gold-light);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.33em;
    margin-bottom: 30px;
}


/* =====================================================
   8. HERO MAIN HEADING AND DESCRIPTION
   ===================================================== */

.hero h1 {
    font-size: clamp(
        3.2rem,
        6.1vw,
        6.4rem
    );
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.075em;
    margin-bottom: 26px;
    max-width: 980px;
}

.hero h1 span {
    color: var(--gold-light);
}

.hero-description {
    font-size: clamp(
        16px,
        1.45vw,
        19px
    );
    font-weight: 400;
    max-width: 620px;
    line-height: 1.8;

    color: rgba(
        255,
        255,
        255,
        0.92
    );
}

/* SUBTLE TEXT SHADOW */

.hero h1,
.hero-description,
.hero-eyebrow,
.hero-footnote {
    text-shadow: 0 2px 18px rgba(0,0,0,0.28);
}


/* =====================================================
   9. HERO BUTTONS
   ===================================================== */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 17px 25px;
    min-height: 56px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.025em;

    transition:
        transform 0.25s,
        background 0.25s,
        color 0.25s;
}

.button:hover {
    transform: translateY(-3px);
}

.button-gold {
    color: #172023;
    background: var(--gold-light);
}

.button-gold:hover {
    background: white;
}

.button-outline {
    border: 1px solid rgba(255,255,255,0.65);
    color: white;
}

.button-outline:hover {
    background: white;
    color: var(--onyx);
}

.button-dark {
    background: var(--onyx);
    color: white;
}

.button-dark:hover {
    background: #40494b;
}

/* HERO FOOTNOTE */

.hero-footnote {
    margin-top: 65px;
    font-family: var(--font);
    font-size: 10px;
    letter-spacing: 0.20em;
    color: rgba(255,255,255,0.58);
}

/* VERTICAL DECORATIVE BRANDING */

.hero-side-text {
    position: absolute;
    right: 25px;
    top: 50%;
    writing-mode: vertical-rl;
    font-family: var(--font);
    font-size: 10px;
    letter-spacing: 0.4em;
    color: rgba(255,255,255,0.5);
}


/* =====================================================
   10. TRUST AND COMPANY VALUE STRIP
   ===================================================== */

.trust-strip {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 19px;
    padding: 40px 18px;
    border-right: 1px solid var(--line);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

.trust-item:first-child {
    padding-left: 0;
}

.trust-item:last-child {
    border-right: none;
}

.trust-number {
    color: #ad9067;
    font-size: 12px;
    font-weight: 800;
}


/* =====================================================
   11. ABOUT QUALITY HOMES
   ===================================================== */

.intro-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 90px;
}

.intro h2 {
    margin-bottom: 0;
}

.intro-copy {
    max-width: 540px;
}

.intro-copy p {
    color: #667073;
    font-size: 15px;
    line-height: 1.95;
}

.intro-copy .lead {
    font-size: 20px;
    color: var(--text);
    font-weight: 500;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--gold);
    font-size: 13px;
    font-weight: 700;
}


/* =====================================================
   12. SERVICES SECTION
   ===================================================== */

.services {
    background: var(--cream);
}

.section-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 58px;
}

.section-top h2 {
    margin-bottom: 0;
}

.section-top > p {
    max-width: 355px;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

/* SERVICE CARDS */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    position: relative;
    min-height: 375px;
    padding: 35px 32px;
    background: white;
    border: 1px solid #ece8e1;

    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(0,0,0,0.07);
    border-color: var(--gold);
}

.service-index {
    color: #a3865d;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.service-symbol {
    margin: 48px 0 25px;
    font-size: 48px;
    line-height: 1;
    font-weight: 300;
    color: var(--gold);
}

.service-card h3 {
    font-size: 20px;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.service-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.85;
    margin: 0;
}


/* =====================================================
   13. HOW WE WORK SECTION
   ===================================================== */

.approach {
    background: var(--onyx);
    color: white;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 110px;
}

.approach-left h2 {
    margin-bottom: 30px;
}

.approach-left h2 em {
    color: var(--gold-light);
}

.approach-left > p {
    max-width: 430px;
    color: #bdc4c5;
    line-height: 1.95;
    margin-bottom: 37px;
}

/* PROJECT MANAGEMENT BENEFITS */

.approach-item {
    display: flex;
    gap: 24px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255,255,255,0.13);
}

.approach-item:first-child {
    padding-top: 0;
}

.approach-number {
    color: var(--gold);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 800;
}

.approach-item h3 {
    font-size: 17px;
    letter-spacing: -0.02em;
    margin-bottom: 9px;
}

.approach-item p {
    margin-bottom: 0;
    color: #aab2b3;
    font-size: 14px;
    line-height: 1.8;
}


/* =====================================================
   14. PROJECT PHOTO GALLERY
   ===================================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    position: relative;
    height: 440px;
    overflow: hidden;
    background: #3b4447;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.06);
}

/* GALLERY IMAGE OVERLAY */

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;

    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,0.76),
            transparent 70%
        );
}

.project-overlay span {
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.project-overlay h3 {
    margin: 11px 0 0;
    font-size: 23px;
    letter-spacing: -0.04em;
}

/* GALLERY PLACEHOLDERS */

.project-placeholder {
    background:
        linear-gradient(
            135deg,
            #293336,
            #667073
        );
}

.placeholder-art {
    position: absolute;
    width: 65%;
    height: 60%;
    top: 13%;
    left: 18%;
    border: 1px solid rgba(255,255,255,0.16);
    transform: skewY(-8deg);
}

.placeholder-art::after {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(255,255,255,0.12);
}

.gallery-note {
    text-align: center;
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 13px;
}


/* =====================================================
   15. INTERNATIONAL CLIENTS
   ===================================================== */

.international {
    background: #293235;
    color: white;
    padding: 90px 0;
}

.international-inner {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 100px;
    align-items: center;
}

.international h2 {
    font-size: clamp(
        2.2rem,
        3.5vw,
        3.7rem
    );
    margin-bottom: 0;
}

.international h2 em {
    color: var(--gold-light);
}

.international p {
    color: #c7cdce;
    line-height: 1.95;
    margin: 0;
}


/* =====================================================
   16. CONTACT SECTION
   ===================================================== */

.contact-section {
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 100px;
}

.contact-grid h2 {
    margin-bottom: 25px;
}

.contact-grid > div:first-child > p {
    color: var(--muted);
    max-width: 440px;
    line-height: 1.9;
    margin-bottom: 34px;
}

/* CONTACT DETAILS */

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px 28px;
}

.contact-details > div {
    min-width: 0;
}

.contact-details span {
    display: block;
    margin-bottom: 10px;
    color: #a18258;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.contact-details a {
    display: block;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-details a:hover {
    color: #9f8056;
}

.contact-details p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}


/* =====================================================
   17. WEBSITE FOOTER
   ===================================================== */

.site-footer {
    background: #111517;
    color: white;
    padding-top: 75px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 65px;
}

.footer-brand {
    font-family: var(--font);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.footer-top p {
    font-size: 13px;
    color: #aeb5b7;
    margin: 14px 0 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 23px;
    font-size: 12px;
}

.footer-nav a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: #90999b;
    font-size: 11px;
}

.footer-bottom span:last-child {
    letter-spacing: 0.13em;
}


/* =====================================================
   18. SCROLL ANIMATIONS
   ===================================================== */

.js .reveal {
    opacity: 0;
    transform: translateY(24px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   19. TABLET AND SMALL DESKTOP SCREENS
   ===================================================== */

@media (max-width: 1050px) {

    .primary-nav {
        gap: 16px;
    }

    .approach-grid,
    .contact-grid {
        gap: 55px;
    }

    .trust-item {
        font-size: 11px;
        gap: 10px;
    }

}


/* =====================================================
   20. TABLET AND MOBILE NAVIGATION
   ===================================================== */

@media (max-width: 800px) {

    .section {
        padding: 80px 0;
    }

    .header-inner {
        padding: 16px 26px;
        min-height: 85px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        border: 0;
        background: transparent;
        width: 44px;
        height: 44px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        background: white;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 25px;
        background: var(--onyx);
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        border-top: 1px solid rgba(255,255,255,0.12);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        font-size: 14px;
    }

    /* MOBILE HERO */

    .hero {
        min-height: 690px;
        height: 88svh;
    }

    .hero h1 {
        font-size: clamp(
            3.1rem,
            9vw,
            5rem
        );
    }

    .hero-side-text {
        display: none;
    }

    /* MOBILE TRUST STRIP */

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-item {
        border-bottom: 1px solid var(--line);
        padding: 25px 15px;
    }

    .trust-item:first-child {
        padding-left: 15px;
    }

    /* MOBILE PAGE SECTIONS */

    .intro-grid,
    .approach-grid,
    .international-inner,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    /* MOBILE SERVICES */

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 260px;
    }

    .service-symbol {
        margin: 30px 0 18px;
    }

    /* MOBILE GALLERY */

    .project-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-top {
        align-items: start;
        flex-direction: column;
        gap: 15px;
    }

}


/* =====================================================
   21. SMALL MOBILE PHONES
   ===================================================== */

@media (max-width: 520px) {

    .container {
        width: calc(100% - 36px);
    }

    /* SMALL MOBILE LOGO */

    .brand-words strong {
        font-size: 11px;
    }

    .brand-words small {
        font-size: 8px;
    }

    .brand-mark {
        font-size: 31px;
    }

    .brand-logo {
        max-width: 175px;
        max-height: 60px;
    }

    /* SMALL MOBILE SLOGAN */

    .brand-tagline {
        font-size: 10px;
        margin-top: 2px;
    }

    /* SMALL MOBILE HERO */

    .hero {
        min-height: 730px;
    }

    .hero h1 {
        font-size: clamp(
            2.9rem,
            11.5vw,
            4.2rem
        );
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-footnote {
        margin-top: 35px;
        font-size: 9px;
    }

    /* SMALL MOBILE TRUST STRIP */

    .trust-item {
        font-size: 10px;
        gap: 8px;
    }

    .trust-number {
        font-size: 10px;
    }

    /* SMALL MOBILE GALLERY */

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        height: 390px;
    }

    /* SMALL MOBILE CONTACT */

    .contact-details {
        grid-template-columns: 1fr;
    }

    /* SMALL MOBILE FOOTER */

    .footer-top,
    .footer-bottom {
        flex-direction: column;
    }

    .footer-nav {
        gap: 16px;
    }

}


/* =====================================================
   22. ACCESSIBILITY - REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .button,
    .service-card,
    .project-card img {
        transition: none;
    }

}


/* =====================================================
   END OF QUALITY HOMES CONSTRUCTION STYLESHEET
   VERSION 1.3
   ===================================================== */
