/* ==========================================================================
   OCTOTRADE - LIGHT MODERN TRADITIONAL DESIGN SYSTEM
   ========================================================================== */

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

:root {
    /* Core Traditional Colors (Original Theme) */
    --bg-page: #F3F4F6;
    --bg-box: #FFFFFF;
    --primary: #8BC34A; /* Vibrant Original Green */
    --primary-dark: #7CB342;
    --primary-light: rgba(139, 195, 74, 0.15);
    --secondary: #1F2937; /* Dark Charcoal (Instead of pure black) */
    --secondary-hover: #111827;
    
    /* Text Colors */
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 1. RESET & GENERAL STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 2. BOX CONTAINER */
.boxed-container {
    background-color: var(--bg-box);
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 3.5rem;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* 3. HEADER & LOGO */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* 4. NAVIGATION BAR (Original Blocky Design) */
.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    background-color: var(--secondary);
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.nav-link:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: var(--primary);
}

.nav-link.active:hover {
    background-color: var(--primary-dark);
}

/* 5. HOMEPAGE TWO-COLUMN GRID */
.home-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: start;
}

.home-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.narrative-p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.25rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Mission Bullet List (Traditional Asterisk Style) */
.mission-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mission-item {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.mission-item::before {
    content: '*';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 800;
}

.home-right {
    display: flex;
    flex-direction: column;
}

.hero-image-wrapper {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.02);
}

/* 6. COMPANY PROFILE STYLES */
.profile-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-item {
    font-size: 1.05rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    padding-bottom: 1rem;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-label {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    margin-right: 0.5rem;
}

/* Purpose Asterisk Bullet List */
.purpose-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-left: 1rem;
}

.purpose-item {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.purpose-item::before {
    content: '*';
    position: absolute;
    left: 0;
    top: -0.2rem;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

/* 7. CONTACT FORM STYLES */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: #FAFAFA;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.15);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

/* Captcha verification box styling */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--primary-light);
    border: 1px dashed var(--primary);
    border-radius: 4px;
    padding: 1rem;
}

.captcha-label {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.15rem;
    user-select: none;
}

.btn-submit {
    background-color: var(--primary);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.25);
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

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

.success-modal {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 6px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: var(--shadow-md);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .success-modal {
    transform: scale(1);
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.success-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* 8. PRESS COVERAGE REVIEWS */
.press-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.press-card {
    background-color: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.press-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.press-quote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid var(--primary);
}

.press-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.04);
    padding-top: 1rem;
}

.press-source {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.press-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 9. FOOTER STYLES */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Back-to-Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* 10. RESPONSIVE MEDIA QUERIES */
@media (max-width: 860px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem 0.5rem;
    }
    .boxed-container {
        padding: 2rem 1.5rem;
    }
    .nav-menu {
        gap: 0.5rem;
    }
    .nav-link {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        width: 100%;
        text-align: center;
    }
}
