/* ========================================
   SINO EQUIPMENTS - CUSTOM STYLES
   Color Scheme: Mustard Yellow (#D4A017) & Black
   ======================================== */

/* ========================================
   1. ROOT VARIABLES
   ======================================== */
:root {
    --primary-yellow: #e9a321;
    --primary-black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #666666;
    --bg-gray: #f5f5f5;
    --gold: #FFD700;
    --transition: all 0.3s ease;
}

/* ========================================
   2. GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;   /* stop any horizontal scroll */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--primary-black);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Make container stop child overflows (e.g., decorative layers) */
.container,
.container-fluid {
    overflow-x: clip;
}

/* ========================================
   3. UTILITY CLASSES
   ======================================== */
.text-yellow {
    color: var(--primary-yellow) !important;
}

.text-light-gray {
    color: #aaa !important;
}

.min-vh-70 {
    min-height: 70vh;
}

/* ========================================
   4. TOP BAR
   ======================================== */
.top-bar {
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar i {
    font-size: 14px;
}

/* ========================================
   5. NAVIGATION
   ======================================== */
.navbar {
    padding: 0;
    transition: var(--transition);
}

.navbar .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Logo Styles */
.logo-box {
    width: 48px;
    height: 48px;
    background: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    color: var(--primary-black);
    font-size: 24px;
    font-weight: bold;
}

.logo-content h1 {
    color: var(--primary-yellow);
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 0;
}

.logo-content p {
    color: white;
    font-size: 10px;
    letter-spacing: 3px;
    line-height: 1;
}

/* Nav Links */
.navbar-nav .nav-link {
    color: #000 !important;
    padding: 12px 24px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-yellow) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-yellow) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--primary-yellow);
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    padding: 12px 32px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom:hover {
    background: var(--gold);
    color: var(--primary-black);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.3);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
    padding: 12px 32px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
}

.btn-dark-custom {
    background: var(--primary-black);
    color: var(--primary-yellow);
    border: 2px solid var(--primary-black);
    padding: 12px 32px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-dark-custom:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
}

/* ========================================
   6. HERO SECTION
   ======================================== */


/* ========================================
   7. ABOUT SECTION
   ======================================== */
.about-section {
    background: white;
    padding: 80px 0;
    position: relative;
    overflow: clip;
}

.section-subtitle {
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    color: var(--primary-black);
    font-weight: 700;
}

.years-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 192px;
    height: 192px;
    background: var(--primary-yellow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.years-badge h3 {
    color: var(--primary-black);
    font-size: 48px;
    font-weight: 700;
}

.years-badge p {
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.feature-item i {
    font-size: 24px;
}

.feature-item h5 {
    color: var(--primary-black);
    font-weight: 600;
    margin-bottom: 4px;
}

/* ========================================
   8. ADVANTAGES SECTION
   ======================================== */
.advantages-section {
    position: relative;
    background: var(--primary-black);
    padding: 120px 0;
    overflow: clip;  /* clip diagonals inside */
}

/* Replaced skewY band with a clipped white cap */
.diagonal-top-white {
    position: absolute;
    inset: 0 0 auto 0;
    height: 120px;
    background: white;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    pointer-events: none;
}

/* Right accent: no skew that overflows; clip instead */
.diagonal-accent-right {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(50vw, 720px);
    background: rgba(212, 160, 23, 0.1);
    z-index: 1;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.section-subtitle-light {
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

.section-title-light {
    color: white;
    font-size: 42px;
    font-weight: 700;
}

.title-underline {
    width: 96px;
    height: 4px;
    background: var(--primary-yellow);
}

.advantage-card {
    background: #1a1a1a;
    padding: 32px;
    border-left: 4px solid var(--primary-yellow);
    transition: var(--transition);
    height: 100%;
}

.advantage-card:hover {
    border-left-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 160, 23, 0.2);
}

.advantage-icon {
    color: var(--primary-yellow);
    font-size: 56px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
}

/* Bottom white band: clip instead of skew overflow */
.diagonal-bottom-white {
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: white;
    z-index: 1;
    clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

/* ========================================
   9. SERVICES SECTION
   ======================================== */
.services-section {
    background: white;
    padding: 80px 0;
    position: relative;
    overflow: clip;
}

.service-card {
    cursor: pointer;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
}

.service-image img {
    width: 100%;
    height: 256px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.service-overlay h4 {
    color: white;
    margin: 0;
    font-size: 24px;
}

.service-content p {
    color: var(--light-gray);
    margin-bottom: 16px;
}

.service-link {
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 16px;
    color: var(--gold);
}

/* ========================================
   10. TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    position: relative;
    background: linear-gradient(to bottom right, var(--primary-yellow), #B8860B);
    padding: 120px 0 80px;
    overflow: clip;
}

.section-subtitle-dark {
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

.section-title-dark {
    color: var(--primary-black);
    font-size: 42px;
    font-weight: 700;
}

.title-underline-dark {
    width: 96px;
    height: 4px;
    background: var(--primary-black);
}

.testimonial-card {
    background: white;
    padding: 32px;
    position: relative;
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.testimonial-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-black);
}

.rating i {
    color: var(--primary-yellow);
    font-size: 18px;
}

.testimonial-text {
    color: var(--light-gray);
    font-style: italic;
    line-height: 1.8;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
}

.testimonial-card h6 {
    color: var(--primary-black);
    font-weight: 600;
    margin-bottom: 4px;
}

/* ========================================
   11. CTA SECTION
   ======================================== */
.cta-section {
    position: relative;
    background: var(--primary-black);
    padding: 80px 0;
    overflow: clip;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1683153559214-dd582075d0b5?w=1920&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.contact-info-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary-black);
    font-size: 24px;
}

/* ========================================
   12. FOOTER
   ======================================== */
.footer-section {
    position: relative;
    background: var(--primary-black);
    color: white;
    padding: 120px 0 48px;
    overflow: clip;
}

/* Replace skewed pattern with clipped block on the right */
.footer-pattern {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(33.333%, 540px);
    height: 100%;
    background: rgba(212, 160, 23, 0.05);
    z-index: 1;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand h3 {
    font-size: 24px;
    line-height: 1;
}

.footer-brand p {
    font-size: 10px;
    letter-spacing: 3px;
    line-height: 1;
}

.certification {
    margin-top: 24px;
}

.certification p:first-child {
    font-size: 12px;
}

.footer-heading {
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--primary-yellow);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-yellow);
    transform: translateX(8px);
}

.footer-links i {
    margin-right: 8px;
    font-size: 12px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 16px;
}

.footer-contact a {
    color: #aaa;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 48px;
}

.footer-link {
    color: #aaa;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-yellow);
}

.whatsapp-btn{
    position: fixed;
    bottom: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgb(45 215 78);
     color: #fff; 
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 1000;
    transition: 0.3s;
    /*box-shadow: rgba(212, 160, 23, 0.3) 0px 5px 15px;*/
    transform: scale(1);
}
.whatsapp-btn:hover{
    
    background: rgba(45 218 81);
    /*background: var(--gold);*/
    color: #fff;
    transform: scale(1.05);
    /*box-shadow: 0 10px 30px rgba(212, 160, 23, 0.3);*/
}

/* ========================================
   13. PAGE HEADER
   ======================================== */
.page-header {
    background: linear-gradient(to right, #000 0%, #1a1a1a 50%, #000 100%);
    padding: 120px 0 80px;
    text-align: center;
    overflow: clip;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 24px;
}

.samples-header {
    background: linear-gradient(to right, var(--primary-yellow) 0%, #B8860B 50%, var(--primary-yellow) 100%);
}

/* ========================================
   14. PRODUCTS PAGE
   ======================================== */
.products-section {
    background: white;
}

.product-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.product-tab {
    padding: 16px 32px;
    border: 2px solid var(--primary-yellow);
    background: white;
    color: var(--primary-black);
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.product-tab:hover {
    transform: scale(1.05);
    background: rgba(212, 160, 23, 0.1);
}

.product-tab.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.3);
}

.product-content {
    display: none;
}

.product-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    background: white;
    border: 2px solid var(--primary-yellow);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(212, 160, 23, 0.2);
}

.product-info-box {
    padding: 24px;
    background: rgba(212, 160, 23, 0.1);
    border-left: 4px solid var(--primary-yellow);
    border-radius: 4px;
}

.product-info-box h4 {
    color: var(--primary-black);
    margin-bottom: 12px;
}

.product-specs-title {
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--primary-yellow);
}

.specifications-table {
    max-height: 600px;
    overflow-y: auto;
}

.specifications-table table {
    width: 100%;
    margin-bottom: 0;
}

.specifications-table tr {
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

.specifications-table tr:last-child {
    border-bottom: none;
}

.spec-label {
    background: rgba(212, 160, 23, 0.1);
    font-weight: 600;
    color: var(--primary-black);
    padding: 12px 16px !important;
    width: 33.333%;
}

.specifications-table td {
    padding: 12px 16px;
    color: var(--medium-gray);
}

.spec-subtitle {
    color: var(--primary-yellow);
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(212, 160, 23, 0.3);
}

/* ========================================
   15. SAMPLES PAGE
   ======================================== */
.samples-gallery {
    background: white;
}

.sample-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.sample-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.sample-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sample-card:hover .sample-image {
    transform: scale(1.1);
}

.sample-info {
    padding: 16px;
    background: linear-gradient(to right, rgba(212, 160, 23, 0.1), transparent);
}

.sample-info h5 {
    color: var(--primary-black);
    font-weight: 600;
    margin-bottom: 4px;
}

/* Accessories Section */
.accessories-section {
    background: var(--primary-black);
    color: white;
}

.accessory-card {
    background: linear-gradient(to bottom right, #1a1a1a, #0d0d0d);
    padding: 32px;
    border: 2px solid var(--primary-yellow);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(212, 160, 23, 0.2);
    transition: var(--transition);
}

.accessory-card:hover {
    transform: scale(1.03);
}

.accessory-icon {
    color: var(--primary-yellow);
    font-size: 48px;
}

.accessory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accessory-list li {
    color: white;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bullet {
    width: 8px;
    height: 8px;
    background: var(--primary-yellow);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Applications Section */
.applications-section {
    background: linear-gradient(to bottom right, var(--primary-yellow), #B8860B);
}

.application-card {
    background: var(--primary-black);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.application-icon {
    color: var(--primary-yellow);
    font-size: 48px;
    margin-bottom: 16px;
}

/* ========================================
   16. CONTACT PAGE
   ======================================== */
.contact-section {
    background: white;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(to right, rgba(212, 160, 23, 0.1), transparent);
    border-left: 4px solid var(--primary-yellow);
    border-radius: 4px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.15);
}

.contact-info-icon {
    color: var(--primary-yellow);
    font-size: 32px;
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-info-item h5 {
    color: var(--primary-black);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Contact Form */
.contact-form-wrapper {
    background: linear-gradient(to bottom right, #000, #1a1a1a);
    padding: 32px;
    border: 2px solid var(--primary-yellow);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(212, 160, 23, 0.2);
}

.contact-input {
    background: #222 !important;
    border: 2px solid #444 !important;
    color: white !important;
    padding: 12px 16px;
    border-radius: 4px;
    transition: var(--transition);
}

.contact-input:focus {
    border-color: var(--primary-yellow) !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.25) !important;
    background: #2a2a2a !important;
    outline: none;
}

.contact-input::placeholder {
    color: #888;
}

/* Map Section */
.map-section {
    background: linear-gradient(to bottom right, var(--primary-yellow), #B8860B);
}

.map-wrapper {
    background: var(--primary-black);
    padding: 32px;
    border-radius: 8px;
}

.map-placeholder {
    background: #222;
    height: 256px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-placeholder i {
    font-size: 64px;
    color: #444;
}

/* Support Section */
.support-section {
    background: var(--primary-black);
}

.support-card {
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.support-card.emergency {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.support-card.technical {
    background: #222;
    border: 2px solid var(--primary-yellow);
}

.support-card h5 {
    font-weight: 600;
    margin-bottom: 12px;
}

/* ========================================
   17. RESPONSIVE STYLES
   ======================================== */
@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0 80px;
    }

    .section-title,
    .section-title-light,
    .section-title-dark {
        font-size: 32px;
    }

    .years-badge {
        width: 120px;
        height: 120px;
        bottom: -12px;
        right: -12px;
    }

    .years-badge h3 {
        font-size: 32px;
    }

    .navbar-nav .nav-link {
        padding: 16px 24px !important;
        border-left: 4px solid transparent;
    }

    .navbar-nav .nav-link.active {
        border-left-color: var(--primary-yellow);
        background: rgba(212, 160, 23, 0.1);
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .page-header h1 {
        font-size: 32px;
    }

    .hero-title {
        font-size: 28px !important;
    }

    .stat-number {
        font-size: 28px;
    }
}

/* ========================================
   18. ANIMATIONS
   ======================================== */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: var(--primary-yellow); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
