/* ==========================================================================
   HM Amza Sdn. Bhd. — Corporate Landing Page
   Brand: Deep Blue #0F4C81 · Sky Blue #4DA8DA · Light Grey #F5F7FA
   ========================================================================== */

:root {
    --brand-blue: #0F4C81;
    --brand-blue-dark: #0B3a63;
    --brand-sky: #4DA8DA;
    --brand-white: #ffffff;
    --brand-grey: #F5F7FA;
    --brand-ink: #1c2b39;
    --brand-muted: #5b6b7b;
    --brand-border: #e6ebf1;
    --shadow-sm: 0 4px 14px rgba(15, 76, 129, .08);
    --shadow-md: 0 12px 32px rgba(15, 76, 129, .12);
    --shadow-lg: 0 24px 60px rgba(15, 76, 129, .18);
    --radius: 18px;
    --radius-lg: 28px;
    --transition: .35s cubic-bezier(.22, 1, .36, 1);
    --font-head: 'Poppins', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--brand-ink);
    background: var(--brand-white);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
}

.skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 2000;
    background: var(--brand-blue);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 8px;
}

/* ---------- Section scaffolding ---------- */
.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    scroll-margin-top: 80px;
}

.section--muted {
    background: var(--brand-grey);
}

.section-heading {
    margin-bottom: 1rem;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-sky);
    background: rgba(77, 168, 218, .12);
    padding: .35rem .9rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    color: var(--brand-blue);
    margin-bottom: .75rem;
}

.section-subtitle {
    color: var(--brand-muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font-head);
    font-weight: 600;
    border-radius: 50px;
    padding: .7rem 1.6rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-lg {
    padding: .85rem 2rem;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-accent {
    background: var(--brand-sky);
    border: none;
    color: #fff;
    box-shadow: 0 8px 22px rgba(77, 168, 218, .35);
}

.btn-accent:hover {
    background: #3a98cd;
    color: #fff;
    box-shadow: 0 12px 28px rgba(77, 168, 218, .45);
}

.btn-primary-brand {
    background: var(--brand-blue);
    border: none;
    color: #fff;
    box-shadow: 0 8px 22px rgba(15, 76, 129, .3);
}

.btn-primary-brand:hover {
    background: var(--brand-blue-dark);
    color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    border: none;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1eb959;
    color: #fff;
}

.btn-outline-light:hover {
    color: var(--brand-blue);
}

/* ---------- Navbar ---------- */
.site-navbar {
    padding: 1rem 0;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-navbar.scrolled {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: .55rem 0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
    color: #fff;
    font-weight: 800;
    font-family: var(--font-head);
    letter-spacing: .5px;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brand-blue);
    line-height: 1;
}

.brand-text small {
    display: block;
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-muted);
}

/* Navbar starts on dark hero -> light text, switches when scrolled */
.site-navbar .nav-link {
    font-family: var(--font-head);
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
    margin: 0 .35rem;
    position: relative;
}

.site-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: .2rem;
    width: 0;
    height: 2px;
    background: var(--brand-sky);
    transition: width var(--transition), left var(--transition);
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after {
    width: 60%;
    left: 20%;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: #fff;
}

.site-navbar .brand-text,
.site-navbar .brand-text small {
    color: #fff;
}

.site-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, .5);
}

.site-navbar .navbar-toggler-icon {
    filter: invert(1);
}

/* Scrolled / mobile open -> dark text on light bg */
.site-navbar.scrolled .nav-link {
    color: var(--brand-ink);
}

.site-navbar.scrolled .nav-link:hover,
.site-navbar.scrolled .nav-link.active {
    color: var(--brand-blue);
}

.site-navbar.scrolled .brand-text {
    color: var(--brand-blue);
}

.site-navbar.scrolled .brand-text small {
    color: var(--brand-muted);
}

.site-navbar.scrolled .navbar-toggler {
    border-color: var(--brand-border);
}

.site-navbar.scrolled .navbar-toggler-icon {
    filter: none;
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        background: #fff;
        margin-top: 1rem;
        padding: 1rem 1.25rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
    }

    .site-navbar .nav-link {
        color: var(--brand-ink);
        padding: .6rem 0;
    }

    .site-navbar .nav-link:hover,
    .site-navbar .nav-link.active {
        color: var(--brand-blue);
    }

    .btn-quote {
        width: 100%;
        text-align: center;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 9rem 0 4rem;
    background:
        linear-gradient(120deg, rgba(11, 58, 99, .92) 0%, rgba(15, 76, 129, .78) 45%, rgba(77, 168, 218, .55) 100%),
        url('https://placehold.co/1920x1080/0B3a63/0F4C81?text=+') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(77, 168, 218, .35), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(15, 76, 129, .4), transparent 40%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
}

.hero__eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: .45rem 1.1rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .2);
}

.hero__subtitle {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    max-width: 620px;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__stats {
    margin-top: 4rem;
}

.hero-stat {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(6px);
    transition: transform var(--transition), background var(--transition);
}

.hero-stat:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .16);
}

.hero-stat__value {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-stat__label {
    display: block;
    margin-top: .5rem;
    font-size: .9rem;
    color: rgba(255, 255, 255, .85);
}

/* ---------- About ---------- */
.about__media {
    position: relative;
}

.about__media img {
    box-shadow: var(--shadow-lg);
}

.about__badge {
    position: absolute;
    right: -10px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
    color: #fff;
    border-radius: var(--radius);
    padding: 1.1rem 1.4rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about__badge-value {
    display: block;
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.about__badge-label {
    font-size: .78rem;
    line-height: 1.2;
    display: block;
    margin-top: .25rem;
}

.about__lead {
    color: var(--brand-muted);
    font-size: 1.08rem;
}

.about__pillar {
    background: var(--brand-grey);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    border: 1px solid var(--brand-border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about__pillar:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.about__pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--brand-blue);
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: .9rem;
}

.about__pillar p {
    color: var(--brand-muted);
    margin-bottom: 0;
    font-size: .95rem;
}

.about__list {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 .5rem;
}

.about__list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .6rem;
    color: var(--brand-ink);
    font-weight: 500;
}

.about__list i {
    color: var(--brand-sky);
    font-size: 1.15rem;
}

/* ---------- Product cards ---------- */
.product-card {
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-card__media {
    position: relative;
    overflow: hidden;
}

.product-card__media img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform .6s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.08);
}

.product-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, .92);
    color: var(--brand-blue);
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .7rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.product-card__title {
    color: var(--brand-blue);
    margin-bottom: .5rem;
}

.product-card__text {
    color: var(--brand-muted);
    font-size: .95rem;
}

.product-card__link {
    color: var(--brand-sky);
    font-weight: 600;
    font-family: var(--font-head);
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.product-card__link i {
    transition: transform var(--transition);
}

.product-card__link:hover {
    color: var(--brand-blue);
}

.product-card__link:hover i {
    transform: translateX(5px);
}

/* ---------- Service cards ---------- */
.service-card {
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .card-body {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    color: var(--brand-blue);
    background: rgba(77, 168, 218, .14);
    margin-bottom: 1.25rem;
    transition: background var(--transition), color var(--transition);
}

.service-card:hover .service-card__icon {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.service-card__title {
    color: var(--brand-blue);
    transition: color var(--transition);
}

.service-card__text {
    color: var(--brand-muted);
    margin-bottom: 0;
    transition: color var(--transition);
}

.service-card:hover .service-card__title,
.service-card:hover .service-card__text {
    color: #fff;
}

/* ---------- Facilities gallery ---------- */
.facility-tile {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.facility-tile img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .6s ease;
}

.facilities__grid-feature .facility-tile img {
    height: 100%;
    min-height: 240px;
}

.facility-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 58, 99, .75), transparent 55%);
    opacity: .6;
    transition: opacity var(--transition);
}

.facility-tile:hover::after {
    opacity: .9;
}

.facility-tile:hover img {
    transform: scale(1.08);
}

.facility-tile__caption {
    position: absolute;
    left: 1.1rem;
    bottom: 1rem;
    z-index: 2;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
}

/* ---------- Why choose us ---------- */
.feature-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
}

.feature-card__text {
    color: var(--brand-muted);
    font-size: .92rem;
}

.why__stats {
    margin-top: 3.5rem;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.why__stat-value {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.why__stat-label {
    display: block;
    margin-top: .5rem;
    color: rgba(255, 255, 255, .85);
}

/* ---------- Testimonials ---------- */
.testimonials__swiper {
    padding: 1rem .5rem 4rem;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    height: 100%;
    margin: 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: box-shadow var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-card__quote {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3.5rem;
    color: rgba(77, 168, 218, .15);
    line-height: 1;
}

.testimonial-card__text {
    color: var(--brand-ink);
    font-size: 1.02rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.testimonial-card__rating {
    color: #f5b301;
    margin-bottom: 1.25rem;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.testimonial-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-sky);
}

.testimonial-card__author strong {
    display: block;
    color: var(--brand-blue);
    font-family: var(--font-head);
}

.testimonial-card__author small {
    color: var(--brand-muted);
}

.swiper-pagination-bullet {
    background: var(--brand-blue);
    opacity: .35;
}

.swiper-pagination-bullet-active {
    background: var(--brand-sky);
    opacity: 1;
    width: 26px;
    border-radius: 6px;
}

/* ---------- CTA ---------- */
.cta {
    padding: 0 0 clamp(4rem, 8vw, 7rem);
}

.cta__inner {
    background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-blue-dark) 60%, #093155 100%);
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta__inner::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(77, 168, 218, .45), transparent 70%);
    border-radius: 50%;
}

.cta__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    position: relative;
    z-index: 1;
}

.cta__subtitle {
    color: rgba(255, 255, 255, .85);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.cta .btn {
    position: relative;
    z-index: 1;
}

/* ---------- Contact ---------- */
.contact__info {
    background: var(--brand-grey);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    height: 100%;
    border: 1px solid var(--brand-border);
}

.contact__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact__list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: .9rem 0;
    border-bottom: 1px dashed var(--brand-border);
}

.contact__list li:last-child {
    border-bottom: none;
}

.contact__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--brand-blue);
    color: #fff;
    font-size: 1.1rem;
}

.contact__list strong {
    display: block;
    font-family: var(--font-head);
    color: var(--brand-blue);
    font-size: .95rem;
}

.contact__list a,
.contact__list span {
    color: var(--brand-muted);
}

.contact__list a:hover {
    color: var(--brand-blue);
}

.contact__map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact__form-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--brand-border);
    height: 100%;
}

.form-label {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .92rem;
    color: var(--brand-ink);
}

.form-control {
    border-radius: 12px;
    border: 1px solid var(--brand-border);
    padding: .75rem 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    border-color: var(--brand-sky);
    box-shadow: 0 0 0 .2rem rgba(77, 168, 218, .2);
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0a2a47;
    color: rgba(255, 255, 255, .75);
    padding: 4rem 0 2rem;
}

.site-footer .brand-mark {
    box-shadow: none;
}

.footer-about {
    font-size: .95rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, .7);
}

.footer-heading {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: .65rem;
}

.footer-links a {
    color: rgba(255, 255, 255, .72);
}

.footer-links a:hover {
    color: var(--brand-sky);
    padding-left: 4px;
}

.footer-contact i,
.footer-hours .text-white-50 {
    color: var(--brand-sky);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 1.1rem;
    transition: background var(--transition), transform var(--transition);
}

.footer-social a:hover {
    background: var(--brand-sky);
    transform: translateY(-4px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, .12);
    margin: 2.5rem 0 1.5rem;
}

.footer-copy {
    font-size: .9rem;
    color: rgba(255, 255, 255, .6);
}

/* ---------- Floating helpers ---------- */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    font-size: 1.2rem;
    z-index: 1030;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--brand-sky);
    transform: translateY(-4px);
}

.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 5.25rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    z-index: 1030;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
    animation: pulse 2.5s infinite;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
