/*
 * MSK ELECTRONICS FZCO — PREMIUM LIGHT THEME
 * Palette: White / Warm Bronze-Gold (from Logo) / Silver-Gray
 * Logo Colors: --gold: #C4893A (bronze circle), --silver: #9EA3A8 (MSK letters)
 */

/* ===== DESIGN TOKENS ===== */
:root {
    --gold:         #C4893A;  /* Exact logo bronze-gold */
    --gold-light:   #D9A25C;
    --gold-dark:    #A06C22;
    --silver:       #7A7F84;  /* Logo MSK silver letters */
    --white:        #FFFFFF;
    --bg:           #F8F6F2;  /* Warm off-white — harmonizes with logo */
    --bg-alt:       #FFFFFF;
    --charcoal:     #1C1C1C;  /* Strong dark for headings */
    --text-primary: #1A1A1A;
    --text-body:    #4A4A4A;
    --text-muted:   #888;
    --border:       rgba(196, 137, 58, 0.18);
    --border-soft:  rgba(0,0,0,0.07);
    --card-bg:      #FFFFFF;
    --card-shadow:  0 4px 24px rgba(0,0,0,0.06);
    --transition:   0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1380px; margin: 0 auto; padding: 0 50px; }
.gold { color: var(--gold); }

.section-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
    display: block;
}
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 3.4rem; color: var(--charcoal); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(196,137,58,0.08);
    backdrop-filter: blur(10px);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 105px; width: auto; object-fit: contain; transition: height var(--transition); }
.navbar.scrolled .logo img { height: 82px; }
.logo-text-fallback { font-size: 1.8rem; font-weight: 800; color: var(--charcoal); }

.nav-links { display: flex; list-style: none; gap: 42px; }
.nav-links a {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.9);
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
}
.navbar.scrolled .nav-links a { color: var(--charcoal) !important; text-shadow: none; }
.nav-links a::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold) !important; }
.nav-links a:hover::after { width: 100%; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--gold); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.4) 100%),
        url('im/hero.png') center/cover no-repeat;
}
.hero-content {
    position: relative; z-index: 2;
    padding-top: 80px;
    max-width: 820px;
}
.hero-badge {
    display: inline-block;
    background: rgba(196,137,58,0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 5px;
    padding: 8px 22px;
    margin-bottom: 28px;
    border-radius: 2px;
}
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 6.5rem;
    font-weight: 700;
    line-height: 1.0;
    color: var(--white);
    margin-bottom: 28px;
    text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.hero-sub {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.92);
    margin-bottom: 50px;
    line-height: 1.7;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 18px 44px;
    font-size: 0.78rem; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    border-radius: 3px; border: 2px solid transparent;
    cursor: pointer; transition: var(--transition);
}
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); box-shadow: 0 8px 28px rgba(196,137,58,0.3); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-3px); box-shadow: 0 14px 36px rgba(196,137,58,0.4); }
.btn-outline-white { border-color: rgba(255,255,255,0.75); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-full { width: 100%; justify-content: center; }

/* Scroll Hint */
.scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, transparent, var(--gold)); animation: scrollDown 2s ease-in-out infinite; margin: 0 auto; }
@keyframes scrollDown { 0%,100% { opacity: 0.3; transform: scaleY(0.8); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ===== BRANDS BAR ===== */
.brands-bar { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.brands-track { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.brand-item { font-size: 0.72rem; font-weight: 800; letter-spacing: 5px; color: #BBAAA0; transition: color 0.3s; cursor: default; }
.brand-item:hover { color: var(--gold); }
.brand-sep { color: var(--border); font-size: 1.2rem; user-select: none; }

/* ===== ABOUT ===== */
.about { padding: 160px 0; background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 90px; align-items: center; }
.about-image { position: relative; }
.about-image img { border-radius: 6px; width: 100%; box-shadow: 0 30px 80px rgba(196,137,58,0.12); border: 1px solid var(--border); }
.about-badge {
    position: absolute; bottom: -28px; right: -28px;
    background: var(--gold);
    color: #fff;
    padding: 26px 30px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 12px 35px rgba(196,137,58,0.35);
}
.badge-year { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; font-family: 'Playfair Display', serif; }
.badge-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; opacity: 0.85; }
.about-text h2 { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--charcoal); margin-bottom: 30px; line-height: 1.15; }
.about-lead { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 22px; line-height: 1.85; border-left: 3px solid var(--gold); padding-left: 22px; }
.about-body { color: var(--text-body); line-height: 1.85; margin-bottom: 18px; font-size: 0.95rem; }
.about-stats { display: flex; gap: 50px; margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--border); }
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold); font-weight: 700; }
.stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }

/* ===== PRODUCTS — TABBED GALLERY ===== */
.products { background: var(--bg); padding: 160px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Category Tab Bar */
.cat-tabs {
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: center; margin-bottom: 60px;
}
.cat-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 12px 28px;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.73rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer; transition: var(--transition);
}
.cat-tab:hover { border-color: var(--gold); color: var(--gold); }
.cat-tab.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* Gallery Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--card-shadow);
}
.gal-card:hover { border-color: var(--gold); transform: translateY(-8px); box-shadow: 0 20px 50px rgba(196,137,58,0.15); }
.gal-card.hidden { display: none; }

.gal-img {
    width: 100%; height: 200px; overflow: hidden;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
}
.gal-img img {
    width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    padding: 12px;
    transition: transform 0.6s ease;
}
.gal-card:hover .gal-img img { transform: scale(1.07); }

.gal-info { padding: 16px 18px; border-top: 1px solid var(--border-soft); }
.gal-info h4 { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-info p { font-size: 0.76rem; color: var(--text-muted); }

/* ===== SERVICES ===== */
.services { background: var(--charcoal); padding: 160px 0; }
.services .section-header .light-h2 { color: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 80px; }
.services-grid .service-card:nth-child(4) { grid-column: 1 / 2; margin-left: auto; }
.services-grid .service-card:nth-child(5) { grid-column: 2 / 3; }
.service-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(196,137,58,0.2);
    border-radius: 8px; padding: 55px 35px;
    text-align: center; transition: var(--transition);
}
.service-card:hover { border-color: var(--gold); background: rgba(196,137,58,0.06); transform: translateY(-8px); }
.service-icon { margin-bottom: 28px; }
.service-icon i { font-size: 2.8rem; color: var(--gold); transition: transform 0.4s; }
.service-card:hover .service-icon i { transform: scale(1.15); }
.service-card h3 { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.9); line-height: 1.65; }

/* ===== CONTACT ===== */
.contact { background: var(--bg-alt); padding: 160px 0; border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.contact-info h2 { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--charcoal); margin-bottom: 20px; line-height: 1.2; }
.contact-intro { color: var(--text-body); margin-bottom: 45px; font-size: 0.97rem; }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 28px; }
.contact-details li { display: flex; gap: 20px; align-items: flex-start; }
.c-icon { width: 46px; height: 46px; background: rgba(196,137,58,0.08); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-icon i { color: var(--gold); font-size: 1.05rem; }
.c-text { display: flex; flex-direction: column; gap: 4px; }
.c-text strong { font-size: 0.72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.c-text span, .c-text a { color: var(--text-primary); font-size: 0.97rem; transition: color 0.3s; }
.c-text a:hover { color: var(--gold); }

/* MAP */
.map-wrap { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 24px; }
.map-wrap iframe { display: block; }

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; }
.form-group input, .form-group textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.93rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196,137,58,0.1);
}
.form-feedback { font-size: 0.88rem; font-weight: 600; padding: 12px 18px; border-radius: 6px; min-height: 1rem; }
.form-feedback.success { background: rgba(39,174,96,0.1); color: #1e8449; border: 1px solid rgba(39,174,96,0.3); }
.form-feedback.error { background: rgba(192,57,43,0.1); color: #c0392b; border: 1px solid rgba(192,57,43,0.3); }

/* ===== FOOTER ===== */
.footer { background: var(--charcoal); border-top: 1px solid rgba(196,137,58,0.2); padding: 100px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 70px; padding-bottom: 70px; }
.footer-brand img { height: 110px; margin-bottom: 22px; }
.footer-brand p { color: rgba(255,255,255,0.5); line-height: 1.8; font-size: 0.9rem; }

.footer-links-col h4, .footer-contact-col h4 { font-size: 0.73rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-links-col a { color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: color 0.3s; }
.footer-links-col a:hover { color: var(--gold); padding-left: 6px; }
.footer-contact-col p { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-bottom: 14px; display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.footer-contact-col i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }

.footer-bottom { border-top: 1px solid rgba(196,137,58,0.15); padding: 24px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; letter-spacing: 1px; }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 36px; right: 36px; z-index: 900;
    width: 48px; height: 48px;
    background: var(--gold); color: #fff;
    border: none; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    opacity: 0; pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(196,137,58,0.35);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-4px); background: var(--gold-dark); }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .container { padding: 0 30px; }
    .hero-content h1 { font-size: 4.5rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-badge { right: 0; bottom: -20px; }
    .about-image { margin-bottom: 60px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .container { padding: 0 22px; }
    .hero-content h1 { font-size: 3rem; }
    .section-header h2 { font-size: 2.4rem; }
    .services-grid { grid-template-columns: 1fr; }
    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) { grid-column: auto; margin: 0; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gal-img { height: 160px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .about-stats { gap: 30px; }
    .nav-links {
        display: flex !important;
        position: fixed; inset: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column; align-items: center; justify-content: center;
        gap: 36px; opacity: 0; pointer-events: none; transition: opacity 0.4s;
    }
    .nav-links.open { opacity: 1; pointer-events: all; }
    .nav-links a { color: var(--charcoal) !important; text-shadow: none; font-size: 1.1rem; }
    .menu-btn { display: flex; z-index: 1100; }
    .about, .products, .services, .contact { padding: 100px 0; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .cat-tabs { gap: 8px; }
    .cat-tab { padding: 10px 18px; font-size: 0.68rem; }
}
