/* Core Styling Rules */
:root {
    --primary: #007A87;
    --primary-dark: #005B66;
    --dark: #222B2C;
    --light: #F4F7F6;
    --white: #FFFFFF;
    --text: #4A5556;
    --border: #E2E8F0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header & Navbar */
header {
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-links .btn {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.nav-links .btn:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 14px 30px;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(34,43,44,0.9) 0%, rgba(0,122,135,0.85) 100%), 
                url('hero-home.jpeg') no-repeat center center/cover;
    height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 60px;
}

.trading-hero {
    background: linear-gradient(135deg, rgba(34,43,44,0.9) 0%, rgba(0,122,135,0.85) 100%), 
                url('hero-trading.jpeg') no-repeat center center/cover;
}

.generic-hero {
    background: linear-gradient(135deg, rgba(34,43,44,0.9) 0%, rgba(0,122,135,0.85) 100%), 
                url('hero-generic.avif') no-repeat center center/cover;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Short Hero Variant for Subpages */
.short-hero {
    height: 40vh;
    min-height: 280px;
    text-align: center;
}

.short-hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.short-hero h1 {
    font-size: 38px;
    margin-bottom: 10px;
}

.short-hero p {
    font-size: 16px;
    max-width: 600px;
    margin-bottom: 0;
}

/* General Layout Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light);
}

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

.section-header h2 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-header .subtitle {
    color: #718096;
}

.line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
}

.about-badge {
    background: var(--light);
    border-left: 5px solid var(--primary);
    padding: 30px;
    text-align: center;
    border-radius: 4px;
}

.about-badge h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-badge .year {
    font-size: 54px;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

/* Cards Layout */
.market-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-top-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

/* Product Showcase Grid Layout */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: 60px;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    align-items: center;
}

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

.product-showcase.reverse .prod-img-panel {
    order: 2;
}

.product-showcase.reverse .prod-info-panel {
    order: 1;
}

/* FIXED: Unified container rules for both standard and white-bg panels */
.prod-img-panel, 
.prod-img-panel.white-bg {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFFFFF !important;    /* Hard override to absolute pure white */
    border: 1px solid var(--border);   /* Uniform fine frame border line */
    padding: 30px;
    border-radius: 6px;
    width: 100%;
    height: 450px;                     /* Strictly enforces equal heights on desktop screens */
    box-sizing: border-box;
}

/* FIXED: Proportional child scaling */
.prod-img-panel img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.prod-tag {
    display: inline-block;
    background: rgba(0, 122, 135, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-showcase h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 5px;
}

.substance {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Specifications Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    font-size: 14px;
}

.spec-table tr {
    border-bottom: 1px solid var(--border);
}

.spec-table td {
    padding: 10px 12px;
}

.spec-table td:first-child {
    font-weight: 600;
    color: var(--dark);
    width: 30%;
}

.prod-section-label {
    font-weight: 700;
    color: var(--dark);
    margin: 20px 0 5px 0;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prod-desc {
    font-size: 15px;
    color: var(--text);
}

/* Compliance Strip */
.compliance-strip {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0;
}

.compliance-strip-inner {
    display: flex;
    align-items: center;
    gap: 25px;
}

.compliance-icon {
    font-size: 40px;
}

.compliance-text h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.compliance-text p {
    color: #A0AEC0;
    font-size: 15px;
}

/* Why Us Grid Layout */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-card {
    background: var(--white);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.why-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 18px;
}

/* Bottom Call To Action Banner */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 18px;
    opacity: 0.9;
}

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

.cta-section .btn-primary:hover {
    background: var(--light);
    color: var(--primary-dark);
}

/* Interactive Tabs Component */
.office-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

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

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

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.office-content {
    background: var(--light);
    padding: 40px;
    border-radius: 6px;
    min-height: 150px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h3 {
    color: var(--dark);
    margin-bottom: 15px;
}

/* Form Styling */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

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

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-submit {
    background: var(--dark);
    color: var(--white);
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.btn-submit:hover {
    background: var(--primary);
}

.form-feedback {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* Footer layout */
footer {
    background: var(--dark);
    color: #A0AEC0;
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

.footer-content p {
    margin: 5px 0;
}

.hero .breadcrumb { margin-bottom: 10px; }
.hero .breadcrumb a { color: inherit; opacity: 0.85; text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--light); border-radius: 6px; margin-bottom: 25px; }
.section-content { margin-top: 20px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar { flex-direction: column; }
    .nav-links { margin-top: 20px; }
    .nav-links li { margin: 0 15px; }
    .hero h1 { font-size: 34px; }
    .about-grid { grid-template-columns: 1fr; }
    .office-tabs { flex-wrap: wrap; }
    .tab-btn { padding: 10px 15px; width: 50%; }
    .logo-img { height: 38px; }
    
    .product-showcase, .product-showcase.reverse {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 25px;
    }
    .product-showcase.reverse .prod-img-panel { order: initial; }
    .product-showcase.reverse .prod-info-panel { order: initial; }
    .compliance-strip-inner { flex-direction: column; text-align: center; }
    
    /* Responsive overrides for uniform containers */
    .prod-img-panel,
    .prod-img-panel.white-bg { 
        height: 320px !important; 
    } 
}