/* Design System for Globridge */

:root {
    --bg-color: #FAF7F2;
    --bg-card: #FDFCFB;
    --primary-color: #1A2B49; /* Deep Indigo */
    --primary-light: #2C3E5F;
    --primary-dark: #0E1A30;
    --gold: #94612A; /* High-Contrast Golden Bronze */
    --gold-light: #C5A265;
    --text-color: #2E221A; /* Dark Chocolate Brown */
    --text-muted: #544338; /* Medium-Dark Warm Brown */
    --divider-color: #E6DFD5;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-medium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --max-width: 1200px;
    --header-height: 85px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    --spacing-xxl: 120px;
}

/* Reset and Core Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.625;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--gold));
    z-index: 2000;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--primary-color);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Utility Layouts */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

/* Section Common Styling */
section {
    padding: var(--spacing-xl) 0;
}

.section-badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    line-height: 1.15;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.2rem;
    }
    section {
        padding: var(--spacing-xxl) 0;
    }
}

.section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
    .section-header > div {
        max-width: 50%;
    }
    .section-intro {
        max-width: 40%;
        font-size: 1.1rem;
        color: var(--text-muted);
        margin-bottom: var(--spacing-xs);
    }
}

/* Scroll Reveal Animation Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-medium);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--gold);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Header Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(230, 223, 213, 0.5);
    z-index: 1000;
    transition: var(--transition-medium);
}

.main-header.scrolled {
    height: 70px;
    background-color: rgba(250, 247, 242, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-medium);
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.95)) drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.7));
}

.main-header.scrolled .logo-img {
    height: 32px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    font-weight: 400;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-item {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: var(--transition-medium);
    transform: translateX(-50%);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item.contact-btn {
    border: 1px solid var(--primary-color);
    padding: 8px var(--spacing-md);
}

.nav-item.contact-btn::after {
    display: none;
}

.nav-item.contact-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .nav-item {
        font-size: 1.2rem;
    }
    
    .hamburger.active {
        background-color: transparent;
    }
    
    .hamburger.active::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .hamburger.active::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    animation: slowZoom 15s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(15, 27, 47, 0.45) 0%, rgba(15, 27, 47, 0.85) 100%);
    z-index: 2;
}

.hero-content-container {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.hero-logo-large {
    margin-bottom: var(--spacing-md);
}

.hero-logo-badge {
    width: 130px;
    height: 130px;
    background-color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--divider-color);
    padding: 18px;
    transition: var(--transition-medium);
}

.hero-logo-badge:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.16);
}

.hero-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.95)) drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.7));
}

.hero-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.hero-headline {
    font-size: 2.8rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    line-height: 1.15;
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: 4.8rem;
    }
}

.hero-subheadline {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg) auto;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .hero-subheadline {
        font-size: 1.3rem;
    }
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.hero-cta .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-cta .btn-secondary:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
}

.scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--gold);
    animation: scrollDownDot 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scrollDownDot {
    0% { top: -15px; }
    100% { top: 40px; }
}

/* Page Entry Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUpAnim 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: var(--spacing-xl);
    }
}

.lead-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.about-text-column p {
    color: var(--text-muted);
}

.about-side-column {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kanji-watermark {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 10rem;
    color: rgba(197, 162, 101, 0.06);
    line-height: 1;
    z-index: 1;
    pointer-events: none;
}

.quote-card {
    background-color: var(--bg-card);
    border: 1px solid var(--divider-color);
    padding: var(--spacing-md) var(--spacing-md);
    text-align: center;
    max-width: 380px;
    z-index: 2;
    position: relative;
    border-top: 3px solid var(--gold);
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.quote-author {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Filter Navigation */
.filter-container {
    display: flex;
    justify-content: flex-start;
    gap: var(--spacing-xs);
    overflow-x: auto;
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    scrollbar-width: none;
}

.filter-container::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-medium);
    white-space: nowrap;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--gold);
}

/* Card Styling - Grid Systems */
.objects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 576px) {
    .objects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .objects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Common Card Base */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--divider-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-medium);
    opacity: 1;
    transform: translateY(0);
}

.card.hidden {
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    display: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 43, 73, 0.04);
    border-color: var(--gold-light);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #f1ede7;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(250, 247, 242, 0.9);
    padding: 4px 10px;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    z-index: 5;
    border-left: 2px solid var(--gold);
}

.card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--divider-color);
    padding-top: var(--spacing-sm);
    font-size: 0.8rem;
}

.card-origin {
    color: var(--gold);
    font-weight: 600;
}

.card-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Experiences Section */
.experiences-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .experiences-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.exp-card {
    background-color: var(--bg-card);
    border: 1px solid var(--divider-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition-medium);
}

.exp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 43, 73, 0.05);
    border-color: var(--gold);
}

.exp-img-wrapper {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.exp-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.exp-card:hover .exp-img-wrapper img {
    transform: scale(1.05);
}

.exp-date-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.exp-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.exp-title {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-xs);
}

.exp-details-list {
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.exp-details-list li {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-details-list li::before {
    content: '•';
    color: var(--gold);
}

.exp-link {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.exp-link::after {
    content: '→';
    transition: var(--transition-fast);
}

.exp-card:hover .exp-link {
    color: var(--gold);
}

.exp-card:hover .exp-link::after {
    transform: translateX(5px);
}

/* Stories (Journal) Section */
.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
}

.story-card {
    background-color: var(--bg-card);
    border: 1px solid var(--divider-color);
    transition: var(--transition-medium);
}

.story-card:hover {
    border-color: var(--gold-light);
    transform: translateY(-4px);
}

.story-img-wrapper {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.story-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.story-card:hover .story-img-wrapper img {
    transform: scale(1.04);
}

.story-content {
    padding: var(--spacing-md);
}

.story-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-xs);
    display: block;
}

.story-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.25;
}

.story-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.story-readmore {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 2px;
}

.story-card:hover .story-readmore {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Philosophy Section */
.philosophy-section {
    position: relative;
    background-color: var(--primary-color);
    color: #ffffff;
    overflow: hidden;
    padding: var(--spacing-xl) 0;
}

@media (min-width: 768px) {
    .philosophy-section {
        padding: var(--spacing-xxl) 0;
    }
}

.philosophy-bg-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(197, 162, 101, 0.07) 0%, rgba(26, 43, 73, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.philosophy-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-kanji {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.08);
    display: block;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.4em;
    text-indent: 0.4em;
}

.philosophy-statement {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .philosophy-statement {
        font-size: 2.6rem;
    }
}

.philosophy-subtext {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto;
}

.philosophy-subtext em {
    color: var(--gold);
    font-style: italic;
}

/* Contact Section & Form Elements */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: var(--spacing-xl);
    }
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    border-top: 1px solid var(--divider-color);
    padding-top: var(--spacing-md);
}

.contact-item {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Form Styling - Premium Inputs */
.elegant-form {
    background-color: var(--bg-card);
    border: 1px solid var(--divider-color);
    padding: var(--spacing-md);
    border-bottom: 4px solid var(--primary-color);
}

@media (min-width: 576px) {
    .elegant-form {
        padding: var(--spacing-lg);
    }
}

.form-row {
    margin-bottom: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--divider-color);
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-color);
    border-radius: 0;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0a89d;
    opacity: 0.8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: var(--gold);
}

/* Custom dropdown arrow */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%231A2B49' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 20px;
    cursor: pointer;
}

.btn-loading-dots {
    display: none;
    margin-left: 8px;
}

.btn-loading-dots::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.btn.submitting {
    background-color: var(--text-muted);
    pointer-events: none;
}

.btn.submitting .btn-loading-dots {
    display: inline-block;
}

.form-feedback {
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    padding: 10px;
    display: none;
}

.form-feedback.success {
    display: block;
    background-color: rgba(197, 162, 101, 0.1);
    border-left: 3px solid var(--gold);
    color: var(--primary-color);
}

.form-feedback.error {
    display: block;
    background-color: rgba(217, 83, 79, 0.1);
    border-left: 3px solid #d9534f;
    color: #d9534f;
}

/* Footer Styling */
.main-footer {
    background-color: #0F1B2F; /* Dark Indigo */
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-logo {
    height: 48px;
    width: auto;
    align-self: flex-start;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.footer-tagline {
    max-width: 250px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-socials a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.footer-socials a:hover {
    color: var(--gold);
}

/* Modal Overlay & Details Window */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 27, 47, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: var(--spacing-md);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background-color: var(--bg-color);
    border: 1px solid var(--divider-color);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-top: 4px solid var(--gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-window {
    opacity: 1;
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.modal-content-wrapper {
    padding: 0;
}

/* Experience Modal Layout */
.modal-exp-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .modal-exp-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.modal-exp-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .modal-exp-img {
        aspect-ratio: auto;
        height: 100%;
    }
}

.modal-exp-body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-exp-body {
        padding: var(--spacing-lg);
    }
}

.modal-exp-badge {
    align-self: flex-start;
}

.modal-exp-title {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
}

.modal-exp-info-box {
    background-color: var(--bg-card);
    border: 1px solid var(--divider-color);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 0.85rem;
}

.modal-exp-info-box p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(230, 223, 213, 0.5);
    padding: 6px 0;
}

.modal-exp-info-box p:last-child {
    border-bottom: none;
}

.modal-exp-info-box span:first-child {
    font-weight: 500;
    color: var(--primary-color);
}

.modal-exp-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.modal-exp-cta {
    margin-top: auto;
}

/* Styled Text Link */
.text-link {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 1px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.text-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Frontia Section Styling */
.frontia-section {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--divider-color);
}

.frontia-story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 992px) {
    .frontia-story-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: var(--spacing-xl);
    }
}

.frontia-text-column p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.frontia-text-column p.lead-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-style: italic;
    border-left: 3px solid var(--gold);
    padding-left: var(--spacing-md);
}

.frontia-quote-column {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.frontia-quote-card {
    background-color: var(--bg-card);
    border: 1px solid var(--divider-color);
    padding: var(--spacing-md) var(--spacing-md);
    text-align: center;
    max-width: 380px;
    z-index: 2;
    position: relative;
    border-top: 3px solid var(--gold);
}

.frontia-perspectives-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.frontia-subtitle {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--primary-color);
}

/* Three Perspectives Grid */
.frontia-perspectives-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .frontia-perspectives-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
}

.perspective-card {
    background-color: var(--bg-card);
    border: 1px solid var(--divider-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition-medium);
    height: 100%;
}

.perspective-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(26, 43, 73, 0.04);
    border-color: var(--gold-light);
}

.perspective-img-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f1ede7;
}

.perspective-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.perspective-card:hover .perspective-img-wrapper img {
    transform: scale(1.05);
}

.perspective-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(250, 247, 242, 0.92);
    padding: 4px 10px;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    z-index: 5;
    border-left: 2px solid var(--gold);
    backdrop-filter: blur(4px);
}

.perspective-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.perspective-content h4 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.perspective-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Concept Cards */
.frontia-concepts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

@media (min-width: 768px) {
    .frontia-concepts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
}

/* Centering layout helper when one of the concepts is paused/on-hold */
.frontia-concepts-grid:has(> :only-child) {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.concept-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--divider-color);
    padding: var(--spacing-lg);
    position: relative;
    border-left: 3px solid var(--gold);
    transition: var(--transition-medium);
}

.concept-panel:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border-color: var(--gold);
}

.concept-badge-indicator {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: var(--spacing-xs);
}

.concept-panel h3 {
    font-size: 1.8rem;
    font-weight: 350;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.concept-panel p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.625;
    margin-bottom: 0;
}

/* ----------------------------------------------------
   Upcoming Section Styles
   ---------------------------------------------------- */
.upcoming-section {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--divider-color);
}

.upcoming-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .upcoming-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (min-width: 992px) {
    .upcoming-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
    
    /* Center the 7th item elegantly on desktop */
    .upcoming-card:nth-child(7) {
        grid-column: 2 / 3;
    }
}

.upcoming-card {
    background-color: var(--bg-card);
    border: 1px solid var(--divider-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition-medium);
}

.upcoming-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 43, 73, 0.05);
    border-color: var(--gold);
}

.upcoming-img-wrapper {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #f1ede7;
}

.upcoming-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.upcoming-card:hover .upcoming-img-wrapper img {
    transform: scale(1.05);
}

.upcoming-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.upcoming-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
}

.upcoming-card h3 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.upcoming-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ----------------------------------------------------
   Dark Mode Preference Setup
   ---------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0E1A30; /* Dark Deep Indigo */
        --bg-card: #152542; /* Slightly Lighter Indigo for Cards */
        --primary-color: #FAF7F2; /* Cream White text */
        --primary-light: #E6DFD5;
        --primary-dark: #FFFFFF;
        --text-color: #FAF7F2;
        --text-muted: #A0AEC0;
        --divider-color: rgba(230, 223, 213, 0.15);
    }

    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }

    .main-header {
        background-color: rgba(14, 26, 48, 0.9);
        border-bottom-color: rgba(230, 223, 213, 0.1);
    }

    .main-header.scrolled {
        background-color: rgba(14, 26, 48, 0.97);
    }

    .logo-img, .hero-logo-img {
        /* Invert dark pixels to light for high visibility, removing drop shadow effect in dark mode */
        filter: brightness(0) invert(1);
    }

    .hero-logo-badge {
        background-color: #152542;
        border-color: rgba(230, 223, 213, 0.15);
    }

    .logo-text, .section-title, h1, h2, h3, h4, h5, h6 {
        color: var(--primary-color);
    }

    .card, .exp-card, .story-card, .elegant-form, .quote-card {
        background-color: var(--bg-card);
        border-color: var(--divider-color);
    }

    .card-badge, .filter-container {
        background-color: rgba(21, 37, 66, 0.8);
    }

    .filter-btn {
        color: var(--text-muted);
    }

    .filter-btn.active, .filter-btn:hover {
        color: var(--primary-color);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        color: var(--text-color);
        border-bottom-color: var(--divider-color);
    }

    .form-group label {
        color: var(--gold);
    }

    .btn-secondary {
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .btn-secondary:hover {
        background-color: var(--primary-color);
        color: #0E1A30;
    }

    .perspective-badge {
        background-color: rgba(21, 37, 66, 0.85);
    }

    .concept-panel {
        background-color: var(--bg-card);
        border-color: var(--divider-color);
    }
}


