/* Trunggasi.com Clone Styles */

:root {
    --primary-red: #dc3545;
    --primary-navy: #070545;
    --border-green: #28a745;
    --bg-white: #ffffff;
    --text-color: #333;
}

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

body {
    font-family: 'Mulish', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

/* ===== HEADER ===== */
header {
    background: var(--bg-white);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-navy);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--border-green);
    text-transform: lowercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-links>li>a {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-links>li>a:hover {
    color: var(--primary-red);
    background: #fff5f5;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.has-dropdown>a i {
    font-size: 11px;
    margin-left: 3px;
}

.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: white;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-top: 3px solid var(--border-green);
    z-index: 100;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-navy);
    transition: all 0.2s;
}

.dropdown li a:hover {
    background: #f5f5f5;
    color: var(--primary-red);
    padding-left: 22px;
}

.hotline-btn {
    background: var(--primary-red) !important;
    color: white !important;
    padding: 10px 18px !important;
    border-radius: 5px;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.hotline-btn:hover {
    background: #c82333 !important;
    color: white !important;
}

.hotline-btn i {
    animation: hotline-pulse 1.4s infinite;
    transform-origin: center;
}

@keyframes hotline-pulse {
    0% {
        transform: rotate(0deg) scale(1);
    }

    30% {
        transform: rotate(-12deg) scale(1.12);
    }

    60% {
        transform: rotate(10deg) scale(1.12);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--primary-navy);
    cursor: pointer;
    padding: 5px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-family: 'Mulish', sans-serif;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-primary:hover {
    background-color: #c82333;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.btn-outline:hover {
    background: var(--primary-navy);
    color: white;
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    background: #f8f8f8;
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
    padding: 80px 0;
    background: url('/uploads/main-bg.webp');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
    position: relative;
    z-index: 2;
}

.hero-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--border-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.hero h1 {
    font-size: 36px;
    color: var(--primary-navy);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.45);
}

.hero h1 span {
    color: var(--border-green);
}

.hero-desc {
    font-size: 16px;
    margin-bottom: 32px;
    color: #2f3542;
    font-weight: 500;
    line-height: 1.7;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.35);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-inline-image {
    display: none;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* ===== TRUST BADGES ===== */
.trust-badges {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    background: #f9f9fb;
    transition: all 0.3s;
}

.trust-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transform: translateY(-3px);
}

.trust-item i {
    font-size: 32px;
    color: var(--border-green);
    flex-shrink: 0;
}

.trust-item h4 {
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
}

.trust-item p {
    font-size: 12px;
    color: #777;
    margin: 0;
}

/* ===== SECTION COMMON ===== */
.section-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--border-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    text-align: center;
    color: var(--primary-navy);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--border-green);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #777;
    font-size: 15px;
    margin-bottom: 50px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-text p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-list {
    margin-bottom: 30px;
}

.about-list li {
    padding: 8px 0;
    color: #444;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list li i {
    color: var(--border-green);
    font-size: 14px;
    flex-shrink: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    background: var(--primary-navy);
    color: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--border-green);
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 40px 0;
    /* Reduced from 80px */
    background: #f9f9fb;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.product-card {
    background: linear-gradient(180deg, #ffffff 0%, #fff6f3 100%);
    border: 1px solid rgba(7, 5, 69, 0.08);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: 0 18px 40px rgba(7, 5, 69, 0.12);
    transform: translateY(-6px);
}

.product-card img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 4px;
    box-shadow: inset 0 0 0 1px rgba(7, 5, 69, 0.05);
}

.product-card h3 {
    font-size: 18px;
    color: var(--primary-navy);
    font-weight: 800;
    line-height: 1.35;
}

.product-card .price {
    color: #d43f3a;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
}

.product-card .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 18px;
    min-height: 62px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
    color: #fff;
    box-shadow: 0 10px 18px rgba(220, 53, 69, 0.25);
    font-size: 17px;
    letter-spacing: 0.6px;
    text-transform: none;
}

.product-card .btn i {
    margin-right: 8px;
    font-size: 18px;
}

.product-card .btn:hover {
    background: linear-gradient(135deg, #c82333, #ff5151);
    transform: translateY(-1px);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: var(--primary-navy);
    text-align: center;
    color: white;
}

.cta-section .section-label {
    color: var(--border-green);
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cta-section p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    line-height: 1.8;
}

/* ===== PARTNERS ===== */
.partners {
    padding: 60px 0;
    background: white;
    border-top: 1px solid #eee;
}

.partners-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 40px;
}

.partner-item {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 20px;
    width: 160px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 700;
    color: #555;
    text-align: center;
    font-size: 13px;
    overflow: hidden;
    /* Ensure image stays inside */
    padding: 10px;
    /* Padding for logo */
}

.partner-item:hover {
    border-color: var(--border-green);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: var(--primary-navy);
}

.partner-item i {
    font-size: 22px;
    margin-bottom: 5px;
    display: block;
    color: var(--border-green);
}

/* ===== CONTACT PAGE & MAP ===== */
.contact-page {
    padding: 80px 0;
}

.map-section {
    width: 100%;
    margin-top: 40px;
}

.map-section iframe {
    width: 100%;
    display: block;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-navy);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 0;
    font-size: 14px;
    border-top: 4px solid var(--border-green);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: stretch;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.footer-col p i {
    margin-right: 8px;
    color: var(--border-green);
    width: 16px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--border-green);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a::before {
    content: '›';
    color: var(--border-green);
    font-size: 18px;
    line-height: 1;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: var(--border-green);
}

/* ===== PAGE BANNER ===== */
.page-banner {
    background: var(--primary-navy);
    padding: 50px 0;
    text-align: center;
    color: white;
    border-bottom: 4px solid var(--border-green);
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.page-banner p a {
    color: var(--border-green);
}

.page-banner p a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-inner,
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 5px;
        align-items: flex-start;
    }

    .nav-actions {
        margin-left: auto;
    }

    .header-hotline-btn {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links>li {
        width: 100%;
    }

    .has-dropdown>a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .nav-links>li>a {
        display: block;
        width: 100%;
        padding: 10px 15px;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--border-green);
        margin-left: 15px;
        margin-top: 5px;
    }

    .has-dropdown:hover .dropdown {
        display: none;
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero {
        padding: 60px 0;
    }

    .section-subtitle {
        margin-bottom: 32px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 18px;
    }

    .product-card img {
        height: 180px;
    }

    .section-title {
        font-size: 24px;
    }

    .cta-section h2 {
        font-size: 26px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }

    nav {
        height: 70px;
    }

    .nav-links {
        top: 70px;
        padding: 16px;
    }

    .logo-main {
        font-size: 18px;
    }

    .logo-sub {
        font-size: 11px;
    }

    .hero h1 {
        font-size: 22px;
        line-height: 1.2;
    }

    .hero-desc {
        font-size: 14px;
    }

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.92) 0%,
                rgba(255, 255, 255, 0.7) 65%,
                rgba(255, 255, 255, 0.4) 100%);
        z-index: 1;
    }

    .hero-content {
        max-width: 100%;
        background: rgba(255, 255, 255, 0.85);
        padding: 16px;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    }

    .hero-actions {
        gap: 10px;
    }

    .section-title {
        font-size: 22px;
    }

    .products-section,
    .partners,
    .about-section,
    .contact-page {
        padding: 50px 0;
    }

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

    .product-card {
        padding: 12px;
        gap: 8px;
    }

    .product-card img {
        height: 140px;
    }

    .product-card h3 {
        font-size: 14px;
    }

    .product-card .price {
        font-size: 15px;
    }

    .product-card .btn {
        padding: 10px 4px;
        min-height: 42px;
        font-size: clamp(11.5px, 3.5vw, 15.5px);
        letter-spacing: 0px;
    }

    .product-card .btn i {
        margin-right: 5px;
        font-size: clamp(12px, 3.8vw, 16.5px);
    }

    .footer-bottom {
        font-size: 12px;
    }

    /* Resize logo on mobile to prevent overflow */
    .logo img {
        height: 55px !important;
        transform: scale(1) !important;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-desc {
        font-size: 13px;
    }

    .hero h1 {
        word-break: break-word;
        hyphens: auto;
    }

    .section-title::after {
        width: 48px;
    }

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

@media (max-width: 400px) {
    .logo-main {
        font-size: 14px;
    }

    .logo-sub {
        font-size: 10px;
    }

    .nav-actions {
        gap: 4px;
    }

    .header-hotline-btn {
        font-size: 11px !important;
        padding: 5px 6px !important;
    }

    .nav-toggle {
        font-size: 18px;
        padding: 4px;
    }
}