/* ==========================================================================
   Pilot Dewei Wood - Premium Redesign CSS
   Design: Deep Navy + Gold Accent + Cream White
   Version: 2.0.0
   ========================================================================== */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --navy: #1F4E79;
    --navy-dark: #16385c;
    --navy-deep: #0d2b45;
    --gold: #C89B5B;
    --gold-light: #F7F0E4;
    --bg-light: #F7F9FC;
    --text-dark: #2D3748;
    --text-mid: #4F5B67;
    --text-light: #718096;
    --white: #FFFFFF;
    --gray-border: #E2E8F0;
    --radius: 16px;
    --radius-sm: 8px;
    --card-shadow: 0 4px 24px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 12px 32px rgba(0,0,0,0.12);
    --max-width: 1200px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text-dark); background: var(--white); line-height: 1.7; overflow-x: hidden; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; line-height: 1.3; color: var(--navy); }
h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { color: var(--text-mid); margin-bottom: 1rem; }
a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar { background: var(--navy); color: #fff; padding: 0.5rem 0; font-size: 0.85rem; }
.topbar-content { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; gap: 1.5rem; }
.topbar-left span { display: flex; align-items: center; gap: 0.4rem; }
.topbar-left i { color: var(--gold); font-size: 0.85rem; }
.topbar-right { display: flex; gap: 1rem; }
.topbar-right a { color: rgba(255,255,255,0.7); font-size: 1rem; transition: color 0.2s; }
.topbar-right a:hover { color: var(--gold); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar { background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; }
.navbar-content { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; }
.nav-logo { display: flex; flex-direction: column; }
.nav-logo h1 { font-size: 1.4rem; font-weight: 700; margin: 0; color: var(--navy); letter-spacing: -0.5px; }
.nav-logo .tagline { font-size: 0.68rem; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin: 2px 0 0; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-link { color: var(--text-dark); font-weight: 500; font-size: 0.92rem; padding: 0.3rem 0; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: var(--gold); border-radius: 2px; }
.nav-menu .btn-primary { background: var(--gold); color: var(--navy); padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: 0.88rem; margin-left: 4px; }
.nav-menu .btn-primary:hover { background: #b8893f; color: var(--navy); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--navy); cursor: pointer; }

/* ==========================================================================
   Premium Hero (ALL pages)
   ========================================================================== */
.hero-premium {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-dark) 100%);
    padding: 90px 0 70px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-premium::before {
    content: '';
    position: absolute;
    top: -120px; right: -100px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,155,91,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero-premium::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-premium .container { position: relative; z-index: 1; display: flex; align-items: center; gap: 3rem; }
.hero-premium .hero-text { flex: 1; }
.hero-premium .hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-premium .hero-image img { max-height: 380px; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }

.hero-tag {
    display: inline-block;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold);
    background: rgba(200,155,91,0.12);
    border: 1px solid rgba(200,155,91,0.25);
    padding: 6px 18px; border-radius: 50px;
    margin-bottom: 1.2rem;
}
.hero-premium h1 {
    font-size: 2.8rem; font-weight: 700;
    color: #fff; line-height: 1.15;
    margin-bottom: 1rem; letter-spacing: -0.5px;
}
.hero-premium h1 em { font-style: normal; color: var(--gold); }
.hero-premium .hero-desc {
    color: rgba(255,255,255,0.78);
    font-size: 1.1rem; line-height: 1.7;
    margin-bottom: 2rem; max-width: 540px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block; padding: 13px 30px;
    border-radius: 50px; font-weight: 600; font-size: 0.95rem;
    text-align: center; cursor: pointer; transition: all 0.3s;
    border: 2px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: #b8893f; border-color: #b8893f; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,155,91,0.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-large { padding: 16px 40px; font-size: 1.05rem; }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); border-radius: 50px; padding: 14px 36px; font-weight: 700; }
.btn-gold:hover { background: #b8893f; }

/* ==========================================================================
   Section Layout
   ========================================================================== */
.section { padding: 90px 0; }
.section.bg-light { background: var(--bg-light); }
.section.bg-white { background: var(--white); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--gold); margin: 14px auto 0; border-radius: 2px; }
.section-header p { font-size: 1.1rem; color: var(--text-mid); max-width: 700px; margin: 1rem auto 0; }

/* ==========================================================================
   Card Grid (3 columns default)
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Premium Card */
.premium-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--gold);
}
.premium-card .card-img { height: 220px; overflow: hidden; }
.premium-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.premium-card:hover .card-img img { transform: scale(1.05); }
.premium-card .card-body { padding: 1.5rem; }
.premium-card .card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--navy); }
.premium-card .card-body p { font-size: 0.92rem; color: var(--text-mid); margin-bottom: 0.8rem; }
.premium-card .card-body .card-tags { font-size: 0.82rem; color: var(--text-light); margin-bottom: 1rem; }

/* ==========================================================================
   2-Column Split Layout
   ========================================================================== */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* ==========================================================================
   Icon Row
   ========================================================================== */
.icon-row { display: flex; gap: 1rem; align-items: center; padding: 0.75rem 0; }
.icon-row i { color: var(--gold); width: 24px; text-align: center; font-size: 1.1rem; }
.icon-row span { color: var(--text-dark); font-size: 0.95rem; }

/* ==========================================================================
   Form Styles
   ========================================================================== */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 0.95rem;
    color: var(--text-dark); transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,155,91,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { margin-top: 1.5rem; }

/* ==========================================================================
   Quotation Grid
   ========================================================================== */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-top: 1rem; }
.quote-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0; font-size: 0.9rem; color: var(--text-dark); }
.quote-item i { color: var(--gold); font-size: 0.85rem; }

/* ==========================================================================
   QC Process Cards
   ========================================================================== */
.qc-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--gold);
    transition: all 0.3s;
}
.qc-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.qc-card .qc-num {
    font-size: 2.5rem; font-weight: 800;
    color: var(--gold); line-height: 1;
    margin-bottom: 0.5rem; opacity: 0.5;
}
.qc-card h4 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.1rem; }
.qc-card p { font-size: 0.92rem; color: var(--text-mid); }

/* ==========================================================================
   Certification Strip
   ========================================================================== */
.cert-strip {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy));
    color: #fff; padding: 2.5rem 0;
}
.cert-strip-content { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.cert-strip-item { text-align: center; min-width: 120px; }
.cert-strip-item i { font-size: 2.2rem; color: var(--gold); margin-bottom: 0.5rem; display: block; }
.cert-strip-item span { font-size: 0.85rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   Featured Story (News)
   ========================================================================== */
.featured-story {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--card-shadow);
    margin-bottom: 3rem;
}
.featured-story .story-img { min-height: 320px; }
.featured-story .story-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-story .story-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured-story .story-badge { display: inline-block; background: var(--gold); color: var(--white); padding: 4px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; width: fit-content; }
.featured-story h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.featured-story .story-date { color: var(--text-light); font-size: 0.85rem; margin-bottom: 1rem; }

/* ==========================================================================
   News Cards
   ========================================================================== */
.news-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--card-shadow);
    transition: all 0.3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.news-card .news-img { height: 180px; overflow: hidden; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-card .news-body { padding: 1.25rem; }
.news-card .news-category { display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 0.5rem; }
.news-card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.news-card .news-date { font-size: 0.82rem; color: var(--text-light); }

/* ==========================================================================
   Newsletter CTA
   ========================================================================== */
.newsletter-cta {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy));
    color: #fff; padding: 3rem 2rem; border-radius: var(--radius);
    text-align: center; margin-top: 3rem;
}
.newsletter-cta h3 { color: #fff; margin-bottom: 0.5rem; }
.newsletter-cta p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 0.5rem; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 14px 20px; border-radius: 50px; border: none; font-family: var(--font); font-size: 0.95rem; }
.newsletter-form .btn-primary { padding: 14px 28px; white-space: nowrap; }

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-dark) 100%);
    color: #fff; padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.cta-section h2 { color: #fff !important; font-size: 2rem; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 1rem auto 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-gold { background: var(--gold); color: var(--navy); padding: 14px 36px; border-radius: 50px; font-weight: 700; }
.cta-section .btn-outline { border: 2px solid rgba(255,255,255,0.5); color: #fff; padding: 12px 32px; border-radius: 50px; }

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar { background: var(--gold); color: #fff; padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item .stat-number { font-size: 3rem; font-weight: 800; display: block; line-height: 1; margin-bottom: 0.3rem; }
.stat-item .stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.9; }

/* ==========================================================================
   Footer (UNIFIED)
   ========================================================================== */
.footer { background: var(--navy); color: #fff; padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-bottom: 2rem; }
.footer-col h4 { color: var(--gold); font-size: 1.05rem; margin-bottom: 1.2rem; font-weight: 600; }
.footer-col p, .footer-col li { color: rgba(255,255,255,0.78); font-size: 0.9rem; line-height: 1.9; }
.footer-col a { color: rgba(255,255,255,0.78); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-col ul li { margin-bottom: 0.4rem; }
.social-links { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.social-links a { color: rgba(255,255,255,0.6); font-size: 1.1rem; }
.social-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.5rem 0; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ==========================================================================
   Product Detail Specs Table
   ========================================================================== */
.specs-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; border-radius: var(--radius-sm); overflow: hidden; }
.specs-table th { background: var(--navy); color: #fff; padding: 0.85rem 1.2rem; text-align: left; font-weight: 500; font-size: 0.9rem; }
.specs-table td { padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--gray-border); color: var(--text-dark); font-size: 0.92rem; }
.specs-table tr:nth-child(even) td { background: var(--bg-light); }

/* ==========================================================================
   Gallery (Product Detail)
   ========================================================================== */
.premium-gallery { margin: 2rem 0; }
.premium-gallery .gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); margin-bottom: 1rem; }
.premium-gallery .gallery-main img { width: 100%; max-height: 450px; object-fit: cover; }
.premium-gallery .gallery-thumbs { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.premium-gallery .gallery-thumbs img { width: 90px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; opacity: 0.65; transition: all 0.2s; }
.premium-gallery .gallery-thumbs img:hover { opacity: 1; border-color: var(--gold); }
.premium-gallery .gallery-thumbs img.active { border-color: var(--gold); opacity: 1; }

/* ==========================================================================
   Post Card (Contact Info Card)
   ========================================================================== */
.contact-info-card {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--card-shadow); padding: 2rem;
}
.contact-info-card h3 { margin-bottom: 1.5rem; font-size: 1.3rem; }
.contact-info-card .icon-row { padding: 0.8rem 0; border-bottom: 1px solid var(--gray-border); }
.contact-info-card .icon-row:last-child { border-bottom: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .split-layout { grid-template-columns: 1fr; }
    .featured-story { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero-premium { padding: 60px 0 40px; }
    .hero-premium .container { flex-direction: column; text-align: center; }
    .hero-premium h1 { font-size: 1.8rem; }
    .hero-premium .hero-desc { margin: 0 auto 1.5rem; }
    .hero-actions { justify-content: center; }
    .hero-premium .hero-image img { max-height: 250px; }
    .card-grid { grid-template-columns: 1fr; }
    .card-grid.cols-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .quote-grid { grid-template-columns: 1fr; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.12); gap: 0; }
    .nav-menu.open { display: flex; }
    .nav-menu .nav-link { padding: 12px 0; border-bottom: 1px solid var(--gray-border); }
    .mobile-toggle { display: block; }
    .newsletter-form { flex-direction: column; }
    .cert-strip-content { gap: 1.5rem; }
}
@media (min-width: 769px) { .mobile-toggle { display: none !important; } }
