/* Nullstill standardinnstillinger */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Prevent font scaling in landscape */
    scroll-padding-top: 0;
}

:root {
    --bg-color: #1a1a1a;
    --card-bg: #252525;
    --card-bg-light: #2a2a2a;
    --text-main: #f0f0f0;
    --text-muted: #aaaaaa;
    --accent: #ffffff;
    --blue-accent: #4169e1;
    --blue-subtle: rgba(65, 105, 225, 0.15);
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 0.3s;
    --dur-mid: 0.45s;
    --dur-slow: 0.7s;
    /* Silver/White */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better touch targets for mobile */
button,
a {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
}

/* Navigasjon */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background-color: rgba(13, 13, 13, 0.94);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: padding var(--dur-mid) var(--ease-smooth), background-color var(--dur-mid) var(--ease-smooth), box-shadow var(--dur-mid) var(--ease-smooth);
}

nav.scrolled {
    padding: 7px 5%;
    background-color: rgba(6, 6, 6, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 120px;
    width: auto;
    filter: invert(1) brightness(2);
    transition: transform var(--dur-fast) var(--ease-smooth), filter var(--dur-fast) var(--ease-smooth);
}

.logo img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-text {
    opacity: 0.8;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.78rem;
    padding: 11px 22px;
    transition: color var(--dur-mid) var(--ease-smooth), letter-spacing var(--dur-mid) var(--ease-smooth), background-color var(--dur-mid) var(--ease-smooth), transform var(--dur-fast) var(--ease-smooth);
    letter-spacing: 2px;
    position: relative;
    background: transparent;
}

/* Corner lines */
.nav-links a::before,
.nav-links a::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid rgba(65, 105, 225, 0.4);
    transition: width var(--dur-mid) var(--ease-smooth), height var(--dur-mid) var(--ease-smooth), opacity var(--dur-mid) var(--ease-smooth), border-color var(--dur-mid) var(--ease-smooth);
    opacity: 0.35;
}

/* Top-left corner */
.nav-links a::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

/* Bottom-right corner */
.nav-links a::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.nav-links a:hover {
    color: var(--accent);
    letter-spacing: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    transform: translateY(-1px);
}

.nav-links a:hover::before,
.nav-links a:hover::after {
    width: 100%;
    height: 100%;
    opacity: 1;
    border-color: rgba(65, 105, 225, 0.6);
}

/* Hero Section */
.hero {
    position: relative;
    height: 75vh;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: image-set(url('../images/Forside.jpg') 1x, url('../images/Forside.jpg') 2x);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    image-rendering: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.12) 68%,
        rgba(12, 12, 12, 0.42) 84%,
        rgba(26, 26, 26, 0.72) 94%,
        #1a1a1a 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Hero layers are static to avoid visible gradient/fade artifacts */

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: #fff;
    letter-spacing: 14px;
    font-weight: 400;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 28px;
    letter-spacing: 3.5px;
    font-weight: 400;
    text-transform: uppercase;
    text-shadow: none;
}

/* --- HERO ENTRANCE ANIMATIONS --- */
@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content h1       { animation: heroSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.hero-content .subtitle { animation: heroSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both; }
.hero-content #status-box { animation: heroSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both; }
.hero-content .cta-button { animation: heroSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both; }

/* --- GLOBALE LAYOUT KLASSER --- */
.container {
    padding: 100px 5%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Add spacing between major sections */
section {
    position: relative;
}

section:not(.hero):not(.products-section):not(.team-section) + section {
    margin-top: 0;
}

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


h2 {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 1.85rem;
    color: var(--accent);
    margin-bottom: 44px;
    text-transform: uppercase;
    letter-spacing: 7px;
    font-weight: 400;
    padding-bottom: 18px;
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Default underline for h2 */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue-accent), transparent);
}

/* Status boks (Åpen/Stengt) */
#status-box {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 50px;
    font-weight: 400;
    font-size: 0.72rem;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    backdrop-filter: blur(8px);
    position: relative;
}

.status-open {
    border: 2px solid var(--blue-accent);
    color: var(--blue-accent);
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.1), rgba(65, 105, 225, 0.05));
}

.status-closed {
    border: 2px solid #e74c3c;
    color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(231, 76, 60, 0.04));
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: background-color var(--dur-fast) var(--ease-smooth), letter-spacing var(--dur-fast) var(--ease-smooth), transform var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Shimmer sweep */
.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: skewX(-18deg);
}

.cta-button:hover::after {
    animation: ctaShimmer 0.55s ease-out forwards;
}

.cta-button:hover {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    letter-spacing: 3px;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.2);
}

@keyframes ctaShimmer {
    to { left: 150%; }
}


.price-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
    position: relative;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
    padding: 22px 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.price-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Staggered entrance */
.price-item.animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.price-item.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }

.price-item:hover {
    opacity: 0.85;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.04), rgba(65, 105, 225, 0.01));
    transform: translateX(4px);
    border-bottom-color: rgba(65, 105, 225, 0.12);
}

.service-info {
    flex-shrink: 0;
    max-width: 65%;
}

.service-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-main);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.service-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

/* Den klassiske prikke-linjen */
.price-connector {
    flex-grow: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 20px;
    height: 12px;
}

.price-item:hover .price-connector {
    border-color: rgba(255, 255, 255, 0.1);
}

.price {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    text-align: right;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* Info Seksjon */
.info-section {
    background-color: #1a1a1a;
    text-align: center;
    padding: 100px 0;
}

.info-section h2 {
    margin-bottom: 50px;
}

.info-section p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    line-height: 1.8;
}

.info-single-box {
    max-width: 850px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.info-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin: 0 auto;
}

.info-item {
    flex: 1;
    text-align: center;
}

.info-divider {
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(218, 165, 32, 0.3) 20%, 
        rgba(218, 165, 32, 0.6) 50%, 
        rgba(218, 165, 32, 0.3) 80%, 
        transparent);
    align-self: stretch;
}

.info-item h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-item p {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text-main);
}

.info-item a {
    transition: color 0.3s ease;
    text-decoration: none;
}

.info-item a:hover {
    color: var(--accent);
}

.info-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.info-box {
    flex: 1;
    min-width: 280px;
    padding: 35px 30px;
    background: linear-gradient(135deg, var(--card-bg-light), var(--card-bg));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform var(--dur-fast) var(--ease-smooth), border-color var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-mid) var(--ease-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.info-box:hover {
    transform: translateY(-5px);
    border-color: rgba(65, 105, 225, 0.3);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(65, 105, 225, 0.15);
}

.info-box h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-box p {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text-main);
}

.info-box a {
    transition: color 0.3s ease;
}

.info-box a:hover {
    color: var(--accent);
}

/* About Section */
.about-grid {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

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

.about-heading {
    margin-bottom: 18px;
}

.about-highlights {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 auto 34px;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: heroSlideUp 0.8s var(--ease-smooth) 0.2s both;
}

.about-highlights span {
    line-height: 1.3;
}

.about-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.95) 0%, rgba(65, 105, 225, 0.15) 100%);
    box-shadow: 0 0 14px rgba(65, 105, 225, 0.4);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.95;
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: linear-gradient(180deg, #171717 0%, #0d0d0d 100%);
    color: #7f7f7f;
    padding: 60px 5% 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.footer-inner {
    max-width: 820px;
    margin: 0 auto;
}

.footer-title {
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 2.15rem;
    font-weight: 400;
    margin-bottom: 28px;
}

.footer-content {
    display: block;
    margin: 0 auto 22px;
    text-align: left;
}

.footer-section {
    max-width: 360px;
    margin: 0 auto;
}

.footer-sketch-layout {
    max-width: 560px;
    padding-left: 18px;
}

.footer-sketch-layout h4 {
    font-size: 1.45rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-align: center;
}

.footer-sketch-layout .social-links {
    align-items: flex-start;
    margin-top: 20px;
}

.footer-sketch-layout .social-link {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.footer-section h4 {
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 400;
    margin-bottom: 10px;
}

.footer-section p {
    color: #8d8d8d;
    margin-bottom: 5px;
    font-size: 0.98rem;
    line-height: 1.75;
}

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours-row {
    width: min(290px, 100%);
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #a8a8a8;
    font-size: 1.08rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 9px;
}

.footer-phone {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.18rem;
    letter-spacing: 1.4px;
    margin-top: 22px;
    margin-left: 4px;
    display: inline-block;
    transition: color var(--dur-fast) var(--ease-smooth), letter-spacing var(--dur-fast) var(--ease-smooth);
}

.footer-phone:hover {
    color: #fff;
    letter-spacing: 1.6px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9a9a9a;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-smooth), background-color var(--dur-fast) var(--ease-smooth), border-color var(--dur-fast) var(--ease-smooth), transform var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth);
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.social-link:hover {
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.12), rgba(65, 105, 225, 0.06));
    border-color: rgba(65, 105, 225, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 400;
}

.social-note {
    max-width: 520px;
    margin: 26px 0 0;
    color: #7c7c7c;
    font-size: 1rem;
    line-height: 1.85;
    text-align: left;
}


.footer-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.72rem;
    color: #444;
}

.footer-bottom p {
    margin-bottom: 6px;
}

.footer-credit {
    font-size: 0.72rem;
    color: #444;
    margin-top: 6px;
}

.webklart-link {
    color: #444;
    text-decoration: none;
    font-weight: 400;
    transition: color var(--dur-fast) var(--ease-smooth);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.webklart-link:hover {
    color: #555;
}

.rocket-icon {
    width: 12px;
    height: 12px;
    stroke: #10b981;
    transition: transform var(--dur-fast) var(--ease-smooth), stroke var(--dur-fast) var(--ease-smooth);
    flex-shrink: 0;
}

.webklart-link:hover .rocket-icon {
    stroke: #34d399;
    transform: translateY(-2px);
}

/* Skip to main content (accessibility) */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-to-main:focus {
    top: 20px;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.2), rgba(65, 105, 225, 0.12));
    border: 2px solid rgba(65, 105, 225, 0.4);
    border-radius: 50%;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--dur-mid) var(--ease-smooth), visibility var(--dur-mid) var(--ease-smooth), transform var(--dur-mid) var(--ease-smooth), background-color var(--dur-mid) var(--ease-smooth), color var(--dur-mid) var(--ease-smooth), border-color var(--dur-mid) var(--ease-smooth), box-shadow var(--dur-mid) var(--ease-smooth);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--blue-accent), #3355cc);
    color: #fff;
    border-color: var(--blue-accent);
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 6px 12px rgba(0, 0, 0, 0.3);
}

.info-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 10px;
}

.info-address,
.info-contact {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.info-address:hover,
.info-contact:hover {
    color: var(--accent);
}

.info-contact {
    font-size: 1.05rem;
    font-weight: 500;
    margin: 5px 0;
}

/* Mobil-tilpasning */
@media (max-width: 600px) {
    .products-section::before {
        background-attachment: scroll !important;
        background-position: center !important;
        filter: none !important;
        image-rendering: auto !important;
        transform: none !important;
        will-change: auto !important;
        animation: none !important;
    }

    .hero h1 {
        font-size: 2.2rem;
        padding: 0 10px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    h2 {
        font-size: 1.6rem;
        letter-spacing: 2px;
        margin-bottom: 18px;
    }


    .container {
        padding: clamp(22px, 5vh, 40px) 5%;
    }

    .price-list {
        gap: 16px;
    }

    .price-item {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        padding: 16px 0;
        gap: 6px;
    }

    .price-connector {
        display: none;
    }

    .service-info {
        max-width: 100%;
    }

    .service-info h3 {
        font-size: 1.12rem;
        margin-bottom: 6px;
    }

    .service-info p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .price-connector {
        display: none;
    }

    .price {
        margin-top: 5px;
        margin-left: 0;
        font-size: 1.4rem;
        align-self: flex-end;
    }

    .info-single-box {
        padding: 0;
        max-width: 95%;
    }

    .info-content {
        flex-direction: column;
        gap: 40px;
    }

    .info-item {
        text-align: center;
        width: 100%;
    }

    .info-item p {
        text-align: center;
        display: block;
    }

    .info-item a {
        text-align: center;
    }

    .info-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, 
            transparent, 
            rgba(218, 165, 32, 0.3) 20%, 
            rgba(218, 165, 32, 0.6) 50%, 
            rgba(218, 165, 32, 0.3) 80%, 
            transparent);
    }

    .info-grid {
        flex-direction: column;
        gap: 25px;
    }

    .info-box {
        padding: 20px;
        min-width: 100%;
    }


    .cta-button {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .team-carousel-container {
        padding: 0 40px 30px;
    }

    .team-card {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 24px 20px 20px;
        margin: 0 auto;
    }

    .team-card-image-circle {
        width: 180px;
        height: 180px;
        margin-bottom: 14px;
    }

    .team-card-content h3 {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
        margin-bottom: 15px;
    }

    .team-bio {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 0;
    }

    .carousel-nav {
        width: 42px;
        height: 42px;
    }

    /* MOBIL - Professional bars */
    .carousel-dots {
        display: flex !important;
        margin-top: 15px !important;
        gap: 8px !important;
    }

    .carousel-dot {
        width: 22px !important;
        height: 2.5px !important;
        min-width: 22px !important;
        min-height: 2.5px !important;
    }

    .carousel-dot.active {
        width: 30px !important;
        height: 2.5px !important;
    }

    .carousel-dot:hover {
        height: 3px !important;
    }

    .about-heading {
        font-size: 1.6rem;
        margin-bottom: 14px;
    }

    .about-highlights {
        gap: 10px;
        font-size: 0.84rem;
        letter-spacing: 1.5px;
        margin-bottom: 20px;
    }

    .about-dot {
        display: none;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.75;
        text-align: center;
        padding: 0 5px;
        margin-bottom: 14px;
    }

    .info-section p {
        font-size: 0.9rem;
    }

    .info-note {
        font-size: 0.8rem;
    }

    .info-contact {
        font-size: 1rem;
    }

    footer {
        padding: 28px 20px 16px;
    }

    .footer-inner {
        max-width: 420px;
    }

    .footer-title {
        font-size: 1.85rem;
        letter-spacing: 1.8px;
        margin-bottom: 22px;
    }

    .footer-content {
        text-align: left;
    }

    .footer-section {
        max-width: 100%;
    }

    .footer-section h4 {
        font-size: 1.08rem;
        margin-bottom: 12px;
    }

    .footer-section p {
        font-size: 0.92rem;
    }

    .footer-sketch-layout {
        padding-left: 6px;
    }

    .footer-sketch-layout .social-links {
        align-items: flex-start;
        margin-top: 18px;
    }

    .hours-row {
        max-width: 250px;
        font-size: 0.98rem;
        margin: 0;
    }

    .footer-phone {
        font-size: 1.05rem;
        margin-left: 2px;
    }

    .social-note {
        max-width: 100%;
        font-size: 0.9rem;
        line-height: 1.7;
        text-align: left;
    }

    .social-link {
        justify-content: center;
        width: 100%;
        max-width: 220px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* --- PRODUKT SEKSJON --- */

.products-section {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65)), url('../images/Produkter.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.05) brightness(1.02);
    z-index: -1;
}

.products-overlay {
    width: 100%;
    padding: 100px 5%;
}

.products-brand {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 15px;
    opacity: 0.9;
}

.products-section h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #fff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    letter-spacing: 3px;
}

.products-section .section-intro {
    color: #e0e0e0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Team Seksjon - Modern Carousel */
.team-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
    padding: 0;
    text-align: center;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    z-index: 1;
}

.team-section h2 {
    color: var(--accent);
    margin-bottom: 0;
    font-size: 3.2rem;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.section-intro {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-top: -40px;
    margin-bottom: 70px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-section-heading {
    text-align: center;
    padding: 120px 5% 70px;
    position: relative;
    z-index: 2;
}

.team-section-heading h2 {
    color: var(--accent);
}

.team-carousel-container {
    position: relative;
    width: 100%;
    padding: 0 70px 80px;
    box-sizing: border-box;
    z-index: 2;
}

.team-carousel {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.team-carousel-track {
    display: flex;
    transition: transform var(--dur-slow) var(--ease-smooth);
    gap: 20px;
    cursor: grab;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.team-carousel-track:active {
    cursor: grabbing;
}

.team-card {
    flex: 0 0 calc(33.333% - 14px);
    background: linear-gradient(135deg, #2a2a2a, #252525);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: visible;
    transition: transform var(--dur-mid) var(--ease-smooth), border-color var(--dur-mid) var(--ease-smooth), box-shadow var(--dur-mid) var(--ease-smooth), background var(--dur-mid) var(--ease-smooth);
    padding: 28px 20px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(65, 105, 225, 0.35);
    background: linear-gradient(135deg, #2d2d2d, #282828);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 8px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(65, 105, 225, 0.2);
}

.team-card-image-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 22px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform var(--dur-mid) var(--ease-smooth), border-color var(--dur-mid) var(--ease-smooth), box-shadow var(--dur-mid) var(--ease-smooth);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2a2a2a, #252525);
}

.team-card-placeholder {
    background: linear-gradient(135deg, #333333, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-placeholder svg {
    width: 52px;
    height: 52px;
    color: rgba(255, 255, 255, 0.25);
}

.team-card-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    border-radius: 50%;
}

/* Individuelle justeringer for hvert bilde */
.team-card-image-circle img[src*="image000001.jpeg"] {
    object-position: center 10%; /* Monica - flyttet betydelig ned */
}

.team-card-image-circle img[src*="image000001%20(1).jpeg"] {
    object-position: center 10%; /* Lene - flyttet betydelig ned */
}

.team-card-image-circle img[src*="image000001%20(2).jpeg"] {
    object-position: center 10%; /* Ann Therese - flyttet betydelig ned */
}

.team-card-image-circle img[src*="image000001%20(3).jpeg"] {
    object-position: center 10%; /* Astrid Marie - beholder */
}

.team-card-image-circle img[src*="image000001%20(4).jpeg"] {
    object-position: center 10%; /* Regina - flyttet betydelig ned */
}

.team-card-image-circle img[src*="image000001%20(5).jpeg"] {
    object-position: center 10%; /* Marion - liten justering */
}

.team-card-image-circle img[src*="image000001.JPG"] {
    object-position: center 10%; /* Astrid - liten justering */
}

.team-card:hover .team-card-image-circle {
    transform: scale(1.06);
    border-color: rgba(65, 105, 225, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 3px 10px rgba(0, 0, 0, 0.3);
}

.team-card-content {
    text-align: center;
}

.team-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.team-card-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-accent), transparent);
    transition: width 0.3s ease;
}

.team-card:hover .team-card-content h3::after {
    width: 60px;
}

.team-bio {
    font-size: 1rem;
    color: #c0c0c0;
    line-height: 1.8;
    margin-bottom: 0;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.3px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: calc(50% - 54px);
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.15), rgba(65, 105, 225, 0.08));
    border: 2px solid rgba(65, 105, 225, 0.3);
    color: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-smooth), color var(--dur-fast) var(--ease-smooth), border-color var(--dur-fast) var(--ease-smooth), transform var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.carousel-nav:hover {
    background: linear-gradient(135deg, var(--blue-accent), #3355cc);
    color: #fff;
    border-color: var(--blue-accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.3);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Carousel Bars - Professional & Clean */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.carousel-dot {
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width var(--dur-mid) var(--ease-smooth), height var(--dur-mid) var(--ease-smooth), border-color var(--dur-mid) var(--ease-smooth), background-color var(--dur-mid) var(--ease-smooth);
    padding: 0;
    position: relative;
}

.carousel-dot:hover {
    border-color: rgba(65, 105, 225, 0.6);
    height: 4px;
}

.carousel-dot.active {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-accent), #5b82ff);
    border-color: var(--blue-accent);
    transition: width var(--dur-mid) var(--ease-smooth), height var(--dur-mid) var(--ease-smooth), border-color var(--dur-mid) var(--ease-smooth), background-color var(--dur-mid) var(--ease-smooth);
}

/* Hamburger Meny Toggle - Intuitivt og profesjonelt */
.menu-toggle {
    display: none;
    cursor: pointer;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-family: inherit;
}

.menu-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent);
}

.hamburger {
    width: 25px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 1px;
    /* Tynnere, mer elegant linje */
    background-color: var(--accent);
    transition: transform var(--dur-mid) var(--ease-smooth), opacity var(--dur-mid) var(--ease-smooth), width var(--dur-mid) var(--ease-smooth);
}

/* Midterste linje litt kortere for "designer touch" */
.hamburger .bar:nth-child(2) {
    width: 70%;
    align-self: flex-end;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) and (min-width: 601px) {
    .hero h1 {
        font-size: 3rem;
    }

    .team-section {
        padding: 0;
    }

    .team-section-heading {
        padding: 90px 5% 55px;
    }

    .team-carousel-container {
        padding: 0 60px 70px;
    }

    .team-card {
        flex: 0 0 calc(50% - 18px);
        padding: 38px 28px 33px;
    }

    .team-card-image-circle {
        width: 200px;
        height: 200px;
        margin-bottom: 28px;
    }

    .team-card-content h3 {
        font-size: 1.55rem;
        letter-spacing: 2px;
        margin-bottom: 18px;
    }

    .team-bio {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .products-section h2 {
        font-size: 2.8rem;
    }

    .container {
        max-width: 100%;
    }

    .info-single-box {
        padding: 0;
        max-width: 90%;
    }

    .info-content {
        gap: 60px;
    }

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

    .info-item p {
        text-align: center;
    }

    .info-item a {
        text-align: center;
    }

    .info-grid {
        gap: 40px;
    }

    .info-box {
        min-width: 200px;
        padding: 25px;
    }

    .footer-inner {
        max-width: 700px;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 220px));
        justify-content: center;
        gap: 20px;
    }

    .footer-section:last-child {
        grid-column: 1 / -1;
    }

    .footer-title {
        font-size: 2rem;
    }

    .social-link {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 5%;
        background-color: #000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .logo img {
        height: 45px;
    }

    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .menu-toggle {
        display: flex;
    }

    /* Animasjon til X */
    #mobile-menu.is-active .hamburger .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    #mobile-menu.is-active .hamburger .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .hamburger .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transform: translateY(-100%);
        /* Curtain effect */
        opacity: 0;
        transition: transform var(--dur-slow) var(--ease-smooth), opacity var(--dur-slow) var(--ease-smooth);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li {
        opacity: 0;
        transform: scale(0.9);
        transition: opacity var(--dur-mid) var(--ease-smooth), transform var(--dur-mid) var(--ease-smooth);
    }

    .nav-links.active li {
        opacity: 1;
        transform: scale(1);
    }

    /* Staggered entry */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.5s;
    }

    .nav-links a {
        font-family: var(--font-heading);
        font-size: 2.2rem;
        letter-spacing: 4px;
        padding: 10px;
        border: none;
    }

    /* --- MOBIL BILDEOPTIMALISERING (Full-bleed) --- */
    .hero {
        height: calc(100vw * 629 / 1080); /* Tilpasser seg bildeforholdet til Forsidemobil.jpg (1080×629) — ingen zoom */
        min-height: 0;
        padding: 0;
        margin: 0;
    }

    .hero-content {
        display: none;
    }

    .hero::before {
        background-image: image-set(url('../images/Forsidemobil.jpg') 1x, url('../images/Forsidemobil.jpg') 2x);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

    .hero::after {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.06) 0%,
            rgba(0, 0, 0, 0.1) 66%,
            rgba(14, 14, 14, 0.36) 82%,
            rgba(26, 26, 26, 0.66) 94%,
            #1a1a1a 100%
        );
    }

    .hero h1 {
        font-size: 3rem;
        letter-spacing: 6px;
    }

    .products-section {
        min-height: 65vh;
        background-attachment: scroll;
        padding: 80px 5%;
        margin: 0;
    }

    .products-section::before {
        background-attachment: scroll !important;
        filter: none !important;
        image-rendering: auto !important;
        transform: none !important;
        will-change: auto !important;
        animation: none !important;
    }

    .products-section h2 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .products-brand {
        font-size: 0.9rem;
        letter-spacing: 4px;
    }

    /* Team Carousel Mobile */
    .team-section {
        padding: 0;
    }

    .team-section-heading {
        padding: clamp(22px, 5vh, 40px) 5% clamp(14px, 3vh, 28px);
    }

    .team-carousel-container {
        padding: 0 45px 60px;
    }

    .team-card {
        flex: 0 0 calc(50% - 18px);
        padding: 32px 22px 28px;
    }

    .team-card-image-circle {
        width: 190px;
        height: 190px;
        margin-bottom: 25px;
    }

    .team-card-content h3 {
        font-size: 1.45rem;
    }

    .team-bio {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
    }

    /* Show dots on tablets */
    .carousel-dots {
        display: flex;
        margin-top: 30px;
    }

    .carousel-prev {
        left: 0;
    }

    .carousel-next {
        right: 0;
    }

    section {
        padding: clamp(22px, 5vh, 40px) 0;
        margin: 0;
    }

    .container {
        padding: clamp(22px, 5vh, 40px) 6%;
    }

    .info-section {
        padding: clamp(22px, 5vh, 40px) 0;
    }

    .info-single-box {
        padding: 0;
    }

    .info-content {
        gap: 50px;
    }

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

    .info-item p {
        text-align: center;
    }

    .info-item a {
        text-align: center;
    }

    .info-grid {
        gap: 40px;
    }

    .info-box {
        padding: 25px;
    }


    h2 {
        font-size: 1.8rem;
        margin-bottom: clamp(14px, 3vh, 28px);
    }

    .section-intro {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    /* --- MOBILE MENU CORNER BORDERS --- */
    .nav-links a::before,
    .nav-links a::after {
        display: block !important;
        width: 10px;
        height: 10px;
        opacity: 0.6;
        border-color: rgba(65, 105, 225, 0.6) !important;
    }

    .nav-links.active a::before,
    .nav-links.active a::after {
        animation: borderPulse 2s infinite ease-in-out;
    }
}

@keyframes borderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Lås rulling når menyen er åpen */
body.menu-open {
    overflow: hidden;
}

/* PRODUKT PARALLAKS BASE */
.products-section::before {
    background-attachment: scroll !important;
    /* JS overstyrer dette */
    will-change: transform;
    /* JS styrer denne variabelen for silkemyk effekt */
    transform: translate3d(0, var(--parallax-y, 0), 0);
}

/* SMOOTH PAGE TRANSITIONS — opacity only, no scale (scale causes CLS) */
body {
    animation: premiumFadeIn 0.6s ease forwards;
}

@keyframes premiumFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Smoother interactions */
.nav-links a,
.cta-button,
.price-item {
    transition-timing-function: var(--ease-smooth);
}

/* --- MOBILE ENHANCEMENTS --- */

/* Better touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .carousel-nav,
    .carousel-dot,
    .info-box a,
    .info-item a,
    .footer-link {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects on touch devices */
    .team-card:hover {
        transform: none;
    }
    
    .team-card:active {
        transform: scale(0.98);
    }
}

/* Improve click/tap feedback */
button:active,
a:active {
    transform: scale(0.985);
}

/* Prevent text selection during carousel drag */
.team-carousel-track * {
    user-select: none;
    -webkit-user-drag: none;
}

/* Loading state for images */
img {
    background: linear-gradient(90deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Accessibility: Focus styles */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav,
    .scroll-to-top,
    .carousel-nav,
    .carousel-dots,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero::before {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --accent: #ffffff;
        --text-main: #ffffff;
        --text-muted: #cccccc;
    }
    
    .team-card,
    .info-box {
        border-width: 2px;
    }
}

/* Scroll animations */
.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* CSS-driven scroll animation — avoids CLS from JS inline styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}