/* Original Energy Finland - Custom Styles */

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Glass Morphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Text Effects */
.text-glow {
    text-shadow: 0 0 20px rgba(255, 92, 0, 0.4);
}

.text-glow-accent {
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* Border Effects */
.neon-border {
    box-shadow: 0 0 15px rgba(255, 92, 0, 0.3);
}

.neon-border-accent {
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* Hotspot Animation */
.hotspot-ring {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Wave Container */
.wave-container {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(10, 15, 20, 0.98);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease-in-out;
    z-index: 100;
    overflow-y: auto;
}

.menu-overlay.active {
    right: 0;
}

.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 99;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
.section-padding {
    padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 2rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 8rem 3rem;
    }
}

/* Hero Gradient Background */
.hero-gradient {
    background: radial-gradient(circle at top right, rgba(255, 92, 0, 0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(0, 229, 255, 0.1), transparent 50%);
}

/* Feature Cards Hover Effect */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 92, 0, 0.2);
}

/* CTA Button Pulse */
.cta-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(255, 92, 0, 0.4);
    }
    50% {
        box-shadow: 0 8px 50px rgba(255, 92, 0, 0.6);
    }
}

/* Form Styles */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #FF5C00;
    box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Stats Counter Animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Timeline Styles */
.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #FF5C00, transparent);
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: #FF5C00;
    border-radius: 50%;
    border: 3px solid #0A0F14;
}

/* Service Package Cards */
.package-card {
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #FF5C00, transparent);
    transition: left 0.5s ease;
}

.package-card:hover::before {
    left: 100%;
}

/* Accordion Styles */
.accordion-button {
    transition: all 0.3s ease;
}

.accordion-button.active {
    color: #FF5C00;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 92, 0, 0.1);
    border-top-color: #FF5C00;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #FF5C00, #00E5FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop Navigation */
@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .desktop-nav a {
        position: relative;
        padding: 0.5rem 0;
        transition: color 0.3s ease;
    }

    .desktop-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #FF5C00;
        transition: width 0.3s ease;
    }

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

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* =============================================
   BRAND CONSISTENCY & VISUAL HIERARCHY
   ============================================= */

/* Consistent section headings */
h2 {
    letter-spacing: -0.02em;
}

h3 {
    letter-spacing: -0.01em;
}

/* Trust badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 92, 0, 0.08);
    border: 1px solid rgba(255, 92, 0, 0.25);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #FF5C00;
    letter-spacing: 0.01em;
}

/* Process step connector */
.step-connector {
    height: 2px;
    background: linear-gradient(to right, #FF5C00, rgba(255,92,0,0.1));
}

/* Pricing card highlight */
.pricing-featured {
    box-shadow: 0 0 0 2px #FF5C00, 0 20px 60px rgba(255, 92, 0, 0.2);
}

/* Sticky mobile CTA animation */
@keyframes slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.sticky-cta {
    animation: slide-up 0.3s ease-out;
}

/* Image overlay for brand consistency */
.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 92, 0, 0.05) 0%,
        transparent 50%,
        rgba(0, 229, 255, 0.03) 100%
    );
    border-radius: inherit;
    pointer-events: none;
}

/* CTA button hierarchy - primary */
.btn-primary {
    background: #FF5C00;
    color: white;
    font-weight: 700;
    padding: 1.1rem 2.2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 8px 30px rgba(255, 92, 0, 0.35);
}

.btn-primary:hover {
    background: #e05200;
    box-shadow: 0 8px 40px rgba(255, 92, 0, 0.5);
    transform: translateY(-1px);
}

/* CTA button hierarchy - secondary */
.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-weight: 700;
    padding: 1.1rem 2.2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

/* Nav active underline indicator */
.nav-link {
    position: relative;
    padding-bottom: 2px;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FF5C00;
    border-radius: 1px;
}

/* Consistent card border on hover */
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Section divider */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.07), transparent);
    margin: 0 2rem;
}

/* Number stat emphasis */
.stat-highlight {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Informational content blocks */
.info-block {
    padding: 1.5rem;
    border-left: 3px solid rgba(0, 229, 255, 0.5);
    background: rgba(0, 229, 255, 0.03);
    border-radius: 0 12px 12px 0;
}

/* Mobile padding safety for sticky elements */
@media (max-width: 1023px) {
    main {
        padding-bottom: 160px;
    }
}

/* Hide floating CTA on mobile — redundant with bottom nav CTA */
@media (max-width: 1023px) {
    .floating-cta {
        display: none !important;
    }
}

/* Mobile-friendly card padding */
@media (max-width: 639px) {
    .glass-card-mobile-compact {
        padding: 1.25rem !important;
    }
}

/* Booking modal mobile improvements */
@media (max-width: 639px) {
    .booking-modal {
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }

    .booking-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .booking-modal-header {
        padding: 1.25rem;
    }

    .booking-modal-body {
        padding: 1.25rem;
    }

    .service-option {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
}

/* =============================================
   FLOATING CTA BUTTON & BOOKING MODAL
   ============================================= */

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    animation: float-in 0.5s ease-out, float-pulse 3s ease-in-out infinite;
}

@keyframes float-in {
    from {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

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

.floating-cta-button {
    background: linear-gradient(135deg, #FF5C00, #ff7a33);
    color: white;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 12px 40px rgba(255, 92, 0, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.floating-cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 50px rgba(255, 92, 0, 0.7);
}

.floating-cta-button:active {
    transform: scale(0.98);
}

.floating-cta-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ring-pulse 2s ease-in-out infinite;
}

@keyframes ring-pulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-15deg) scale(1.1);
    }
    75% {
        transform: rotate(15deg) scale(1.1);
    }
}

/* Responsive floating button */
@media (max-width: 640px) {
    .floating-cta {
        bottom: 16px;
        right: 16px;
    }

    .floating-cta-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Booking Modal */
.booking-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.booking-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.booking-modal {
    background: #0F1419;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.booking-modal-overlay.active .booking-modal {
    transform: scale(1) translateY(0);
}

.booking-modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.booking-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.booking-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.booking-modal-body {
    padding: 2rem;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.service-option {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.service-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 92, 0, 0.3);
    transform: translateX(4px);
}

.service-option.selected {
    background: rgba(255, 92, 0, 0.1);
    border-color: #FF5C00;
}

.service-option input[type="radio"] {
    display: none;
}

.service-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 92, 0, 0.15);
    border: 1px solid rgba(255, 92, 0, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FF5C00;
    margin-top: 0.5rem;
}

.booking-progress {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.progress-dot {
    height: 8px;
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #FF5C00;
}

.booking-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-next {
    background: #FF5C00;
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(255, 92, 0, 0.35);
}

.btn-next:hover {
    background: #e05200;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(255, 92, 0, 0.5);
}

.btn-next:disabled {
    background: rgba(255, 92, 0, 0.3);
    cursor: not-allowed;
    transform: none;
}

/* Success animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border: 3px solid #22c55e;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
