/* 
  HK FEIFANG INTERNATIONAL TRADING LIMITED
  Premium Mobile Parts — Style System v4.0
*/

:root {
    --primary: #0EA5E9;
    --primary-dark: #0284C7;
    --secondary: #0F172A;
    --accent: #38BDF8;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.85);
    --radius: 20px;
    --shadow-lg: 0 10px 25px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 40px -5px rgb(0 0 0 / 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); background-color: var(--bg-light); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 700; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ─── Navbar ─────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: var(--glass); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo-brand {
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.5rem;
    color: var(--primary); display: flex; align-items: center; gap: 10px;
    text-decoration: none; transition: 0.3s;
}
.logo-brand:hover { opacity: 0.85; }
.logo-icon-svg { font-size: 1.8rem; }
.logo-link { display: inline-flex; align-items: center; text-decoration: none; transition: 0.3s; }
.logo-link:hover { opacity: 0.85; }
.nav-logo-img { height: 52px; width: auto; display: block; }
.footer-logo-img { height: 56px; width: auto; display: block; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-logo { color: #ffffff; }

.nav-links { display: flex; list-style: none; gap: 40px; }
.nav-links a { text-decoration: none; color: var(--secondary); font-weight: 600; font-size: 0.95rem; transition: 0.3s; position: relative; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: 0.3s; }
.nav-links a:hover::after { width: 100%; }

/* ─── Hero ─────────────────────────────────────── */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 60%, #0EA5E9 100%);
    color: white;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(14,165,233,0.2) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 10; width: 100%; padding: 140px 0 80px; }
.hero-badge { display: inline-block; background: rgba(14,165,233,0.15); border: 1px solid rgba(14,165,233,0.4); color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 8px 18px; border-radius: 100px; margin-bottom: 24px; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 24px; line-height: 1.1; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.75); margin-bottom: 44px; max-width: 650px; line-height: 1.8; }
.highlight { color: var(--accent); }
.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats { display: flex; align-items: center; gap: 0; flex-wrap: wrap; gap: 0; }
.hero-stat { text-align: center; padding: 0 32px 0 0; }
.hero-stat:first-child { padding-left: 0; }
.hs-num { display: block; font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: var(--accent); }
.hs-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); margin-right: 32px; }

/* ─── Sections ──────────────────────────────────── */
section { padding: 120px 0; }
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.badge { display: inline-block; background: rgba(14,165,233,0.1); color: var(--primary); font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; border: 1px solid rgba(14,165,233,0.2); margin-bottom: 16px; }

/* ─── About ──────────────────────────────────────── */
.about { background: var(--bg-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.05rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.af-item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; color: var(--text-main); }
.af-icon { color: var(--primary); }
.stats { display: flex; gap: 48px; margin-top: 32px; padding-top: 32px; border-top: 1px solid rgba(0,0,0,0.07); }
.stat .number { font-size: 2.2rem; color: var(--primary); display: block; font-family: 'Outfit'; font-weight: 800; }
.stat .label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ─── Image Placeholders ─────────────────────────── */
.img-placeholder {
    width: 100%; aspect-ratio: 4/3;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 2px dashed rgba(14,165,233,0.3);
    border-radius: var(--radius);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; padding: 20px; text-align: center;
    transition: 0.3s;
}
.img-placeholder:hover { border-color: var(--primary); background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%); }
.large-placeholder { aspect-ratio: 4/3; border-radius: 32px; }
.ph-icon { font-size: 3rem; line-height: 1; }
.ph-text { font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--primary); font-size: 0.9rem; }
.ph-hint { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

/* ─── Product Grid ───────────────────────────────── */
.products { background: var(--bg-light); }
.accessories { background: var(--bg-white); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.product-card {
    background: white; border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06); transition: 0.3s;
    display: flex; flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--primary); }
.product-card .img-placeholder { aspect-ratio: 16/10; border-radius: 0; border: none; border-bottom: 2px dashed rgba(14,165,233,0.2); margin-bottom: 0; }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-body h3 { font-size: 1.1rem; color: var(--text-main); }
.card-body p { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.card-tag { display: inline-block; background: rgba(14,165,233,0.08); color: var(--primary); font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 100px; width: fit-content; }

/* ─── Contact ────────────────────────────────────── */
.contact { background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 60px; }
.contact-info-panel p { color: var(--text-muted); margin-bottom: 10px; font-size: 1.05rem; }
.info-list { margin-top: 36px; display: flex; flex-direction: column; gap: 28px; }
.info-item { display: flex; gap: 20px; align-items: flex-start; }
.item-icon { font-size: 1.4rem; width: 44px; height: 44px; background: rgba(14,165,233,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.item-text strong { display: block; font-size: 0.75rem; color: var(--primary); text-transform: uppercase; margin-bottom: 4px; letter-spacing: 1px; }
.item-text span { font-weight: 600; color: var(--secondary); font-size: 0.95rem; }

.glass { background: rgba(255,255,255,0.9); backdrop-filter: blur(20px); border: 1px solid rgba(14,165,233,0.15); box-shadow: var(--shadow-xl); padding: 48px; border-radius: 32px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-family: 'Outfit'; font-weight: 700; color: var(--primary); text-transform: uppercase; margin-bottom: 8px; font-size: 0.75rem; letter-spacing: 1px; }
.form-group input, .form-group textarea { width: 100%; padding: 16px 20px; border-radius: 14px; border: 1.5px solid rgba(14,165,233,0.2); background: white; font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--text-main); transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,165,233,0.1); outline: none; }
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ─── Footer ─────────────────────────────────────── */
.footer { background: var(--secondary); color: white; padding: 100px 0 50px; }
.footer-layout { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; margin-bottom: 50px; }
.footer-col.brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.8; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 20px; }
.footer-menu, .footer-contact-info { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer li { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.footer a { color: rgba(255,255,255,0.55); text-decoration: none; transition: 0.3s; }
.footer a:hover { color: white; }
.footer-logo { font-size: 1.6rem; color: white; margin-bottom: 20px; display: inline-flex; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 32px; text-align: center; color: rgba(255,255,255,0.25); font-size: 0.82rem; }

/* ─── WhatsApp ───────────────────────────────────── */
.whatsapp-float { position: fixed; bottom: 36px; right: 36px; z-index: 9999; background: #25D366; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,0.5); border: 3px solid white; transition: 0.3s; }
.whatsapp-float:hover { transform: scale(1.1) rotate(-5deg); box-shadow: 0 12px 32px rgba(37,211,102,0.7); }
.whatsapp-float svg { color: white; }

/* ─── Buttons ────────────────────────────────────── */
.btn { display: inline-block; padding: 15px 34px; border-radius: 100px; text-decoration: none; font-weight: 700; font-family: 'Outfit'; transition: 0.3s; cursor: pointer; border: none; }
.btn-large { padding: 18px 44px; font-size: 1.05rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 6px 18px rgba(14,165,233,0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(14,165,233,0.55); }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 2px solid rgba(255,255,255,0.3); backdrop-filter: blur(5px); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); border-color: white; transform: translateY(-3px); }
.full-width { width: 100%; text-align: center; }

/* ─── Animations ─────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s ease forwards; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
    .about-grid, .contact-layout, .footer-layout { grid-template-columns: 1fr; gap: 50px; }
    .nav-links { gap: 20px; }
    .hero-stats { gap: 20px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .btn-large { width: 100%; text-align: center; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; }
    .hero-stat-divider { display: none; }
    .hero-stat { padding: 0 16px; }
    .about-features { grid-template-columns: 1fr; }
    .glass { padding: 32px 24px; }
}
