
/* =========================================
   TOWMCL PREMIUM AWARDS PAGE
========================================= */

.awards-page {
    --green: #124b35;
    --dark-green: #092f22;
    --gold: #c6a45c;
    --light-gold: #ead9ad;
    --text: #263b31;
    --muted: #77847c;
    --soft: #f5f8f5;
    color: var(--text);
    font-family: inherit;
    overflow: hidden;
}

.awards-page * {
    box-sizing: border-box;
}

/* HERO */

.awards-hero {
    min-height: 470px;
    position: relative;
    background: linear-gradient(120deg, #082e21, #14583c 65%, #1d6748);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.awards-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(30deg, transparent 48%, #fff 49%, transparent 50%),
        linear-gradient(120deg, transparent 48%, #fff 49%, transparent 50%);
    background-size: 65px 65px;
}

.awards-hero-content {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 3;
    padding: 80px 0;
    animation: heroReveal 1s ease both;
}

.awards-eyebrow {
    color: var(--light-gold);
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.awards-hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.08;
    margin: 25px 0 18px;
    font-weight: 800;
    letter-spacing: -2px;
    color: #fff;
}

.awards-hero h1 span {
    color: var(--light-gold);
}

.awards-hero-content > p {
    max-width: 540px;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.8;
}

.hero-line {
    width: 75px;
    height: 3px;
    background: var(--gold);
    margin-top: 35px;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    max-width: 540px;
    margin-top: 20px;
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255,255,255,.65);
}

.hero-decoration {
    position: absolute;
    width: 470px;
    height: 470px;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
}

.hero-circle {
    position: absolute;
    border: 1px solid rgba(234,217,173,.25);
    border-radius: 50%;
}

.circle-one {
    width: 330px;
    height: 330px;
    animation: rotateCircle 25s linear infinite;
}

.circle-two {
    width: 430px;
    height: 430px;
    border-style: dashed;
    animation: rotateCircle 40s linear infinite reverse;
}

.hero-award-icon {
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--light-gold);
    font-size: 90px;
    background: radial-gradient(circle, #2a704e, #103c2b);
    border: 2px solid rgba(234,217,173,.6);
    box-shadow: 0 0 60px rgba(0,0,0,.25);
    animation: trophyFloat 4s ease-in-out infinite;
}

.hero-floating-star {
    position: absolute;
    color: var(--light-gold);
    font-size: 30px;
    animation: starFloat 3s ease-in-out infinite;
}

.star-one { top: 18%; left: 25%; }
.star-two { right: 10%; top: 40%; animation-delay: .8s; }
.star-three { bottom: 12%; left: 45%; animation-delay: 1.5s; }

.hero-bottom-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 25px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 50% 100%, 0 0);
}

/* BREADCRUMB */

.awards-breadcrumb {
    width: 90%;
    max-width: 1200px;
    margin: 25px auto 65px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

.awards-breadcrumb a {
    color: var(--green);
    text-decoration: none;
}

.awards-breadcrumb strong {
    color: var(--gold);
}

/* INTRO */

.awards-intro {
    max-width: 850px;
    margin: 0 auto 100px;
    padding: 0 20px;
    text-align: center;
}

.section-label {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-label > span {
    height: 2px;
    width: 25px;
    background: var(--gold);
}

.awards-intro h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    margin: 20px 0;
    color: var(--dark-green);
    font-weight: 800;
}

.awards-intro h2 span {
    color: var(--gold);
}

.awards-intro p {
    max-width: 680px;
    margin: auto;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

/* HIGHLIGHTS */

.award-highlights {
    background: var(--soft);
    padding: 85px 5% 100px;
}

.awards-section-heading,
.certificate-heading {
    max-width: 1200px;
    margin: 0 auto 45px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
}

.awards-section-heading h2,
.certificate-heading h2 {
    color: var(--dark-green);
    font-size: clamp(27px, 3vw, 38px);
    margin: 15px 0 0;
    font-weight: 800;
}

.awards-section-heading > p {
    color: var(--muted);
    font-size: 14px;
}

.highlights-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.highlight-card {
    position: relative;
    background: #fff;
    padding: 30px;
    min-height: 270px;
    border-radius: 5px;
    border: 1px solid #e9eee9;
    overflow: hidden;
    transition: transform .4s ease, box-shadow .4s ease;
    transition-delay: var(--delay, 0ms);
}

.highlight-card::before {
    content: "";
    position: absolute;
    height: 4px;
    width: 0;
    background: var(--gold);
    left: 0;
    top: 0;
    transition: width .5s ease;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(12,65,42,.12);
}

.highlight-card:hover::before {
    width: 100%;
}

.highlight-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.highlight-number {
    font-size: 12px;
    color: #a6b0a8;
    font-weight: 700;
}

.highlight-year {
    color: var(--green);
    background: #edf5ef;
    padding: 8px 14px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 13px;
}

.highlight-icon {
    width: 55px;
    height: 55px;
    margin: 25px 0 20px;
    display: grid;
    place-items: center;
    background: #f9f5e9;
    border-radius: 50%;
    color: #b38d43;
    font-size: 23px;
    transition: transform .4s ease;
}

.highlight-card:hover .highlight-icon {
    transform: rotateY(180deg);
}

.highlight-card h3 {
    font-size: 18px;
    line-height: 1.5;
    color: var(--dark-green);
    margin: 0 0 8px;
}

.highlight-card > p {
    font-size: 13px;
    color: var(--muted);
}

.highlight-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #edf0ed;
    padding-top: 15px;
    margin-top: 22px;
    font-size: 9px;
    letter-spacing: 1px;
    color: #a0aaa2;
}

.highlight-bottom i {
    color: var(--gold);
    font-size: 14px;
}

/* CERTIFICATE GALLERY */

.certificate-section {
    padding: 100px 5%;
}

.certificate-heading {
    align-items: center;
}

.certificate-heading p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 600px;
}

.certificate-count {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 22px;
    border: 1px solid #e8ede8;
    border-radius: 5px;
    flex-shrink: 0;
}

.certificate-count strong {
    color: var(--gold);
    font-size: 32px;
}

.certificate-count span {
    font-size: 12px;
    color: var(--muted);
}

.certificate-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.certificate-card {
    background: white;
    border: 1px solid #e9eee9;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.035);
    transition: transform .4s ease, box-shadow .4s ease;
    transition-delay: var(--delay, 0ms);
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(12,65,42,.12);
}

.certificate-image-wrap {
    position: relative;
    height: 280px;
    padding: 15px;
    background: #f4f6f3;
    overflow: hidden;
}

.certificate-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .6s ease;
}

.certificate-card:hover .certificate-image {
    transform: scale(1.06);
}

.certificate-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,44,29,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-view {
    background: var(--gold);
    color: #172f22;
    border: none;
    padding: 13px 20px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: background .3s ease;
}

.certificate-view:hover {
    background: #fff;
}

.certificate-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 22px;
}

.certificate-info-icon {
    color: var(--gold);
    font-size: 23px;
    padding-top: 3px;
}

.certificate-info h3 {
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark-green);
    margin: 0 0 6px;
}

.certificate-info p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.no-certificates {
    max-width: 600px;
    margin: auto;
    text-align: center;
    padding: 60px 20px;
    background: var(--soft);
    border-radius: 6px;
}

.no-certificates i {
    font-size: 45px;
    color: var(--gold);
}

.no-certificates h3 {
    color: var(--green);
    margin: 20px 0 10px;
}

/* CTA */

.awards-cta {
    max-width: 1200px;
    margin: 0 auto 90px;
    padding: 65px;
    background: linear-gradient(115deg, #0a3425, #15583c);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content > span {
    color: var(--light-gold);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
}

.cta-content h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin: 18px 0;
}

.cta-content p {
    color: rgba(255,255,255,.7);
    max-width: 550px;
    font-size: 14px;
    line-height: 1.8;
}

.cta-icon {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border: 1px solid rgba(234,217,173,.4);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 65px;
    color: var(--light-gold);
    margin-left: 30px;
    position: relative;
    z-index: 2;
    animation: trophyFloat 4s ease-in-out infinite;
}

.cta-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    right: -100px;
    top: -180px;
}

/* SCROLL REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .8s ease, transform .8s ease;
    transition-delay: var(--delay, 0ms);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* LIGHTBOX */

body.lightbox-open {
    overflow: hidden;
}

.certificate-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(4,20,13,.94);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.certificate-lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 950px;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 17px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #fff;
    padding: 8px;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
}

/* ANIMATIONS */

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes trophyFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes rotateCircle {
    to {
        transform: rotate(360deg);
    }
}

@keyframes starFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: .6;
    }
    50% {
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

/* TABLET */

@media(max-width: 992px) {

    .hero-decoration {
        right: -100px;
        opacity: .45;
    }

    .highlights-grid,
    .certificate-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .awards-hero-content {
        z-index: 4;
    }

    .awards-cta {
        margin-left: 5%;
        margin-right: 5%;
    }
}

/* MOBILE */

@media(max-width: 600px) {

    .awards-hero {
        min-height: 440px;
    }

    .awards-hero-content {
        padding: 65px 0;
    }

    .awards-hero h1 {
        font-size: 43px;
        letter-spacing: -1px;
    }

    .awards-hero-content > p {
        font-size: 14px;
        max-width: 95%;
    }

    .hero-decoration {
        right: -210px;
        opacity: .2;
    }

    .hero-bottom {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .awards-breadcrumb {
        margin: 20px auto 50px;
        font-size: 11px;
    }

    .awards-intro {
        margin-bottom: 65px;
    }

    .awards-intro h2 {
        font-size: 33px;
    }

    .award-highlights,
    .certificate-section {
        padding: 65px 5%;
    }

    .awards-section-heading,
    .certificate-heading {
        display: block;
    }

    .awards-section-heading h2,
    .certificate-heading h2 {
        font-size: 28px;
    }

    .highlights-grid,
    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .highlight-card {
        min-height: auto;
    }

    .certificate-count {
        margin-top: 25px;
        width: fit-content;
    }

    .certificate-image-wrap {
        height: 250px;
    }

    .certificate-overlay {
        opacity: 1;
        background: linear-gradient(transparent, rgba(5,44,29,.55));
        align-items: flex-end;
        padding-bottom: 15px;
    }

    .certificate-view {
        font-size: 11px;
        padding: 10px 15px;
    }

    .awards-cta {
        margin: 0 5% 60px;
        padding: 40px 25px;
        display: block;
    }

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

    .cta-icon {
        width: 85px;
        height: 85px;
        font-size: 38px;
        margin: 30px 0 0;
    }

    .certificate-lightbox {
        padding: 15px;
    }

    .lightbox-close {
        top: 12px;
        right: 18px;
    }

}

/* ACCESSIBILITY */

@media(prefers-reduced-motion: reduce) {
    .awards-page *,
    .awards-page *::before,
    .awards-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
