/* ==========================================================================
   Nakatsu Shoukai - Design System & Stylesheet
   ========================================================================== */

/* Variables */
:root {
    --primary-color: #0655c5;       /* Royal Blue from Logo */
    --primary-hover: #04419c;
    --primary-light: #eff6ff;      /* Light tinted background */
    --primary-dark: #0f1e36;       /* Deep navy for dark sections */
    
    --accent-color: #ff6b00;        /* Orange for Call to Action buttons */
    --accent-hover: #e05e00;
    --accent-light: #fff7ed;
    
    --dark-color: #0b0f19;          /* Slate Black for headers/footers */
    --text-color: #2c3e50;          /* Charcoal for body text */
    --text-light: #64748b;          /* Muted grey for descriptions */
    
    --bg-light: #f8fafc;            /* Clean off-white background */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 32px rgba(6, 85, 197, 0.08);
    --shadow-hover: 0 20px 40px rgba(6, 85, 197, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.2;
}

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

/* Typography & Layout Helpers */
.text-center { text-align: center; }
.section-header {
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}
.section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--primary-color);
    color: var(--bg-white);
}
.btn-accent:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(6, 85, 197, 0.25);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 24px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-info i {
    color: var(--primary-color);
}

.top-social {
    display: flex;
    gap: 16px;
}

.top-social a:hover {
    color: var(--bg-white);
}

/* Header & Navbar */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

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

.logo-area {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

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

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    background-color: var(--primary-light);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 2px 4px;
    transition: var(--transition);
    font-weight: 600;
    font-family: var(--font-heading);
}

.lang-btn.active {
    color: var(--primary-color);
}

.lang-btn:hover {
    color: var(--primary-hover);
}

.lang-divider {
    color: var(--border-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: radial-gradient(circle at center, #1b355e 0%, #0b1526 100%);
    color: var(--bg-white);
    padding: 100px 0 120px;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(30deg, rgba(6, 85, 197, 0.15) 12%, transparent 12.5%, transparent 87%, rgba(6, 85, 197, 0.15) 87.5%, rgba(6, 85, 197, 0.15)), 
                      linear-gradient(150deg, rgba(6, 85, 197, 0.15) 12%, transparent 12.5%, transparent 87%, rgba(6, 85, 197, 0.15) 87.5%, rgba(6, 85, 197, 0.15));
    background-size: 80px 140px;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--bg-white);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Search Widget */
.search-widget {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 12px;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 0 16px;
}

.search-icon {
    color: var(--text-light);
    margin-right: 12px;
    font-size: 1.1rem;
}

.search-widget input {
    width: 100%;
    border: none;
    padding: 14px 0;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    color: var(--dark-color);
}

/* Main Content Styles */
.page-content {
    padding: 80px 24px;
}

/* Filter Tabs */
.filter-tabs-wrapper {
    margin-bottom: 40px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 8px rgba(6, 85, 197, 0.2);
}

/* Product Grid & Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(6, 85, 197, 0.2);
}

.card-img-wrapper {
    position: relative;
    height: 230px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.product-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-meta i {
    color: var(--primary-color);
}

.product-card .btn {
    width: 100%;
}

/* Featured Section (Weekly Bulk Lot) */
.featured-section {
    position: relative;
    background-color: var(--primary-dark);
    color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 50px;
    margin-bottom: 80px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.featured-section::after {
    content: '';
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.15;
    z-index: 1;
}

.featured-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.featured-img-area {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 300px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

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

.featured-info-area {
    display: flex;
    flex-direction: column;
}

.featured-title {
    color: var(--bg-white);
    font-size: 2rem;
    margin-bottom: 20px;
}

.featured-details {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.price-tag {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

.badge-green {
    background-color: #10b981;
    color: var(--bg-white);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    align-self: flex-start;
}

.featured-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    font-size: 1rem;
}

.featured-info-area .btn {
    align-self: flex-start;
}

/* Why Choose Us Section */
.why-us-section {
    padding: 40px 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.why-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(6, 85, 197, 0.2);
}

.why-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 24px;
}

.why-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.why-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer Section */
.footer {
    background-color: #f8fafc;
    color: #475569;
    padding: 60px 0 0;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 24px;
    width: auto;
    object-fit: contain;
}

.address-block {
    margin-bottom: 24px;
    line-height: 1.6;
}

.address-block h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.address-block p {
    color: #475569;
    margin-bottom: 4px;
}

.address-map-link {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.address-map-link:hover {
    opacity: 0.8;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-col li {
    margin-bottom: 16px;
}

.footer-links-col a {
    color: #475569;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links-col a:hover {
    color: var(--primary-color);
}

.footer-social-col {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.social-circle {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.social-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-bottom {
    background-color: #f8fafc;
    padding: 24px 0;
    font-size: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal a {
    margin-left: 20px;
    color: #64748b;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    transform: translateY(40px);
    transition: var(--transition);
    overflow: hidden;
}

.modal-overlay.open .modal-card {
    transform: translateY(0);
}

.modal-header {
    background-color: var(--primary-light);
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--dark-color);
}

#quote-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6, 85, 197, 0.15);
}

.form-control[readonly] {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--bg-white);
    border-left: 5px solid #10b981;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 450px;
    z-index: 1001;
    transform: translateX(120%);
    transition: var(--transition);
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.8rem;
    color: #10b981;
}

.toast-body h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.toast-body p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    margin-left: auto;
}

.toast-close:hover {
    color: var(--dark-color);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
    h1.hero-title {
        font-size: 2.8rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .featured-img-area {
        height: 250px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .footer-social-col {
        grid-column: span 2;
        justify-content: flex-start;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        height: 38px;
    }
    
    #header-quote-btn span {
        display: none;
    }
    
    #header-quote-btn {
        padding: 8px 12px;
    }
    
    .nav-links {
        display: none; /* Hide on mobile - can be toggled by JS */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        padding: 20px 24px;
        gap: 16px;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .top-info {
        flex-direction: column;
        gap: 6px;
    }
    
    .hero-section {
        padding: 60px 0 80px;
    }
    
    h1.hero-title {
        font-size: 2.2rem;
    }
    
    .search-widget {
        flex-direction: column;
        padding: 8px;
    }
    
    .search-widget button {
        width: 100%;
        padding: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-social-col {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .footer-legal a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        height: 32px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .lang-divider {
        display: none;
    }
}

