/* ============================================
   Oromar Hero Enhancement — Premium Visual Layer
   Version: 2.1 — 2026.08.16
   ============================================ */

/* --- Hero SVG Background Layer --- */
.hero-svg-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: heroFadeIn 1.2s ease-out 0.2s forwards;
}
@keyframes heroFadeIn { to { opacity: 1; } }

/* --- Hero glass card --- */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 820px;
    padding: 120px 0 80px;
}
.hero-content::before {
    content: '';
    position: absolute;
    top: -20px; left: -40px;
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border-radius: 2px;
}

/* --- Hero badge --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(201,168,76,0); }
}

/* --- Hero text enhancements --- */
.hero h1 {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0E6D0 50%, #E8D5A8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub { text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-es-slogan {
    position: relative;
    padding-left: 24px;
}
.hero-es-slogan::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 16px; height: 2px;
    background: var(--gold);
    transform: translateY(-50%);
}

/* --- Hero buttons enhancement --- */
.btn-primary {
    box-shadow: 0 4px 24px rgba(201,168,76,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(201,168,76,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-secondary {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* --- Hero stats bar --- */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat .num {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}
.hero-stat .label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* --- Trade route animation --- */
.trade-route {
    fill: none;
    stroke: rgba(201,168,76,0.35);
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
    animation: dashMove 3s linear infinite;
}
@keyframes dashMove { to { stroke-dashoffset: -20; } }

.trade-route-solid {
    fill: none;
    stroke: rgba(201,168,76,0.15);
    stroke-width: 1;
}
.city-dot { fill: var(--gold); }
.city-dot-pulse {
    fill: var(--gold);
    opacity: 0.4;
    animation: cityPulse 2.5s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}
@keyframes cityPulse {
    0%,100% { r: 4; opacity: 0.4; }
    50% { r: 10; opacity: 0; }
}
.city-label {
    fill: rgba(255,255,255,0.5);
    font-size: 10px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 500;
}

/* --- Grid overlay --- */
.hero-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* --- Floating glow orbs --- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.hero-orb-1 {
    width: 300px; height: 300px;
    background: rgba(201,168,76,0.08);
    top: 10%; right: 5%;
    animation: orbFloat1 8s ease-in-out infinite;
}
.hero-orb-2 {
    width: 200px; height: 200px;
    background: rgba(15,45,92,0.4);
    bottom: 10%; left: 10%;
    animation: orbFloat2 10s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,30px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-30px)} }

/* --- Section divider waves --- */
.hero-divider {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    z-index: 3;
    pointer-events: none;
}

/* --- Responsive hero --- */
@media (max-width: 768px) {
    .hero { min-height: 100vh; }
    .hero-stats { gap: 24px; }
    .hero-stat .num { font-size: 22px; }
    .hero-grid { background-size: 40px 40px; }
    .hero-orb-1 { width: 180px; height: 180px; }
    .hero-orb-2 { width: 120px; height: 120px; }
}

/* --- Section illustration enhancement --- */
.section-illust {
    position: relative;
    overflow: hidden;
}
.section-illust::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* --- Card hover enhancement --- */
.biz-card {
    position: relative;
    overflow: hidden;
}
.biz-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.biz-card:hover::after { transform: scaleX(1); }

.proc-step::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    border-radius: 3px 3px 0 0;
}
.proc-step:hover::after { transform: scaleX(1); }

/* --- Inner page hero (page.php) --- */
.page-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    overflow: hidden;
}
.page-hero .hero-grid,
.page-hero .hero-orb { z-index: 0; }
.page-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 100px 0 60px;
}
.page-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
}
.page-hero .breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: var(--gold); }
.page-hero p {
    font-size: clamp(15px, 1.8vw, 18px);
    color: rgba(255,255,255,0.75);
}

/* --- Image lazy load fade-in --- */
img.lazy-fade {
    opacity: 0;
    transition: opacity 0.4s ease;
}
img.lazy-fade.loaded {
    opacity: 1;
}

/* --- Smooth scroll bar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* --- Selection color --- */
::selection {
    background: rgba(201,168,76,0.3);
    color: var(--white);
}
