/* ==========================================================================
   Component Styles - GEWEL
   ========================================================================== */

/* Import tokens */
@import url('./tokens.css');

/* ==========================================================================
   Header Component
   ========================================================================== */

/* Top Language Band */
.top-band {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-band-height);
    background: var(--olive-900);
    z-index: calc(var(--z-header) + 1);
    display: flex;
    align-items: center;
}

.top-band-content {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: flex-end;
}

.language-switcher {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.language-switcher a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-base);
}

.language-switcher a:hover,
.language-switcher a.active {
    color: #fff;
}

.language-switcher span {
    color: rgba(255, 255, 255, 0.3);
}

/* Site Header - Transparent */
.site-header {
    position: fixed;
    inset: var(--top-band-height) 0 auto 0;
    z-index: var(--z-header);
    background: transparent;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

/* Logo */
.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: var(--r-sm);
    padding: 8px 12px;
    position: relative;
}

.header-logo a:focus {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

.header-logo img {
    height: 32px;
    width: auto;
    transition: opacity var(--transition-base);
}

/* Default state: white logo visible, dark logo hidden */
.header-logo .logo-white {
    opacity: 1;
}

.header-logo .logo-dark {
    position: absolute;
    opacity: 0;
}

/* Scrolled/force-white state: dark logo visible, white logo hidden */
.site-header.scrolled .header-logo .logo-white,
.site-header.force-white .header-logo .logo-white {
    opacity: 0;
}

.site-header.scrolled .header-logo .logo-dark,
.site-header.force-white .header-logo .logo-dark {
    opacity: 1;
}

/* Navigation */
.header-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav li {
    position: relative;
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: var(--r-md);
    transition: background var(--transition-fast), color var(--transition-fast);
    font-weight: var(--font-medium);
    font-size: 15px;
    display: block;
    white-space: nowrap;
}

.nav a:hover,
.nav a:focus {
    background: #fff !important; /* Force white background on hover always */
    color: var(--ink-900) !important;
}

.nav a:focus {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    padding: 12px 0;
    margin-top: 8px;
    z-index: var(--z-dropdown);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: var(--ink-700);
    padding: 12px 20px;
    border-radius: 0;
    font-size: 14px;
    font-weight: var(--font-regular);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--paper);
    color: var(--gold-600);
}

/* Scrolled State */
.site-header.scrolled,
.site-header.force-white {
    background: #fff;
    box-shadow: var(--shadow-subtle);
}

.site-header.scrolled .header-logo a,
.site-header.force-white .header-logo a {
    color: var(--ink-900);
}

.site-header.scrolled .nav a,
.site-header.force-white .nav a {
    color: var(--ink-900);
}

/* Hover behavior is handled by the base nav styles with !important */

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.site-header.scrolled .mobile-toggle span,
.site-header.force-white .mobile-toggle span {
    background: var(--ink-900);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .top-band {
        display: none;
    }
    
    .site-header {
        inset: 0 0 auto 0;
    }
    
    .header-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .header-logo img {
        height: 28px;
    }
}

@media (max-width: 768px) {
    .header-content {
        height: 70px;
    }

    .header-logo img {
        height: 24px;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: var(--r-xl);
    font-size: 16px;
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-500);
    color: #111;
}

.btn-primary:hover {
    background: var(--gold-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(191, 161, 116, 0.35);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--gold-500);
    color: var(--gold-500);
    position: relative;
    overflow: hidden;
}

.btn-ghost::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gold-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    z-index: -1;
}

.btn-ghost:hover {
    color: #111;
    border-color: var(--gold-600);
}

.btn-ghost:hover::before {
    transform: scaleX(1);
}

.btn-ghost-small {
    background: transparent;
    border: 1px solid var(--gold-500);
    color: var(--gold-500);
    padding: 8px 16px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: var(--font-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-base);
}

.btn-ghost-small:hover {
    background: var(--gold-500);
    color: #111;
    border-color: var(--gold-600);
}

.btn-white {
    background: #fff;
    color: var(--ink-900);
}

.btn-white:hover {
    background: var(--paper);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    background: #fff;
    border-radius: var(--r-lg);
    padding: var(--g-md);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

/* Service Cards with Hover Overlay */
.service-card {
    position: relative;
    background: #fff;
    border-radius: var(--r-lg);
    padding: var(--g-md);
    height: 100%;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(191, 161, 116, 0.08);
}

.service-card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--g-sm);
    color: var(--gold-500);
}

.service-card-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.service-card h3 {
    font-size: 22px;
    font-weight: var(--font-semibold);
    margin-bottom: var(--g-xs);
    color: var(--ink-900);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 243, 238, 0.98) 100%);
    padding: var(--g-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    backdrop-filter: blur(10px);
}

.service-card:hover .service-card-overlay {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Images and Media
   ========================================================================== */

.figure-gold {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-soft);
}

.figure-gold::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 10px;
    background: var(--gold-500);
}

/* Alternative gold corner accent */
.figure-gold-corner::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--gold-500);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 1;
}

/* Video Background */
.video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

input,
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--grey-300);
    border-radius: var(--r-md);
    font-size: 16px;
    font-family: var(--font-body);
    background: #fff;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

input:hover,
textarea:hover,
select:hover {
    border-color: var(--gold-300);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(191, 161, 116, 0.1);
}

label {
    display: block;
    font-weight: var(--font-medium);
    margin-bottom: 8px;
    color: var(--ink-900);
}

.required {
    color: var(--gold-500);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

.text-gold {
    color: var(--gold-500);
}

.bg-grey {
    background: var(--grey-200);
}

.bg-paper {
    background: var(--paper);
}

/* ============================================
   8. FOOTER
   ============================================ */

.site-footer {
    background: var(--olive-900);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--g-lg) 0 var(--g-sm);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--g-md);
    margin-bottom: var(--g-md);
}

.footer-col h2 {
    color: var(--gold-500);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-col h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-col nav a:hover {
    color: var(--gold-500);
}

.footer-col address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col address a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col address a:hover {
    color: var(--gold-500);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--g-sm);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

/* Simple footer fallback */
.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .top-band {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--g-sm);
    }
    
    .footer-col {
        text-align: center;
    }
}