/* ==========================================================================
   GHOGHA PORT EXPLORER — PAGE STYLES
   Desert-sand palette with Arabian Sea blue
   ========================================================================== */

:root {
    --gh-sand: #d97706;
    --gh-desert: #92400e;
    --gh-sea: #0369a1;
    --gh-gold: #ca8a04;
    --gh-bg: linear-gradient(135deg, #1c1917, #292524, #1c1917);
    --gh-bg-light: #292524;
    --gh-card: rgba(41, 37, 36, 0.55);
    --gh-border: rgba(217, 119, 6, 0.18);
    --gh-text: #fef3c7;
    --gh-sub: rgba(254, 243, 199, 0.7);
    --gh-navbar-height: 70px;
}

.light-theme {
    --gh-bg: linear-gradient(135deg, #fef3c7, #fed7aa, #fef3c7);
    --gh-bg-light: #fed7aa;
    --gh-card: rgba(255, 255, 255, 0.88);
    --gh-border: rgba(217, 119, 6, 0.12);
    --gh-text: #1c1917;
    --gh-sub: rgba(28, 25, 23, 0.7);
}

.glass-card {
    background: var(--gh-card);
    border: 1px solid var(--gh-border);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    padding: 1.5rem;
}

.gh-main {
    background: var(--gh-bg);
    color: var(--gh-text);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    padding-top: var(--gh-navbar-height);
    overflow-x: hidden;
}

.gh-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gh-section-nav {
    position: sticky;
    top: var(--gh-navbar-height);
    z-index: 40;
    background: rgba(28, 25, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gh-border);
    overflow-x: auto;
    scrollbar-width: none;
}

.light-theme .gh-section-nav {
    background: rgba(254, 243, 199, 0.92);
}

.gh-section-nav-inner {
    display: flex;
    gap: 0.25rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.gh-nav-link {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gh-sand);
    text-decoration: none;
    transition: all 0.25s ease;
}

.gh-nav-link:hover,
.gh-nav-link:focus-visible {
    background: rgba(217, 119, 6, 0.12);
    color: var(--gh-text);
    outline: none;
}

.gh-nav-link.active {
    background: var(--gh-sand);
    color: #fff;
}

/* Hero */
.gh-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.gh-hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(217, 119, 6, 0.22), transparent 55%), radial-gradient(circle at 70% 60%, rgba(3, 105, 161, 0.15), transparent 55%), linear-gradient(135deg, #1c1917 0%, #292524 50%, #1c1917 100%);
    z-index: 0;
}

.light-theme .gh-hero-backdrop {
    background: radial-gradient(circle at 30% 40%, rgba(217, 119, 6, 0.25), transparent 55%), linear-gradient(135deg, #fef3c7, #fed7aa, #fef3c7);
}

.gh-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-kicker {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid var(--gh-sand);
    border-radius: 999px;
    color: var(--gh-sand);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--gh-sand) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme .hero-title {
    background: linear-gradient(135deg, #1c1917 0%, var(--gh-desert) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gh-sub);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1.5rem;
    background: var(--gh-card);
    border: 1px solid var(--gh-border);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gh-sand);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--gh-sub);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sections */
.gh-section {
    padding: 5rem 0;
}

.gh-section-alt {
    background: var(--gh-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid var(--gh-sand);
    color: var(--gh-sand);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    color: var(--gh-text);
    margin: 0;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gh-card {
    padding: 1.75rem;
    background: var(--gh-card);
    border: 1px solid var(--gh-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--gh-sand);
}

.gh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.25);
}

.gh-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--gh-gold);
    margin: 0 0 0.75rem;
}

.gh-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gh-sub);
    margin: 0 0 0.75rem;
}

.gh-card p:last-child {
    margin-bottom: 0;
}

/* Trade Grid */
.trade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.trade-card {
    padding: 1.75rem;
    background: var(--gh-card);
    border: 1px solid var(--gh-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: transform 0.3s ease;
}

.trade-card:hover {
    transform: translateY(-4px);
}

.trade-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trade-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--gh-gold);
    margin: 0 0 0.75rem;
}

.trade-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--gh-sub);
}

/* Culture Grid */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.culture-card {
    padding: 1.75rem;
    background: var(--gh-card);
    border: 1px solid var(--gh-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--gh-sea);
    transition: transform 0.3s ease;
}

.culture-card:hover {
    transform: translateY(-4px);
}

.culture-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--gh-gold);
    margin: 0 0 0.75rem;
}

.culture-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--gh-sub);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 1rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--gh-sand), var(--gh-sea), transparent);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.timeline-marker {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gh-sand);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gh-gold);
    box-shadow: 0 0 0 6px var(--gh-bg);
    z-index: 2;
    text-align: center;
    padding: 0.25rem;
}

.gh-section-alt .timeline-marker {
    box-shadow: 0 0 0 6px var(--gh-bg-light);
}

.timeline-content {
    flex: 1;
    margin-left: 1.5rem;
    padding: 1.5rem;
    background: var(--gh-card);
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gh-gold);
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.timeline-content p {
    color: var(--gh-sub);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    background: var(--gh-card);
    border: 1px solid var(--gh-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-visual {
    height: 130px;
    display: grid;
    place-items: center;
    font-size: 3rem;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(3, 105, 161, 0.1));
}

.gallery-item figcaption {
    padding: 1rem;
}

.gallery-item strong {
    display: block;
    color: var(--gh-gold);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.gallery-item span {
    color: var(--gh-sub);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Sources */
.sources-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.source-item {
    padding: 1.5rem;
    background: var(--gh-card);
    border: 1px solid var(--gh-border);
    border-left: 3px solid var(--gh-gold);
    border-radius: 12px;
}

.source-item h3 {
    font-size: 1rem;
    color: var(--gh-gold);
    margin: 0 0 0.5rem;
}

.source-item p {
    color: var(--gh-sub);
    line-height: 1.65;
    font-size: 0.9rem;
    margin: 0;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 768px) {

    .trade-grid,
    .culture-grid {
        grid-template-columns: 1fr;
    }

    .gh-section {
        padding: 3rem 0;
    }

    .gh-hero {
        min-height: 80vh;
        padding: 3rem 1rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
}
