@media (hover: none) and (pointer: coarse) {
    .gallery-nav:hover,
    .gallery-nav:active,
    .gallery-nav:focus,
    .gallery-nav:focus-visible {
        background-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Lato:wght@300;400;700;900&display=swap');

@keyframes about-gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body{
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #F5F2EF;
}
main{
    flex: 1;
    width: 100%;
    max-width: 100vw;
    padding: 84px 5vw 40px;
    box-sizing: border-box;
}

.about-hero,
.about-page-title,
.about-overview,
.about-story,
.about-leadership,
.about-capabilities,
.about-process,
.about-sectors,
.about-cta {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 26px;
    box-sizing: border-box;
    min-width: 0;
}

.about-page-title {
    text-align: center;
    margin-bottom: 18px;
}

.about-page-title h1 {
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 700;
    background: linear-gradient(120deg, #D4AF37 0%, #C3A24D 24%, #4A7C59 50%, #6D9A7A 76%, #D4AF37 100%);
    background-size: 220% 220%;
    animation: about-gradient-shift 8s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.about-page-title p {
    font-family: "Edu VIC WA NT Beginner", cursive;
    font-size: clamp(18px, 2vw, 24px);
    margin-top: 8px;
    font-weight: 400;
    letter-spacing: 0.8px;
    color: #333333;
    line-height: 1.2;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    animation: none !important;
}

.about-hero {
    display: grid;
    /* make the media column slightly wider so the image fills more space */
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: center;
    background: #FBF8F3;
    border: 1px solid #E9E3DA;
    border-radius: 24px;
    padding: 24px;
    overflow: hidden;
    /* allow the hero section to be taller so the image isn't clipped */
    min-height: 520px;
}

.about-kicker {
    font-size: 12px;
    color: #4A7C59;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-hero h1 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.2;
    color: #333333;
    margin-bottom: 12px;
}

.about-hero p {
    color: #333333;
    line-height: 1.7;
}

.about-hero-media img,
.about-story-media img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

/* Prevent the hero image from being cropped vertically on large screens */
.about-hero-media {
    display: flex;
    align-items: center;
}

.about-hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-hero-media img {
    /* fill the media column so there's no empty space to the right */
    width: 100%;
    height: 100%;
    object-fit: cover; /* can be changed to 'contain' if you prefer no cropping */
    border-radius: 12px;
}

.about-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.about-btn {
    display: inline-block;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.about-btn.primary {
    background: #4A7C59;
    color: #ffffff;
    border: 2px solid #4A7C59;
}

.about-btn.primary:hover {
    background: #3a6048;
    border-color: #3a6048;
}

.about-btn.secondary {
    background: transparent;
    color: #4A7C59;
    border: 2px solid #4A7C59;
}

.about-btn.secondary:hover {
    color: #3a6048;
    border-color: #3a6048;
}

.about-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.overview-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.overview-card h3 {
    color: #4A7C59;
    margin-bottom: 8px;
    font-size: 24px;
}

.overview-card p {
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
}

.about-story {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.about-hero-content,
.about-story-content,
.capability-item,
.process-step,
.leadership-card,
.overview-card {
    min-width: 0;
}

.about-story-content h2,
.about-leadership h2,
.about-capabilities h2,
.about-process h2,
.about-sectors h2,
.about-cta h2 {
    color: #333333;
    font-size: clamp(24px, 2.6vw, 34px);
    margin-bottom: 12px;
}

.about-story-content p,
.leadership-card p,
.about-cta p {
    color: #333333;
    line-height: 1.8;
    margin-bottom: 10px;
}

.about-leadership,
.about-capabilities,
.about-process,
.about-sectors,
.about-cta {
    background: #FBF8F3;
    border: 1px solid #E9E3DA;
    border-radius: 20px;
    padding: 20px;
}

.leadership-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
}

.leadership-card h3 {
    color: #4A7C59;
    font-size: 24px;
    margin-bottom: 4px;
}

.lead-role {
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
}

.capability-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.capability-item,
.process-step {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
}

.capability-item h3,
.process-step h3 {
    color: #333333;
    margin-bottom: 6px;
    font-size: 19px;
}

.capability-item p,
.process-step p {
    color: #333333;
    line-height: 1.6;
    font-size: 14px;
}

.process-step span {
    display: inline-block;
    margin-bottom: 6px;
    color: #4A7C59;
    font-weight: 700;
}

.sector-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sector-tags span {
    background: #ffffff;
    border: 1px solid #E9E3DA;
    border-radius: 999px;
    padding: 8px 14px;
    color: #333333;
    font-size: 14px;
}

.about-cta {
    text-align: center;
}

@media only screen and (max-width: 1110px) {
    main {
        padding: 84px 4vw 32px;
    }

    .about-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-hero,
    .about-story {
        grid-template-columns: 1fr;
        /* on narrow screens allow natural height so content stacks comfortably */
        min-height: auto;
    }

    .capability-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 640px) {
    main {
        padding: 78px 4vw 26px;
    }

    .about-page-title {
        margin-bottom: 14px;
    }

    .about-page-title p {
        margin-top: 6px;
        letter-spacing: 0.5px;
    }

    /* Ensure the ABOUT heading sits below the fixed navbar on small screens */
    .about-page-title {
        margin-top: 18px;
    }

    .about-overview {
        grid-template-columns: 1fr;
    }

    .about-hero,
    .about-story,
    .about-leadership,
    .about-capabilities,
    .about-process,
    .about-sectors,
    .about-cta {
        padding: 16px;
        border-radius: 16px;
    }
}

header{
    width: 100%;
    max-width: 100vw;
    height: 55px;
    position: fixed;
    background-color: #F5F2EF;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-x: hidden;
}

.navbar{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: #F5F2EF;
}

header.scrolled-nav{
    background-color: #F5F2EF;
}

.navbar.scrolled-nav{
    background: #F5F2EF;
}





.navlist .dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: " ▾";
    font-size: 12px;
}

.dropdown-content {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #F5F2EF;
    padding: 8px 0;
    z-index: 1001;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.3s ease;
}

.dropdown-content li {
    margin-right: 0;
}

.dropdown-content li a {
    display: block;
    padding: 8px 14px;
    font-size: medium;
    white-space: nowrap;
    color: #333333;
}

.dropdown-content li a:hover {
    color: #D4AF37;
}

.dropdown.open .dropdown-content {
    max-height: 140px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-right: 20px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.rightnav{
    width: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-right: 20px;
}

.rightnav input{
    width: 140px;
    height: 35px;
    border-radius: 10px;
    border: 3px solid white;
    padding: 0 12px;
}
.rightnav button{
    width: auto;
    min-width: 50px;
    height: 30px;
    margin-left: 0;
    padding: 0 10px;
    border-radius: 10px;
    border: 3px solid white;
    cursor: pointer;
}

footer{
    display: flex;
    flex-direction: column;
    background-color: #e0e0e0;
    min-height: 8vh;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
    gap: 8px;
    padding: 15px 20px;
}

footer a {
    color: #4A7C59;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #D4AF37;
}

/* Mobile and Tablet Responsive Styles */
@media (max-width: 1024px) {
    .navlist {
        position: fixed;
        left: 0;
        top: 55px;
        height: calc(100vh - 55px);
        width: 100vw;
        background-color: #ffffff;
        flex-direction: column;
        padding-top: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-x: hidden;
    }

    .navlist.active {
        transform: translateX(0);
    }

    .navlist li {
        margin: 15px 0;
        text-align: center;
    }

    .navlist .dropdown {
        width: 100%;
    }

    .navlist .dropdown-content {
        position: static;
        min-width: 100%;
        padding: 0;
        background-color: transparent;
        max-height: 0;
        opacity: 0;
        transform: translateY(-6px);
        overflow: hidden;
        pointer-events: none;
    }

    .navlist .dropdown.open .dropdown-content {
        max-height: 140px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navlist .dropdown-content li a {
        padding: 6px 14px;
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        justify-content: space-between;
        align-items: center;
    }

    .navbar ul li{
        margin-right: 0;
    }

    .rightnav{
        display: none;
    }

    header{
        height: auto;
    }

    main{
        padding-top: 55px;
    }
}
