:root {
        --text-color: #111;
        --subtle-gray: #666;
        --accent: #0a66c2;
        --border-color: #e5e7eb;
        --white: #ffffff;
        --light-grey: #f3f4f6;
    }

    body {
        font-family: 'Inter', sans-serif;
        margin: 0;
        padding: 0;
        background-color: var(--white);
        color: var(--text-color);
        scroll-behavior: smooth;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding-inline: 20px;
    }

    section { padding: 40px 0; }

    @media (min-width: 768px) {
        section { padding: 72px 0; }
    }

    h1, h2, h3 { color: var(--text-color); }
    a { color: var(--accent); text-decoration: none; }
    a:hover, a:focus { text-decoration: underline; }

    img {
        object-fit: contain;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        max-width: 100%;
        height: auto;
    }

    header {
        background-color: var(--light-grey);
        padding: 20px;
        border: 1px solid var(--border-color);
        text-align: center;
        width: 100%;
    }

    header h1 { font-size: 1.8rem; margin: 0; }
    header p { font-size: 1rem; color: var(--subtle-gray); margin: 0.5rem 0 0; }

    #intro { 
        text-align: center;
        margin: 0;
        padding: 0;
        margin-top: 80px;
    }

    #intro h2 {
        font-size: 1.25rem;
        margin: 0.5rem 0 0.75rem;
        text-align: center;
    }

    #intro p {
        font-size: 1rem;
        max-width: 1000px;
        margin: 0 auto;
        line-height: 1.6;
        text-align: center;
        padding-bottom: 20px;
    }

    .intro-fullwidth-image {
        position: relative;
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #000;
        overflow: hidden;
        box-sizing: border-box;
        max-height: 65vh;
        min-height: 200px;
        padding: 0;
        margin-bottom: 0;
    }

    .intro-fullwidth-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        border: none;
        border-radius: 0;
    }

    .full-width-bg { background-color: var(--light-grey); }

    #projects {
        background-color: var(--light-grey);
        margin-top: 80px;
        padding-top: 20px;
        padding-bottom: 80px;
    }

    #projects h2 { 
        font-size: 1.75rem;
        text-align: center;
        margin-top: 0;
        margin-bottom: 20px;
        font-weight: 700;
    }

    #projects .grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 20px;
        align-items: start;
    }

    @media (min-width: 768px) {
        #projects .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    }

    .project-card {
        background-color: var(--white);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        text-align: center;
        margin-bottom: 0;
        display: inline-block;
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .project-card .thumb {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 0.5rem;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        object-fit: cover;
    }

    .project-card h3 { margin: 0.25rem 0; font-size: 1.15rem; }
    .project-card p { margin: 0.2rem 0; color: var(--muted, #666); font-size: .95rem; }

    #services { padding-top: 20px; }

    #services h2 { 
        font-size: 1.75rem; 
        text-align: center; 
        margin-bottom: 1rem; 
        padding-top: 20px;
    }

    #services p.subtext { 
        font-size: 1rem; 
        color: var(--subtle-gray); 
        text-align: center; 
        margin-bottom: 2rem; 
    }

    #services .grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 20px;
    }

    @media (min-width: 768px) {
        #services .grid { grid-template-columns: repeat(2, 1fr); gap: 32px; justify-content: center; }
    }

    .service-card { 
        background-color: var(--white); 
        border-radius: 14px; 
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
        padding: 1rem;
        text-align: left; 
        margin-bottom: 0;
        box-sizing: border-box;
    }

    .service-card img { 
        width: 100%; 
        height: 200px; 
        margin-bottom: 0.5rem;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        object-fit: cover;
    }

    .service-card h3 { font-size: 1.25rem; margin: 0.25rem 0; }
    .service-card p { font-size: 0.95rem; color: var(--subtle-gray); line-height: 1.5; margin: 0; }

    #about { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        padding: 0 20px; 
    }

    @media (min-width: 768px) { 
        #about { flex-direction: row; justify-content: center; gap: 2rem; } 
    }

    #about h2 { font-size: 1.75rem; text-align: center; margin-bottom: 1rem; }

    #about .image-container img { width: auto; height: 400px; max-width: 100%; }

    #about .bio { max-width: 500px; text-align: center; }

    #about p.subtitle { font-size: 1rem; color: var(--subtle-gray); margin-bottom: 1rem; }

    #about p.bio-text {
        text-indent: 6em;
        font-size: 0.95rem; 
        line-height: 1.6; 
        text-align: justify;
    }

    /* ===== Contact ===== */
    #contact {
        background-color: var(--light-grey);
        padding: 40px 20px;
        margin-top: 80px;
    }

    @media (min-width: 768px) { #contact { padding: 72px 20px; } }

    #contact h2 { 
        font-size: 1.75rem; 
        text-align: center; 
        margin-bottom: 2rem; 
    }

    #contact .contact-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    @media (min-width: 768px) {
        #contact .contact-layout { flex-direction: row; justify-content: space-between; align-items: center; }
    }

    #contact .contact-details {
        flex: 1;
        text-align: center;
        order: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    @media (min-width: 768px) { #contact .contact-details { text-align: center; max-width: 300px; } }

    #contact .enquiry-card {
        background-color: var(--white);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 1.5rem;
        flex: 1;
        max-width: 500px;  /* per your latest block */
        height: 550px;     /* per your latest block */
        order: 1;
        box-sizing: border-box;
        overflow-y: auto;  /* scroll vertically if content exceeds height */
        overflow-x: hidden;/* prevent side scroller */
    }

    #contact .enquiry-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        color: var(--text-color);
    }

    #contact .enquiry-card form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #contact .enquiry-card label {
        font-size: 0.9rem;
        color: var(--subtle-gray);
    }

    #contact .enquiry-card input,
    #contact .enquiry-card textarea {
        padding: 0.5rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        font-family: inherit;
        width: 100%;
        box-sizing: border-box;
    }

    #contact .enquiry-card button {
        background-color: var(--light-grey);
        color: var(--text-color);
        border: none;
        padding: 0.75rem;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1rem;
    }

    #contact .enquiry-card button:hover {
        background-color: var(--subtle-gray);
        color: var(--white);
    }

    #contact .map {
        background-color: var(--white);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 1.5rem;
        flex: 1;
        max-width: 500px;
        height: 550px;
        order: 3;
        box-sizing: border-box;
    }

    #contact .map iframe {
        width: 100%;
        height: 100%;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        filter: grayscale(100%);
    }

    footer {
        background-color: var(--white);
        padding: 20px 0;
        text-align: center;
        margin-top: 20px;
    }

    footer p { margin: 0; font-size: 0.9rem; color: var(--text-color); }

    /* === Name row layout: prevents horizontal overflow === */
    #contact .name-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    #contact .name-row > input {
        min-width: 0; /* CRITICAL: lets inputs shrink within the grid */
        width: 100%;
        box-sizing: border-box;
    }
    @media (max-width: 480px) {
      #contact .name-row { grid-template-columns: 1fr; }
    }