/* ============================================================
   FAW PETROLEUM FZE
   Institutional petroleum trading & shipping website
   Palette per brief sec 3: navy / dark navy / copper / off-white
   ============================================================ */

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

:root {
    /* ── Brief palette (exact) ── */
    --navy:       #2B3A4E;   /* primary */
    --navy-dark:  #243243;   /* headings */
    --copper:     #E8654A;   /* accent / CTA */
    --offwhite:   #F0F2F5;   /* page bg */
    --grey:       #A0AAB4;   /* secondary text, captions, borders */
    --white:      #ffffff;
    /* ── Derived (hover/contrast — kept inside brand family) ── */
    --navy-deep:  #1c2735;   /* hero overlay depth */
    --copper-dk:  #c8553d;   /* CTA hover */
    --text:       #2c3440;   /* body copy (a11y darker than --grey) */
    --text-muted: #6b7585;   /* readable muted body (a11y darker than --grey) */
    --border:     #A0AAB4;   /* per brief */
    --border-lt:  #d4d8de;   /* lighter border for fine separators */
    --section-v:  88px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

address { font-style: normal; }
a { color: var(--copper); }
a:hover { color: var(--copper-dk); }

/* ============================================================
   HEADER (sticky)
   ============================================================ */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    background: rgba(43, 58, 78, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    background: rgba(36, 50, 67, 0.98);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 104px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}
.logo-img {
    height: 84px;
    width: auto;
    display: block;
}
.footer-brand .logo-img { height: 86px; margin-bottom: 18px; }
.logo-text {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2px;
}
.main-nav a {
    display: block;
    padding: 8px 14px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-radius: 3px;
    transition: color 0.2s, background 0.2s;
}
.main-nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.06);
}
.main-nav a.active {
    color: var(--white);
}
.main-nav .nav-contact {
    background: var(--copper);
    color: var(--white) !important;
    margin-left: 10px;
    padding: 8px 20px;
}
.main-nav .nav-contact:hover {
    background: var(--copper-dk);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: all 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy-deep);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(28,39,53,0.95) 0%, rgba(43,58,78,0.85) 55%, rgba(36,50,67,0.92) 100%),
        url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 60%, rgba(232,101,74,0.07) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 22px;
}
.hero-content h1 {
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.18;
    letter-spacing: -0.6px;
    margin-bottom: 22px;
    max-width: 760px;
}
.hero-sub {
    font-size: 17.5px;
    color: rgba(255,255,255,0.74);
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 40px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll-indicator span {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 100%);
    margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-block;
    padding: 13px 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}
.btn-copper {
    background: var(--copper);
    color: var(--white);
    border-color: var(--copper);
}
.btn-copper:hover {
    background: var(--copper-dk);
    border-color: var(--copper-dk);
}
.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.40);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06);
}
.btn-outline-dark {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline-dark:hover {
    background: var(--navy);
    color: var(--white);
}

/* ============================================================
   TRUST STRIP
   ============================================================ */

.trust-strip {
    background: var(--offwhite);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
}
.trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 48px;
}
.trust-icon {
    color: var(--copper);
    flex-shrink: 0;
    opacity: 0.9;
}
.trust-item strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.2px;
}
.trust-item span {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 1px;
}
.trust-sep {
    width: 1px;
    height: 44px;
    background: var(--border);
    flex-shrink: 0;
}

/* ============================================================
   SHARED SECTION CHROME
   ============================================================ */

.section { padding: var(--section-v) 0; }
.section-alt {
    background: var(--offwhite);
    border-top: 1px solid var(--border-lt);
    border-bottom: 1px solid var(--border-lt);
}
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 14px;
}
.section-label.light { color: var(--copper); opacity: 0.85; }

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 52px;
}
.section-heading-row h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.3rem);
    font-weight: 700;
    color: var(--navy-dark);
    letter-spacing: -0.3px;
    line-height: 1.2;
    flex-shrink: 0;
}
.section-heading-row p {
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 440px;
}
.section-cta { margin-top: 44px; }

/* ============================================================
   PRODUCTS GRID (4 cards desktop)
   ============================================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-card {
    position: relative;
    border: 1px solid var(--border-lt);
    border-radius: 4px;
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.product-card:hover {
    box-shadow: 0 14px 40px rgba(43,58,78,0.14);
    transform: translateY(-4px);
    border-color: rgba(232,101,74,0.45);
}
.product-card::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0;
    height: 3px;
    background: var(--copper);
    transition: width 0.3s ease;
}
.product-card:hover::after { width: 100%; }
.product-visual {
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.62);
    position: relative;
    overflow: hidden;
}
.product-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, transparent, transparent 16px, rgba(255,255,255,0.025) 16px, rgba(255,255,255,0.025) 17px);
    pointer-events: none;
}
.pv-1 { background: linear-gradient(140deg, #2B3A4E 0%, #3a4d66 100%); }
.pv-2 { background: linear-gradient(140deg, #243243 0%, #354859 100%); }
.pv-3 { background: linear-gradient(140deg, #2B3A4E 0%, #475a72 100%); }
.pv-4 { background: linear-gradient(140deg, #1f2c3d 0%, #344558 100%); }
.pv-5 { background: linear-gradient(140deg, #243243 0%, #3a4d66 100%); }
.pv-6 { background: linear-gradient(140deg, #2B3A4E 0%, #3a4d66 100%); }
.pv-7 { background: linear-gradient(140deg, #1c2735 0%, #2B3A4E 100%); }
.pv-8 { background: linear-gradient(140deg, #243243 0%, #475a72 100%); }

.product-body { padding: 20px 20px 22px; }
.product-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: 0.1px;
}
.product-body p {
    font-size: 13.2px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   OPERATIONS FLOW (4 steps)
   ============================================================ */

.ops-grid {
    display: grid;
    grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr;
    align-items: start;
    gap: 0;
}
.ops-step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 28px 24px 30px;
}
.ops-num {
    font-size: 36px;
    font-weight: 800;
    color: rgba(43,58,78,0.10);
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -1px;
}
.ops-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}
.ops-body p {
    font-size: 13.4px;
    color: var(--text-muted);
    line-height: 1.65;
}
.ops-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 36px;
    color: var(--copper);
    opacity: 0.75;
}
.ops-callout {
    margin-top: 32px;
    padding: 18px 24px;
    border-left: 3px solid var(--copper);
    background: rgba(232,101,74,0.04);
    font-size: 14px;
    color: var(--text);
}
.ops-callout strong { color: var(--navy); }

/* ============================================================
   COMPLIANCE BAND (full-width navy)
   ============================================================ */

.compliance-band {
    background: var(--navy);
    padding: var(--section-v) 0;
    position: relative;
}
.compliance-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 41px);
    pointer-events: none;
}
.compliance-inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 72px;
    align-items: center;
    position: relative;
}
.compliance-text h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.3rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 22px;
}
.compliance-text p {
    font-size: 15.5px;
    color: rgba(255,255,255,0.72);
    line-height: 1.78;
    margin-bottom: 16px;
    max-width: 580px;
}
.compliance-text .btn-copper { margin-top: 10px; }

.compliance-panel {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.compliance-stat {
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 3px;
    padding: 22px 24px;
    background: rgba(255,255,255,0.03);
}
.cs-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.cs-label {
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.2px;
}

/* ============================================================
   STATS / TRACK RECORD STRIP
   ============================================================ */

.stats-strip {
    background: var(--offwhite);
    padding: 64px 0;
    border-top: 1px solid var(--border-lt);
    border-bottom: 1px solid var(--border-lt);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    overflow: hidden;
}
.stat-cell {
    padding: 32px 28px;
    border-right: 1px solid var(--border-lt);
    text-align: left;
}
.stat-cell:last-child { border-right: none; }
.stat-num {
    font-size: 38px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 10px;
}
.stat-num .copper { color: var(--copper); }
.stat-cap {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: #1a2532;
    color: rgba(255,255,255,0.55);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr 1.4fr;
    gap: 52px;
    padding: 64px 0 52px;
}
.footer-brand .logo-img {
    height: 44px;
    margin-bottom: 16px;
}
.footer-brand p {
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 6px;
}
.footer-est {
    font-size: 12px;
    color: rgba(255,255,255,0.32) !important;
    margin-top: 8px !important;
}
.footer-col h4 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 18px;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-col a {
    color: rgba(255,255,255,0.58);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col address {
    font-size: 13.5px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.62);
}
.footer-phone {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.68) !important;
    margin-bottom: 4px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}
.footer-social a:hover {
    background: var(--copper);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 20px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.32);
}

/* ============================================================
   INNER PAGE HERO (shared)
   ============================================================ */

.page-hero {
    background: var(--navy);
    padding: 132px 0 68px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 41px);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero .breadcrumb {
    font-size: 12px;
    color: rgba(255,255,255,0.42);
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.42); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: rgba(255,255,255,0.75); }
.page-hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.4px;
    line-height: 1.2;
    max-width: 640px;
    margin-bottom: 16px;
}
.page-hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.66);
    max-width: 560px;
    line-height: 1.7;
}

/* ============================================================
   INNER CONTENT BLOCKS (used by inner pages)
   ============================================================ */

.content-section { padding: var(--section-v) 0; }
.content-section.alt {
    background: var(--offwhite);
    border-top: 1px solid var(--border-lt);
    border-bottom: 1px solid var(--border-lt);
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.two-col.wide-left { grid-template-columns: 3fr 2fr; }
.content-block h2 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--navy-dark);
    letter-spacing: -0.3px;
    margin-bottom: 18px;
}
.content-block h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    margin-top: 28px;
}
.content-block h3:first-child { margin-top: 0; }
.content-block p {
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.78;
    margin-bottom: 14px;
}
.content-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.content-block ul li {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}
.content-block ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--copper);
    font-weight: 400;
}

.info-panel {
    background: var(--offwhite);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 32px 28px;
}
.info-panel h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 18px;
}
.info-panel p, .info-panel address {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 12px;
}
.info-panel a { color: var(--navy); text-decoration: none; font-weight: 500; }
.info-panel a:hover { color: var(--copper); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .ops-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .ops-connector { display: none; }
    .compliance-inner { grid-template-columns: 1fr; gap: 44px; }
    .compliance-panel { flex-direction: row; }
    .compliance-stat { flex: 1; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-cell:nth-child(2) { border-right: none; }
    .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--border-lt); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Mobile reveal-more for product grid (brief 5.3) */
.products-reveal {
    display: none;
    margin-top: 24px;
    text-align: center;
}
@media (max-width: 768px) {
    .products-grid .product-card:nth-child(n+5) {
        display: none;
    }
    .products-grid.expanded .product-card:nth-child(n+5) {
        display: block;
    }
    .products-reveal { display: block; }
}

@media (max-width: 768px) {
    :root { --section-v: 60px; }

    .main-nav {
        display: none;
        position: absolute;
        top: 104px;
        left: 0; right: 0;
        background: var(--navy-deep);
        border-top: 1px solid rgba(255,255,255,0.08);
        padding: 12px 0 18px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 12px 24px; border-radius: 0; }
    .main-nav .nav-contact {
        margin: 10px 24px 0;
        display: block;
        text-align: center;
        border-radius: 3px;
    }
    .menu-toggle { display: flex; }

    .trust-inner { flex-direction: column; align-items: flex-start; padding: 0; gap: 18px; }
    .trust-item { padding: 0; }
    .trust-sep { display: none; }

    .hero-content { text-align: left; align-items: flex-start; }
    .hero-actions { justify-content: flex-start; }
    .hero-sub { max-width: 100%; }
    .hero-content h1 { font-size: 1.95rem; max-width: 100%; }
    .hero-scroll-indicator { display: none; }

    .section-heading-row { flex-direction: column; align-items: flex-start; gap: 12px; }

    .products-grid { grid-template-columns: 1fr; }
    .ops-grid { grid-template-columns: 1fr; }
    .compliance-panel { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-cell { border-right: none; border-bottom: 1px solid var(--border-lt); }
    .stat-cell:last-child { border-bottom: none; }

    .two-col, .two-col.wide-left { grid-template-columns: 1fr; gap: 36px; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.7rem; }
    .btn { padding: 12px 22px; font-size: 13.5px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { text-align: center; }
}
