/* ==========================================================================
   AL ROBBAN TRADE — Components
   Brent Widget, Cards, Forms, Content Blocks, Maps
   ========================================================================== */

/* ---------- Brent Live Price Widget ---------- */
.brent-widget {
    background: linear-gradient(135deg, #ffffff 0%, var(--c-off-white) 100%);
    border: 1px solid var(--c-gray-100);
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 760px;
}

.brent-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--c-red);
}

.brent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.brent-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brent-title-icon {
    width: 44px;
    height: 44px;
    background: var(--c-navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-white);
}

.brent-title-icon svg { width: 22px; height: 22px; }

.brent-title-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-navy);
    margin: 0;
    line-height: 1.2;
}

.brent-title-text small {
    font-size: 0.72rem;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.brent-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--c-red);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.brent-live-dot {
    width: 8px;
    height: 8px;
    background: var(--c-red);
    border-radius: 50%;
    animation: pulse 1.6s ease-in-out infinite;
}

.brent-price-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.brent-price {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--c-navy);
    letter-spacing: -0.02em;
    line-height: 1;
}

.brent-currency {
    font-size: 1.1rem;
    color: var(--c-text-muted);
    font-weight: 600;
    margin-left: -8px;
}

.brent-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.brent-change.up {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.brent-change.down {
    background: rgba(200, 16, 46, 0.1);
    color: var(--c-red);
}

.brent-meta {
    font-size: 0.82rem;
    color: var(--c-text-muted);
    margin-top: 4px;
}

.brent-meta-row {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--c-gray-100);
}

.brent-meta-item label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.brent-meta-item span {
    font-weight: 700;
    color: var(--c-navy);
    font-size: 0.92rem;
}

.brent-loading {
    color: var(--c-gray-400);
    font-weight: 400;
}

/* ---------- Home Intro Block ---------- */
.intro-block {
    padding: 100px 0 80px;
    background: var(--c-white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.intro-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--c-navy);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.intro-text p {
    font-size: 1.02rem;
    color: var(--c-text);
    margin-bottom: 18px;
    line-height: 1.75;
}

.intro-image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
    background: var(--c-gray-100);
}

.intro-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 37, 64, 0.4) 100%);
    pointer-events: none;
}

.intro-image-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c-navy);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---------- Highlight Strip ---------- */
.highlight-strip {
    background: var(--c-navy);
    color: var(--c-white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.highlight-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 50%, rgba(200, 16, 46, 0.2) 0%, transparent 60%);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.highlight-item {
    text-align: center;
    padding: 16px 12px;
}

.highlight-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--c-red-light);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}

.highlight-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* ---------- Feature Cards ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--c-white);
    border: 1px solid var(--c-gray-100);
    border-radius: 14px;
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--c-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--c-navy), var(--c-navy-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-white);
    margin-bottom: 20px;
}

.feature-icon svg { width: 28px; height: 28px; }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--c-text);
    line-height: 1.65;
}

/* ---------- Content Blocks ---------- */
.content-block { background: var(--c-white); }
.content-block.alt { background: var(--c-off-white); }

.content-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.content-narrow p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--c-text);
    margin-bottom: 18px;
}

/* ---------- Philosophy List (bulleted lists) ---------- */
.philosophy-list {
    margin-top: 36px;
}

.philosophy-list li {
    position: relative;
    padding: 18px 0 18px 50px;
    border-bottom: 1px solid var(--c-gray-100);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-text);
}

.philosophy-list li:last-child { border-bottom: none; }

.philosophy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 28px;
    width: 22px;
    height: 2px;
    background: var(--c-red);
}

.philosophy-list li::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 23px;
    width: 12px;
    height: 12px;
    background: var(--c-red);
    border-radius: 50%;
}

/* ---------- Map / Visual Card ---------- */
.map-card {
    margin: 50px auto 0;
    max-width: 1100px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--c-navy-dark);
}

.map-card img {
    width: 100%;
    height: auto;
    display: block;
}

.map-card-caption {
    background: var(--c-navy);
    color: var(--c-white);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.map-card-caption strong {
    font-size: 1.05rem;
    color: var(--c-red-light);
    letter-spacing: 0.05em;
}

.map-card-caption span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Markets & Services ---------- */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 70px;
}

.market-region {
    padding: 22px 20px;
    background: var(--c-white);
    border: 1px solid var(--c-gray-100);
    border-left: 4px solid var(--c-red);
    border-radius: 8px;
    font-weight: 600;
    color: var(--c-navy);
    font-size: 0.95rem;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.market-region:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.market-region svg {
    width: 22px;
    height: 22px;
    color: var(--c-red);
    flex-shrink: 0;
}

.services-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.services-block h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--c-navy);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.services-block .subtitle {
    font-size: 0.78rem;
    color: var(--c-red);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 24px;
}

.services-list li {
    padding: 14px 0 14px 30px;
    border-bottom: 1px solid var(--c-gray-100);
    font-size: 0.95rem;
    color: var(--c-text);
    position: relative;
    line-height: 1.5;
}

.services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;
    width: 18px;
    height: 2px;
    background: var(--c-red);
}

.services-list li:last-child { border-bottom: none; }

/* ---------- Philosophy Page ---------- */
.philosophy-intro {
    text-align: center;
    margin-bottom: 60px;
}

.philosophy-intro h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: 12px;
}

.thinker-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.thinker-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    background: var(--c-white);
    border: 1px solid var(--c-gray-100);
    border-radius: 16px;
    padding: 36px;
    align-items: start;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.thinker-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--c-gray-200);
}

.thinker-photo {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--c-gray-100);
    border: 3px solid var(--c-white);
    box-shadow: var(--shadow-md);
}

.thinker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thinker-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--c-navy);
    margin-bottom: 8px;
}

.thinker-info .role {
    font-size: 0.8rem;
    color: var(--c-red);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 20px;
}

.thinker-info p {
    font-size: 0.98rem;
    color: var(--c-text);
    line-height: 1.7;
    margin-bottom: 14px;
}

.philosophy-closing {
    background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-light) 100%);
    color: var(--c-white);
    padding: 60px 50px;
    border-radius: 18px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.philosophy-closing::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.25) 0%, transparent 70%);
}

.philosophy-closing h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.philosophy-closing p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.philosophy-closing .highlight {
    color: var(--c-red-light);
    font-weight: 700;
}

.philosophy-values {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.philosophy-values li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}

.philosophy-values li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--c-red-light);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---------- Insights / Subscription Form ---------- */
.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.insights-info h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--c-navy);
    margin-bottom: 16px;
}

.insights-info > p {
    font-size: 1.02rem;
    color: var(--c-text);
    margin-bottom: 28px;
    line-height: 1.7;
}

.insights-list li {
    padding: 14px 0 14px 36px;
    border-bottom: 1px solid var(--c-gray-100);
    font-size: 0.95rem;
    position: relative;
    color: var(--c-text);
}

.insights-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 22px;
    height: 4px;
    background: var(--c-red);
    border-radius: 2px;
}

.subscribe-form {
    background: var(--c-white);
    border: 1px solid var(--c-gray-100);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.subscribe-form h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--c-navy);
    margin-bottom: 6px;
}

.subscribe-form .form-subtitle {
    font-size: 0.88rem;
    color: var(--c-text-muted);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-navy);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group label .required { color: var(--c-red); }

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--c-gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-off-white);
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--c-red);
    background: var(--c-white);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px 28px;
    background: var(--c-red);
    color: var(--c-white);
    font-weight: 700;
    border-radius: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all var(--transition);
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--c-red-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}

.form-message.error {
    background: rgba(200, 16, 46, 0.1);
    color: var(--c-red);
    border: 1px solid rgba(200, 16, 46, 0.3);
    display: block;
}

/* ---------- Contact Page ---------- */
.contact-intro {
    text-align: center;
    margin-bottom: 50px;
}

.contact-intro p {
    font-size: 1.1rem;
    color: var(--c-text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info-card {
    background: var(--c-white);
    border: 1px solid var(--c-gray-100);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.contact-info-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--c-navy);
    margin-bottom: 8px;
}

.contact-info-card .tagline {
    font-size: 0.82rem;
    color: var(--c-red);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 28px;
}

.contact-row {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--c-gray-100);
    align-items: flex-start;
}

.contact-row:last-child { border-bottom: none; }

.contact-row-icon {
    width: 40px;
    height: 40px;
    background: var(--c-off-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-red);
    flex-shrink: 0;
}

.contact-row-icon svg { width: 20px; height: 20px; }

.contact-row-content {
    flex: 1;
    min-width: 0;
}

.contact-row-content label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-row-content .value {
    font-size: 0.92rem;
    color: var(--c-navy);
    font-weight: 600;
    word-break: break-word;
}

.contact-row-content .value a { color: var(--c-navy); }
.contact-row-content .value a:hover { color: var(--c-red); }

/* Address line - smaller font per client remark */
.contact-row-content .address-line {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Contact page — Compact photo (square) on top + map below */
.contact-visual-stack {
    display: grid;
    grid-template-rows: auto auto;
    gap: 20px;
    width: 100%;
}

.office-photo {
    width: 100%;
    max-width: 280px;       /* keep photo compact */
    height: 280px;          /* square — matches the photo's near-square aspect */
    margin: 0 auto;         /* center horizontally in the column */
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--c-gray-100);
    background: var(--c-gray-100);
    position: relative;
}

.office-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.map-embed {
    width: 100%;
    height: 300px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--c-gray-100);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---------- Value Chain image (Philosophy page) ---------- */
.value-chain-section {
    margin-top: 60px;
    text-align: center;
}

.value-chain-section h3 {
    font-size: 1.05rem;
    color: var(--c-red);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 24px;
}

.value-chain-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--c-off-white);
    padding: 20px;
}

/* ---------- Brand Band (Philosophy page) ---------- */
.brand-band {
    background: var(--c-white);
    padding: 40px 0 30px;
    text-align: center;
}

.brand-band-text {
    font-size: clamp(1.4rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--c-red);
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    /* subtle red glow to add presence */
    text-shadow: 0 4px 18px rgba(200, 16, 46, 0.18);
}

@media (max-width: 768px) {
    .brand-band {
        padding: 30px 0 20px;
    }
}
