/* Royal Time - Main Styles */
/* Based on Official Brand Kit by Valeriia (2025) */

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== CSS CUSTOM PROPERTIES (BRAND KIT) ===== */
:root {
    /* Primary Brand Colors */
    --royal-navy: #031337;          /* Deep Navy - Primary brand color */
    --royal-blue: #29568D;          /* Royal Blue - Secondary color */
    --silver-gray: #ACACAC;         /* Silver Gray - Supporting text */
    --pure-white: #FFFFFF;          /* Pure White - Backgrounds */
    
    /* Extended Brand Colors for consistency */
    --accent-blue: #4a90e2;         /* Accent Blue - Icons and highlights */
    --light-blue: #87ceeb;          /* Light Blue - Hover states */
    --sky-blue: #3b82f6;            /* Sky Blue - Interactive elements */
    --ocean-blue: #1e3a8a;          /* Ocean Blue - Deep accents */
    --muted-blue: #e8f4f8;          /* Muted Blue - Light backgrounds */
    --pale-blue: #f0f7ff;           /* Pale Blue - Very light backgrounds */
    
    /* Standardized Gradients */
    --hero-gradient: linear-gradient(135deg, var(--royal-navy) 0%, var(--royal-blue) 100%);
    --hero-gradient-alt: linear-gradient(135deg, var(--ocean-blue) 0%, var(--sky-blue) 100%);
    --button-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--royal-blue) 100%);
    --icon-gradient: linear-gradient(135deg, var(--muted-blue) 0%, #d4e8f0 100%);
    --card-gradient: linear-gradient(135deg, var(--pale-blue) 0%, var(--muted-blue) 100%);
    
    /* Legacy gradients (deprecated - use standardized ones above) */
    --royal-gradient: var(--hero-gradient);
    --royal-gradient-hover: linear-gradient(135deg, #041b47 0%, #3361a3 100%);
    
    /* Typography - Brand Kit */
    --font-headers: 'Montserrat', 'Arial Black', 'Helvetica', sans-serif; /* Bank Gothic fallback */
    --font-body: 'Montserrat', 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;        /* 12px */
    --font-size-sm: 0.875rem;       /* 14px */
    --font-size-base: 1rem;         /* 16px */
    --font-size-lg: 1.125rem;       /* 18px */
    --font-size-xl: 1.25rem;        /* 20px */
    --font-size-2xl: 1.5rem;        /* 24px */
    --font-size-3xl: 1.875rem;      /* 30px */
    --font-size-4xl: 2.25rem;       /* 36px */
    --font-size-5xl: 3rem;          /* 48px */
    --font-size-6xl: 3.75rem;       /* 60px */
    
    /* Spacing System */
    --space-xs: 0.5rem;             /* 8px */
    --space-sm: 1rem;               /* 16px */
    --space-md: 1.5rem;             /* 24px */
    --space-lg: 2rem;               /* 32px */
    --space-xl: 3rem;               /* 48px */
    --space-2xl: 4rem;              /* 64px */
    --space-3xl: 6rem;              /* 96px */
    
    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 1.25rem;   /* 20px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(3, 19, 55, 0.05);
    --shadow-md: 0 4px 6px rgba(3, 19, 55, 0.1);
    --shadow-lg: 0 10px 15px rgba(3, 19, 55, 0.15);
    --shadow-xl: 0 20px 25px rgba(3, 19, 55, 0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;          /* 6px */
    --radius-md: 0.5rem;            /* 8px */
    --radius-lg: 0.75rem;           /* 12px */
    --radius-xl: 1rem;              /* 16px */
    --radius-full: 9999px;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--royal-navy);
    background-color: var(--pure-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Brand Pattern Background */
/* Removed global pattern background */

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headers);
    line-height: 1.2;
    font-weight: 700;
    color: var(--royal-navy);
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
    font-weight: 900;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
    font-weight: 700;
}

h3 {
    font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-3xl));
    font-weight: 600;
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: 500;
}

h6 {
    font-size: var(--font-size-base);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: var(--space-sm);
    color: var(--silver-gray);
}

a {
    color: var(--royal-blue);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover,
a:focus {
    color: var(--royal-navy);
    outline: none;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--royal-gradient);
    margin: 0 auto var(--space-sm);
    border-radius: 2px;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--silver-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-headers);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.btn:focus {
    outline: 2px solid var(--royal-blue);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--royal-gradient);
    color: var(--pure-white);
    border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--royal-gradient-hover);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--royal-blue);
    border-color: var(--royal-blue);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--royal-blue);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-fixed);
    transition: all var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile override in responsive.css will change this */
@media (max-width: 767px) {
    .navbar {
        position: relative;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

.navbar.scrolled {
    top: 20px; /* Detach from top */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 900px; /* Max width for the floating navbar */
    background: rgba(255, 255, 255, 0.85); /* Blurry background */
    backdrop-filter: blur(15px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.navbar.scrolled .nav-container {
    padding: var(--space-xs) var(--space-lg);
}

.navbar.scrolled .nav-logo .logo-main {
    height: 30px; /* Smaller logo */
}

.navbar.scrolled .nav-link {
    font-size: var(--font-size-sm);
    color: var(--royal-navy); /* Navy text when scrolled */
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--container-padding);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.nav-menu {
    margin: 0 auto;
}

.nav-logo .logo-main {
    height: 40px;
    width: auto;
    transition: transform var(--transition-base);
    background: none !important;
    background-image: none !important;
}

.nav-logo:hover .logo-main {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--space-lg);
    margin: 0 auto;
}

.nav-link {
    font-family: var(--font-headers);
    font-weight: 500;
    color: var(--pure-white); /* White text by default */
    text-decoration: none;
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-base);
}

.nav-link:hover,
.nav-link:focus {
    color: rgba(255, 255, 255, 0.75); /* Subtle hover for white text */
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link:focus {
    color: var(--royal-navy); /* Revert to navy on hover when scrolled */
}

.nav-logo .logo-dark {
    display: none; /* Hide dark logo by default */
}

.navbar.scrolled .nav-logo .logo-white {
    display: none; /* Hide white logo when scrolled */
}

.navbar.scrolled .nav-logo .logo-dark {
    display: block; /* Show dark logo when scrolled */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pure-white); /* White line by default */
    transition: width var(--transition-base);
}

.navbar.scrolled .nav-link::after {
    background: var(--royal-gradient); /* Gradient line when scrolled */
}

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

.nav-link.cta-button {
    background: var(--royal-gradient);
    color: var(--pure-white) !important;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
}

.nav-link.cta-button::after {
    display: none;
}

.nav-link.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--pure-white);
    min-width: 220px;
    padding: var(--space-sm) 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    list-style: none;
    border: 1px solid rgba(172, 172, 172, 0.1);
}

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

.dropdown-menu a {
    display: block;
    padding: var(--space-xs) var(--space-md);
    color: var(--royal-navy);
    font-weight: 400;
    transition: all var(--transition-base);
}

.dropdown-menu a:hover {
    background: rgba(41, 86, 141, 0.05);
    color: var(--royal-blue);
    padding-left: calc(var(--space-md) + 8px);
}

/* Mega Menu Styles */
.mega-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pure-white);
    min-width: 800px;
    width: 800px;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    border: 1px solid rgba(172, 172, 172, 0.1);
    z-index: 1000;
}

.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.mega-menu-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.mega-menu-column h4 {
    font-family: var(--font-headers);
    font-size: var(--font-size-lg);
    color: var(--royal-navy);
    margin-bottom: var(--space-md);
    font-weight: 600;
    border-bottom: 2px solid var(--royal-blue);
    padding-bottom: var(--space-xs);
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column li {
    margin-bottom: var(--space-xs);
}

.mega-menu-column a {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    color: var(--royal-navy);
    font-weight: 400;
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
}

.mega-menu-column a:hover {
    background: rgba(41, 86, 141, 0.05);
    color: var(--royal-blue);
    padding-left: calc(var(--space-sm) + 8px);
}

.mega-menu-column a.disabled {
    color: #999999 !important;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.mega-menu-column a.disabled:hover {
    background: none !important;
    color: #999999 !important;
    padding-left: var(--space-sm) !important;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: var(--space-xs);
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--royal-navy);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--pure-white);
    overflow: hidden;
}

/* Hero Video Background */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 26, 51, 0.7) 0%,
        rgba(10, 26, 51, 0.5) 50%,
        rgba(10, 26, 51, 0.8) 100%
    );
    z-index: 1;
}

.hero-background {
    position: absolute;
    inset: 0;
}

/* Removed hero pattern background */

.hero-container {
    position: relative;
    z-index: 2;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    min-height: 100vh;
    padding-top: 80px;
}

.hero-content {
    max-width: 600px;
    z-index: 3;
}

.hero-text {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--pure-white);
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease 0.1s both;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--pure-white);
    animation: fadeInUp 1s ease 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #29568d 0%, #87ceeb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(var(--font-size-lg), 3vw, var(--font-size-2xl));
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-md);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-stats .stat {
    text-align: left;
}

.hero-stats .stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 900;
    color: var(--pure-white);
    line-height: 1;
}

.hero-stats .stat-label {
    display: block;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-xs);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons .btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    min-width: 200px;
    justify-content: center;
}

.hero-buttons .btn svg {
    transition: transform var(--transition-base);
}

.hero-buttons .btn:hover svg {
    transform: translateX(4px);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-watch-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero-watch {
    position: relative;
    z-index: 2;
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

/* Hero Video Styles */
.hero-video-container,
.video-wrapper {
    position: relative;
    z-index: 2;
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(3, 19, 55, 0.2);
}

/* Video wrapper for iframe embeds */
.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    transition: transform var(--transition-slow);
}

.hero-video:hover {
    transform: scale(1.02);
}

.video-fallback {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(3, 19, 55, 0.2));
}

.video-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(3, 19, 55, 0.85);
    color: var(--pure-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.video-label {
    font-family: var(--font-headers);
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--pure-white);
}

.video-subtitle {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--royal-navy);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: floatBadge 8s ease-in-out infinite;
}

.floating-badge-1 {
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.floating-badge-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: 4s;
}

.badge-icon {
    font-size: var(--font-size-lg);
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-weight: 600;
    font-size: var(--font-size-sm);
    line-height: 1;
}

.badge-subtitle {
    font-size: var(--font-size-xs);
    color: var(--silver-gray);
    margin-top: 2px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    animation: fadeInUp 1s ease 1s both;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}

.watch-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

/* ===== HERO REDESIGN STYLES ===== */
/* Updated Hero Badge */
.hero-badge {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 10px 24px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 4px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Hero Title Typography */
.hero-title {
    margin-bottom: 40px !important;
}

.hero-title-small {
    display: block;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.hero-title-large {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Features - Same style as hero-badge */
.hero-features {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

.feature-icon {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.feature-text {
    letter-spacing: 0.5px;
}

/* Updated Hero Description */
.hero-description {
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    max-width: 600px !important;
    margin-bottom: 30px !important;
}

/* Refined Button Styles */
.btn-refined-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #29568d 100%);
    color: rgba(255, 255, 255, 0.98);
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.btn-refined-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.35);
    background: linear-gradient(135deg, #5ba0f2 0%, #396b9d 100%);
}

.btn-refined-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-refined-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-refined-primary:hover .btn-icon {
    transform: translateX(4px);
}


/* Hide old hero stats */
.hero-stats {
    display: none !important;
}

/* ===== PAGE HERO (for subpages) ===== */
.page-hero {
    min-height: auto !important;
    padding: 120px 0 80px;
    background: var(--hero-gradient) !important;
}

.page-hero .hero-background {
    background: var(--hero-gradient);
}

.page-hero .hero-overlay {
    background: rgba(3, 19, 55, 0.1);
}

/* ===== WATCHMAKING VIDEO STYLES ===== */
.watchmaking-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(3, 19, 55, 0.15);
    background: var(--royal-navy);
}

.watchmaking-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    padding: 16px 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-badge-title {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}

/* ===== HOMEPAGE REDESIGN BASED ON SALG/KJØP ===== */

/* Benefits Section - Matching salg.html style */
.benefits-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    background: rgba(248, 249, 250, 0.95);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: #4a90e2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.benefit-icon i {
    font-size: 24px;
}

.benefit-icon i {
    font-size: 24px;
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-size: 20px;
    font-weight: 600;
    color: #0b1d3c;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.benefit-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

/* About Section Features - Redesignet med bokser inspirert av Hero */
.about-grid {
    align-items: center;
    gap: 60px; /* Økt gap for bedre avstand mellom tekst og video */
}

.about-content .about-text {
    color: #555; /* Gjør brødteksten mørkere for bedre lesbarhet */
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolonner på en linje */
    gap: 30px; /* Mer gap for bedre separasjon */
    margin-top: 60px; /* Mer avstand fra innholdet over */
}

.about-feature-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Sentrerer innholdet horisontalt */
    gap: 15px;
    background: rgba(255, 255, 255, 0.7); /* Lett gjennomsiktig hvit */
    border: 1px solid #e9ecef;
    border-radius: var(--radius-md);
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 600; /* Endret til fet skrift */
    color: var(--royal-navy);
    transition: all 0.3s ease;
}

.about-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--pure-white);
}

.about-feature-item i {
    color: var(--royal-blue);
    font-size: 18px;
    width: 20px;
}

/* Fjerner de gamle, unødvendige about-feature stilene */
.about-features, .about-feature {
    display: none;
}

/* Services Section - 2x2 Grid like salg/kjøp */
.services-section {
    padding: 80px 0;
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-3px);
    background: rgba(248, 249, 250, 0.95);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #4a90e2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.service-icon i {
    font-size: 24px;
}

.service-icon i {
    font-size: 24px;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #0b1d3c;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.service-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

.service-link {
    color: #4a90e2;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #29568d;
}


.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 19, 55, 0.2);
    z-index: 1;
}

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

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e8f4f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Headers Consistency */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--royal-navy); /* Rettet farge til korrekt variabel */
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.section-subtitle {
    font-size: 18px;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-8px) rotate(45deg);
    }
    60% {
        transform: translateY(-4px) rotate(45deg);
    }
}

/* ===== SECTION SPACING ===== */
section {
    padding: var(--space-3xl) 0;
}

.about-section,
.services-section,
.process-section,
.testimonials-section,
.contact-section {
    position: relative;
}

/* Section Pattern Backgrounds */
.about-section {
    background-color: #fafafa;
}

.services-section {
    background-color: var(--pure-white);
}

.process-section {
    background-color: #fafafa;
}

.testimonials-section {
    background: var(--royal-navy);
    color: var(--pure-white);
}

.testimonials-section .section-title {
    color: var(--pure-white);
}

.testimonials-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.contact-section {
    background-color: #fafafa;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: 
        linear-gradient(rgba(40, 40, 40, 0.7), rgba(20, 20, 20, 0.8)),
        url('../assets/images/cta-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--pure-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(1px);
}

.cta-content h2 {
    color: var(--pure-white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--pure-white);
    color: var(--royal-navy);
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--royal-navy);
}

.cta-section .btn-secondary {
    border-color: var(--pure-white);
    color: var(--pure-white);
}

.cta-section .btn-secondary:hover {
    background: var(--pure-white);
    color: var(--royal-navy);
}

/* ===== Minimalistisk Footer basert på bilde ===== */
.footer {
    background: #0b1d3c; /* Den dype blåfargen fra bildet */
    color: #fff;
    padding: var(--space-2xl) 0;
    position: relative; /* Angir en posisjonskontekst */
    overflow: hidden; /* Forhindrer at teksten går utenfor */
}

.footer-content {
    display: flex; /* Bytter tilbake til flexbox */
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* Tillater at elementer kan wrappe på mindre skjermer */
    gap: var(--space-xl);
}

.footer-brand {
    flex: 1 1 250px; /* Tillater vekst, men har en basebredde */
}

.footer-links {
    flex: 1 1 150px; /* Gir lenkene fleksibel bredde */
}

.footer-clocks {
    flex: 1 1 200px; /* Komprimerer klokkeseksjonen */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    justify-items: center;
}

.footer-brand .footer-logo {
    height: 50px; /* Økt fra 40px */
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    transition: all 0.2s ease;
}

.social-link:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-base);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
}

.footer-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    margin-bottom: var(--space-lg);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-sm);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 var(--space-xs);
}

.footer-legal a:hover {
    color: #fff;
}

/* ===== DISABLED NAVBAR ITEMS ===== */
.nav-item.disabled .nav-link.disabled {
    color: #999999 !important;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.nav-item.disabled .nav-link.disabled:hover {
    color: #999999 !important;
    background: none !important;
}

/* Tooltip for disabled items */
.nav-item.disabled {
    position: relative;
}

.nav-item.disabled:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 1;
    pointer-events: none;
}

/* ===== ENHANCED MEGA MENU ===== */
.mega-menu-column h4 {
    font-size: 12px;
    font-weight: 600;
    color: #4a90e2;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.mega-menu-column ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mega-menu-column ul li a:hover {
    color: #4a90e2;
}

.mega-menu-column ul li a i {
    width: 16px;
    color: #4a90e2;
    font-size: 14px;
}

.mega-menu-cta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.mega-menu-cta h5 {
    font-size: 16px;
    font-weight: 600;
    color: #0b1d3c;
    margin-bottom: 8px;
}

.mega-menu-cta p {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.mega-menu-cta .btn.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    background: #4a90e2;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.mega-menu-cta .btn.btn-small:hover {
    background: #3a7bc8;
}

.footer-legal {
    display: flex;
    justify-content: center; /* Sentrerer lenkene */
    gap: var(--space-md);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-clocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    justify-items: center;
}

.analog-clock {
    position: relative;
    width: 65px; /* Redusert fra 80px */
    height: 65px; /* Redusert fra 80px */
    text-align: center;
}

.analog-clock .city {
    font-size: var(--font-size-xs);
    color: var(--silver-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
    white-space: nowrap;
}

.analog-clock .face {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
}

.analog-clock .face::after { /* Senterprikk */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    z-index: 10;
}

.hour-hand, .minute-hand, .second-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
}

.hour-hand {
    width: 2px;
    height: 25%;
    background: #fff;
}

.minute-hand {
    width: 2px;
    height: 35%;
    background: #fff;
}

.second-hand {
    width: 1px;
    height: 40%;
    background: var(--royal-blue);
}

.hour-marker {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
}

.marker-12 { top: 5px; left: 50%; width: 2px; height: 8px; transform: translateX(-50%); }
.marker-3 { top: 50%; right: 5px; width: 8px; height: 2px; transform: translateY(-50%); }
.marker-6 { bottom: 5px; left: 50%; width: 2px; height: 8px; transform: translateX(-50%); }
.marker-9 { top: 50%; left: 5px; width: 8px; height: 2px; transform: translateY(-50%); }

.second-hand {
    display: block; /* Viser sekundviseren igjen */
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* ===== FOCUS STATES ===== */
*:focus {
    outline: 2px solid var(--royal-blue);
    outline-offset: 2px;
}

button:focus,
.btn:focus {
    outline-color: var(--royal-blue);
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .nav-toggle,
    .hero-visual,
    .cta-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Bakgrunnstekst og blur-effekt */
.rt-footer-large-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(74, 144, 226, 0.07);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

/* Fjerner det problematiske blur-laget */
.footer-blur-overlay {
    display: none;
}

.footer .container {
    position: relative;
    z-index: 2; /* Endret fra 3 til 2 */
}

/* Andre justeringer */
.footer-title {
    color: #fff; /* Hvit farge */
}

.footer-legal {
    display: flex;
    justify-content: center; /* Sentrerer lenkene */
    gap: var(--space-md);
}

.footer-clocks-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-lg);
}

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

.clock-item .city {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--silver-gray);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clock-item .time {
    display: block;
    font-family: var(--font-headers);
    font-size: var(--font-size-3xl);
    color: var(--pure-white);
    font-weight: 600;
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    /* Force navbar to be relative and remove effects */
    .navbar {
        position: relative !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }
    
    /* Remove all scroll effects on mobile */
    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: none !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }
    
    /* Force dark hamburger menu bars */
    .nav-toggle .bar {
        background-color: #0a1a33 !important; /* royal-navy */
    }
    
    .nav-toggle.active .bar {
        background-color: #0a1a33 !important; /* royal-navy */
    }
}

/* ===== Brands Carousel Section ===== */
.brands-carousel-section {
    padding: var(--space-lg) 0;
    background-color: #f8f9fa; /* Liten nyanse for å skille den fra hvit bakgrunn */
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    overflow: hidden;
}

.brands-carousel-container {
    width: 100%;
    overflow: hidden;
}

.brands-carousel {
    display: flex;
    animation: scroll 40s linear infinite;
    width: fit-content;
}

.brands-carousel:hover {
    animation-play-state: paused;
}

.brand-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-xl);
    height: 100px; /* Gir en fast høyde */
}

.brand-item img {
    max-width: 140px;
    max-height: 50px;
    height: auto;
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.7;
    transition: all var(--transition-smooth);
}

.brand-item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}