/* ============================================
   PaperPack Pro - Main Stylesheet
   Custom Paper Packaging B2B Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-navy: #0f1d36;
    --color-navy-light: #1a3052;
    --color-gold: #c8943e;
    --color-gold-light: #e0b860;
    --color-white: #ffffff;
    --color-off-white: #f8f6f2;
    --color-light-gray: #e8e6e1;
    --color-gray: #6b7280;
    --color-dark: #1f2937;
    --color-text: #374151;
    --color-text-light: #6b7280;
    --color-success: #059669;
    --color-danger: #dc2626;
    --color-border: #e5e7eb;

    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --container-max: 1200px;
    --header-height: 76px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-gold); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    line-height: 1.3;
    font-weight: 700;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.bg-light { background: var(--color-off-white); }

.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 48px;
}

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

.section-subtitle {
    color: var(--color-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-navy);
    border-color: var(--color-gold);
}
.btn-primary:hover {
    background: var(--color-gold-light);
    border-color: var(--color-gold-light);
    color: var(--color-navy);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-navy);
}

.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-gold);
    font-weight: 600;
}
.btn-link:hover { color: var(--color-navy); }

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon { color: var(--color-gold); font-size: 1.4rem; }
.logo-accent { color: var(--color-gold); }

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.primary-menu {
    display: flex;
    gap: 4px;
}

.primary-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--color-gold);
    background: rgba(200, 148, 62, 0.06);
}

.header-cta .btn { white-space: nowrap; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    border-radius: 2px;
    transition: all 0.3s;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a3a5c 40%, #1e4d7b 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(200,148,62,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

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

.hero-title {
    font-size: 3.2rem;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.7;
}

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

/* --- Stats Bar --- */
.stats-bar {
    background: var(--color-navy);
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    font-family: var(--font-heading);
}

.stat-label {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Product Cards --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.product-card-body {
    padding: 24px;
}

.product-card-body h3 {
    margin-bottom: 8px;
}

.product-card-body p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-item {
    padding: 32px 24px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}
.feature-item:hover { box-shadow: var(--shadow-md); }

.feature-icon {
    font-size: 2.25rem;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.feature-item h3 { margin-bottom: 8px; }
.feature-item p { color: var(--color-text-light); font-size: 0.95rem; }

/* --- Steps --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.step-item {
    text-align: center;
    padding: 28px 20px;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '\2192';
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-gold);
}

.step-number {
    display: inline-block;
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-gold);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.step-item h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step-item p { color: var(--color-text-light); font-size: 0.9rem; }

/* --- CTA --- */
.cta-section {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a3a5c 100%);
    padding: 80px 0;
}

.cta-title {
    color: var(--color-white);
    margin-bottom: 12px;
}

.cta-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

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

.industry-item {
    padding: 24px;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-gold);
    transition: all 0.3s;
}
.industry-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.industry-item h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.industry-item p {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--color-white);
    margin-bottom: 16px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-menu li { margin-bottom: 8px; }
.footer-menu a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-menu a:hover { color: var(--color-gold); }

.footer-contact-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    align-items: flex-start;
}
.footer-contact-list a { color: rgba(255,255,255,0.6); }
.footer-contact-list a:hover { color: var(--color-gold); }

.contact-icon { color: var(--color-gold); flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Floating Quote Button --- */
.floating-quote-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s;
}
.floating-quote-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(200, 148, 62, 0.4);
}

/* --- Page Template --- */
.page-header {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a3a5c 100%);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--color-white);
    margin-bottom: 8px;
}

.page-header .breadcrumb {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.page-header .breadcrumb a {
    color: var(--color-gold);
}

.page-content {
    padding: 64px 0;
}

.page-content .container {
    max-width: 800px;
}

.page-content h2 {
    margin: 40px 0 16px;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

/* --- Quote Form --- */
.quote-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.quote-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.9rem;
}

.form-group label .required {
    color: var(--color-danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
    background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(200,148,62,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-response {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: none;
    font-weight: 500;
}
.form-response.success {
    display: block;
    background: #ecfdf5;
    color: var(--color-success);
    border: 1px solid #a7f3d0;
}
.form-response.error {
    display: block;
    background: #fef2f2;
    color: var(--color-danger);
    border: 1px solid #fecaca;
}

/* --- About Page --- */
.about-image {
    border-radius: var(--radius-md);
    margin: 32px 0;
    box-shadow: var(--shadow-md);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.cert-item {
    text-align: center;
    padding: 24px;
    background: var(--color-off-white);
    border-radius: var(--radius-md);
}

.cert-item h4 {
    margin-top: 8px;
    font-size: 0.95rem;
}

/* --- Single Product --- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 64px 0;
}

.product-detail-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--color-light-gray);
}

.product-detail-info h1 {
    margin-bottom: 16px;
}

.product-detail-info .product-meta {
    margin-bottom: 24px;
    color: var(--color-gray);
}

.product-detail-info .product-description {
    line-height: 1.8;
}

/* --- 404 --- */
.error-404 {
    text-align: center;
    padding: 120px 0;
}

.error-404 h1 {
    font-size: 5rem;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.error-404 p {
    color: var(--color-gray);
    margin-bottom: 32px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .step-item:not(:nth-child(2n))::after { content: ''; }
    .step-item:not(:nth-child(3n))::after { content: '\2192'; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.5rem; }

    .product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section { padding: 48px 0; }

    .menu-toggle { display: flex; }
    .primary-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }
    .primary-menu.active { display: flex; }
    .header-cta { display: none; }
    .main-navigation { justify-content: flex-end; }

    .hero { min-height: 460px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }

    .products-grid,
    .features-grid,
    .industries-grid,
    .steps-grid,
    .stats-grid,
    .footer-grid { grid-template-columns: 1fr; }

    .step-item::after { content: '' !important; }

    .form-row { grid-template-columns: 1fr; }

    .quote-form { padding: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 1.6rem; }
    .stats-grid { gap: 24px; }
    .stat-number { font-size: 2rem; }
}
