/* ==========================================================================
   Focus Shipping Agencies — Blog stylesheet
   Shared by blog.html and every blog-*.html post.
   Matches the brand palette and Outfit typeface used across the main site.
   ========================================================================== */

:root {
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --brand-orange: #FF9F00;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; line-height: 1.7; }

/* --- PRELOADER --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #020617; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.loader {
    width: 50px; height: 50px;
    border: 5px solid rgba(255, 159, 0, 0.3);
    border-radius: 50%; border-top-color: var(--brand-orange);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px; background-color: #25d366; color: white;
    border-radius: 50%; font-size: 35px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6); }

/* --- FIXED BACKGROUND --- */
.bg-fixed {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1;
    background-image: linear-gradient(rgba(2, 6, 23, 0.90), rgba(2, 6, 23, 0.96)),
        url('https://images.pexels.com/photos/2226458/pexels-photo-2226458.jpeg?auto=compress&cs=tinysrgb&w=1920');
    background-size: cover; background-position: center;
}

/* --- NAVIGATION --- */
nav {
    background: transparent; height: 90px; padding: 0 50px;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000; transition: 0.4s ease; width: 100%;
}
nav.scrolled { background: rgba(2, 6, 23, 0.98); box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.logo-container img {
    height: 75px; width: auto; transition: 0.3s;
    filter: brightness(1.14) contrast(1.10) saturate(1.18) drop-shadow(0 2px 7px rgba(0,0,0,0.6));
}
.nav-links { display: flex; align-items: center; }
.nav-links a {
    color: white; text-decoration: none; margin-left: 30px;
    font-weight: 600; font-size: 14px; text-transform: uppercase;
    transition: 0.3s; letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--brand-orange); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-orange); }
.hamburger { display: none; cursor: pointer; color: white; font-size: 1.5rem; z-index: 1002; }

/* --- UTILS --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.section-tag {
    display: inline-block; color: var(--brand-orange);
    font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 4px; font-weight: 700; margin-bottom: 16px;
}

/* --- BLOG INDEX HERO --- */
.blog-hero {
    margin-top: -90px; padding: 170px 50px 60px;
    text-align: center; position: relative; z-index: 2;
    max-width: 900px; margin-left: auto; margin-right: auto;
}
.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
    text-transform: uppercase; letter-spacing: -1px; line-height: 1.1;
    margin-bottom: 18px;
}
.blog-hero p { color: var(--text-muted); font-size: 1.1rem; font-weight: 300; }

/* --- FEATURED POST --- */
.featured-wrap { max-width: 1200px; margin: 0 auto 60px; padding: 0 50px; position: relative; z-index: 2; }
.featured-card {
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0;
    background: linear-gradient(145deg, rgba(255,159,0,0.07) 0%, rgba(15,23,42,0.95) 60%);
    border: 1px solid rgba(255,159,0,0.3);
    border-radius: 22px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: 0.35s;
}
.featured-card:hover { border-color: var(--brand-orange); transform: translateY(-5px); }
.featured-body { padding: 48px 44px; }
.featured-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand-orange); color: #020617;
    font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.8px; padding: 6px 16px; border-radius: 50px; margin-bottom: 18px;
}
.featured-body h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
    line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.5px;
}
.featured-body h2 a { color: #fff; text-decoration: none; transition: 0.3s; }
.featured-body h2 a:hover { color: var(--brand-orange); }
.featured-body p { color: var(--text-muted); font-size: 1rem; margin-bottom: 26px; font-weight: 300; }
.featured-visual {
    background: linear-gradient(160deg, rgba(255,159,0,0.12), rgba(2,6,23,0.6));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px; border-left: 1px solid rgba(255,159,0,0.15); gap: 18px;
}
.featured-visual i { font-size: 4.5rem; color: var(--brand-orange); opacity: 0.85; }
.featured-visual .fv-stat { text-align: center; }
.featured-visual .fv-stat strong { display: block; font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.featured-visual .fv-stat span { color: var(--text-dim); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; }

/* --- POST GRID --- */
.posts-section { max-width: 1200px; margin: 0 auto; padding: 0 50px 100px; position: relative; z-index: 2; }
.posts-head { margin-bottom: 36px; }
.posts-head h2 { font-size: 1.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.5px; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.post-card {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px; padding: 32px 28px;
    transition: 0.35s; display: flex; flex-direction: column;
    backdrop-filter: blur(8px);
}
.post-card:hover { transform: translateY(-8px); border-color: var(--brand-orange); background: rgba(30, 41, 59, 0.92); }
.post-cat {
    display: inline-block; align-self: flex-start;
    background: rgba(255,159,0,0.12); color: var(--brand-orange);
    font-size: 0.64rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.6px; padding: 5px 13px; border-radius: 5px; margin-bottom: 16px;
}
.post-card h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.35; margin-bottom: 12px; }
.post-card h3 a { color: #fff; text-decoration: none; transition: 0.3s; }
.post-card h3 a:hover { color: var(--brand-orange); }
.post-card p { color: var(--text-dim); font-size: 0.93rem; font-weight: 300; margin-bottom: 20px; flex-grow: 1; }
.post-meta {
    display: flex; align-items: center; gap: 14px;
    color: #64748b; font-size: 0.76rem;
    border-top: 1px solid rgba(255,255,255,0.07); padding-top: 16px;
}
.post-meta i { color: var(--brand-orange); margin-right: 5px; }

/* --- ARTICLE PAGE --- */
.article-hero {
    margin-top: -90px; padding: 160px 20px 40px;
    max-width: 820px; margin-left: auto; margin-right: auto;
    position: relative; z-index: 2;
}
.breadcrumb { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 22px; }
.breadcrumb a { color: var(--brand-orange); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-hero h1 {
    font-size: clamp(1.8rem, 4.2vw, 2.7rem); font-weight: 800;
    line-height: 1.18; letter-spacing: -0.8px; margin-bottom: 20px;
}
.article-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
    color: var(--text-dim); font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0; margin-bottom: 10px;
}
.article-meta i { color: var(--brand-orange); margin-right: 7px; }

.article-body {
    max-width: 820px; margin: 0 auto; padding: 20px 20px 80px;
    position: relative; z-index: 2;
}
.article-body h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 800;
    margin: 48px 0 18px; line-height: 1.25; letter-spacing: -0.4px;
    padding-bottom: 12px; border-bottom: 2px solid rgba(255,159,0,0.25);
}
.article-body h3 {
    font-size: 1.2rem; font-weight: 700; color: #fff;
    margin: 32px 0 12px; line-height: 1.35;
}
.article-body p { color: var(--text-muted); font-size: 1.04rem; margin-bottom: 20px; font-weight: 300; }
.article-body strong { color: #fff; font-weight: 600; }
.article-body a { color: var(--brand-orange); text-decoration: none; border-bottom: 1px solid rgba(255,159,0,0.35); }
.article-body a:hover { border-bottom-color: var(--brand-orange); }
.article-body ul, .article-body ol { margin: 0 0 22px 0; padding-left: 22px; }
.article-body li { color: var(--text-muted); margin-bottom: 11px; font-weight: 300; font-size: 1.02rem; }
.article-body li::marker { color: var(--brand-orange); }
.article-body hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 44px 0; }

/* Lead paragraph */
.lead { font-size: 1.16rem !important; color: #e2e8f0 !important; font-weight: 300; }

/* Key takeaways box — also helps AI assistants extract a summary */
.takeaway-box {
    background: linear-gradient(145deg, rgba(255,159,0,0.08), rgba(15,23,42,0.9));
    border: 1px solid rgba(255,159,0,0.28);
    border-left: 4px solid var(--brand-orange);
    border-radius: 12px; padding: 28px 30px; margin: 32px 0 40px;
}
.takeaway-box h2 {
    font-size: 0.78rem !important; text-transform: uppercase; letter-spacing: 2.5px;
    color: var(--brand-orange); margin: 0 0 16px !important;
    border-bottom: none !important; padding-bottom: 0 !important; font-weight: 800;
}
.takeaway-box ul { margin-bottom: 0; }
.takeaway-box li { color: var(--text-muted); font-size: 0.97rem; }

/* Callout / note */
.note-box {
    background: rgba(255,159,0,0.07);
    border-left: 3px solid var(--brand-orange);
    border-radius: 8px; padding: 20px 24px; margin: 28px 0;
}
.note-box p { margin-bottom: 0; font-size: 0.97rem; }
.note-box p + p { margin-top: 12px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 28px 0; -webkit-overflow-scrolling: touch; }
.article-body table {
    width: 100%; border-collapse: collapse; min-width: 480px;
    background: rgba(15,23,42,0.85); border-radius: 10px; overflow: hidden;
    font-size: 0.93rem;
}
.article-body th {
    background: rgba(255,159,0,0.14); color: #fff; font-weight: 700;
    text-align: left; padding: 14px 16px; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(255,159,0,0.22);
}
.article-body td {
    padding: 13px 16px; color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.06); font-weight: 300;
}
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body tbody tr:hover { background: rgba(255,159,0,0.04); }

/* Step list */
.step-list { list-style: none; padding-left: 0 !important; counter-reset: step; }
.step-list li {
    position: relative; padding-left: 52px; margin-bottom: 22px; counter-increment: step;
}
.step-list li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,159,0,0.14); border: 1px solid rgba(255,159,0,0.4);
    color: var(--brand-orange); font-weight: 800; font-size: 0.92rem;
    display: flex; align-items: center; justify-content: center;
}
.step-list li strong { display: block; margin-bottom: 4px; }

/* FAQ */
.faq-item {
    background: rgba(15,23,42,0.8); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 11px; padding: 22px 24px; margin-bottom: 14px; transition: 0.3s;
}
.faq-item:hover { border-color: rgba(255,159,0,0.35); }
.faq-item h3 { margin: 0 0 9px; font-size: 1.04rem; color: var(--brand-orange); }
.faq-item p { margin-bottom: 0; font-size: 0.97rem; }

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, rgba(255,159,0,0.13) 0%, rgba(15,23,42,0.96) 100%);
    border: 1px solid rgba(255,159,0,0.3);
    border-radius: 18px; padding: 40px 36px; margin: 50px 0 10px; text-align: center;
}
.article-cta h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; color: #fff; }
.article-cta p { color: var(--text-dim); margin-bottom: 26px; font-size: 1rem; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 15px 42px; border-radius: 50px;
    background: var(--brand-orange); color: #020617;
    font-weight: 800; font-size: 0.9rem; text-decoration: none;
    text-transform: uppercase; letter-spacing: 1.8px;
    transition: 0.3s; box-shadow: 0 8px 25px rgba(255,159,0,0.3);
    border-bottom: none !important;
}
.cta-btn:hover { background: #e68e00; transform: translateY(-3px); box-shadow: 0 15px 35px rgba(255,159,0,0.45); }

/* Sources list */
.sources { margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); }
.sources h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--text-dim); margin-bottom: 14px; }
.sources ul { padding-left: 20px; }
.sources li { font-size: 0.86rem; color: #64748b; margin-bottom: 7px; }
.sources a { color: #94a3b8; border-bottom: none; }
.sources a:hover { color: var(--brand-orange); }

/* Related posts */
.related { max-width: 1200px; margin: 0 auto; padding: 0 50px 90px; position: relative; z-index: 2; }
.related h2 { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; margin-bottom: 28px; letter-spacing: -0.4px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

/* --- FOOTER --- */
footer { background: #020617; color: white; padding: 80px 50px 20px; position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 1300px; margin: 0 auto 50px; }
.footer-col h4 { color: white; margin-bottom: 25px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; font-weight: 800; }
.footer-col a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 10px; transition: 0.3s; font-weight: 300; }
.footer-col a:hover { color: var(--brand-orange); padding-left: 5px; }
.footer-col p { color: #94a3b8; font-weight: 300; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; color: #475569; font-size: 0.9rem; }

/* --- RESPONSIVE --- */
@media (max-width: 980px) {
    .featured-card { grid-template-columns: 1fr; }
    .featured-visual { border-left: none; border-top: 1px solid rgba(255,159,0,0.15); flex-direction: row; justify-content: space-around; padding: 28px; }
    .featured-visual i { font-size: 3rem; }
}
@media (max-width: 900px) {
    nav { padding: 0 20px; height: 80px; }
    .logo-container img { height: 60px; }
    .nav-links {
        position: fixed; top: 0; right: -100%;
        height: 100vh; width: 260px;
        background: rgba(2, 6, 23, 0.98); backdrop-filter: blur(15px);
        flex-direction: column; align-items: flex-start;
        padding: 100px 30px; transition: 0.4s ease;
        border-left: 1px solid rgba(255,255,255,0.1); display: flex; z-index: 1050;
    }
    .nav-links.active { right: 0; }
    .nav-links a { margin: 15px 0; font-size: 1.2rem; margin-left: 0; }
    .hamburger { display: block; position: relative; z-index: 1100; }

    .blog-hero { padding: 140px 20px 40px; }
    .featured-wrap, .posts-section, .related, footer { padding-left: 20px !important; padding-right: 20px !important; }
    .featured-body { padding: 32px 24px; }
    .posts-grid, .related-grid { grid-template-columns: 1fr; }
    .article-hero { padding: 130px 20px 30px; }
    .article-body { padding: 16px 20px 60px; }
    .article-cta { padding: 32px 22px; }
    .cta-btn { width: 100%; justify-content: center; }
    .takeaway-box { padding: 22px 20px; }
    .article-body table { font-size: 0.86rem; }
    .article-body th, .article-body td { padding: 11px 12px; }
}
