/* ============================================================
   BASRAH ENERGY FZE — REDESIGN
   Institutional petroleum trading website
   Design: Deep navy · Off-white · Brand coral accent
   ============================================================ */

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

:root {
    --navy:       #1a2535;
    --navy-mid:   #243347;
    --navy-dark:  #111c2b;
    --offwhite:   #f6f5f1;
    --white:      #ffffff;
    --copper:     #9b7b3a;
    --copper-lt:  #b08e4a;
    --text:       #2c3440;
    --text-muted: #6b7a8d;
    --border:     #ddd8cf;
    --border-lt:  #ebe8e2;
    --section-v:  80px;
}

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: 1160px;
    margin: 0 auto;
    padding: 0 28px;
}

address { font-style: normal; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    background: rgba(26, 37, 53, 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;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

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

/* Logo */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.logo-mark {
    font-size: 15px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo-mark strong {
    font-weight: 700;
}

.logo-sub {
    font-size: 10px;
    font-weight: 600;
    color: var(--copper);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2px;
}

.main-nav a {
    display: block;
    padding: 7px 13px;
    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 .nav-contact {
    background: var(--copper);
    color: var(--white) !important;
    margin-left: 8px;
    padding: 7px 18px;
}

.main-nav .nav-contact:hover {
    background: var(--copper-lt);
}

/* Mobile toggle */
.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);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(26,37,53,0.88) 0%, rgba(26,37,53,0.68) 55%, rgba(17,28,43,0.82) 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(155,123,58,0.07) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-bottom: 24px;
    max-width: 820px;
}

.hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.68);
    line-height: 1.75;
    max-width: 580px;
    margin-bottom: 42px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.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-lt);
    border-color: var(--copper-lt);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.38);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.75);
    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 52px;
}

.trust-icon {
    color: var(--copper);
    flex-shrink: 0;
    opacity: 0.85;
}

.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;
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */

.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: rgba(139,105,20,0.9);
}

.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);
    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: 420px;
}

.section-cta {
    margin-top: 44px;
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.25s, transform 0.25s;
}

.product-card:hover {
    box-shadow: 0 10px 36px rgba(26,37,53,0.11);
    transform: translateY(-4px);
}

.product-visual {
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pv-crude    { background: linear-gradient(140deg, #1a2535 0%, #2c3e50 100%); }
.pv-refined  { background: linear-gradient(140deg, #1e3148 0%, #2e4a68 100%); }
.pv-logistics{ background: linear-gradient(140deg, #24303e 0%, #3a4f62 100%); }
.pv-marine   { background: linear-gradient(140deg, #162a3a 0%, #20405a 100%); }

.product-body {
    padding: 20px 20px 22px;
}

.product-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: 0.1px;
}

.product-body p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   OPERATIONS FLOW
   ============================================================ */

.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(26,37,53,0.08);
    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.5px;
    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.6;
}

/* ============================================================
   COMPLIANCE BAND
   ============================================================ */

.compliance-band {
    background: var(--navy);
    padding: var(--section-v) 0;
}

.compliance-inner {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 72px;
    align-items: center;
}

.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.68);
    line-height: 1.75;
    margin-bottom: 16px;
    max-width: 560px;
}

.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.1);
    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.50);
    letter-spacing: 0.2px;
}

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

.site-footer {
    background: #0f1820;
    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-logo {
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-logo strong { font-weight: 700; }
.footer-logo span {
    font-size: 10px;
    color: var(--copper);
    letter-spacing: 3px;
    vertical-align: super;
    margin-left: 4px;
}

.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.30) !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.55);
    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;
}

.footer-phone {
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.65) !important;
}

.footer-hq {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 12.5px;
    line-height: 1.8;
    color: rgba(255,255,255,0.40);
}

.footer-hq strong {
    color: rgba(255,255,255,0.55);
    display: block;
    margin-bottom: 2px;
}

.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.28);
}

/* ============================================================
   INNER PAGE HERO (shared for all inner pages)
   ============================================================ */

.page-hero {
    background: var(--navy);
    padding: 130px 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.40);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.40);
    text-decoration: none;
}

.page-hero .breadcrumb a:hover { color: rgba(255,255,255,0.7); }

.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: 600px;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.62);
    max-width: 520px;
    line-height: 1.7;
}

/* ============================================================
   INNER PAGE CONTENT BLOCKS
   ============================================================ */

.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);
    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 (sidebar-style box) */
.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);
}

/* Stat grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin: 44px 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.stat-item {
    padding: 28px 24px;
    background: var(--offwhite);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 24px 0;
}

.data-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--navy);
    padding: 14px 16px;
    border-bottom: 2px solid var(--navy);
}

.data-table td {
    padding: 13px 16px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-lt);
    vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
    font-family: inherit;
    font-size: 14.5px;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--navy);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

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

@media (max-width: 1060px) {
    .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; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

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

    /* Mobile nav */
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0; right: 0;
        background: var(--navy-dark);
        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 strip */
    .trust-inner { flex-direction: column; align-items: flex-start; padding: 0; gap: 18px; }
    .trust-item { padding: 0; }
    .trust-sep { display: none; }

    /* Hero */
    .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.9rem; max-width: 100%; }
    .hero-scroll-indicator { display: none; }

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

    /* Products */
    .products-grid { grid-template-columns: 1fr; }

    /* Ops */
    .ops-grid { grid-template-columns: 1fr; }

    /* Compliance */
    .compliance-panel { flex-direction: column; }

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

    /* Stats */
    .stat-grid { grid-template-columns: 1fr; }

    /* Form */
    .form-row { grid-template-columns: 1fr; }

    /* Footer */
    .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; }
    .hero-actions .btn { text-align: center; }
}
