/* =========================================
   PARADIGM CONSTRUCTION & ENGINEERING
   MAIN WEBSITE STYLES
========================================= */

:root {
    --content-width: 1200px;
    --page-gutter: 8%;
    --section-space: clamp(36px, 4vw, 56px);
    --section-title: clamp(1.75rem, 3vw, 2.5rem);
    --card-gap: 24px;
    --brand-blue: #0a365c;
    --brand-green: #8fbd48;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #ffffff;
    line-height: 1.6;
}

/* ACCESSIBILITY */

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 12px 18px;
    background: #ffffff;
    color: #0a365c;
    border: 2px solid #0a365c;
    border-radius: 4px;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

#main-content:focus-visible {
    outline: 2px solid #0a365c;
    outline-offset: -2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* =========================
   HEADER
========================= */

header {
    background: #ffffff;
    padding: 6px 8%;
    padding-inline: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 28px;
    border-bottom: 1px solid rgba(10, 54, 92, 0.12);
}

header .company-name {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 100%;
}

header .company-name:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

header .company-name img {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    flex-wrap: wrap;
}

header nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 2px;
    text-decoration: none;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* Supplied navigation artwork; labels remain the accessible names. */
header nav .nav-icon {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

header nav a::after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 4px;
    left: 2px;
    height: 2px;
    background: #0a365c;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

header nav a:hover,
header nav a:focus-visible,
header nav a[aria-current="page"] {
    color: var(--brand-blue);
}

header nav a:hover::after,
header nav a:focus-visible::after {
    transform: scaleX(1);
}

header nav a[aria-current="page"]::after {
    transform: scaleX(1);
    height: 2.5px;
    background: var(--brand-blue);
}

header nav a:focus-visible {
    outline: 2px solid #0a365c;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Enlarge desktop artwork without moving labels or changing header geometry. */
@media (min-width: 1025px) {
    header nav a {
        gap: 8px;
    }

    header nav .nav-icon {
        margin-left: -2px;
        transform: scale(1.0714285714);
        transform-origin: right center;
    }
}

@media (max-width: 900px) {
    header {
        padding-inline: 5%;
        gap: 8px 20px;
    }

    header nav {
        gap: 4px 16px;
    }
}

/* Keep icon-and-label navigation compact at tablet and phone widths. */
@media (min-width: 769px) and (max-width: 900px) {
    header nav {
        column-gap: 0;
    }

    header nav .nav-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    header nav a {
        font-size: 14px;
        gap: 4px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 6px 5%;
        flex-direction: column;
        gap: 4px;
    }

    header .company-name img {
        width: 190px;
    }

    header nav {
        width: 100%;
        gap: 4px;
    }

    header nav a {
        gap: 3px;
        padding-inline: 0;
        font-size: 14px;
    }

    header nav .nav-icon {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }
}

/* Keep the compact header on one row where the existing links fit. */
@media (min-width: 701px) and (max-width: 768px) {
    header {
        flex-direction: row;
        gap: 8px 16px;
    }

    header nav {
        width: auto;
    }
}

/* Phones: all five links on one row, icon above label. */
@media (max-width: 480px) {
    header nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0 2px;
    }

    header nav a {
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        padding: 6px 0 8px;
        font-size: 13px;
        line-height: 1.2;
    }

    header nav a::after {
        bottom: 2px;
        right: 12%;
        left: 12%;
    }

    header nav .nav-icon {
        width: 24px;
        height: 24px;
        flex-basis: auto;
    }
}

/* =========================
   HERO
========================= */

.hero {
    min-height: clamp(460px, 38vw, 550px);
    display: flex;
    align-items: center;
    padding: clamp(64px, 6vw, 88px) 8%;
    padding-inline: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
    position: relative;
    background-color: #0a365c;
    background-image:
        linear-gradient(90deg,
            rgba(8, 45, 77, 0.84) 0%,
            rgba(10, 54, 92, 0.70) 48%,
            rgba(10, 54, 92, 0.18) 100%
        ),
        url("../images/hero-1448.webp");
    background-size: cover;
    background-position: center 54%;
    background-repeat: no-repeat;
}

.hero-content {
    width: 100%;
    min-width: 0;
    max-width: 760px;
    position: relative;
}

.hero-content::before {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-bottom: 22px;
    background: var(--brand-green);
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(2.125rem, 4.15vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
    font-weight: 800;
    text-wrap: balance;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.hero p {
    color: #ffffff;
    font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
    line-height: 1.65;
    max-width: 48ch;
    margin-bottom: 30px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hero {
        min-height: 440px;
        padding: 48px 5%;
        background-image:
            linear-gradient(90deg,
                rgba(8, 45, 77, 0.82),
                rgba(10, 54, 92, 0.62)
            ),
            url("../images/hero-800.webp");
        background-position: 54% center;
    }

    .hero h1 {
        max-width: 20ch;
        font-size: clamp(1.875rem, 5.5vw, 2.625rem);
        margin-bottom: 20px;
    }

    .hero h1 br {
        display: none;
    }

    .hero p {
        max-width: 46ch;
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.875rem, 8vw, 2.25rem);
    }
}

/* =========================
   BUTTONS
========================= */

.hero .button,
.contact .contact-btn,
.enquiry-section .enquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    max-width: 100%;
    padding: 14px 30px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease,
                box-shadow 0.2s ease, transform 0.2s ease;
}

.hero .button {
    min-width: 172px;
    background: #52752c;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.hero .button:hover {
    background: #466526;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.contact .contact-btn,
.enquiry-section .enquiry-btn {
    background: var(--brand-green);
    color: #082d4d;
}

.contact .contact-btn {
    min-width: 176px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}

.enquiry-section .enquiry-btn {
    border: 1px solid transparent;
    cursor: pointer;
}

.contact .contact-btn:hover,
.enquiry-section .enquiry-btn:hover {
    background: #a8c83a;
    color: #082d4d;
    transform: translateY(-2px);
}

@media (hover: hover) and (pointer: fine) {
    .contact .contact-btn:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20);
    }
}

.hero .button:focus-visible,
.contact .contact-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.enquiry-section .enquiry-btn:focus-visible {
    outline: 2px solid #0a365c;
    outline-offset: 4px;
}

.hero .button:active,
.contact .contact-btn:active,
.enquiry-section .enquiry-btn:active {
    transform: translateY(0);
}

.enquiry-section .enquiry-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

@media (hover: none) {
    .hero .button:hover,
    .contact .contact-btn:hover,
    .enquiry-section .enquiry-btn:hover {
        transform: none;
    }
}

/* Text link used beneath home page sections and on About Us. */
.about .about-link,
.section-more a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    border-bottom: 2px solid rgba(143, 189, 72, 0.45);
    color: #0a365c;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.015em;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.about .about-link:hover,
.section-more a:hover {
    color: #174b73;
    border-bottom-color: var(--brand-green);
}

.about .about-link:focus-visible,
.section-more a:focus-visible {
    outline: 2px solid #0a365c;
    outline-offset: 4px;
    border-bottom-color: var(--brand-green);
    border-radius: 2px;
}

.section-more {
    margin-top: 28px;
    text-align: center;
}

/* =========================
   ABOUT SECTION
========================= */

.about {
    padding: clamp(28px, 2.5vw, 36px) 8%;
    padding-inline: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
    background: #ebf3f7;
    text-align: left;
}

.about .about-container {
    max-width: 1200px;
    min-width: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(24px, 3vw, 36px);
}

.about .about-container > .about-heading,
.about .about-container > .about-text {
    min-width: 0;
    text-align: left;
}

.about .about-heading span {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #0a365c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.12em;
}

.about .about-heading span::before {
    content: "";
    width: 28px;
    height: 2px;
    flex-shrink: 0;
    background: var(--brand-green);
}

.about :is(h1, h2) {
    margin: 0;
    color: var(--brand-blue);
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.about p {
    max-width: 65ch;
    margin: 0;
    color: #465563;
    font-size: clamp(1rem, 1.2vw, 1.0625rem);
    line-height: 1.65;
}

.about p + p {
    margin-top: 12px;
}

.about .about-link {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .about .about-container {
        grid-template-columns: minmax(0, 1fr);
        max-width: 640px;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 28px 5%;
    }
}

/* =========================
   SERVICES SECTION
========================= */

.services {
    padding: var(--section-space) 8%;
    padding-inline: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
    background: #f5f7f8;
}

.services .section-heading {
    max-width: 750px;
    margin: 0 auto 30px;
    text-align: center;
}

.services .section-heading span {
    display: block;
    color: #174b73;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
}

.services .section-heading :is(h1, h2) {
    color: #174b73;
    font-size: var(--section-title);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 10px 0 14px;
    text-wrap: balance;
}

.services .section-heading p {
    max-width: 65ch;
    margin: 0 auto;
    color: #555;
    font-size: 16px;
    line-height: 1.65;
}

.services .services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: var(--card-gap);
}

.services .service-card {
    min-width: 0;
    background: #ffffff;
    padding: clamp(28px, 2.5vw, 34px);
    border: 1px solid #cedbe4;
    border-top: 3px solid var(--brand-blue);
    border-radius: 4px;
    box-shadow: 0 3px 14px rgba(10, 54, 92, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                border-top-color 0.2s ease;
}

.services .services-grid > .service-card:nth-child(odd) {
    background-color: #edf4f8;
}

.services .services-grid > .service-card:nth-child(even) {
    background-color: #f2f5e9;
}

.services .service-number {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #174b73;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    margin-bottom: 18px;
}

.services .service-number::after {
    content: "";
    width: 36px;
    flex-shrink: 0;
    height: 2px;
    background: var(--brand-green);
}

.services .service-card :is(h2, h3) {
    color: #174b73;
    font-size: clamp(1.25rem, 1.8vw, 1.4375rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    margin-bottom: 12px;
}

.services .service-card p {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.65;
}

@media (hover: hover) and (pointer: fine) {
    .services .service-card:hover {
        transform: translateY(-2px);
        border-top-color: var(--brand-green);
        box-shadow: 0 6px 18px rgba(10, 54, 92, 0.10);
    }
}

@media (max-width: 768px) {
    .services {
        padding: 36px 5%;
    }

    .services .section-heading {
        margin-bottom: 24px;
    }

    .services .services-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
        gap: 16px;
    }

    .services .service-card {
        padding: 24px;
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    .services .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
    }
}

/* =========================
   PROJECTS SECTION
========================= */

.projects {
    padding: var(--section-space) 8%;
    padding-inline: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
    background: #f7f9fa;
}

.projects .projects-heading {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.projects .projects-heading span {
    display: block;
    color: #477a2e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.projects .projects-heading :is(h1, h2) {
    color: #0a365c;
    font-size: var(--section-title);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    text-wrap: balance;
}

.projects .projects-heading p {
    max-width: 65ch;
    margin-inline: auto;
    color: #666;
    font-size: 16px;
    line-height: 1.65;
}

.projects .projects-grid {
    width: 100%;
    min-width: 0;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: var(--card-gap);
}

.projects .project-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    position: relative;
    background-color: #0a365c;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(10, 54, 92, 0.20);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(10, 54, 92, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.projects .project-card::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

/* Preserve the complete portrait, including people at the edges. */
.projects .project-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    border-radius: 3px;
}

.projects .project-overlay {
    position: relative;
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 42px clamp(20px, 2vw, 28px) 26px;
    border-radius: 0 0 3px 3px;
    color: #ffffff;
    background: linear-gradient(to bottom,
        rgba(8, 45, 77, 0),
        rgba(8, 45, 77, 0.90) 24%,
        rgba(8, 45, 77, 0.98) 100%);
}

.projects .project-overlay span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b9d98a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.projects .project-overlay span::before {
    content: "";
    width: 18px;
    height: 2px;
    flex-shrink: 0;
    background: var(--brand-green);
}

.projects .project-overlay :is(h2, h3) {
    color: #ffffff;
    font-size: clamp(1.25rem, 1.6vw, 1.4375rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    margin: 12px 0 10px;
}

.projects .project-overlay p {
    color: #edf2f6;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

@media (hover: hover) and (pointer: fine) {
    .projects .project-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(10, 54, 92, 0.14);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .projects .projects-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .projects .project-card {
        grid-column: span 2;
    }

    .projects .project-card:last-child {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 36px 5%;
    }

    .projects .projects-heading {
        margin-bottom: 24px;
    }

    .projects .projects-grid {
        max-width: 480px;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
        gap: 20px;
    }

    .projects .project-card {
        min-height: 400px;
    }

    .projects .project-overlay :is(h2, h3) {
        font-size: 23px;
    }
}

@media (max-width: 480px) {
    .projects .project-overlay :is(h2, h3) {
        font-size: 1.375rem;
    }
}

/* =========================
   CONTACT CTA SECTION
========================= */

.contact {
    background: #0a365c;
    padding: clamp(44px, 4.5vw, 64px) 8%;
    padding-inline: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
    text-align: center;
    color: #ffffff;
}

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

.contact .contact-content span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #8fbd48;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
}

.contact .contact-content span::before,
.contact .contact-content span::after {
    content: "";
    width: 24px;
    height: 1px;
    flex-shrink: 0;
    background: currentColor;
    opacity: 0.65;
}

.contact .contact-content :is(h1, h2) {
    font-size: var(--section-title);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin: 0 0 16px;
    color: #ffffff;
}

.contact .contact-content p {
    font-size: clamp(1rem, 1.3vw, 1.0625rem);
    line-height: 1.7;
    margin: 0 auto 28px;
    max-width: 60ch;
    color: #e7eef4;
    text-wrap: pretty;
}

/* Compact CTA for About Us, Services and Projects. */
.contact.contact-strip {
    padding-block: 24px;
}

.contact.contact-strip .contact-content {
    max-width: var(--content-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    text-align: left;
}

.contact.contact-strip .contact-content h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1.3;
}

.contact.contact-strip .contact-btn {
    flex-shrink: 0;
    min-width: 148px;
    min-height: 48px;
    padding: 12px 24px;
}

@media (max-width: 768px) {
    .contact {
        padding: 40px 6%;
    }

    .contact.contact-strip {
        padding-inline: 5%;
    }

    .contact .contact-content p {
        margin-bottom: 24px;
    }
}

@media (max-width: 600px) {
    .contact.contact-strip .contact-content {
        flex-direction: column;
        text-align: center;
    }
}

.hero h1,
.about :is(h1, h2),
.services .section-heading :is(h1, h2),
.projects .projects-heading :is(h1, h2),
.contact .contact-content :is(h1, h2),
.enquiry-section .enquiry-heading :is(h1, h2) {
    overflow-wrap: anywhere;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #0878b9;
    color: #ffffff;
    padding: 20px 8% 12px;
    padding-inline: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
}

.footer .footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.45fr) minmax(0, 1.7fr);
    gap: 24px;
    align-items: start;
}

.footer .footer-container > * {
    min-width: 0;
}

.footer .footer-about img {
    display: block;
    width: 140px;
    max-width: 100%;
    height: auto;
    background: #ffffff;
    padding: 6px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.footer .footer-about p,
.footer .footer-contact p {
    min-width: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
}

.footer .footer-about p {
    max-width: 32ch;
    line-height: 1.55;
}

.footer h2 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
    margin: 0 0 10px;
}

.footer h2::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin-top: 6px;
    background: var(--brand-green);
}

.footer .footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer .footer-links a {
    display: inline-block;
    padding: 2px 0;
    font-size: 15px;
    line-height: 1.6;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #b7d64a;
    text-underline-offset: 4px;
}

.footer a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 2px;
}

.footer .footer-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "title title" "address phone" "email whatsapp";
    gap: 8px 20px;
    align-items: start;
}

.footer .footer-contact h2 {
    grid-area: title;
    margin-bottom: 0;
}

.footer .footer-contact p:nth-of-type(1) { grid-area: address; }
.footer .footer-contact p:nth-of-type(2) { grid-area: phone; }
.footer .footer-contact p:nth-of-type(3) { grid-area: email; }
.footer .footer-contact p:nth-of-type(4) { grid-area: whatsapp; }

.footer .footer-contact a[href^="tel:"],
.footer .footer-contact a[href^="mailto:"] {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.footer .footer-contact a[href^="tel:"] {
    white-space: nowrap;
}

.footer .footer-contact a[href^="tel:"]:hover,
.footer .footer-contact a[href^="mailto:"]:hover {
    text-decoration-color: #b7d64a;
}

.footer .whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 44px;
    background: #25D366;
    color: #0a365c;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(10, 54, 92, 0.10);
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer .whatsapp-link:hover {
    color: #0a365c;
    transform: translateY(-2px);
    opacity: 1;
    text-decoration: none;
}

.footer .footer-bottom {
    max-width: 1200px;
    margin: 16px auto 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
}

.footer .footer-bottom p {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.6;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }

    .footer .footer-links h2 {
        grid-column: 1 / -1;
    }

    .footer .footer-contact {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-areas: "title title title" "address phone whatsapp" "address email whatsapp";
        gap: 8px 20px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 20px 5% 12px;
    }

    .footer .footer-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .footer .footer-about {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
    }

    .footer .footer-about img {
        width: 110px;
        margin-bottom: 0;
    }

    .footer .footer-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 12px;
    }

    .footer .footer-links h2 {
        grid-column: 1 / -1;
    }

    .footer .footer-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .footer .footer-contact {
        display: block;
    }

    .footer .footer-contact h2 {
        margin-bottom: 10px;
    }

    .footer .footer-contact p + p {
        margin-top: 6px;
    }

    .footer .footer-contact a[href^="tel:"] {
        white-space: normal;
    }

    .footer .footer-contact a[href^="tel:"],
    .footer .footer-contact a[href^="mailto:"] {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* ========================================
   PROJECT ENQUIRY FORM
======================================== */

.enquiry-section {
    background: #f7f9fb;
    padding: var(--section-space) 5%;
}

.enquiry-section .enquiry-container {
    max-width: 1000px;
    min-width: 0;
    margin: 0 auto;
}

.enquiry-section .enquiry-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 28px;
}

.enquiry-section .enquiry-heading span {
    display: block;
    color: #0a365c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.enquiry-section .enquiry-heading :is(h1, h2) {
    color: #0a365c;
    font-size: var(--section-title);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    text-wrap: balance;
}

.enquiry-section .enquiry-heading p {
    max-width: 65ch;
    margin: 0 auto;
    color: #66727d;
    font-size: 16px;
    line-height: 1.65;
}

.enquiry-section .enquiry-form {
    background: #ffffff;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid #dce4e9;
    border-top: 3px solid #79a83b;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(10, 54, 92, 0.05);
}

.enquiry-section .enquiry-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.enquiry-section .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
}

.enquiry-section .form-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.enquiry-section .form-group label {
    color: #0a365c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 7px;
}

.enquiry-section .form-group input,
.enquiry-section .form-group select,
.enquiry-section .form-group textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #8395a3;
    border-radius: 4px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enquiry-section .form-group input,
.enquiry-section .form-group select {
    min-height: 50px;
}

.enquiry-section .form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.enquiry-section .form-group input::placeholder,
.enquiry-section .form-group textarea::placeholder {
    color: #66727d;
    opacity: 1;
}

.enquiry-section .form-group input:focus,
.enquiry-section .form-group select:focus,
.enquiry-section .form-group textarea:focus {
    border-color: #0a365c;
    outline: 2px solid #0a365c;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(121, 168, 59, 0.12);
}

/* Spam trap: hidden from people, left for bots to fill in. */
.enquiry-section .form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.enquiry-section .enquiry-help,
.enquiry-section .enquiry-status {
    color: #0a365c;
    font-size: 15px;
    line-height: 1.6;
}

.enquiry-section .enquiry-help {
    margin: 0 0 22px;
}

.enquiry-section .enquiry-status:not(:empty) {
    margin-top: 18px;
    padding: 12px 16px;
    border-left: 4px solid #0a365c;
    border-radius: 4px;
    background: #edf4f8;
}

.enquiry-section .enquiry-status.is-success {
    border-left-color: #477a2e;
    background: #f2f5e9;
    color: #2f5219;
}

.enquiry-section .enquiry-status.is-error {
    border-left-color: #b3261e;
    background: #fbeeed;
    color: #8c1d18;
}

.enquiry-section .enquiry-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

.enquiry-section .enquiry-whatsapp,
.enquiry-section .enquiry-alt {
    color: #0a365c;
    font-size: 15px;
    font-weight: 700;
    text-underline-offset: 4px;
}

.enquiry-section .enquiry-alt {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.enquiry-section .enquiry-whatsapp:not([hidden]) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    overflow-wrap: anywhere;
}

.enquiry-section .enquiry-whatsapp:focus-visible,
.enquiry-section .enquiry-alt:focus-visible {
    outline: 2px solid #0a365c;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .enquiry-section .form-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Compact enquiry layout; retain existing phone spacing and touch targets. */
@media (min-width: 769px) {
    .enquiry-section {
        padding-block: clamp(32px, 3vw, 44px);
    }

    .enquiry-section .enquiry-heading {
        margin-bottom: 22px;
    }

    .enquiry-section .enquiry-heading span {
        margin-bottom: 8px;
    }

    .enquiry-section .enquiry-heading :is(h1, h2) {
        margin-bottom: 10px;
    }

    .enquiry-section .enquiry-form {
        padding: 24px 28px;
    }

    .enquiry-section .enquiry-form .enquiry-help {
        margin-bottom: 18px;
    }

    .enquiry-section .form-group {
        margin-bottom: 16px;
    }

    .enquiry-section .form-group label {
        margin-bottom: 6px;
    }

    .enquiry-section .form-group input,
    .enquiry-section .form-group select {
        min-height: 46px;
        padding-block: 10px;
    }

    .enquiry-section .form-group textarea {
        height: 7.75rem;
        min-height: 7.75rem;
    }
}

@media (max-width: 768px) {
    .enquiry-section {
        padding: 32px 5%;
    }

    .enquiry-section .enquiry-heading {
        margin-bottom: 24px;
    }

    .enquiry-section .enquiry-form {
        padding: 24px 18px;
    }

    .enquiry-section .enquiry-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .enquiry-section .enquiry-form {
        padding-inline: 16px;
    }
}

/* =========================
   COMPANY PROFILE (About Us)
========================= */

.company-profile > section {
    padding: clamp(28px, 3vw, 44px) max(8%, calc((100% - var(--content-width)) / 2));
}

.company-profile .profile-container {
    max-width: var(--content-width);
    margin-inline: auto;
    min-width: 0;
}

.company-profile .profile-overview,
.company-profile .profile-why {
    background: #ffffff;
}

.company-profile .profile-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
    align-items: start;
    gap: clamp(24px, 3vw, 36px);
}

.company-profile .profile-why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.company-profile .profile-section-heading::before {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin-bottom: 10px;
    background: var(--brand-green);
}

.company-profile h2 {
    color: var(--brand-blue);
    font-size: clamp(1.5rem, 2.2vw, 1.875rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.company-profile h3 {
    color: var(--brand-blue);
    font-size: 1.125rem;
    line-height: 1.35;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.company-profile p {
    max-width: 65ch;
    color: #465563;
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.company-profile .profile-overview-copy p + p {
    margin-top: 12px;
}

.company-profile .profile-purpose-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.company-profile .profile-purpose-card {
    min-width: 0;
    padding: clamp(22px, 2vw, 28px);
    background: #edf4f8;
    border: 1px solid #c3d4df;
    border-top: 3px solid var(--brand-blue);
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(10, 54, 92, 0.05);
}

.company-profile .profile-purpose-card:nth-child(2) {
    background: #f2f5e9;
    border-color: #ccd9ba;
    border-top-color: var(--brand-green);
}

.company-profile .profile-purpose-card h2 {
    font-size: 1.375rem;
    margin-bottom: 10px;
}

.company-profile .profile-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    list-style: none;
    margin-top: 22px;
}

.company-profile .profile-values-grid li {
    min-width: 0;
    padding: 20px;
    border: 1px solid #c9d9d2;
    border-radius: 6px;
    background: #edf4f8;
    box-shadow: 0 2px 8px rgba(10, 54, 92, 0.03);
}

.company-profile .profile-values-grid li:nth-child(even) {
    background: #f2f5e9;
}

.company-profile .profile-values-grid li::before {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, var(--brand-blue) 50%, var(--brand-green) 50%);
}

.company-profile .profile-strengths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 32px;
    min-width: 0;
    list-style: none;
}

.company-profile .profile-strengths li {
    min-width: 0;
    position: relative;
    padding: 0 0 16px 18px;
    border-bottom: 1px solid #d5e0e7;
}

.company-profile .profile-strengths li:last-child {
    grid-column: 1 / -1;
    display: block;
    padding-bottom: 0;
    border-bottom: 0;
}

.company-profile .profile-strengths li::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 3px;
    height: 18px;
    background: var(--brand-green);
}

@media (max-width: 1024px) {
    .company-profile .profile-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .company-profile .profile-overview-grid,
    .company-profile .profile-why-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .company-profile .profile-container {
        max-width: 640px;
    }
}

@media (max-width: 768px) {
    .company-profile > section {
        padding: 28px 5%;
    }

    .company-profile .profile-purpose-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .company-profile .profile-values-grid {
        gap: 16px;
        margin-top: 24px;
    }
}

@media (max-width: 600px) {
    .company-profile .profile-strengths,
    .company-profile .profile-values-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================
   ERROR PAGE
========================= */

.error-page {
    padding: clamp(56px, 8vw, 96px) 5%;
    background: #f7f9fa;
    text-align: center;
}

.error-page h1 {
    margin-bottom: 14px;
    color: var(--brand-blue);
    font-size: var(--section-title);
    line-height: 1.2;
}

.error-page p {
    max-width: 55ch;
    margin: 0 auto 24px;
    color: #555;
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    header nav a,
    header nav a::after,
    .hero .button,
    .contact .contact-btn,
    .enquiry-section .enquiry-btn,
    .about .about-link,
    .section-more a,
    .services .service-card,
    .projects .project-card,
    .footer a,
    .footer .whatsapp-link,
    .enquiry-section .form-group input,
    .enquiry-section .form-group select,
    .enquiry-section .form-group textarea {
        transition: none;
    }

    .hero .button:hover,
    .contact .contact-btn:hover,
    .enquiry-section .enquiry-btn:hover,
    .services .service-card:hover,
    .projects .project-card:hover,
    .footer .whatsapp-link:hover {
        transform: none;
    }
}
