body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #222;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   Header & Navigation
   ========================= */

header {
    background-color: #ffffff;
    padding: 25px 60px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-right: 10px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #222;
    text-decoration: none;
    font-size: 16px;
}

nav a:hover {
    color: #777;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}


/* =========================
   About Page
   ========================= */

/* About Page - Overall Layout */
main.about-page {
    padding: 0;
}

main.about-page > section {
    max-width: none;
    margin: 0;
    padding: 80px max(60px, calc((100% - 1100px) / 2));
    box-sizing: border-box;
}

main h1 {
    font-size: 48px;
    margin-bottom: 30px;
}

main h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

main p {
    color: #666;
    line-height: 1.7;
    font-size: 18px;
}

main li {
    color: #666;
    line-height: 1.8;
    font-size: 18px;
}

.about-intro {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.about-intro-content {
    flex: 1;
}

.about-intro h1 {
    font-size: 52px;
    margin-bottom: 30px;
}

.about-intro p {
    font-size: 20px;
}

.about-image {
    flex: 1;
}

.about-intro .about-image {
    padding-top: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.about-services h2,
.about-expertise h2 {
    font-size: 34px;
    margin-bottom: 25px;
}

.about-expertise {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.about-expertise-content {
    flex: 1.1;
}

.about-expertise .about-image {
    flex: 0.9;
    padding-top: 30px;
}


/* =========================
   About Page - What We Do
   ========================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 30px;
    margin-top: 35px;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 30px;
    min-height: 80px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card h3 {
    font-size: 22px;
    margin: 0;
    line-height: 1.4;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


/* =========================
   Homepage
   ========================= */

.hero {
    text-align: center;
    padding: 120px 20px;
    background-color: #ffffff;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero p {
    font-size: 22px;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #222;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #444;
    transform: translateY(-2px);
}


/* Homepage - Services */

.services {
    padding: 90px 40px 60px;
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 55px;
}

.service-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
}

.service {
    background-color: white;
    padding: 35px 30px;
    width: 320px;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service h3 {
    font-size: 22px;
    margin: 0 0 15px;
}

.service p {
    color: #666;
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}


/* Homepage - About */

.about {
    padding: 70px 60px 100px;
    background-color: #ffffff;
}

.about > h2 {
    max-width: 1200px;
    margin: 0 auto 45px;
    text-align: center;
    font-size: 36px;
}

.about-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 45px;
}

.about-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f2f2f2;
    overflow: hidden;
}

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

.about-content {
    padding-right: 20px;
}


.about-intro {
    margin-bottom: 35px;
    font-size: 19px;
    line-height: 1.7;
    color: #555;
}

.about-item {
    margin-bottom: 25px;
}

.about-item h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 600;
}

.about-item p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #666;
}

.about-content .button {
    display: inline-block;
    margin-top: 10px;
}


/* Homepage - Portfolio */

.portfolio {
    padding: 80px 60px;
    background-color: #f5f5f5;
    text-align: center;
}

.portfolio h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.portfolio-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.project {
    background-color: white;
    width: 400px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.project img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project:hover img {
    transform: scale(1.05);
}

.project h3 {
    font-size: 22px;
    margin: 20px 20px 10px;
}

.project p {
    color: #666;
    margin: 0 20px 25px;
}


/* Homepage - Contact */

.contact {
    padding: 100px 20px;
    text-align: center;
    background-color: #222;
    color: white;
}

.contact h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.contact p {
    max-width: 650px;
    margin: 0 auto 35px;
    font-size: 18px;
    line-height: 1.6;
}

.contact .button {
    background-color: white;
    color: #222;
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        color: #222;
    }

    header {
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 18px;
        white-space: nowrap;
    }

    .logo img {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 20px;
        background-color: white;
        padding: 20px 0;
    }

    nav.active {
        display: flex;
    }


    /* About Page - Mobile */

    .about-intro,
    .about-expertise {
        flex-direction: column;
        gap: 30px;
    }

    .about-intro,
    .about-expertise {
        text-align: left;
    }

    .about-image {
        width: 100%;
    }

    .about-intro .about-image,
    .about-expertise .about-image {
        padding-top: 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .service-card {
        width: 100%;
        min-height: 70px;
        padding: 25px;
    }


    /* Homepage - Mobile */

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

    .services {
        padding: 60px 20px;
    }

    .services h2 {
        font-size: 32px;
    }

    .service-container {
        flex-direction: column;
        align-items: center;
    }

    .service {
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
    }

    .portfolio {
        padding: 60px 20px;
    }

    .portfolio h2 {
        font-size: 32px;
    }

    .project {
        width: 100%;
        max-width: 400px;
    }

    .contact {
        padding: 70px 20px;
    }

    .contact h2 {
        font-size: 32px;
    }
  
}/* =========================================
   Project Detail Page
   Modern Minimalist Residence
   ========================================= */

/* Project Hero */
.project-hero {
    display: grid;
    grid-template-columns: 38% 62%;
    min-height: 600px;
    background-color: #ffffff;
}

.project-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 70px;
}

.project-number,
.section-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 18px;
}

.project-hero-text h1 {
    font-size: 50px;
    line-height: 1.12;
    font-weight: 400;
    margin: 0 0 25px;
    max-width: 480px;
}

.project-category {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.project-hero-image {
    height: 600px;
    overflow: hidden;
}

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


/* Project Overview */
.project-overview {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 60px;
}

.project-overview-text h2,
.project-section-heading h2 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 30px;
}

.project-overview-text p:not(.section-label) {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 680px;
    margin-bottom: 20px;
}

.project-information {
    border-top: 1px solid #ddd;
}

.project-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 0;
    border-bottom: 1px solid #ddd;
}

.project-info-item span {
    font-size: 13px;
    color: #888;
}

.project-info-item strong {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}


/* Floor Plan */
.project-floor-plan {
    background-color: #f5f5f5;
    padding: 100px 60px;
}

.project-section-heading {
    max-width: 1200px;
    margin: 0 auto 50px;
}

.floor-plan-image {
    max-width: 1100px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
}

.floor-plan-image img {
    width: 100%;
    height: auto;
    display: block;
}


/* Project Gallery */
.project-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 60px;
}

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

.gallery-item {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Back to Our Work */
.project-back {
    text-align: center;
    padding: 30px 20px 100px;
}

.project-back a {
    color: #222;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
}

.project-back a:hover {
    text-decoration: underline;
}
/* =========================================
   Project Detail Page - Mobile
   ========================================= */

@media (max-width: 768px) {

    /* Project Hero */
    .project-hero {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .project-hero-image {
        order: 1;
        width: 100%;
        height: 300px;
    }

    .project-hero-text {
        order: 2;
        padding: 50px 25px 60px;
    }

    .project-hero-text h1 {
        font-size: 38px;
        line-height: 1.12;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .project-category {
        font-size: 15px;
    }


    /* Project Overview */
    .project-overview {
        display: block;
        max-width: none;
        padding: 70px 25px;
    }

    .project-overview-text h2,
    .project-section-heading h2 {
        font-size: 32px;
    }

    .project-overview-text p:not(.section-label) {
        font-size: 15px;
        line-height: 1.8;
    }

    .project-information {
        margin-top: 60px;
    }


    /* Floor Plan */
    .project-floor-plan {
        padding: 70px 20px;
    }

    .project-section-heading {
        margin-bottom: 35px;
    }

    .floor-plan-image {
        padding: 15px;
    }


    /* Project Gallery */
    .project-gallery {
        max-width: none;
        padding: 70px 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .project-back {
        padding: 20px 20px 70px;
    }

}
.view-all-projects {
    text-align: center;
    margin-top: 40px;
}

.view-all-projects a {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid #222;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.view-all-projects a:hover {
    background-color: #222;
    color: #fff;
}


/* ================================
   Our Work Page
   ================================ */

.portfolio-page {
    padding: 120px 8% 100px;
    text-align: center;
}

.portfolio-page h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.portfolio-intro {
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 17px;
    line-height: 1.7;
    color: #555;
}

.portfolio-page .portfolio-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-page .project {
    text-align: left;
}

.portfolio-page .project a {
    display: block;
}

.portfolio-page .project img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.portfolio-page .project h3 {
    margin-top: 18px;
    margin-bottom: 0;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.4;
}

.portfolio-page .project p {
    display: none;
}



/* ================================
   Our Work CTA
   ================================ */

.portfolio-cta {
    margin-top: 120px;
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
}

.portfolio-cta h2 {
    margin-bottom: 15px;
    font-size: 32px;
    font-weight: 500;
}

.portfolio-cta p {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.portfolio-cta .button {
    display: inline-block;
}
/* ================================
   Our Work - Introduction
   ================================ */

.portfolio-page > h2 {
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: 500;
}

.portfolio-intro {
    max-width: 760px;
    margin: 0 auto 60px;
    font-size: 17px;
    line-height: 1.8;
    color: #555;
}


/* ================================
   Our Work - Stats
   ================================ */

.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin: 20px auto 90px;
    text-align: center;
}

.portfolio-stats .stat {
    display: flex;
    flex-direction: column;
}

.portfolio-stats strong {
    font-size: 38px;
    font-weight: 500;
    line-height: 1.2;
}

.portfolio-stats span {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* ================================
   Why Work With XHY
   ================================ */

.why-xhy {
    margin: 0 auto 120px;
    max-width: 1200px;
}

.why-xhy > h2 {
    margin-bottom: 50px;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
}

.why-xhy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-xhy-item {
    padding: 30px 25px;
    border-top: 1px solid #222;
    text-align: left;
}

.why-xhy-item h3 {
    margin-bottom: 15px;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.4;
}

.why-xhy-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}


/* ================================
   Featured Projects
   ================================ */

.featured-projects {
    margin-top: 20px;
}

.featured-projects > h2 {
    margin-bottom: 50px;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
}
/* ================================
   Our Work - Mobile
   ================================ */

@media (max-width: 768px) {

    .portfolio-page {
        padding: 90px 6% 70px;
    }

    .portfolio-page h1 {
        font-size: 36px;
    }

    .portfolio-page > h2 {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .portfolio-intro {
        font-size: 15px;
        margin-bottom: 45px;
    }


    /* Stats */

    .portfolio-stats {
        display: flex;
        justify-content: space-between;
        gap: 0;
        margin: 20px 0 80px;
        width: 100%;
    }

    .portfolio-stats .stat {
        flex: 1;
    }

    .portfolio-stats strong {
        font-size: 30px;
    }

    .portfolio-stats span {
        font-size: 11px;
    }


    /* Why Work With XHY */

    .why-xhy {
        margin-bottom: 80px;
    }

    .why-xhy > h2 {
        font-size: 26px;
        margin-bottom: 35px;
    }

    .why-xhy-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .why-xhy-item {
        padding: 25px 20px;
    }

    .why-xhy-item h3 {
        font-size: 19px;
    }


    /* Featured Projects */

    .featured-projects {
        margin-top: 20px;
    }

    .featured-projects > h2 {
        font-size: 26px;
        margin-bottom: 35px;
    }

    .portfolio-page .portfolio-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .portfolio-page .project h3 {
        font-size: 20px;
    }


    /* CTA */

    .portfolio-cta {
        margin-top: 80px;
        padding: 60px 20px;
    }

    .portfolio-cta h2 {
        font-size: 27px;
    }

    .portfolio-cta p {
        font-size: 15px;
    }
}
/* =========================================
   Homepage Hero
   ========================================= */

.hero {
    display: flex;
    align-items: center;
    gap: 4%;
    min-height: 520px;
    padding: 0 0 0 5%;
    box-sizing: border-box;
}

.hero-content {
    width: 40%;
    flex-shrink: 0;
    text-align: center;
    transform: translateY(-15px);
}

.hero-content h1 {
    margin: 0 0 24px;
    font-size: 46px;
    line-height: 1.15;
}

.hero-content p {
    margin: 0 0 30px;
    font-size: 19px;
    line-height: 1.6;
}

.hero-image {
    width: 56%;
    flex-shrink: 0;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* =========================================
   Hero - Mobile
   ========================================= */

@media (max-width: 768px) {

    .hero {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
        min-height: auto;
        padding: 50px 20px 60px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 18px;
        line-height: 1.55;
        margin-bottom: 28px;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        width: 100%;
        height: auto;
    }
}
/* =========================================
   About Page - Section Layout
   ========================================= */

/* 1. About XHY: light grey background */
main.about-page > .about-intro {
    display: flex;
    align-items: center;
    gap: 60px;
    background-color: #f5f5f5;
}

main.about-page .about-intro-content,
main.about-page .about-intro .about-image {
    flex: 1;
    min-width: 0;
}

main.about-page .about-intro h1 {
    font-size: 48px;
    line-height: 1.15;
    margin: 0 0 25px;
}

main.about-page .about-intro p {
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 18px;
}

main.about-page .about-intro .about-image {
    padding-top: 0;
}

main.about-page .about-intro .about-image img {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 4px;
}


/* 2. Company statistics: white background */

main.about-page > .portfolio-stats {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 45px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 260px;
    box-sizing: border-box;
    background-color: #ffffff;
    text-align: center;
}


main.about-page .portfolio-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

main.about-page .portfolio-stats strong {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 500;
}

main.about-page .portfolio-stats span {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* 3. Business overview: white background */
main.about-page > .about-services {
    background-color: #ffffff;
}

main.about-page .about-services-content {
    max-width: 850px;
    margin: 0 auto;
}

main.about-page .about-services h2 {
    font-size: 34px;
    line-height: 1.25;
    margin: 0 0 25px;
}

main.about-page .about-services p {
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 18px;
}


/* 4. Practical Design. Reliable Support.: light grey */
main.about-page > .about-expertise {
    display: flex;
    align-items: center;
    gap: 60px;
    background-color: #f5f5f5;
}

main.about-page .about-expertise-content {
    flex: 1.1;
    min-width: 0;
}

main.about-page .about-expertise .about-image {
    flex: 0.9;
    min-width: 0;
    padding-top: 0;
}

main.about-page .about-expertise .about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

main.about-page .about-expertise h2 {
    font-size: 34px;
    line-height: 1.25;
    margin: 0 0 25px;
}

main.about-page .about-expertise p {
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 18px;
}


/* 5. Why Work With XHY: white background */
main.about-page > .why-xhy {
    background-color: #ffffff;
}

main.about-page .why-xhy > h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 45px;
}

main.about-page .why-xhy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

main.about-page .why-xhy-item {
    padding: 25px 20px;
    border-top: 1px solid #222;
    text-align: left;
}

main.about-page .why-xhy-item h3 {
    font-size: 18px;
    line-height: 1.45;
    font-weight: 500;
    margin: 0 0 14px;
}

main.about-page .why-xhy-item p {
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}


/* 6. About CTA: dark background */
main.about-page > .about-cta {
    text-align: center;
    background-color: #222222;
    color: #ffffff;
}

main.about-page .about-cta h2 {
    font-size: 34px;
    font-weight: 500;
    margin: 0 0 18px;
}

main.about-page .about-cta p {
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 17px;
    line-height: 1.7;
    color: #e5e5e5;
}

main.about-page .about-cta .button {
    background-color: #ffffff;
    color: #222222;
}

main.about-page .about-cta .button:hover {
    background-color: #eeeeee;
}
/* =========================================
   About Page - Mobile
   ========================================= */

@media (max-width: 768px) {

    main.about-page > section {
        padding: 55px 25px;
    }

    /* About XHY */
    main.about-page > .about-intro {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    main.about-page .about-intro h1 {
        font-size: 38px;
        margin-bottom: 20px;
    }

    main.about-page .about-intro p {
        font-size: 17px;
    }

    /* Statistics */
    main.about-page > .portfolio-stats {
        width: 100%;
        max-width: none;
        padding: 35px 12px;
        gap: 10px;
    }

    main.about-page .portfolio-stats .stat {
        flex: 1;
        min-width: 0;
    }

    main.about-page .portfolio-stats strong {
        font-size: 27px;
    }

    main.about-page .portfolio-stats span {
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    /* Business overview */
    main.about-page .about-services h2,
    main.about-page .about-expertise h2 {
        font-size: 29px;
    }

    main.about-page .about-services p,
    main.about-page .about-expertise p {
        font-size: 16px;
    }

    /* Practical Design */
    main.about-page > .about-expertise {
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
    }

    /* Why Work With XHY */
    main.about-page .why-xhy > h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    main.about-page .why-xhy-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    main.about-page .why-xhy-item {
        padding: 22px 10px;
    }

    /* CTA */
    main.about-page .about-cta h2 {
        font-size: 29px;
    }

    main.about-page .about-cta p {
        font-size: 16px;
    }
}
main.about-page .about-intro h1 {
    color: #222;
}


.about-image {
    width: 100%;
    overflow: hidden;
    background: transparent;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* =========================================
   Service Page - Hero
   ========================================= */

.service-hero {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    overflow: hidden;
}

/* Top and bottom image strips */

.service-hero-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    background-color: #ffffff;
}

.service-hero-strip img {
    display: block;
    width: 100%;
    height: clamp(160px, 20vw, 280px);
    object-fit: cover;
    object-position: center;
}

/* Central text area */

.service-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 48px 40px;
    box-sizing: border-box;
    background-color: #ffffff;
    text-align: center;
}

.service-hero-eyebrow {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.5;
    color: #777777;
}

.service-hero-content h1 {
    max-width: 1100px;
    margin: 0 0 18px;
    font-size: clamp(32px, 3.2vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    color: #222222;
}

.service-hero-content h2 {
    margin: 0 0 14px;
    font-size: clamp(17px, 1.6vw, 22px);
    font-weight: 400;
    line-height: 1.5;
    color: #444444;
}

.service-hero-description {
    max-width: 680px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #666666;
}

/* Tablet */

@media (max-width: 900px) {
    .service-hero-strip img {
        height: clamp(120px, 18vw, 170px);
    }

    .service-hero-content {
        min-height: 270px;
        padding: 42px 28px;
    }

    .service-hero-content h1 {
        font-size: 36px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .service-hero-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3px;
    }

    .service-hero-strip img {
        height: clamp(105px, 34vw, 155px);
    }

    .service-hero-content {
        min-height: 250px;
        padding: 38px 22px;
    }

    .service-hero-eyebrow {
        margin-bottom: 14px;
        font-size: 11px;
    }

    .service-hero-content h1 {
        margin-bottom: 14px;
        font-size: 30px;
        line-height: 1.2;
    }

    .service-hero-content h2 {
        margin-bottom: 12px;
        font-size: 17px;
    }

    .service-hero-description {
        font-size: 14px;
        line-height: 1.7;
    }
}

/* =========================================
   Service Page - Our Design Services
   ========================================= */

.service-offerings {
    width: 100%;
    padding: 80px 6% 90px;
    box-sizing: border-box;
    background-color: #ffffff;
}

/* Section introduction */

.service-offerings-intro {
    max-width: 760px;
    margin: 0 auto 64px;
    text-align: center;
}

.service-section-label {
    margin: 0 0 14px;
    color: #777777;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.5;
}

.service-offerings-intro h2 {
    margin: 0 0 18px;
    color: #222222;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 600;
    line-height: 1.2;
}

.service-offerings-intro > p:last-child {
    max-width: 660px;
    margin: 0 auto;
    color: #666666;
    font-size: 16px;
    line-height: 1.8;
}

/* Individual service rows */

.service-offering {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(36px, 6vw, 84px);
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 0 64px;
}

.service-offering + .service-offering {
    padding-top: 64px;
    border-top: 1px solid #eeeeee;
}

.service-offering:last-child {
    padding-bottom: 0;
}

/* Alternate image and text positions */

.service-offering-reverse .service-offering-image {
    order: 2;
}

.service-offering-reverse .service-offering-content {
    order: 1;
}

/* Service images */

.service-offering-image {
    min-width: 0;
    overflow: hidden;
    background-color: #f3f3f3;
}

.service-offering-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

/* Service text */

.service-offering-content {
    min-width: 0;
}

.service-offering-number {
    margin: 0 0 18px;
    color: #777777;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.5;
}

.service-offering-content h3 {
    margin: 0 0 20px;
    color: #222222;
    font-size: clamp(25px, 2.3vw, 34px);
    font-weight: 600;
    line-height: 1.25;
}

.service-offering-content > p:not(.service-offering-number) {
    margin: 0 0 22px;
    color: #666666;
    font-size: 15px;
    line-height: 1.85;
}

.service-offering-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-offering-content li {
    position: relative;
    margin: 0;
    padding: 10px 0 10px 24px;
    border-bottom: 1px solid #eeeeee;
    color: #444444;
    font-size: 14px;
    line-height: 1.6;
}

.service-offering-content li::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #999999;
}

/* Tablet */

@media (max-width: 900px) {
    .service-offerings {
        padding: 64px 5% 72px;
    }

    .service-offerings-intro {
        margin-bottom: 48px;
    }

    .service-offering {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 30px;
        padding-bottom: 48px;
    }

    .service-offering + .service-offering {
        padding-top: 48px;
    }

    .service-offering-content h3 {
        font-size: 27px;
    }

    .service-offering-content > p:not(.service-offering-number) {
        font-size: 14px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .service-offerings {
        padding: 48px 22px 54px;
    }

    .service-offerings-intro {
        margin-bottom: 38px;
    }

    .service-offerings-intro h2 {
        font-size: 30px;
    }

    .service-offerings-intro > p:last-child {
        font-size: 14px;
        line-height: 1.8;
    }

    .service-offering {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-bottom: 38px;
    }

    .service-offering + .service-offering {
        padding-top: 38px;
    }

    .service-offering-reverse .service-offering-image,
    .service-offering-reverse .service-offering-content {
        order: initial;
    }

    .service-offering-content h3 {
        margin-bottom: 16px;
        font-size: 26px;
    }

    .service-offering-number {
        margin-bottom: 12px;
    }

    .service-offering-content > p:not(.service-offering-number) {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .service-offering-content li {
        padding-top: 9px;
        padding-bottom: 9px;
        font-size: 14px;
    }

    .service-offering-content li::before {
        top: 17px;
    }
}

/* =========================================
   Service Page - Our Process
   ========================================= */

.service-process {
    padding: 84px 5% 90px;
    background-color: #f7f7f7;
    box-sizing: border-box;
}

/* Section introduction */

.service-process-intro {
    max-width: 760px;
    margin: 0 auto 64px;
    text-align: center;
}

.service-process-intro h2 {
    margin: 0 0 18px;
    color: #222222;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 600;
    line-height: 1.2;
}

.service-process-intro > p:last-child {
    max-width: 620px;
    margin: 0 auto;
    color: #666666;
    font-size: 16px;
    line-height: 1.8;
}

/* Seven-step process */

.service-process-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.service-process-step {
    position: relative;
    min-width: 0;
}

/* Number markers and connecting line */

.service-process-marker {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.service-process-marker::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 48px;
    right: -20px;
    height: 1px;
    background-color: #d5d5d5;
    transform: translateY(-50%);
}

.service-process-step:last-child .service-process-marker::after {
    display: none;
}

.service-process-marker span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid #bdbdbd;
    border-radius: 50%;
    background-color: #f7f7f7;
    color: #333333;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Step content */

.service-process-step h3 {
    margin: 0 0 12px;
    color: #222222;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}

.service-process-step p {
    margin: 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.8;
}

/* Tablet and smaller desktop screens */

@media (max-width: 1100px) {
    .service-process {
        padding: 70px 5% 76px;
    }

    .service-process-intro {
        margin-bottom: 48px;
    }

    .service-process-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 42px;
        column-gap: 24px;
    }

    .service-process-marker::after {
        right: -24px;
    }

    .service-process-step:nth-child(4) .service-process-marker::after,
    .service-process-step:last-child .service-process-marker::after {
        display: none;
    }

    .service-process-step h3 {
        font-size: 17px;
    }

    .service-process-step p {
        font-size: 14px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .service-process {
        padding: 52px 22px 58px;
    }

    .service-process-intro {
        margin-bottom: 38px;
    }

    .service-process-intro h2 {
        font-size: 30px;
    }

    .service-process-intro > p:last-child {
        font-size: 14px;
    }

    .service-process-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .service-process-step {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 20px;
        padding-bottom: 30px;
    }

    .service-process-marker {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-items: flex-start;
        margin: 0;
    }

    .service-process-marker span {
        background-color: #f7f7f7;
    }

    .service-process-marker::after {
        top: 44px;
        bottom: -30px;
        left: 21px;
        right: auto;
        width: 1px;
        height: auto;
        transform: none;
    }

    .service-process-step:nth-child(4) .service-process-marker::after {
        display: block;
    }

    .service-process-step:last-child {
        padding-bottom: 0;
    }

    .service-process-step:last-child .service-process-marker::after {
        display: none;
    }

    .service-process-step h3 {
        grid-column: 2;
        margin: 1px 0 8px;
        font-size: 18px;
    }

    .service-process-step p {
        grid-column: 2;
        font-size: 14px;
        line-height: 1.75;
    }
}

/* =========================================
   Service Page - Final CTA
   ========================================= */

.service-cta {
    padding: 84px 24px;
    box-sizing: border-box;
    background-color: #292929;
    color: #ffffff;
    text-align: center;
}

.service-cta-content {
    max-width: 760px;
    margin: 0 auto;
}

.service-cta-eyebrow {
    margin: 0 0 18px;
    color: #c5c5c5;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.5;
}

.service-cta-content h2 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 600;
    line-height: 1.2;
}

.service-cta-content > p:not(.service-cta-eyebrow) {
    margin: 0 0 32px;
    color: #dddddd;
    font-size: 16px;
    line-height: 1.8;
}

.service-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 26px;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    color: #292929;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease,
                color 0.2s ease;
}

.service-cta-button:hover {
    background-color: transparent;
    color: #ffffff;
}

.service-cta-button span {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 600px) {
    .service-cta {
        padding: 60px 24px;
    }

    .service-cta-content h2 {
        font-size: 30px;
    }

    .service-cta-content > p:not(.service-cta-eyebrow) {
        font-size: 14px;
        margin-bottom: 26px;
    }

    .service-cta-button {
        min-height: 46px;
        padding: 0 22px;
    }
}

/* =========================================
   Contact Page - Overall Layout
   ========================================= */

main.contact-page {
    padding: 0;
}

main.contact-page > section {
    box-sizing: border-box;
    width: 100%;
}


/* =========================================
   Contact Page - Hero
   ========================================= */

.contact-hero {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 80px;
    padding: 100px max(60px, calc((100% - 1200px) / 2));
    background-color: #f5f5f5;
}

.contact-hero-content {
    max-width: 550px;
}

.contact-eyebrow {
    margin: 0 0 18px;
    color: #777777;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.5;
}

.contact-hero-content h1 {
    margin: 0 0 25px;
    color: #222222;
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.15;
}

.contact-hero-content > p:last-child {
    margin: 0;
    color: #666666;
    font-size: 17px;
    line-height: 1.85;
}


/* Contact Information Cards */

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

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e9e9e9;
}

.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    background-color: #f2f2f2;
    color: #333333;
    font-size: 23px;
}

.contact-card h2 {
    margin: 0 0 10px;
    color: #222222;
    font-size: 21px;
    font-weight: 600;
}

.contact-card p {
    margin: 0 0 14px;
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
}

.contact-card a {
    color: #222222;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-card a:hover {
    text-decoration: underline;
}


/* =========================================
   Contact Page - Office Location
   ========================================= */

.contact-office {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    padding: 90px max(60px, calc((100% - 1200px) / 2));
    background-color: #ffffff;
}

.contact-office-content h2 {
    margin: 0 0 22px;
    color: #222222;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.25;
}

.contact-office-content > p:not(.contact-eyebrow) {
    margin: 0 0 25px;
    color: #666666;
    font-size: 16px;
    line-height: 1.8;
}

.contact-office-content address {
    padding-top: 22px;
    border-top: 1px solid #e5e5e5;
    color: #444444;
    font-size: 15px;
    font-style: normal;
    line-height: 1.9;
}

.contact-office-visual {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eeeeee;
}

.contact-office-placeholder {
    text-align: center;
    color: #666666;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
}


/* =========================================
   Contact Page - Social Media
   ========================================= */

.contact-social {
    padding: 85px 25px;
    background-color: #f5f5f5;
    text-align: center;
}

.contact-social h2 {
    margin: 0 0 18px;
    color: #222222;
    font-size: 36px;
    font-weight: 500;
}

.contact-social > p:not(.contact-eyebrow) {
    max-width: 620px;
    margin: 0 auto 35px;
    color: #666666;
    font-size: 16px;
    line-height: 1.8;
}

.contact-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.contact-social-links a {
    display: inline-block;
    min-width: 125px;
    padding: 13px 22px;
    border: 1px solid #cccccc;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
}

.contact-social-links a:hover {
    background-color: #222222;
    border-color: #222222;
    color: #ffffff;
}


/* =========================================
   Contact Page - Mobile
   ========================================= */

@media (max-width: 768px) {

    .contact-hero {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 65px 25px;
    }

    .contact-hero-content h1 {
        font-size: 38px;
    }

    .contact-hero-content > p:last-child {
        font-size: 16px;
    }

    .contact-details {
        gap: 15px;
    }

    .contact-card {
        padding: 24px 20px;
        gap: 16px;
    }

    .contact-card-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .contact-card h2 {
        font-size: 19px;
    }

    .contact-office {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 65px 25px;
    }

    .contact-office-content h2 {
        font-size: 30px;
    }

    .contact-office-visual {
        min-height: 220px;
    }

    .contact-social {
        padding: 65px 22px;
    }

    .contact-social h2 {
        font-size: 30px;
    }

    .contact-social-links {
        gap: 12px;
    }

    .contact-social-links a {
        min-width: 110px;
        padding: 12px 16px;
    }
}


/* Small Mobile */

@media (max-width: 400px) {

    .contact-hero-content h1 {
        font-size: 33px;
    }

    .contact-card {
        padding: 20px 15px;
        gap: 12px;
    }

    .contact-card-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .contact-card a {
        font-size: 13px;
    }

}

/* Contact page - social media icons */
.contact-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 35px;
}

.contact-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid #dedede;
    border-radius: 6px;
    color: #333;
    background: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact-social-links a:hover {
    background: #f0f0f0;
    border-color: #999;
}

.contact-social-links svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Contact page - Google Maps */
.contact-office-visual {
    min-height: 350px;
    overflow: hidden;
    border-radius: 4px;
    background: #eee;
}

.contact-office-visual iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
}

@media (max-width: 768px) {
    .contact-social-links {
        gap: 12px;
    }

    .contact-social-links a {
        padding: 11px 15px;
        font-size: 14px;
    }

    .contact-office-visual,
    .contact-office-visual iframe {
        min-height: 280px;
    }
}


