/* Soft, modern aesthetic inspired by the reference image */
:root {
    --primary-color: #0284c7; /* Professional strong blue */
    --primary-dark: #0369a1;
    --text-color: #0f172a; /* Deep slate */
    --text-light: #475569; /* Slate gray */
    --white: #ffffff;
    --font-main: 'Outfit', sans-serif;
    
    /* Clean, professional silver/slate background */
    --page-bg: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background: var(--page-bg);
    line-height: 1.6;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

* {
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none;
}

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphic Pill Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1060px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Scrolled state */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-links .btn-nav {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.nav-links .btn-nav:hover {
    background-color: #222;
    border-color: #222;
    color: #fff;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav dropdown */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 24px;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.8);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mobile-nav-menu a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 12px;
    text-align: center;
    transition: background 0.2s;
}

.mobile-nav-menu a:hover {
    background: #f0f9ff;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 60px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 0; /* Prevents flex blowout */
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--text-color);
    letter-spacing: -1px;
}

.hero-text p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 480px;
}

.trust-banner {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.trust-banner p {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    font-weight: bold;
}

.brands-carousel {
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    position: relative;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 30px;
    width: max-content;
    animation: scroll-carousel 20s linear infinite;
}

.brands-track img {
    height: 30px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.brands-track img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

/* Hero Form Container */
.hero-form-wrapper {
    flex: 1;
    min-width: 0; /* Prevents flex blowout */
    width: 100%;
    max-width: 500px;
    scroll-margin-top: 120px;
}

/* Three Pillars Teaser */
.pillars-teaser {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 80px;
    width: 100%;
}

.pillar-card {
    background: var(--white);
    padding: 30px;
    padding-bottom: 40px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.8);
    display: block;
    position: relative;
}

.pillar-card::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 25px;
    right: 25px;
    color: #000000;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.pillar-card:hover::after {
    transform: translateX(5px);
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.pillar-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.pillar-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.service-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    display: flex;
    overflow: hidden;
    margin-bottom: 50px;
    border: 1px solid rgba(255,255,255,0.6);
    width: 100%;
}

.service-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.service-content h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.service-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-content li {
    margin-bottom: 16px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-light);
}

.service-image {
    flex: 0.7;
    min-height: 250px;
    min-width: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Offices Section */
.offices-section {
    padding: 60px 0;
    width: 100%;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.office-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.office-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-flag {
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    object-fit: cover;
    flex-shrink: 0;
}

.office-card p {
    margin: 0 0 10px 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.office-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.office-card a {
    text-decoration: none;
    transition: all 0.2s ease;
}

.office-card .office-phone {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.office-card .office-phone:hover {
    color: var(--primary-dark);
}

.office-card .office-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.office-card .office-wa:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* Footer */
.footer {
    background: #000;
    color: var(--white);
    padding: 60px 0 20px;
    font-size: 0.95rem;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-left {
    text-align: left;
    flex: 1;
    min-width: 250px;
}

.footer-left h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 0;
    color: var(--white);
}

.footer-left p {
    color: #94a3b8;
    margin: 5px 0;
    line-height: 1.6;
}

.footer-offices {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-office {
    flex: 1;
    min-width: 200px;
}

.footer-office h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--white);
}

.footer-office p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-right {
    text-align: right;
    flex: 1;
    min-width: 250px;
}

.footer-right h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    color: #64748b;
    font-size: 0.9rem;
    width: 100%;
}

.footer-disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #475569;
}

/* INJECTED FORM STYLES */
#packagingLeadForm {
    width: 100%;
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.8);
}

.form-step { display: none; }
.form-step.active { display: block; animation: slideIn 0.4s ease; }

.form-step h3 { 
    margin-top: 0; color: #111827; margin-bottom: 24px; 
    font-size: clamp(1.25rem, 4vw, 1.45rem); font-weight: 700; line-height: 1.3;
}

.options-grid { 
    display: grid; 
    grid-template-columns: 1fr;
    gap: 12px; 
    margin-bottom: 24px; 
}

.option-card {
    padding: 16px 20px; 
    border: none; 
    border-radius: 50px;
    cursor: pointer; 
    transition: all 0.2s ease; 
    background: #000000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    font-size: clamp(0.88rem, 2.5vw, 1rem); 
    font-weight: 500; 
    color: #ffffff;
    text-align: center;
    word-break: break-word;
    white-space: normal;
    line-height: 1.3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    padding-right: 40px; /* Make room for the chevron */
}

.option-card::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    color: #ffffff;
    font-size: 1rem;
}

.option-card:hover { background: #1a1a1a; }

.option-card.selected { 
    border: 2px solid #D4AF37;
    background: #111111; 
    color: #ffffff; 
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); 
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
    align-items: center;
}

.nav-buttons.right-align {
    justify-content: flex-end;
}

.btn-icon-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b5563;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-icon-nav:hover {
    background: #e5e7eb;
    color: #111827;
    transform: translateY(-2px);
}

.btn-icon-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-submit {
    background: #000000;
    color: #ffffff;
    border-radius: 50px;
    padding: 16px 24px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    flex: 1;
    width: 100%;
}

.btn-submit:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.form-group { margin-bottom: 20px; text-align: left; width: 100%; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #4b5563; font-size: 0.9rem;}
.form-group input, .form-group select { 
    width: 100%; padding: 14px 16px; border: 2px solid #e5e7eb; 
    border-radius: 10px; box-sizing: border-box; font-size: 1rem; transition: border-color 0.2s;
    background: #f9fafb;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary-color); background: #fff;}



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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
        background: #ffffff;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(2, 132, 199, 0.4);
        background: #f0f9ff;
        transform: scale(1.02);
    }
}

#packagingLeadForm.highlight-active {
    animation: pulseGlow 1s ease-in-out;
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* All tablets and below (< 992px) - Switch to mobile layout early */
@media (max-width: 992px) {
    .navbar {
        width: 92%;
        top: 12px;
    }

    .nav-container {
        padding: 10px 20px;
    }

    .hero {
        padding: 160px 0 40px;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text svg {
        margin-left: auto;
        margin-right: auto;
    }

    .trust-banner {
        align-items: center;
        text-align: center;
    }

    .trust-banner p {
        font-size: 0.75rem;
    }

    .brands-carousel {
        margin: 0 auto;
    }

    .hero-form-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 20px auto 0;
    }

    .pillars-teaser {
        grid-template-columns: 1fr;
        margin-top: 50px;
        gap: 16px;
    }

    .pillar-card {
        padding: 24px;
    }

    /* Make pillar card SVG containers shorter on mobile */
    .pillar-card > div:first-child {
        height: 120px !important;
    }

    .service-card {
        flex-direction: column !important;
        width: 100%;
        border-radius: 18px;
        margin-bottom: 30px;
    }

    .service-content, .service-image {
        width: 100%;
    }

    .service-content {
        padding: 30px 20px;
    }

    #service-trading .service-content {
        padding-top: 60px;
    }

    .service-image {
        min-height: 200px;
        max-height: 300px;
    }

    .services-section {
        padding: 50px 0;
    }

    .footer {
        padding: 40px 0 20px;
        font-size: 0.85rem;
    }

    .footer-left h4, .footer-right h4 {
        font-size: 1.1rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-left, .footer-right {
        text-align: center;
        width: 100%;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        width: 95%;
        top: 10px;
    }

    .nav-container {
        padding: 10px 16px;
    }

    .hero {
        padding: 140px 0 30px;
    }

    .hero-text h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 12px;
    }

    .trust-banner {
        margin-top: 24px;
    }

    .trust-banner p {
        font-size: 0.65rem;
    }

    .brands-track img {
        height: 22px;
    }

    .brands-track {
        gap: 20px;
    }

    .pillar-card {
        padding: 20px;
    }

    #packagingLeadForm {
        padding: 24px 16px;
        border-radius: 18px;
    }

    .option-card {
        padding: 14px 16px;
        border-radius: 40px;
    }

    .form-group input, .form-group select {
        padding: 12px;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .btn-icon-nav {
        width: 42px;
        height: 42px;
    }

    .service-content h3 {
        font-size: 1.3rem;
    }

    .service-content li {
        font-size: 0.9rem;
        padding-left: 0;
        margin-bottom: 12px;
    }

    .section-title {
        margin-bottom: 30px;
    }



    /* Hero SVG conveyor */
    .hero-text svg {
        max-width: 100%;
        height: auto;
    }

    .mobile-nav-menu {
        width: 92%;
        top: 70px;
        padding: 16px;
    }
}

/* Very small phones (iPhone SE / 320px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 130px 0 24px;
    }

    #packagingLeadForm {
        padding: 20px 12px;
    }

    .option-card {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
}
