/* ===== EuroWindow Clone - Main Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0056a6;
    --primary-light: #1a73e8;
    --primary-dark: #003d7a;
    --secondary: #f5a623;
    --bg-dark: #0a1628;
    --bg-light: #f4f7fa;
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-muted: #8a8a9a;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --max-w: 1400px;
    --header-h: 100px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-body); line-height: 1.7; background: var(--white); }
a { text-decoration: none; color: inherit; transition: color .3s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== Top Bar ===== */
.top-bar {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    font-size: 13px; padding: 8px 0;
}
.top-bar .container {
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--secondary); }
.top-bar-contact { display: flex; gap: 20px; }
.top-bar-social { display: flex; gap: 12px; }

/* ===== Header ===== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 1000;
}
.header-main {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0;
}
.header-logo { display: flex; align-items: center; gap: 12px; }
.header-logo img { height: 50px; width: auto; }
.header-logo .logo-text { font-size: 14px; color: var(--primary); font-weight: 600; line-height: 1.3; max-width: 200px; }
.header-hotline {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white); padding: 10px 24px; border-radius: 50px;
    font-weight: 700; font-size: 16px;
    transition: transform .3s;
}
.header-hotline:hover { transform: scale(1.05); color: var(--white); }
.header-hotline span { font-size: 22px; }

/* ===== Navigation ===== */
.main-nav { background: var(--primary); }
.nav-list { display: flex; list-style: none; }
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: block; padding: 14px 20px; color: var(--white);
    font-size: 14px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.3px; transition: background .3s;
}
.nav-list > li:hover > a, .nav-list > li.active > a {
    background: rgba(255,255,255,0.15);
}

/* Dropdown */
.nav-dropdown {
    position: absolute; top: 100%; left: 0;
    background: var(--white); min-width: 240px;
    box-shadow: var(--shadow-lg); border-radius: 0 0 8px 8px;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all .3s; z-index: 100;
}
.nav-list > li:hover > .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
    display: block; padding: 10px 20px; color: var(--text-dark);
    font-size: 13px; font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all .2s;
}
.nav-dropdown a:hover { background: var(--bg-light); color: var(--primary); padding-left: 28px; }

/* Mobile Menu */
.mobile-toggle {
    display: none; background: none; border: none;
    font-size: 28px; color: var(--white); cursor: pointer;
    padding: 10px 14px;
}

/* ===== Hero Slider ===== */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider .slide {
    position: relative; height: 600px;
    background-size: cover; background-position: center;
    display: none;
}
.hero-slider .slide.active { display: block; animation: fadeSlide .8s ease; }
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,20,50,0.5) 0%, transparent 50%);
    display: flex; align-items: flex-end; justify-content: center;
    text-align: center; color: var(--white); padding: 40px 20px;
}
.slide-content h2 { font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.slide-content p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.slider-dots {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%); display: flex; gap: 8px; z-index: 10;
}
.slider-dots .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.5); cursor: pointer;
    transition: all .3s; border: none;
}
.slider-dots .dot.active { background: var(--white); transform: scale(1.3); }
.slider-arrows {
    position: absolute; top: 50%; width: 100%;
    display: flex; justify-content: space-between; padding: 0 20px;
    transform: translateY(-50%); z-index: 10;
}
.slider-arrows button {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3); color: var(--white);
    font-size: 20px; cursor: pointer; transition: all .3s;
}
.slider-arrows button:hover { background: rgba(255,255,255,0.4); }

@keyframes fadeSlide { from { opacity: 0; } to { opacity: 1; } }

/* ===== Section Titles ===== */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-light); }
.section-title {
    text-align: center; margin-bottom: 40px;
}
.section-title h2 {
    font-size: 32px; font-weight: 800; color: var(--text-dark);
    position: relative; display: inline-block;
}
.section-title h2::after {
    content: ''; position: absolute; bottom: -10px; left: 50%;
    transform: translateX(-50%); width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}
.section-title p { color: var(--text-muted); margin-top: 16px; font-size: 15px; }

/* ===== Product Categories Grid ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.cat-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all .3s; text-align: center;
    border: 1px solid transparent;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.cat-card-img { height: 220px; overflow: hidden; background: var(--bg-light); display: flex; align-items: center; justify-content: center; }
.cat-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .5s; }
.cat-card:hover .cat-card-img img { transform: scale(1.1); }
.cat-card h3 { padding: 16px 12px; font-size: 14px; font-weight: 600; color: var(--text-dark); }
.cat-card .cat-icon { font-size: 48px; padding: 30px 0; }

/* ===== Post/Product Cards ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-img { height: 200px; overflow: hidden; background: var(--bg-light); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 20px; }
.card-body h3 { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.card-meta { padding: 12px 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; }

/* ===== About Section ===== */
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 32px; color: var(--text-dark); font-weight: 800; margin-bottom: 20px; line-height: 1.3; }
.about-text p { font-size: 15px; color: var(--text-body); margin-bottom: 16px; line-height: 1.8; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.about-feature {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; background: var(--bg-light); border-radius: 10px;
}
.about-feature .feat-icon { font-size: 28px; }
.about-feature span { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.about-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Projects Section ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.project-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    height: 220px; cursor: pointer;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover img { transform: scale(1.1); }
.project-card .project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,30,60,0.85));
    display: flex; align-items: flex-end; padding: 20px;
    transition: background .3s;
}
.project-card:hover .project-overlay { background: linear-gradient(transparent 20%, rgba(0,56,120,0.9)); }
.project-card h4 { color: var(--white); font-size: 14px; font-weight: 600; }

/* ===== Contact Section ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.contact-form h3 { font-size: 24px; color: var(--text-dark); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border);
    border-radius: 8px; font-size: 14px; font-family: inherit;
    transition: border-color .3s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { min-height: 120px; resize: vertical; grid-column: 1 / -1; }
.contact-form .submit-btn {
    grid-column: 1 / -1; padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white); border: none; border-radius: 8px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: transform .3s, box-shadow .3s;
}
.contact-form .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,86,166,0.3); }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.contact-map iframe { width: 100%; height: 100%; min-height: 400px; border: none; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.8); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col h4 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content:''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--secondary); border-radius: 2px; }
.footer-col p, .footer-col li { font-size: 13px; line-height: 2; }
.footer-col li a:hover { color: var(--secondary); padding-left: 6px; }
.footer-col a { transition: all .3s; }
.footer-info { display: flex; align-items: start; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.footer-info .fi-icon { font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px; padding: 16px 0;
    text-align: center; font-size: 12px; color: rgba(255,255,255,0.4);
}

/* ===== Floating Buttons ===== */
.floating-btns { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform .3s; cursor: pointer;
    text-decoration: none; border: none;
}
.float-btn:hover { transform: scale(1.15); color: var(--white); }
.float-btn.zalo { background: #0068ff; }
.float-btn.phone { background: #e53e3e; animation: pulse 2s infinite; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,62,62,0.5); }
    50% { box-shadow: 0 0 0 15px rgba(229,62,62,0); }
}

/* ===== Detail Page ===== */
.page-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white); padding: 40px 0; text-align: center;
}
.page-banner h1 { font-size: 32px; font-weight: 800; }
.breadcrumb { font-size: 13px; margin-top: 8px; opacity: 0.8; }
.breadcrumb a { color: var(--secondary); }

.page-content { padding: 40px 0; }
.content-body { line-height: 1.9; font-size: 15px; }
.content-body h2 { font-size: 24px; color: var(--text-dark); margin: 24px 0 12px; }
.content-body h3 { font-size: 20px; color: var(--text-dark); margin: 20px 0 10px; }
.content-body p { margin-bottom: 16px; }
.content-body img { border-radius: 8px; margin: 16px 0; }
.content-body ul, .content-body ol { padding-left: 24px; margin-bottom: 16px; }
.content-body ul { list-style: disc; }

.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.sidebar-widget h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.sidebar-widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sidebar-widget ul li a:hover { color: var(--primary); }

/* ===== Category Page ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

/* ===== View All Button ===== */
.view-all {
    display: inline-block; padding: 12px 32px;
    border: 2px solid var(--primary); color: var(--primary);
    border-radius: 50px; font-weight: 600; font-size: 14px;
    transition: all .3s; margin-top: 24px;
}
.view-all:hover { background: var(--primary); color: var(--white); }

/* ===== Project Detail Page ===== */
.project-hero {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-dark);
}
.project-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10,22,40,0.2) 0%, rgba(10,22,40,0.75) 100%);
    display: flex; align-items: flex-end;
    padding-bottom: 48px;
}
.project-hero-overlay h1 {
    color: var(--white);
    font-size: 38px;
    font-weight: 800;
    text-shadow: 0 3px 16px rgba(0,0,0,0.4);
    letter-spacing: 1px;
    line-height: 1.3;
    max-width: 800px;
}

/* 2-column layout */
.project-detail-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 36px;
    align-items: start;
}
.project-detail-info {
    position: sticky;
    top: 80px;
}
.project-info-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 28px;
}
.project-info-content { width: 100%; }
.project-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.project-info-row:last-of-type { border-bottom: none; }
.project-info-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
}
.project-info-label {
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
.project-info-value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
}

.project-cta-box {
    margin-top: 20px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    text-align: center;
}
.project-cta-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border: 2px solid var(--text-dark);
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all .3s;
    border-radius: 8px;
    text-align: center;
}
.project-cta-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,86,166,0.3);
}

/* Gallery */
.project-detail-gallery {
    min-width: 0;
}
.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.project-gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all .3s;
    cursor: pointer;
}
.project-gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}
.project-gallery img:first-child {
    grid-column: 1 / -1;
    height: 360px;
}
.project-gallery p {
    margin-bottom: 0;
    display: contents;
}

/* Prev/Next */
.project-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}
.project-nav-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all .3s;
    max-width: 45%;
}
.project-nav-btn:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}
.project-nav-btn span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.project-nav-btn strong {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}
.project-nav-btn.next {
    text-align: right;
    margin-left: auto;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .about-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .content-layout { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .project-detail-layout { grid-template-columns: 1fr; }
    .project-detail-info { position: static; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .header-logo .logo-text { display: none; }
    .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); z-index: 100; }
    .nav-list.open { display: flex; }
    .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(0,0,0,0.1); }
    .nav-dropdown a { color: var(--white); border-bottom-color: rgba(255,255,255,0.1); }
    .mobile-toggle { display: block; }
    .hero-slider .slide { height: 350px; }
    .slide-content h2 { font-size: 24px; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .section-title h2 { font-size: 24px; }
    .project-hero { height: 300px; }
    .project-hero-overlay { padding-bottom: 24px; }
    .project-hero-overlay h1 { font-size: 24px; }
    .project-detail-layout { grid-template-columns: 1fr; }
    .project-detail-info { position: static; }
    .project-gallery { grid-template-columns: 1fr; }
    .project-gallery img, .project-gallery img:first-child { height: auto; }
    .project-nav { flex-direction: column; }
    .project-nav-btn { max-width: 100%; }
    .project-nav-btn.next { text-align: left; }
    .about-features { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .products-grid { grid-template-columns: 1fr; }
}

/* ===== Alert Messages ===== */
.alert {
    padding: 14px 20px; border-radius: 8px;
    margin-bottom: 16px; font-size: 14px; font-weight: 500;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }
