@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f9f9f9;
    --accent-navy: #2e4a8a;
    --accent-red: #c0392b;
    --text-main: #111111;
    --text-muted: #555555;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.1;
    color: var(--accent-navy);
}

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

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.6rem 0;
    transition: var(--transition-smooth);
}

nav, .nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

.logo span {
    color: inherit;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-red);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: var(--secondary-bg);
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1.2s ease forwards;
}

.hero-image {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.1);
    z-index: 1;
    animation: slideInRight 1s ease forwards;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent-navy);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(192, 57, 43, 0.2);
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Unified Premium Cards */
.card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 2.5rem;
    flex: 1;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Stats */
.stats {
    background: var(--accent-navy);
    color: white;
    padding: 5rem 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 4rem;
    color: white;
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Footer */
footer {
    background: #111;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.footer-col p {
    color: #888;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

/* WhatsApp Button */
.wa-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    color: white;
    font-size: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateY(-50%) translateX(100px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .hero-image { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Hamburger Button — hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--accent-navy);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animated X when open */
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr !important; }
    .card-img { background-size: cover !important; }

    .hamburger { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.08);
        padding: 1rem 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        z-index: 999;
        list-style: none;
    }

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

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

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links a:hover { background: var(--secondary-bg); }
}

/* ============================================
   ENHANCEMENTS
   ============================================ */

/* 1. Page Transition */
body {
    opacity: 0;
    transition: opacity 0.32s ease;
}
body.page-loaded {
    opacity: 1;
}

/* 2. Active Nav */
.nav-links a.nav-active {
    color: var(--accent-red);
    font-weight: 800;
}

/* 3. Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Back to Top */
#backToTop {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent-navy);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
#backToTop:hover {
    background: var(--accent-red);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(192,57,43,0.3);
}

/* 5. WhatsApp Button — upgraded */
.wa-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    z-index: 1001;
    color: white;
    transition: all 0.3s ease;
}
.wa-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 10px 30px rgba(37,211,102,0.55);
}

/* 6. Hero animated gradient */
.hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #fafafa 50%, #fff3f0 100%);
    background-size: 300% 300%;
    animation: heroGradient 10s ease infinite;
}
@keyframes heroGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 7. Supply card number hover */
.offer-card:hover .offer-number {
    background: var(--accent-red);
}
.offer-number {
    transition: background 0.3s ease;
}

/* 8. Footer quick links */
.footer-links {
    list-style: none;
    margin-top: 0.5rem;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: #888;
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links a:hover {
    color: white;
    padding-left: 6px;
}

/* 9. Favicon (browser handles this, but ensure no flash) */

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

@media (max-width: 768px) {

    /* Footer — stack all 3 columns */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    /* Stats row — stack vertically */
    .stats-grid {
        flex-direction: column;
        gap: 2.5rem;
    }

    /* Services page — stack image above text, fix row-reverse */
    .service-flex {
        flex-direction: column !important;
        gap: 2rem;
    }
    .service-img {
        height: 260px !important;
        width: 100% !important;
    }

    /* Advertising — 1 column */
    .ad-grid {
        grid-template-columns: 1fr !important;
        margin-top: -20px !important;
    }

    /* Ad banner heading — prevent overflow */
    .ad-banner h1 {
        font-size: 2.5rem !important;
        word-break: break-word;
    }

    /* About — stack grid */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    /* Vision / Mission — stack */
    .vm-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    /* Contact — stack form + info */
    .contact-container {
        grid-template-columns: 1fr !important;
        padding-top: 120px !important;
        gap: 3rem;
    }

    /* Section title sizes */
    .section-title h2 {
        font-size: 2rem;
    }

    /* Hero font */
    .hero h1 {
        font-size: 2.8rem;
    }

    /* Back to top & WA — smaller gap on mobile */
    #backToTop {
        bottom: 100px;
        right: 20px;
    }
    .wa-btn {
        bottom: 25px;
        right: 20px;
        width: 54px;
        height: 54px;
    }

    /* Supply split image — reduce height */
    .offer-card-img,
    .offer-card-img-split {
        height: 180px !important;
    }
}

@media (max-width: 480px) {

    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 1.7rem;
    }

    /* Banner headings */
    .supply-banner h1,
    .ad-banner h1 {
        font-size: 2.2rem;
    }
    .about-hero h1 {
        font-size: 2.2rem !important;
    }

    /* Stats numbers */
    .stat-item h3 {
        font-size: 2.5rem;
    }

    /* Contact info card */
    .contact-info {
        padding: 2rem;
    }
    .contact-info h2 {
        font-size: 1.8rem;
    }
    .info-item p {
        font-size: 1.1rem;
    }

    /* Nav logo smaller */
    .logo img {
        height: 52px;
    }

    /* Cards padding */
    .card-content {
        padding: 1.5rem;
    }
    .offer-card-body {
        padding: 1.2rem 1.5rem;
    }
}
