
/* ------------------------------
   1. RESET & BASE
-------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #F8F6F2;
    color: #292722;
    font-family: "DM Sans", sans-serif;
    line-height: 1.7;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.section-padding {
    padding: 100px 0;
}


/* ------------------------------
   2. HEADER
-------------------------------- */

.site-header {
    background: #F8F6F2;
    border-bottom: 1px solid #E8E3DC;
}

.nav-container {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-family: "Playfair Display", serif;
    font-size: 25px;
    font-weight: 700;
    white-space: nowrap;
}

.logo span,
.projects h2 span {
    color: #9A6572;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navigation a {
    font-size: 13px;
    color: #625F59;
    transition: color 0.2s ease;
}

.navigation a:hover {
    color: #9A6572;
}

.nav-button {
    border: 1px solid #292722;
    padding: 10px 20px;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-button:hover {
    background: #292722;
    color: #FFFFFF;
}


/* ------------------------------
   3. HERO
-------------------------------- */

.hero {
    padding: 125px 0 135px;
    background: #F0E9E2;
}

.hero-content {
    max-width: 1120px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #956773;
    margin-bottom: 22px;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 6.5vw, 76px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -1.5px;
    max-width: 850px;
}

.hero h1 em,
.contact h2 em {
    color: #956773;
    font-weight: 400;
}

.hero-description {
    max-width: 560px;
    margin-top: 25px;
    color: #625F59;
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 35px;
}

.primary-button {
    display: inline-block;
    background: #292722;
    color: #FFFFFF;
    padding: 15px 26px;
    font-size: 13px;
    transition: background 0.2s ease;
}

.primary-button:hover {
    background: #956773;
}

.secondary-button {
    font-size: 13px;
    font-weight: 600;
}


/* ------------------------------
   4. PROJECTS
-------------------------------- */

.projects {
    background: #F8F6F2;
}

.projects h2,
.about h2,
.contact h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.2;
}

.section-description {
    color: #77716A;
    margin-top: 15px;
    max-width: 550px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 55px 30px;
    margin-top: 55px;
}

.project-card {
    min-width: 0;
}

.project-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #E9E1D8;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E9E1D8;
    color: #77665D;
    font-family: "Playfair Display", serif;
    font-size: 32px;
    transition: transform 0.4s ease;
}

.project-card:hover .project-placeholder {
    transform: scale(1.04);
}

.cake-placeholder {
    background: #F1E4E1;
    color: #956773;
}

.project-info {
    padding-top: 20px;
}

.project-category {
    font-size: 10px;
    letter-spacing: 1.8px;
    font-weight: 700;
    color: #956773;
}

.project-info h3 {
    font-family: "Playfair Display", serif;
    font-size: 27px;
    font-weight: 500;
    margin-top: 7px;
}

.project-info > p:not(.project-category) {
    font-size: 14px;
    color: #716C65;
    margin-top: 8px;
    max-width: 480px;
}

.project-status {
    display: inline-block;
    margin-top: 15px;
    font-size: 11px;
    color: #625F59;
    border: 1px solid #D8D0C7;
    padding: 5px 12px;
}


/* ------------------------------
   5. ABOUT
-------------------------------- */

.about {
    background: #EDE5DD;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.about-text {
    color: #625F59;
    font-size: 15px;
}

.about-text p + p {
    margin-top: 20px;
}


/* ------------------------------
   6. CONTACT
-------------------------------- */

.contact {
    background: #F8F6F2;
}

.contact h2 {
    font-size: clamp(42px, 6vw, 65px);
}

.contact > .container > p:not(.eyebrow) {
    max-width: 480px;
    color: #625F59;
    margin-top: 22px;
}

.contact-note {
    font-size: 13px;
    color: #956773;
    margin-top: 25px;
}


/* ------------------------------
   7. FOOTER
-------------------------------- */

footer {
    border-top: 1px solid #E8E3DC;
    background: #F8F6F2;
}

.footer-content {
    min-height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: #77716A;
}


/* ------------------------------
   8. MOBILE
-------------------------------- */

@media (max-width: 768px) {

    .nav-container {
        min-height: 75px;
        flex-wrap: wrap;
        padding: 18px 0;
        gap: 15px;
    }

    .logo {
        font-size: 22px;
    }

    .navigation {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .navigation a {
        font-size: 12px;
    }

    .nav-button {
        padding: 8px 13px;
        font-size: 12px;
    }

    .hero {
        padding: 85px 0 95px;
    }

    .hero h1 {
        font-size: clamp(38px, 10vw, 58px);
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-wrap: wrap;
        gap: 20px;
    }

    .section-padding {
        padding: 75px 0;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }

    .project-info h3 {
        font-size: 25px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        min-height: 75px;
        flex-wrap: wrap;
        padding: 20px 0;
    }
}

/* PORTFOLIO PROJECT SCREENSHOTS */

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.project-card:hover .project-screenshot {
    transform: scale(1.04);
}
/* Reduce homepage hero spacing */
body:has(#services) .hero {
    padding: 65px 0 75px;
}

@media (max-width: 768px) {
    body:has(#services) .hero {
        padding: 45px 0 55px;
    }
}
/* Tighten the services section */
#services {
    padding-top: 50px;
    padding-bottom: 45px;
}

#services .eyebrow {
    margin-bottom: 14px;
}

#services .services-grid {
    margin-top: 28px;
    gap: 20px;
}

/* Bring Featured Web Projects closer */
#projects {
    padding-top: 45px;
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    #services {
        padding-top: 35px;
        padding-bottom: 30px;
    }

    #projects {
        padding-top: 35px;
        padding-bottom: 45px;
    }
}
/* Homepage: three featured projects */
body:has(#services) #projects .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

/* Tablet: two columns */
@media (max-width: 1000px) {
    body:has(#services) #projects .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: one column */
@media (max-width: 600px) {
    body:has(#services) #projects .project-grid {
        grid-template-columns: 1fr;
    }
}
/* Compact enquiry section */
#contact {
    padding: 50px 0;
}

#contact .contact-layout {
    gap: 40px;
}

#contact h2 {
    font-size: clamp(32px, 4vw, 46px);
}

#contact .enquiry-form {
    padding: 24px;
}

#contact .form-field {
    margin-bottom: 14px;
}

#contact .form-field input,
#contact .form-field select,
#contact .form-field textarea {
    padding: 10px 12px;
    font-size: 16px;
}

#contact .form-field textarea {
    min-height: 110px;
}

@media (max-width: 768px) {
    #contact {
        padding: 35px 0;
    }

    #contact .contact-layout {
        gap: 25px;
    }

    #contact .enquiry-form {
        padding: 20px;
    }
}