/*
Theme Name: AzinTrade 3D Global Commercial & Blog Theme
Theme URI: https://azintrade.com
Author: AzinTrade Digital Engineering
Author URI: https://azintrade.com
Description: Complete Production-Ready 3D WordPress Theme + Full Blog Migration Engine for AzinTrade Company (Since 1976). Features Glassmorphism Header, 3D Hero Ship Video, Three.js WebGL & GSAP 3D Scroll Transitions, Vanilla-Tilt 3D Product Cards, Full Dynamic Blog Archive (/blog/), Single Article Editorial Template with Auto-TOC & JSON-LD Schema, and Built-in Repeatable Blog Migrator.
Version: 5.1.0
License: GNU General Public License v2 or later
Text Domain: azintrade
*/

:root {
    --primary-gold: #f5d10d;
    --gold-glow: rgba(245, 209, 13, 0.35);
    --dark-navy: #050a12;
    --deep-ocean: #0a1424;
    --forest-accent: #0d261c;
    --card-bg: rgba(13, 25, 43, 0.68);
    --glass-bg: rgba(8, 16, 30, 0.62);
    --glass-border: rgba(255, 255, 255, 0.14);
    --text-white: #ffffff;
    --text-muted: #94a3b8;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--dark-navy);
    color: var(--text-white);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

body {
    background-color: var(--dark-navy);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(245, 209, 13, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 65%, rgba(13, 38, 28, 0.4) 0%, transparent 45%);
    overflow-x: hidden;
}

/* 3D perspective lives on the main content, NOT on body:
   a perspective on body turns every position:fixed element (live chat, header)
   into position:absolute relative to the page. */
#main-content {
    perspective: 1400px;
}

h1, h2, h3, h4, .brand-heading {
    font-family: 'League Spartan', sans-serif;
    letter-spacing: -0.4px;
}

.cinzel-tag {
    font-family: 'Cinzel', serif;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--primary-gold);
    color: #050a12;
    padding: 10px 18px;
    border-radius: 8px;
    z-index: 2000;
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: 20px; }

#bg-3d-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

/* --- Glassmorphism Header --- */
.site-header {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 1400px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 14px 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
    top: 10px;
    padding: 10px 30px;
    background: rgba(5, 10, 18, 0.88);
    border-color: rgba(245, 209, 13, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-wrap img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(245, 209, 13, 0.25));
    transition: transform 0.35s ease;
}

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

.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 6px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

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

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

.btn-gold {
    background: linear-gradient(135deg, #f5d10d 0%, #c89d00 100%);
    color: #050a12;
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 10px 25px rgba(245, 209, 13, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(245, 209, 13, 0.5);
}

.btn-glass {
    padding: 13px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background: rgba(245, 209, 13, 0.1);
    transform: translateY(-3px);
}

/* --- Hero 3D Video Portal --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 140px 24px 80px;
    transform-style: preserve-3d;
    z-index: 1;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.08);
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.6) contrast(1.12);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(5,10,18,0.75) 0%, rgba(5,10,18,0.35) 45%, rgba(5,10,18,0.96) 100%),
        radial-gradient(circle at center, transparent 20%, rgba(5,10,18,0.8) 100%);
    z-index: -1;
}

.hero-grid {
    max-width: 1360px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(245, 209, 13, 0.14);
    border: 1px solid rgba(245, 209, 13, 0.45);
    color: var(--primary-gold);
    font-size: 0.8rem;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.8rem, 5.4vw, 4.9rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    text-transform: uppercase;
    text-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.hero-title span {
    color: var(--primary-gold);
}

.hero-desc {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 660px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-3d-widget {
    background: rgba(10, 20, 36, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(22px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
}

.widget-video-preview {
    width: 100%;
    height: 190px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(245, 209, 13, 0.35);
    position: relative;
}

.widget-video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(5, 10, 18, 0.82);
    color: #22c55e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.telemetry-row {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}
.telemetry-row span:first-child { color: var(--text-muted); }
.telemetry-row span:last-child { color: #fff; font-weight: 600; }

/* --- Stats Bar --- */
.stats-ribbon {
    position: relative;
    z-index: 2;
    background: rgba(10, 20, 36, 0.82);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 48px 24px;
    backdrop-filter: blur(16px);
}

.stats-grid {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}

.stat-box h3 {
    font-size: 2.9rem;
    color: var(--primary-gold);
    margin-bottom: 6px;
}

.stat-box p {
    color: var(--text-muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- 3D Scroll Sections --- */
.section-3d {
    position: relative;
    z-index: 2;
    padding: 110px 24px;
    max-width: 1360px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.section-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 65px;
}

.section-head .cinzel-tag {
    color: var(--primary-gold);
    font-size: 0.84rem;
    display: block;
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* --- 6 Commercial Materials 3D Cards Grid --- */
.cards-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 34px;
    perspective: 1200px;
}

.card-3d {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transform-style: preserve-3d;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.card-3d:hover {
    border-color: rgba(245, 209, 13, 0.55);
    box-shadow: 0 30px 65px rgba(245, 209, 13, 0.14);
}

.card-media {
    height: 235px;
    overflow: hidden;
    position: relative;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}

.card-3d:hover .card-media img {
    transform: scale(1.1);
}

.card-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(5, 10, 18, 0.82);
    color: var(--primary-gold);
    border: 1px solid rgba(245, 209, 13, 0.45);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-content {
    padding: 28px;
    transform: translateZ(35px);
}

.card-content h3 {
    font-size: 1.55rem;
    margin-bottom: 10px;
    color: #fff;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.spec-list {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #cbd5e1;
}
.spec-list span { color: var(--primary-gold); font-weight: 700; }

/* --- Maritime Split Showcase --- */
.maritime-showcase {
    background: linear-gradient(135deg, rgba(13, 25, 43, 0.82), rgba(5, 10, 18, 0.94));
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 55px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    box-shadow: 0 35px 75px rgba(0, 0, 0, 0.55);
}

.showcase-video-box {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(245, 209, 13, 0.4);
}

.showcase-video-box video {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.incoterms-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 26px;
}

.inco-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 14px;
    text-align: center;
}
.inco-pill strong { display: block; color: var(--primary-gold); font-size: 1.2rem; margin-bottom: 4px; }
.inco-pill small { color: var(--text-muted); font-size: 0.78rem; }

/* --- RFQ Contact Section --- */
.rfq-container {
    background: linear-gradient(145deg, rgba(13, 25, 43, 0.88), rgba(5, 10, 18, 0.96));
    border: 1px solid rgba(245, 209, 13, 0.3);
    border-radius: 28px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.65);
}

.rfq-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.rfq-form .full-row { grid-column: 1 / -1; }
.rfq-form input, .rfq-form select, .rfq-form textarea {
    width: 100%;
    padding: 15px 18px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
}
.rfq-form select option { background: #0a1424; color: #fff; }
.rfq-form input:focus, .rfq-form select:focus, .rfq-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

/* --- Editorial Blog Archive & Single Article Pages --- */
.editorial-hero {
    padding: 170px 24px 70px;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(13, 38, 28, 0.8) 0%, rgba(5, 10, 18, 0.96) 75%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
}
.editorial-hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.editorial-hero p {
    color: var(--text-muted);
    max-width: 740px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.blog-controls {
    max-width: 1360px;
    margin: -34px auto 50px;
    padding: 22px 30px;
    background: rgba(10, 20, 36, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 5;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}
.cat-pills a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: all 0.25s ease;
}
.cat-pills a:hover, .cat-pills a.active {
    background: var(--primary-gold);
    color: #050a12;
    border-color: var(--primary-gold);
}
.blog-search-form {
    display: flex;
    gap: 10px;
    min-width: 290px;
}
.blog-search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.blog-archive-wrap {
    max-width: 1360px;
    margin: 0 auto;
    padding: 20px 24px 100px;
    position: relative;
    z-index: 2;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 32px;
}
.post-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 209, 13, 0.55);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55);
}
.post-card-thumb {
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #0a1424;
    display: block;
}
.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.07); }
.post-card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.post-cat-badge {
    background: rgba(245, 209, 13, 0.14);
    color: var(--primary-gold);
    border: 1px solid rgba(245, 209, 13, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.72rem;
}
.post-card-title {
    font-size: 1.38rem;
    line-height: 1.32;
    margin-bottom: 12px;
}
.post-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.25s ease;
}
.post-card-title a:hover { color: var(--primary-gold); }
.post-card-excerpt {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}
.read-more-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.azintrade-pagination {
    margin-top: 55px;
    display: flex;
    justify-content: center;
}
.azintrade-pagination .nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.azintrade-pagination .page-numbers {
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.azintrade-pagination .page-numbers.current,
.azintrade-pagination .page-numbers:hover {
    background: var(--primary-gold);
    color: #050a12;
    border-color: var(--primary-gold);
}

/* Single Post Editorial Layout */
.single-article-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 150px 24px 90px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    position: relative;
    z-index: 2;
}
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}
.breadcrumbs a { color: var(--primary-gold); text-decoration: none; }
.single-post-header h1 {
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    line-height: 1.15;
    margin-bottom: 18px;
}
.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 30px;
}
.single-featured-media {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 36px;
    border: 1px solid var(--glass-border);
    aspect-ratio: 16 / 9;
}
.single-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-toc {
    background: rgba(13, 38, 28, 0.5);
    border: 1px solid rgba(245, 209, 13, 0.35);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 34px;
}
.article-toc h4 {
    color: var(--primary-gold);
    margin-bottom: 12px;
    font-size: 1.05rem;
    text-transform: uppercase;
}
.article-toc ol {
    padding-left: 20px;
    display: grid;
    gap: 8px;
}
.article-toc a { color: #e2e8f0; text-decoration: none; font-size: 0.94rem; }
.article-toc a:hover { color: var(--primary-gold); }

.entry-content {
    font-size: 1.08rem;
    line-height: 1.82;
    color: #e2e8f0;
}
.entry-content h2 {
    font-size: 1.85rem;
    color: #fff;
    margin: 42px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.entry-content h3 {
    font-size: 1.4rem;
    color: var(--primary-gold);
    margin: 32px 0 14px;
}
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content a { color: var(--primary-gold); text-decoration: underline; }
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    background: rgba(10, 20, 36, 0.7);
    border-radius: 12px;
    overflow: hidden;
}
.entry-content th, .entry-content td {
    padding: 14px 18px;
    border: 1px solid var(--glass-border);
    text-align: left;
}
.entry-content th { background: rgba(245, 209, 13, 0.15); color: var(--primary-gold); }

.article-sidebar .sticky-box {
    position: sticky;
    top: 110px;
    background: linear-gradient(155deg, rgba(13, 38, 28, 0.78), rgba(10, 20, 36, 0.94));
    border: 1px solid rgba(245, 209, 13, 0.4);
    border-radius: 20px;
    padding: 28px;
}

.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 24px 40px;
    background: rgba(3, 7, 13, 0.95);
    position: relative;
    z-index: 2;
}
.footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
@media (max-width: 980px) {
    .hero-grid, .maritime-showcase, .rfq-container, .single-article-container { grid-template-columns: 1fr; }
    .rfq-form { grid-template-columns: 1fr; }
    .blog-controls { flex-direction: column; align-items: stretch; }
}


/* --- Elementor Seamless Full-Width & Live Editor Compatibility --- */
.azintrade-elementor-frontpage .elementor-section.azintrade-fw-section > .elementor-container,
.azintrade-elementor-frontpage .elementor-section.elementor-section-full_width > .elementor-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
.azintrade-elementor-frontpage .elementor-column-gap-no > .elementor-column > .elementor-element-populated,
.azintrade-elementor-frontpage .azintrade-fw-section .elementor-column > .elementor-element-populated,
.azintrade-elementor-frontpage .azintrade-fw-section .elementor-widget-wrap {
    padding: 0 !important;
}
.azintrade-elementor-frontpage .elementor-widget:not(:last-child) {
    margin-bottom: 0 !important;
}
body.elementor-editor-active .section-3d,
body.elementor-editor-preview .section-3d {
    opacity: 1 !important;
    transform: none !important;
}


/* --- Global LTR (Left-to-Right) Enforcement --- */
html, body {
    direction: ltr !important;
    text-align: left;
    unicode-bidi: embed;
}
.site-header, .nav-menu, .footer-inner, .single-post-meta, .post-meta-top, .telemetry-row, .spec-list {
    direction: ltr !important;
}

/* --- Fixed Blog & Section Header Centering (Fixes Screenshot Misalignment) --- */
.editorial-hero {
    padding: 165px 24px 75px !important;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 25%, rgba(13, 38, 28, 0.85) 0%, rgba(5, 10, 18, 0.98) 80%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
}
.editorial-hero .cinzel-tag,
.editorial-hero h1,
.editorial-hero p,
.section-head,
.section-head .cinzel-tag,
.section-head h2,
.section-head p,
.stat-box,
.stat-box h3,
.stat-box p,
.inco-pill,
.inco-pill strong,
.inco-pill small {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}
.editorial-hero h1 {
    font-size: clamp(2.3rem, 4.4vw, 3.8rem);
    font-weight: 800;
    margin: 0 auto 16px !important;
    max-width: 980px;
    line-height: 1.15;
}
.editorial-hero p {
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 10px !important;
    font-size: 1.08rem;
    line-height: 1.72;
}
.blog-controls {
    max-width: 1360px;
    margin: -32px auto 50px !important;
    padding: 20px 28px;
    background: rgba(10, 20, 36, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 5;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* --- Company Profile Section & Page Styles --- */
.cp-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 60px 24px 100px;
    position: relative;
    z-index: 2;
}
.cp-hero-card {
    background: linear-gradient(135deg, rgba(13, 25, 43, 0.86), rgba(5, 10, 18, 0.95));
    border: 1px solid rgba(245, 209, 13, 0.38);
    border-radius: 28px;
    padding: 52px;
    margin-bottom: 44px;
    backdrop-filter: blur(18px);
    box-shadow: 0 35px 75px rgba(0,0,0,0.6);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    align-items: center;
}
.cp-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(245, 209, 13, 0.45);
    background: #050a12;
    box-shadow: 0 25px 55px rgba(0,0,0,0.65);
    position: relative;
}
.cp-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cp-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 24px 0 28px;
}
.cp-fact-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 15px 18px;
    border-radius: 14px;
    text-align: left;
}
.cp-fact-box span {
    display: block;
    color: var(--primary-gold);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.cp-fact-box strong {
    color: #fff;
    font-size: 0.98rem;
}
.cp-section {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 46px;
    margin-bottom: 40px;
    backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}
.cp-section h2 {
    font-size: 2.1rem;
    color: var(--primary-gold);
    margin-bottom: 18px;
}
.cp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 22px;
    margin-top: 24px;
}
.cp-service-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 26px;
    border-radius: 18px;
    transition: all 0.3s ease;
    text-align: left;
}
.cp-service-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(245, 209, 13, 0.12);
}
.cp-service-card .cp-badge {
    display: inline-block;
    background: rgba(245, 209, 13, 0.15);
    color: var(--primary-gold);
    border: 1px solid rgba(245, 209, 13, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.cp-service-card h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.cp-service-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.68;
}
.cp-corridors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 18px;
    margin-top: 24px;
}
.cp-corridor-pill {
    background: linear-gradient(135deg, rgba(245, 209, 13, 0.12), rgba(13, 25, 43, 0.8));
    border: 1px solid rgba(245, 209, 13, 0.35);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.cp-corridor-pill span.dot {
    color: var(--primary-gold);
    font-size: 1.2rem;
    line-height: 1;
}
.cp-corridor-pill p {
    color: #e2e8f0;
    font-size: 0.93rem;
    line-height: 1.55;
    margin: 0;
}
@media (max-width: 980px) {
    .cp-hero-card { grid-template-columns: 1fr; padding: 32px 24px; }
    .cp-facts-grid { grid-template-columns: 1fr; }
    .cp-section { padding: 30px 22px; }
}


/* =====================================================================
   RESPONSIVE LAYER  (v5)
   Desktop  : >= 1200px
   Laptop   : 981 - 1199px   (collapsed menu, 2-column layouts kept)
   Tablet   : 641 - 980px    (single-column sections)
   Mobile   : <= 640px
   Small    : <= 380px
   ===================================================================== */

img { max-width: 100%; }
iframe, embed, object { max-width: 100%; }
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-wrap: break-word; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; }
.entry-content pre { overflow-x: auto; max-width: 100%; }
.entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Hamburger + mobile CTA are hidden on desktop */
.nav-toggle { display: none; }
.nav-mobile-cta { display: none; }

/* Slightly tighter header on smaller desktops so nothing wraps */
@media (min-width: 1200px) and (max-width: 1360px) {
    .site-header { padding: 14px 24px; }
    .nav-menu { gap: 18px; }
    .nav-menu a { font-size: 0.88rem; }
    .btn-gold { padding: 11px 20px; }
}

/* ---------- Collapsed menu (laptop-small, tablet, mobile) ---------- */
@media (max-width: 1199px) {
    .site-header {
        top: 12px;
        width: calc(100% - 24px);
        padding: 10px 18px;
        border-radius: 16px;
        gap: 12px;
    }
    .site-header.scrolled { top: 8px; padding: 8px 16px; }
    .logo-wrap img { height: 42px; }

    .header-cta { margin-left: auto; }
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        border-radius: 12px;
        border: 1px solid var(--glass-border);
        background: rgba(255, 255, 255, 0.06);
        cursor: pointer;
        flex: 0 0 auto;
        -webkit-tap-highlight-color: transparent;
    }
    .header-cta + .nav-toggle { margin-left: 4px; }
    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        transition: transform 0.3s ease, opacity 0.2s ease, background 0.3s ease;
    }
    .nav-toggle[aria-expanded="true"] { border-color: rgba(245, 209, 13, 0.55); }
    .nav-toggle[aria-expanded="true"] span { background: var(--primary-gold); }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Dropdown panel (absolute to header: backdrop-filter on the header
       would trap a position:fixed child, so we don't use fixed here) */
    .site-header nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        max-height: calc(100vh - 110px);
        max-height: calc(100dvh - 110px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 14px 16px;
        background: #050a12;
        border: 1px solid rgba(245, 209, 13, 0.3);
        border-radius: 18px;
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    }
    .site-header.nav-open nav {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .nav-menu li { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
    .nav-menu li:last-child { border-bottom: 0; }
    .nav-menu a {
        display: block;
        padding: 15px 8px;
        font-size: 1.02rem;
        min-height: 48px;
    }
    .nav-menu a::after { display: none; }
    .nav-menu a.active { color: var(--primary-gold); }
    .nav-mobile-cta { display: none; padding-top: 12px; }
    .nav-mobile-cta .btn-gold { width: 100%; justify-content: center; padding: 15px; }
    body.nav-locked { overflow: hidden; }
}

/* ---------- Laptop-small / tablet landscape ---------- */
@media (max-width: 1199px) {
    .section-3d { padding: 90px 24px; }
    .maritime-showcase { padding: 40px; gap: 36px; }
    .rfq-container { padding: 44px; gap: 36px; }
    .cp-hero-card { padding: 40px; gap: 32px; }
    .single-article-container { gap: 36px; grid-template-columns: minmax(0, 1fr) 300px; }
}

/* ---------- Tablet & below ---------- */
@media (max-width: 980px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100svh;
        padding: 120px 20px 60px;
    }
    .hero-grid { gap: 36px; }
    .hero-desc { max-width: none; }
    .hero-3d-widget { max-width: 560px; width: 100%; margin: 0 auto; }
    .widget-video-preview { height: 220px; }

    .stats-ribbon { padding: 40px 20px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .stat-box h3 { font-size: 2.2rem; }
    .stat-box p { font-size: 0.74rem; letter-spacing: 1px; }

    .section-head { margin-bottom: 44px; }
    .showcase-video-box video { height: 300px; }

    .single-article-container { padding: 125px 20px 70px; gap: 40px; }
    .article-sidebar .sticky-box { position: static; }
    .editorial-hero { padding: 135px 20px 60px !important; }
    .blog-controls { margin: -26px 16px 40px !important; max-width: none; padding: 18px 20px; }
    .blog-search-form { min-width: 0; width: 100%; }
    .blog-archive-wrap { padding: 10px 20px 80px; }

    .cp-container { padding: 40px 20px 80px; }
}

/* ---------- Phones & small tablets ---------- */
@media (max-width: 640px) {
    .header-cta { display: none; }
    .nav-mobile-cta { display: block; }
    .nav-toggle { margin-left: auto; }
    .site-header { top: 8px; width: calc(100% - 16px); padding: 8px 12px; }
    .logo-wrap img { height: 38px; }

    .hero-section { padding: 104px 16px 48px; }
    .hero-badge { font-size: 0.68rem; padding: 7px 14px; margin-bottom: 18px; letter-spacing: 1.6px; }
    .hero-title { font-size: clamp(1.95rem, 9vw, 2.6rem); line-height: 1.1; margin-bottom: 18px; }
    .hero-desc { font-size: 1rem; line-height: 1.65; margin-bottom: 26px; }
    .hero-actions { gap: 12px; }
    .hero-actions .btn-gold, .hero-actions .btn-glass { width: 100%; justify-content: center; text-align: center; }
    .hero-3d-widget { padding: 20px; border-radius: 18px; }
    .widget-video-preview { height: 170px; }
    .telemetry-row { font-size: 0.84rem; gap: 12px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
    .stat-box h3 { font-size: 1.9rem; }

    .section-3d { padding: 60px 16px; }
    .section-head { margin-bottom: 34px; }
    .section-head p { font-size: 0.98rem; }

    .cards-grid-3d, .blog-grid { gap: 22px; }
    .card-media { height: 200px; }
    .card-content { padding: 22px; transform: none; }
    .card-content h3 { font-size: 1.35rem; }
    .spec-list { flex-wrap: wrap; gap: 8px 16px; }

    .maritime-showcase { padding: 22px 18px; border-radius: 20px; gap: 26px; }
    .showcase-video-box video { height: 210px; }
    .incoterms-pills { gap: 8px; }
    .inco-pill { padding: 12px 6px; border-radius: 12px; }
    .inco-pill strong { font-size: 1rem; }

    .rfq-container { padding: 24px 18px; border-radius: 20px; gap: 28px; }
    .rfq-form { gap: 12px; }
    .rfq-form input, .rfq-form select, .rfq-form textarea { padding: 14px; font-size: 16px; } /* 16px stops iOS zoom */

    .btn-gold { padding: 13px 22px; font-size: 0.84rem; }
    .btn-glass { padding: 13px 22px; }

    .editorial-hero { padding: 112px 16px 52px !important; }
    .editorial-hero p { font-size: 1rem; }
    .blog-controls { margin: -22px 12px 32px !important; padding: 16px; }
    .cat-pills { gap: 8px; }
    .cat-pills a { padding: 7px 13px; font-size: 0.8rem; }
    .blog-search-form input[type="search"] { font-size: 16px; }
    .blog-archive-wrap { padding: 6px 16px 64px; }
    .post-card-body { padding: 20px; }
    .post-card-title { font-size: 1.2rem; }
    .azintrade-pagination .page-numbers { padding: 9px 14px; }

    .single-article-container { padding: 104px 16px 56px; gap: 32px; }
    .single-post-meta { gap: 8px 16px; font-size: 0.84rem; }
    .single-featured-media { border-radius: 14px; margin-bottom: 26px; }
    .article-toc { padding: 18px 18px; }
    .entry-content { font-size: 1.02rem; line-height: 1.75; }
    .entry-content h2 { font-size: 1.5rem; margin-top: 34px; }
    .entry-content h3 { font-size: 1.25rem; }
    .entry-content th, .entry-content td { padding: 10px 12px; font-size: 0.92rem; }
    .article-sidebar .sticky-box { padding: 22px; }

    .cp-container { padding: 28px 16px 64px; }
    .cp-hero-card { padding: 24px 18px; border-radius: 20px; gap: 26px; }
    .cp-video-wrap { border-radius: 14px; }
    .cp-section { padding: 26px 18px; border-radius: 18px; margin-bottom: 26px; }
    .cp-service-card { padding: 20px; }

    .site-footer { padding: 44px 16px 28px; }
    .footer-inner { justify-content: center; text-align: center; }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
    .incoterms-pills { grid-template-columns: 1fr; }
    .stat-box h3 { font-size: 1.65rem; }
    .stat-box p { font-size: 0.68rem; }
    .hero-title { font-size: 1.85rem; }
}

/* ---------- Landscape phones (short viewports) ---------- */
@media (max-height: 520px) and (orientation: landscape) {
    .hero-section { min-height: 0; padding-top: 96px; padding-bottom: 40px; }
    .site-header nav { max-height: calc(100vh - 80px); }
}

/* ---------- Touch devices: no sticky hover, bigger tap targets ---------- */
@media (hover: none) {
    .btn-gold:hover, .btn-glass:hover, .post-card:hover, .cp-service-card:hover { transform: none; }
    .card-3d:hover .card-media img, .post-card:hover .post-card-thumb img { transform: none; }
}
@media (pointer: coarse) {
    .cat-pills a, .azintrade-pagination .page-numbers, .read-more-link { min-height: 40px; display: inline-flex; align-items: center; }
}

/* ---------- Notched phones ---------- */
@supports (padding: max(0px)) {
    .site-footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}


/* Generic inner pages (About / Contact / Privacy ...) */
.page-card-wrap { max-width: 980px; }
.page-card { background: var(--card-bg); padding: 44px; border-radius: 20px; border: 1px solid var(--glass-border); }
.azintrade-inner-builder-page { position: relative; z-index: 2; padding-top: 110px; }
@media (max-width: 640px) { .page-card { padding: 24px 18px; border-radius: 16px; } }


/* =====================================================================
   RESPONSIVE LAYER  (v5.0.2) - fixes + remaining pages/components
   ===================================================================== */

/* Header: logo may shrink so the burger never leaves the screen */
.logo-wrap { min-width: 0; flex: 0 1 auto; }
.logo-wrap img { max-width: 100%; }
@media (max-width: 1199px) {
    .logo-wrap { max-width: calc(100% - 150px); }
}
@media (max-width: 640px) {
    .logo-wrap { max-width: calc(100% - 60px); }
}

/* Logged-in admin bar pushes the fixed header down */
.admin-bar .site-header { top: 54px; }
.admin-bar .site-header.scrolled { top: 42px; }
@media (max-width: 782px) {
    .admin-bar .site-header { top: 58px; }
    .admin-bar .site-header.scrolled { top: 54px; }
}
@media (max-width: 600px) {
    /* admin bar is not fixed on small screens in WordPress */
    .admin-bar .site-header { top: 8px; }
}

/* Search form (blog + search page + searchform.php) */
.blog-search-form input[type="search"] { min-width: 0; }
.blog-search-form .btn-gold { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 480px) {
    .blog-search-form { flex-wrap: wrap; }
    .blog-search-form input[type="search"] { flex: 1 1 100%; }
    .blog-search-form .btn-gold { width: 100%; justify-content: center; }
}

/* Single article: previous / next navigation, tags, related */
@media (max-width: 640px) {
    .single-article-container nav[style*="space-between"] { flex-direction: column; padding: 18px !important; }
    .single-article-container nav[style*="space-between"] > div { text-align: left !important; }
    .single-post-header h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
}

/* WordPress core content: alignments, captions, embeds, blocks, comments */
.entry-content .alignleft  { float: left;  margin: 4px 24px 16px 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 4px 0 16px 24px; max-width: 50%; }
.entry-content .aligncenter { display: block; margin: 0 auto 20px; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; margin-left: 0; margin-right: 0; }
.entry-content figure { max-width: 100%; margin: 0 0 24px; }
.entry-content figcaption, .wp-caption-text { color: var(--text-muted); font-size: 0.86rem; margin-top: 8px; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="vimeo"], .entry-content .wp-block-embed iframe {
    width: 100%; aspect-ratio: 16 / 9; height: auto;
}
.entry-content blockquote {
    margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--primary-gold);
    background: rgba(255, 255, 255, 0.04); border-radius: 0 12px 12px 0;
}
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content a, .entry-content td, .entry-content li, .entry-content p { overflow-wrap: anywhere; }
.entry-content .wp-block-columns { flex-wrap: wrap; gap: 20px; }
.entry-content .wp-block-column { min-width: min(100%, 260px); }
.comments-area { max-width: 100%; margin-top: 50px; }
.comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"], .comments-area textarea {
    width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05); color: #fff; font: inherit;
}
@media (max-width: 640px) {
    .entry-content .alignleft, .entry-content .alignright { float: none; display: block; margin: 0 auto 18px; max-width: 100%; }
}

/* Elementor pages / sections (About, Contact, custom pages) */
.azintrade-elementor-frontpage { max-width: 100%; overflow-x: clip; position: relative; z-index: 2; }
.azintrade-elementor-frontpage img { max-width: 100%; height: auto; }
.azintrade-elementor-frontpage .elementor-widget-container { max-width: 100%; }
@media (max-width: 1024px) {
    .azintrade-inner-builder-page { padding-top: 96px; }
}
@media (max-width: 640px) {
    .azintrade-inner-builder-page { padding-top: 84px; }
}

/* 404 + search results */
@media (max-width: 640px) {
    .editorial-hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem) !important; }
    .editorial-hero[style*="70vh"] { min-height: 60vh !important; }
    .editorial-hero div[style*="flex"] { width: 100%; }
    .editorial-hero div[style*="flex"] .btn-gold, .editorial-hero div[style*="flex"] .btn-glass { width: 100%; justify-content: center; text-align: center; }
}

/* Company profile: contact strip and CTA rows */
@media (max-width: 640px) {
    .cp-section [style*="justify-content:space-between"] { flex-direction: column; align-items: flex-start !important; }
    .cp-section [style*="display:flex"][style*="flex-wrap:wrap"] > a { flex: 1 1 100%; text-align: center; justify-content: center; }
    .cp-section h2 { font-size: clamp(1.45rem, 6vw, 1.9rem); }
}

/* Footer columns: centered on phones, 2 columns on tablet */
@media (max-width: 640px) {
    .site-footer .footer-inner[style*="grid"] { text-align: left; justify-items: stretch; }
    .site-footer .footer-inner[style*="border-top"] { justify-content: center; text-align: center; }
}

/* Chat widget never exceeds the screen */
.azc-root, .azc-win { max-width: 100vw; }

/* Grid children may shrink below their content (long URLs / words) */
.single-article-container > *, .hero-grid > *, .maritime-showcase > *, .rfq-container > *, .cp-hero-card > * { min-width: 0; }
@media (max-width: 980px) {
    .hero-grid, .maritime-showcase, .rfq-container, .single-article-container, .cp-hero-card { grid-template-columns: minmax(0, 1fr); }
}

/* About / Contact sections on the home page */
.home-info-card { max-width: 980px; margin: 0 auto; }
@media (max-width: 640px) { .home-info-card { padding: 22px 18px; } }
