/* ========================================
   WISHART Vietnam - Corporate Website Styles
   ======================================== */

/* CSS Variables */
:root {
    --color-bg: #F5F0EB;
    --color-text: #3D2B1F;
    --color-text-light: #6B5B4F;
    --color-accent: #C75B3A;
    --color-accent-dark: #A84A2F;
    --color-card-bg: #FFFFFF;
    --color-section-alt: #EDE8E3;
    --color-footer: #2C1F16;
    --color-border: #D5CFC9;
    --font-heading: 'Noto Serif SC', serif;
    --font-body: 'Noto Sans SC', sans-serif;
    --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.08);
    --shadow-md: 0 4px 20px rgba(61, 43, 31, 0.12);
    --shadow-lg: 0 8px 40px rgba(61, 43, 31, 0.15);
    --transition: all 0.3s ease;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    transition: var(--transition);
}

.logo-sub {
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--color-text);
}

.navbar.scrolled .logo-sub {
    color: var(--color-text-light);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.navbar.scrolled .nav-link {
    color: var(--color-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 4px;
}

.navbar.scrolled .nav-toggle {
    color: var(--color-text);
}

.nav-icon-close {
    display: none;
}

.nav-toggle.active .nav-icon-menu {
    display: none;
}

.nav-toggle.active .nav-icon-close {
    display: block;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 31, 22, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-highlight {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 16px;
    opacity: 0.9;
    letter-spacing: 4px;
}

.hero-desc {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.scroll-indicator:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ========================================
   Common Section Styles
   ======================================== */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--color-section-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--color-accent);
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 0 auto;
}

/* ========================================
   About Us
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
}

.about-image img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    display: block;
    box-shadow: var(--shadow-lg);
}

.about-image-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--color-accent);
    border-radius: 4px;
    z-index: -1;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--color-text);
}

.about-text {
    margin-bottom: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
}

.about-text strong {
    color: var(--color-text);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ========================================
   Core Strengths
   ======================================== */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.strength-card {
    background: var(--color-card-bg);
    padding: 40px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.strength-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--color-accent);
}

.strength-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(199, 91, 58, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.strength-icon svg {
    width: 28px;
    height: 28px;
}

.strength-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.strength-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ========================================
   SWOT Analysis
   ======================================== */
.swot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.swot-card {
    background: var(--color-card-bg);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid;
    transition: var(--transition);
}

.swot-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.swot-strengths {
    border-left-color: #4CAF50;
}

.swot-weaknesses {
    border-left-color: #FF9800;
}

.swot-opportunities {
    border-left-color: #2196F3;
}

.swot-threats {
    border-left-color: #F44336;
}

.swot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.swot-header svg {
    width: 24px;
    height: 24px;
}

.swot-strengths .swot-header {
    color: #4CAF50;
}

.swot-weaknesses .swot-header {
    color: #FF9800;
}

.swot-opportunities .swot-header {
    color: #2196F3;
}

.swot-threats .swot-header {
    color: #F44336;
}

.swot-header h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
}

.swot-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    border-bottom: 1px solid var(--color-border);
}

.swot-list li:last-child {
    border-bottom: none;
}

.swot-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.swot-list li strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ========================================
   Product Categories
   ======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--color-card-bg);
    padding: 32px 16px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(199, 91, 58, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--color-accent);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--color-accent);
    color: white;
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.category-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.category-desc {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* ========================================
   Showroom Display
   ======================================== */
.showroom-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.showroom-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.showroom-reverse .showroom-image {
    order: 2;
}

.showroom-reverse .showroom-info {
    order: 1;
}

.showroom-image {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.showroom-image img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    display: block;
    box-shadow: var(--shadow-lg);
}

.showroom-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

.showroom-desc {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ========================================
   End Clients
   ======================================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.client-item {
    background: var(--color-card-bg);
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.client-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.client-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 1px;
}

.client-sub {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ========================================
   Manufacturing Capability
   ======================================== */
.manufacturing-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.factory-card {
    background: var(--color-card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.factory-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.factory-header svg {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.factory-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text);
}

.factory-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--color-bg);
    border-radius: 6px;
}

.info-row svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-row span {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.equipment-section {
    background: var(--color-card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.equipment-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--color-text);
    text-align: center;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-bg);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    transition: var(--transition);
}

.equipment-item:hover {
    background: rgba(199, 91, 58, 0.1);
    color: var(--color-accent);
}

.equipment-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ========================================
   Product Showcase
   ======================================== */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.product-tab {
    padding: 12px 24px;
    border: 2px solid var(--color-border);
    background: transparent;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
}

.product-tab:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.product-tab.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.product-panel {
    display: none;
}

.product-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.product-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.product-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

.product-img-wrap img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    display: block;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(44, 31, 22, 0.7);
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.product-item:hover .product-overlay {
    transform: translateY(0);
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-footer);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    display: block;
}

.footer-sub {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: white;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        padding: 80px 32px 32px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--color-text) !important;
        font-size: 1rem;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-frame {
        display: none;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .strengths-grid {
        grid-template-columns: 1fr;
    }

    .swot-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showroom-item {
        grid-template-columns: 1fr;
    }

    .showroom-reverse .showroom-image,
    .showroom-reverse .showroom-info {
        order: unset;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .factory-info {
        grid-template-columns: 1fr;
    }

    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }
}