/* ==========================================================================
   AL ROBBAN TRADE — Layout
   Navbar, Hero, Page Headers, Footer
   ========================================================================== */

/* ---------- Intro Video Overlay (Home only) ---------- */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--c-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.intro-overlay.hidden { animation: fadeOut 0.8s ease forwards; }

.intro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 37, 64, 0.55) 0%,
        rgba(10, 37, 64, 0.3) 50%,
        rgba(10, 37, 64, 0.75) 100%);
    z-index: 1;
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--c-white);
    padding: 24px;
}

.intro-content h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeUp 1.2s ease 0.3s both;
}

.intro-content p {
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeUp 1.2s ease 0.6s both;
}

.intro-controls {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 3;
}

.intro-btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--c-white);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.intro-btn:hover {
    background: var(--c-red);
    border-color: var(--c-red);
    transform: translateY(-2px);
}

.intro-btn svg { width: 16px; height: 16px; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-gray-100);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-container {
    max-width: var(--container);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo-mark {
    width: auto;
    height: 44px;
    max-width: 200px;
    flex-shrink: 0;
    object-fit: contain;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-text strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--c-red);
    letter-spacing: 0.06em;
}

.nav-logo-text span {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--c-navy);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 10px 18px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-navy);
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--c-red);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active { color: var(--c-red); }

.nav-link:hover::after,
.nav-link.active::after { width: calc(100% - 32px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--c-navy);
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (Home) ---------- */
.hero {
    position: relative;
    min-height: 80vh;
    padding: calc(var(--nav-h) + 80px) 0 80px;
    background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-light) 100%);
    color: var(--c-white);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Move the text content into the lower half so the video stays visible above */
.hero.hero-video .container,
.hero.hero-photo .container {
    margin-top: auto;
    margin-bottom: 8vh;   /* keep some space below text too */
    z-index: 2;
}

/* Photo-background variant (Home hero with tanker image) */
.hero.hero-photo {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 90vh;
}

/* Video-background variant (uses a <video> element instead of background-image) */
.hero.hero-video {
    background: var(--c-navy); /* fallback color while video loads */
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* On iOS in low-power mode, autoplay may not work — poster shows instead */
}

.hero-bg-music {
    display: none;
}

.hero-music-toggle {
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 3;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-white);
    background: rgba(10, 37, 64, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.hero-music-toggle:hover,
.hero-music-toggle:focus-visible {
    background: rgba(200, 16, 46, 0.88);
    border-color: rgba(255, 255, 255, 0.58);
    transform: translateY(-2px);
}

.hero-music-toggle:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.72);
    outline-offset: 3px;
}

.hero-music-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.hero-music-toggle.is-playing {
    background: rgba(200, 16, 46, 0.9);
}

.hero-music-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-music-icon-playing {
    display: none;
}

.hero-music-toggle.is-playing .hero-music-icon-muted {
    display: none;
}

.hero-music-toggle.is-playing .hero-music-icon-playing {
    display: block;
}

/* Dark overlay over the photo for text legibility */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 37, 64, 0.45) 0%,
        rgba(10, 37, 64, 0.25) 40%,
        rgba(10, 37, 64, 0.55) 100%
    );
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(200, 16, 46, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}

/* Disable the radial overlay on photo hero (background image carries the mood) */
.hero.hero-photo::before {
    display: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* ---------- Hero Banner Style ---------- */
/* Bold red text directly over the video — no boxed background */
.hero-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-banner-title {
    display: inline-block;
    background: transparent;
    color: #B8860B;
    font-size: clamp(2.2rem, 7vw, 5.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    padding: 0;
    text-transform: uppercase;
    /* Strong dark shadow so gold text stays readable on any video frame */
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.85),
        0 4px 18px rgba(0, 0, 0, 0.65),
        0 0 2px rgba(0, 0, 0, 0.9);
    animation: fadeUp 1s ease 0.2s both;
    max-width: 100%;
}

.hero-banner-subtitle {
    display: inline-block;
    background: transparent;
    color: #B8860B;
    font-size: clamp(0.85rem, 1.7vw, 1.15rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    padding: 0;
    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.85),
        0 2px 10px rgba(0, 0, 0, 0.65),
        0 0 2px rgba(0, 0, 0, 0.9);
    max-width: 1000px;
    animation: fadeUp 1s ease 0.4s both;
}

.hero-banner .hero-cta {
    margin-top: 24px;
    animation: fadeUp 1s ease 0.6s both;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-red-light);
    margin-bottom: 22px;
    padding: 8px 20px;
    border: 1px solid rgba(230, 57, 70, 0.4);
    border-radius: 50px;
    background: rgba(230, 57, 70, 0.08);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
    color: var(--c-white);
}

.hero h1 .accent { color: var(--c-red-light); }

.hero-tagline {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 760px;
    margin: 0 auto 36px;
    line-height: 1.5;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--c-red);
    color: var(--c-white);
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all var(--transition);
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35);
}

.hero-cta:hover {
    background: var(--c-red-light);
    color: var(--c-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(200, 16, 46, 0.45);
}

.hero-cta svg { width: 18px; height: 18px; }

/* ---------- Page Header (Inner pages) ---------- */
.page-header {
    position: relative;
    padding: calc(var(--nav-h) + 80px) 0 80px;
    background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-light) 100%);
    color: var(--c-white);
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(200, 16, 46, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--c-white);
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 680px;
    margin: 0 auto;
}

.breadcrumb {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.breadcrumb a { color: rgba(255, 255, 255, 0.65); }
.breadcrumb a:hover { color: var(--c-red-light); }

/* ---------- Footer ---------- */
.footer {
    background: var(--c-navy-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .nav-logo-mark {
    width: auto;
    height: 50px;
    max-width: 220px;
    filter: brightness(0) invert(1); /* Make navy logo white for dark footer */
    opacity: 0.92;
}
.footer-brand .nav-logo-text strong {
    color: var(--c-red-light);   /* Bright red — visible on dark footer */
}
.footer-brand .nav-logo-text span {
    color: #60a5fa;              /* Bright blue — visible on dark footer */
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.65);
    max-width: 360px;
}

.footer h4 {
    color: var(--c-white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--c-red-light); }

.footer-contact-item {
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a:hover { color: var(--c-red-light); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom strong { color: var(--c-red-light); }

.footer-bottom a {
    color: var(--c-red-light);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--c-white);
    text-decoration: underline;
}
