/* Paramount Plastics - Main Stylesheet */
/* ============================================ */

/* CSS Variables */
:root {
    --burgundy: #6B1F2E;
    --burgundy-dark: #4A1520;
    --burgundy-light: #8B3F4E;
    --gold: #D4AF37;
    --charcoal: #2C2C2C;
    --gray: #707070;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.20);
	  --header-height: 70px;

}

/* Reset & Base Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================ */
/* HEADER STYLES */
/* ============================================ */

header {
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Header Top Bar */
.header-top {
    background: var(--burgundy);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 2rem;
}

.header-contact span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Main Navigation */
.nav-main {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(107, 31, 46, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    gap: 1rem;
}

.logo:hover {
    transform: translateX(5px);
}

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--burgundy);
    letter-spacing: -0.5px;
}

/* Fallback logo */
.logo-p {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--burgundy);
    color: var(--white);
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-image:not([src]), 
.logo-image[src=""] {
    display: none;
}

.logo-image:not([src]) ~ .logo-p, 
.logo-image[src=""] ~ .logo-p {
    display: flex;
}

/* Ensure dropdown has no list styling */
.dropdown {
    list-style: none !important;
    padding-left: 0 !important;
}

.dropdown li {
    list-style-type: none !important;
    list-style-image: none !important;
}

.dropdown li::before,
.dropdown li::after {
    content: none !important;
}

.dropdown a::before,
.dropdown a::after {
    content: none !important;
}
/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--burgundy);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu > li:hover > a::after,
.nav-menu > li.active > a::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu li.active > a {
    color: var(--burgundy);
}

/* Dropdown Menus */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
}

.dropdown a:hover {
    background: var(--light-gray);
    color: var(--burgundy);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--burgundy);
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */

.hero {
    padding: 5rem 0;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-top: 100px; /* Space for fixed header */
    background-color: var(--light-gray); /* Fallback */
}

/* Hero with background image */
.hero-with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero with video background */
.hero-with-video {
    overflow: hidden;
    position: relative;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.hero-video.active {
    opacity: 1;
}


/* Overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(245, 245, 245, 0.3) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--charcoal);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(255,255,255,0.8);
}

.hero-accent {
    color: var(--burgundy);
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--white);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-feature-icon {
    width: 24px;
    height: 24px;
    background: var(--burgundy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-card {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    text-align: center;
    padding: 2rem;
}

/* ============================================ */
/* BUTTONS */
/* ============================================ */

.btn {
    padding: 1rem 2.25rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
    letter-spacing: 0.25px;
}

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

.btn-primary:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================ */
/* PAGE CONTENT */
/* ============================================ */

.page-content {
    padding: 3rem 0 5rem;
    min-height: 60vh;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.page-description {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================ */
/* GRID LAYOUTS */
/* ============================================ */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* ============================================ */
/* CARDS */
/* ============================================ */

.card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--burgundy);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.card-description {
    color: var(--gray);
    line-height: 1.7;
}

/* Market Cards */
.market-card {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
}

.market-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.market-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: var(--white);
}

.market-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.market-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */

footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.cert-badge {
    background: var(--burgundy);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }
}


@media (max-width: 480px) {
    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

        @media (max-width: 768px) {
  /* Hide desktop elements */
  .header-top { display: none; }

    .nav-menu {
    display: flex;
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    max-width: 400px;

    /* Use dynamic viewport height so iOS/Android browser bars don't cut it off */
    height: calc(100dvh - var(--header-height));

    /* scrolling & touch behavior */
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    /* spacing so the last item isn't under the system gesture area */
    padding: 2rem 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));

    background: var(--white, #ffffff);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    flex-direction: column;
    z-index: 1001; /* above header */
  }

  .nav-menu.active { right: 0; }

  /* menu items */
  .nav-menu > li { border-bottom: 1px solid rgba(0,0,0,0.1); }
  .nav-menu > li > a { padding: 1rem 2rem; font-size: 1.1rem; }

  /* optional: keep a CTA visible at the bottom on long menus */
  .nav-menu .nav-cta {
    position: sticky;
    bottom: 0;
    margin-top: 0.5rem;
    background: linear-gradient(to top, rgba(255,255,255,0.98), rgba(255,255,255,0.85));
    padding: 1rem 2rem calc(1rem + env(safe-area-inset-bottom));
  }
  /* Toggle button visible on mobile */
  .mobile-menu-toggle { display: block; z-index: 1002; } /* above overlay */

  /* Mobile dropdowns (JS toggles .active) */
  .dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    background: #f5f5f5;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    display: none;
  }
  .dropdown.active { display: block; }
  .dropdown a { padding-left: 3rem; font-size: 1rem; }

  /* Overlay */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000; /* below menu (1001), above page */
  }
  .mobile-menu-overlay.active { display: block; }

  /* Hero spacing on mobile */
  .hero { margin-top: 70px; padding: 3rem 0; }
  .hero-content h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1.125rem; }

  /* Stacking grids */
  .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Footer layout */
  .footer-main { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-certifications { justify-content: center; }
			 .nav-menu::after {
    content: "";
    display: block;
    height: calc(24px + env(safe-area-inset-bottom));
    flex: 0 0 auto;
  }
}