/* Shalimar Group Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --corporate-blue: #070B12;      /* Luxury Obsidian Black */
    --gold-accent: #C5A059;         /* Premium Satin Gold */
    --emerald-accent: #059669;      /* Emerald Green for Operational status */
    --luxury-white: #F8F9FA;        /* Off-white */
    --obsidian-light: #121824;      /* Lighter Obsidian for cards */
    --gold-glow: rgba(197, 160, 89, 0.35);
}

body {
    font-family: 'Outfit', sans-serif;
    color: #E5E7EB;                 /* Light grey text */
    background-color: #070B12;      /* Obsidian background */
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-variant-numeric: lining-nums;
    -moz-font-feature-settings: "lnum";
    -webkit-font-feature-settings: "lnum";
    font-feature-settings: "lnum";
}

.text-gold { color: var(--gold-accent); }
.bg-gold { background-color: var(--gold-accent); }
.bg-corporate { background-color: var(--corporate-blue); }
.border-gold { border-color: var(--gold-accent); }

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-luxury {
    background: rgba(18, 24, 36, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Premium Button Shimmer */
.btn-gold-shimmer {
    position: relative;
    overflow: hidden;
    background: var(--gold-accent);
    color: #070B12;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: none;
}

.btn-gold-shimmer:hover::after {
    left: 130%;
    transition: all 0.6s ease;
}

.btn-gold-shimmer:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.6);
    background-color: #d8b26a;
}

/* Sticky Header Transition */
header.scrolled {
    background-color: rgba(7, 11, 18, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    color: white !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.25) !important;
}

header.scrolled .site-header-row {
    min-height: 56px !important;
}

header.scrolled a {
    color: white !important;
}

header.scrolled a:hover {
    color: var(--gold-accent) !important;
}

header.scrolled .brand-logo-text span {
    color: white !important;
}

header.scrolled .brand-logo-text span.text-gold {
    color: var(--gold-accent) !important;
}

header.scrolled #menu-btn {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

header.scrolled #menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--corporate-blue);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-accent);
}

/* Masonry Grid Helper */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
    grid-auto-rows: 10px;
}

.masonry-item {
    grid-row-end: span 20;
}

.masonry-item.tall {
    grid-row-end: span 30;
}

/* Timeline */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--gold-accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

@media (max-width: 768px) {
    .timeline-container::after {
        left: 31px;
    }
}

/* Dynamic Logo Seal Component */
.logo-seal {
    width: 48px;
    height: 48px;
    background: radial-gradient(circle at center, #064E3B 0%, #042F24 100%);
    border: 2px solid #C5A059;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 0 10px rgba(197, 160, 89, 0.3);
}

.logo-seal::before {
    content: 'S';
    font-family: 'Playfair Display', serif;
    color: #C5A059;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.logo-seal::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 50%;
}

/* Logo — full image, round frame, centered (no crop) */
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border: 2px solid var(--gold-accent);
    border-radius: 50%;
    background: transparent;
    padding: 0;
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.35);
    flex-shrink: 0;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    margin: 0;
}

/* Header — fixed square so border-radius:50% makes a perfect circle */
.brand-logo--header {
    width: 3rem;
    height: 3rem;
    padding: 0.15rem;
}

.brand-logo--header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

@media (min-width: 640px) {
    .brand-logo--header {
        width: 3.5rem;
        height: 3.5rem;
    }
}

@media (min-width: 768px) {
    .brand-logo--header {
        width: 4rem;
        height: 4rem;
    }
}

/* Homepage hero — round circle logo */
.brand-logo--hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-width: 3px;
    border-radius: 50%;
    padding: 0.3rem;
    box-shadow: 0 0 40px rgba(197, 160, 89, 0.5);
    width: clamp(9rem, 28vw, 14rem);
    height: clamp(9rem, 28vw, 14rem);
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo--hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

@media (min-width: 640px) {
    .brand-logo--hero {
        width: clamp(11rem, 26vw, 15rem);
        height: clamp(11rem, 26vw, 15rem);
    }
}

@media (min-width: 768px) {
    .brand-logo--hero {
        width: 15rem;
        height: 15rem;
    }
}

@media (min-width: 1024px) {
    .brand-logo--hero {
        width: 16.5rem;
        height: 16.5rem;
    }
}


.brand-logo-text .text-gold {
    color: var(--gold-accent);
}

.hero-company-name .text-gold {
    color: var(--gold-accent);
}

.hero-brand-block {
    overflow: visible;
}


/* Footer */
.brand-logo--footer {
    width: 5.5rem;
    height: 5.5rem;
    padding: 0.2rem;
}

.brand-logo--footer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

@media (min-width: 768px) {
    .brand-logo--footer {
        width: 7rem;
        height: 7rem;
    }
}


/* Shared header & icon utilities */
.site-header-inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.site-header-row {
    min-height: 64px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .site-header-row {
        min-height: 72px;
    }
}

@media (min-width: 768px) {
    .site-header-row {
        min-height: 80px;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

/* Internal pages — logo + name left, nav right */
.site-header-row--inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Homepage header — navigation only, aligned right */
.site-header--home .site-header-row {
    min-height: 56px;
}

@media (min-width: 768px) {
    .site-header--home .site-header-row {
        min-height: 64px;
    }
}

.site-header-row--home {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.icon-md {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .icon-md {
        width: 1.75rem;
        height: 1.75rem;
    }
}

.tagline-bold {
    font-size: 1.125rem;
    line-height: 1.5;
    font-weight: 800;
    color: var(--gold-accent);
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .tagline-bold {
        font-size: 1.375rem;
    }
}

/* Offset fixed header — synced to real height via header.js */
body {
    padding-top: var(--header-height, 5.5rem);
}

body.page-hero-full {
    padding-top: 0;
}

.page-main {
    scroll-margin-top: var(--header-height, 5.5rem);
}

@media (max-width: 767px) {
    body {
        padding-bottom: 3.5rem;
    }
}

/* Smart Share PDF Modal */
.smart-share-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(7, 11, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.smart-share-modal.active {
    opacity: 1;
    visibility: visible;
}

.smart-share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    background: rgba(18, 24, 36, 0.9);
    flex-shrink: 0;
}

.smart-share-modal-body {
    flex: 1;
    padding: 1rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.smart-share-modal-body iframe {
    flex: 1;
    width: 100%;
    border-radius: 0.75rem;
    background: #fff;
}

/* Reveal animation for scroll-triggered elements */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   Hero Background Slideshow
   ============================================ */

/* Container — fills hero, sits behind all content (z-index 0) */
.hero-slideshow {
    z-index: 0;
}

/* Slide stack */
.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity, transform;
    /* Ken Burns: subtle zoom on active slide */
    transform: scale(1);
    animation: none;
}

.hero-slide.active {
    opacity: 1;
    animation: kenBurns 8s ease-in-out forwards;
}

/* Ken Burns — 3% scale over one slide duration */
@keyframes kenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.03); }
}

/* Gradient overlay — dark enough for WCAG AA on all slides
   top: nav legibility; center: lighter so images show; bottom: grounds the CTA */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(7, 11, 18, 0.85) 0%,
            rgba(7, 11, 18, 0.40) 40%,
            rgba(7, 11, 18, 0.60) 70%,
            rgba(7, 11, 18, 0.90) 100%
        );
    z-index: 1;
}

/* Ensure hero text content always floats above slideshow */
.hero-slideshow ~ .relative.z-10 {
    z-index: 10;
}

/* Pause animation + disable Ken Burns for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide.active {
        animation: none !important;
        transform: none !important;
        transition: opacity 0.4s ease-in-out;
    }
}
