﻿/* ========================================
   Vestbjerg Byg - Custom Styles
   Color Scheme: Black (#000000) & Orange (#fe8618)
   ======================================== */

:root {
    --primary-color: #fe8618;
    --secondary-color: #000000;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --text-dark: #000000;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.nowrap {
    white-space: nowrap;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

/* Remove focus outlines from non-interactive elements */
h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus,
p:focus, div:focus, section:focus {
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    z-index: 1000;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .site-header.scrolled {
        box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    }

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity var(--transition-speed);
}

    .logo a:hover {
        opacity: 0.8;
    }

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.logo-text {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all var(--transition-speed);
    position: relative;
}

    .main-nav a:hover,
    .main-nav a.active {
        color: var(--primary-color);
    }

    .main-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: all var(--transition-speed);
        transform: translateX(-50%);
    }

    .main-nav a:hover::after,
    .main-nav a.active::after {
        width: 80%;
    }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-light);
        transition: all var(--transition-speed);
    }

/* ========== Hero Section ========== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/images/hero.webp') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--text-light);
    margin-top: var(--header-height);
}

@media (max-width: 640px) {
    .hero-section {
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/images/hero-640w.webp');
    }
}

@media (min-width: 641px) and (max-width: 1280px) {
    .hero-section {
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/images/hero-1280w.webp');
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(1.6rem, 7vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    outline: none;
}

    .hero-title:focus {
        outline: none;
    }

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    color: var(--text-light);
    z-index: 1;
}

.scroll-arrow {
    font-size: 2rem;
    color: var(--primary-color);
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

    .btn-primary:hover {
        background: #e67610;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(254, 134, 24, 0.3);
    }

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-light);
}

    .btn-secondary:hover {
        background: #333;
        transform: translateY(-2px);
    }

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* ========== Section Heading ========== */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-heading h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: var(--text-dark);
    }

    .section-heading .subtitle {
        font-size: 1.2rem;
        color: #666;
    }

.heading-divider {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
}

/* ========== About Section ========== */
.about-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 3rem;
    align-items: start;
}

.about-history {
    grid-column: 1;
    grid-row: 1;
}

.about-image {
    grid-column: 2;
    grid-row: 1 / 3;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

    .about-image img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

.about-specialer {
    grid-column: 1;
    grid-row: 2;
}

    .about-specialer h3 {
        font-size: 1.8rem;
        margin: 0 0 1rem;
        color: var(--text-dark);
    }

.about-history h3 {
    font-size: 1.8rem;
    margin: 0 0 1rem;
    color: var(--text-dark);
}

.about-history p {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.8;
}

.about-features-heading {
    font-size: 1.8rem;
    margin: 3rem 0 1rem;
    color: var(--text-dark);
}

.services-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

    .services-list li {
        padding: 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.service-icon {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all var(--transition-speed);
}

    .feature:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* ========== Portfolio Section ========== */
.portfolio-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-grid--home {
    grid-template-columns: repeat(2, 1fr);
}

.portfolio-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all var(--transition-speed);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

    .portfolio-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--transition-speed);
        position: relative;
        z-index: 1;
    }

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(254, 134, 24, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.view-project {
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.2rem;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.card-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.card-title {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.card-description {
    color: #666;
    margin: 0.5rem 0;
}

.card-date {
    color: #999;
    font-size: 0.9rem;
    margin-top: auto;
}

.portfolio-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========== Contact Section ========== */
.contact-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper h3,
.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Form Styles */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-form .form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

    .contact-form .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
    }

.contact-form .validation-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.success-message {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
}

    .success-message h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

/* Contact Info */
.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.info-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-text h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-text p {
    color: #666;
    line-height: 1.6;
}

.info-text a {
    color: inherit;
    text-decoration: none;
}

    .info-text a:hover {
        color: var(--primary-color);
    }

/* ========== Footer ========== */
.site-footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-contact,
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-contact li,
    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: var(--text-light);
        text-decoration: none;
        transition: color var(--transition-speed);
    }

        .footer-links a:hover {
            color: var(--primary-color);
        }

    .footer-contact a {
        color: var(--text-light);
        text-decoration: none;
        transition: color var(--transition-speed);
    }

        .footer-contact a:hover {
            color: var(--primary-color);
        }

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* ========== Image Gallery ========== */
.image-gallery {
    margin: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--bg-light);
    aspect-ratio: 3 / 4;
    aspect-ratio: 4 / 3;
    transition: all var(--transition-speed);
}

    .gallery-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

    .gallery-item:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        pointer-events: none;
        user-select: none;
    }

.gallery-empty {
    text-align: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 10px;
    color: #666;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .lightbox-content img {
        width: 100%;
        height: auto;
        max-height: 85vh;
        object-fit: contain;
        border-radius: 5px;
    }

.lightbox-counter {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: var(--text-light);
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all var(--transition-speed);
}

    .lightbox-close:hover {
        background: var(--primary-color);
        transform: rotate(90deg);
    }

    .lightbox-close:focus {
        outline: 3px solid var(--primary-color);
    }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(254, 134, 24, 0.8);
    color: var(--text-light);
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    border-radius: 5px;
    z-index: 2001;
}

    .lightbox-nav:hover {
        background: var(--primary-color);
        transform: translateY(-50%) scale(1.1);
    }

    .lightbox-nav:focus {
        outline: 3px solid var(--text-light);
    }

    .lightbox-nav:active {
        transform: translateY(-50%) scale(0.95);
    }

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ========== Project Detail ========== */
.project-detail {
    margin-top: var(--header-height);
}

.project-hero {
    background: var(--bg-light);
    padding: 2rem 0;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: #666;
}

    .breadcrumb a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

.project-content {
    padding: 3rem 0;
}

.project-header {
    margin-bottom: 2rem;
}

    .project-header h1 {
        font-size: 3rem;
        margin-bottom: 0.25rem;
        scroll-margin-top: calc(var(--header-height) + 2rem);
    }

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-category {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background var(--transition-speed);
    white-space: nowrap;
}

    .project-category:hover {
        background: #e5770f;
        color: var(--text-light);
    }

.project-date {
    color: #666;
    margin-bottom: 0.75rem;
    display: block;
}

.project-description {
    margin: 3rem 0;
}

    .project-description p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #333;
    }

.project-gallery {
    margin: 3rem 0;
}

    .project-gallery h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Scroll-triggered reveal animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .animate-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ========== Skeleton Loading ========== */
.skeleton-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.skeleton-image {
    height: 250px;
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-badge {
    width: 80px;
    height: 24px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.skeleton-title {
    width: 70%;
    height: 24px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-text {
    width: 100%;
    height: 16px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

    .skeleton-text.short {
        width: 40%;
    }

.skeleton-pulse {
    background: linear-gradient(90deg, #e0e0e0 25%, #ececec 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 968px) {
    .header-container {
        padding: 0 15px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav ul {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 70%;
        height: calc(100vh - var(--header-height));
        background: var(--secondary-color);
        flex-direction: column;
        padding: 2rem;
        transition: right var(--transition-speed);
    }

        .main-nav ul.active {
            right: 0;
        }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-history,
    .about-image,
    .about-specialer {
        grid-column: 1;
        grid-row: auto;
    }

    .about-image {
        position: static;
    }

    .services-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 1rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid--home {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .project-header h1 {
        font-size: 2rem;
    }

    .project-actions {
        flex-direction: column;
    }

        .project-actions .btn {
            width: 100%;
            text-align: center;
        }
}

/* ========== Loading State ========== */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== Projekter Page ========== */
.projekter-page {
    margin-top: var(--header-height);
    padding: 4rem 0 6rem;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.tag-btn {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

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

    .tag-btn.active {
        background: var(--primary-color);
        color: var(--text-light);
        border-color: var(--primary-color);
    }

.load-more {
    text-align: center;
    margin-top: 3rem;
}

.no-projects {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 3rem 0;
}

/* ========== Sticky CTA ========== */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.sticky-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-cta:hover {
    background: #e5760f;
    color: var(--text-light);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.sticky-cta i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .sticky-cta {
        bottom: 1rem;
        right: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ========== Error Pages ========== */
.error-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    padding-top: calc(var(--header-height) + 4rem);
    text-align: center;
}

.error-page-content {
    max-width: 500px;
}

.error-page-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.error-page-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-page h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-page p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}
