/*
 * BONDTOFTE CUSTOM CSS - NEXT.JS TO WORDPRESS CONVERSION
 * Matches the modern glassmorphism design exactly
 */

/* === RESET & BASE STYLES === */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    background-color: #f2f2f2;
}

/* Hide WordPress admin bar */
html {
    margin-top: 0 !important;
}
#wpadminbar {
    display: none !important;
}

/* === UTILITY CLASSES (TAILWIND STYLE) === */
.min-h-screen { min-height: 100vh; }
.max-w-6xl { max-width: 72rem; margin: 0 auto; }
.max-w-7xl { max-width: 80rem; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.text-center { text-align: center; }
.text-white { color: white; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.no-underline { text-decoration: none; }
.cursor-pointer { cursor: pointer; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.top-full { top: 100%; }
.left-0 { left: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }
.w-6 { width: 1.5rem; }
.w-5 { width: 1.25rem; }
.w-4 { width: 1rem; }
.w-3 { width: 0.75rem; }
.w-10 { width: 2.5rem; }
.w-full { width: 100%; }
.w-80 { width: 20rem; }
.w-32 { width: 8rem; }
.w-40 { width: 10rem; }
.w-24 { width: 6rem; }
.w-1\.5 { width: 0.375rem; }
.h-6 { height: 1.5rem; }
.h-5 { height: 1.25rem; }
.h-4 { height: 1rem; }
.h-3 { height: 0.75rem; }
.h-10 { height: 2.5rem; }
.h-full { height: 100%; }
.h-12 { height: 3rem; }
.h-32 { height: 8rem; }
.h-40 { height: 10rem; }
.h-24 { height: 6rem; }
.h-1\.5 { height: 0.375rem; }
.min-w-56 { min-width: 14rem; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-b-4 { border-bottom-width: 4px; }
.border-l-2 { border-left-width: 2px; }
.border-t { border-top-width: 1px; }
.border-t-2 { border-top-width: 2px; }
.border-transparent { border-color: transparent; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.group { /* Group utility for hover states */ }
.transition-all { transition-property: all; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; }
.transition-transform { transition-property: transform; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.whitespace-nowrap { white-space: nowrap; }
.leading-relaxed { line-height: 1.625; }
.opacity-90 { opacity: 0.9; }
.opacity-10 { opacity: 0.1; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.invisible { visibility: hidden; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.blur-3xl { filter: blur(64px); }

/* Transform utilities */
.scale-105 { transform: scale(1.05); }
.scale-150 { transform: scale(1.5); }
.translate-x-full { transform: translateX(100%); }
.translate-x-1 { transform: translateX(0.25rem); }
.translate-x-2 { transform: translateX(0.5rem); }

/* === BONDTOFTE HEADER STYLES === */
.bondtofte-header {
    background: #005073;
    color: white;
}

.bondtofte-nav {
    background: #003d57;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop Menu Styles */
.bondtofte-menu-desktop {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.bondtofte-menu-desktop li {
    position: relative;
    margin: 0 0.25rem;
}

.bondtofte-menu-desktop li a {
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 4px solid transparent;
    white-space: nowrap;
    display: inline-block;
}

.bondtofte-menu-desktop li a:hover,
.bondtofte-menu-desktop li a.bondtofte-active {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: #00a8cc;
    color: #00a8cc;
}

/* Dropdown Styles */
.bondtofte-menu-desktop li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.bondtofte-menu-desktop .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #003d57;
    min-width: 14rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
    border-top: 2px solid #00a8cc;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.bondtofte-menu-desktop .sub-menu li {
    margin: 0;
}

.bondtofte-menu-desktop .sub-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
    border-bottom: none;
    margin: 0;
}

/* Mobile Menu Styles */
.bondtofte-menu-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bondtofte-menu-mobile li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.bondtofte-menu-mobile li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bondtofte-menu-mobile li.current-menu-item a {
    background: #00a8cc;
    color: white;
}

.bondtofte-menu-mobile .sub-menu a {
    font-size: 0.875rem;
    opacity: 0.9;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
}

/* === BONDTOFTE FOOTER STYLES === */
.bondtofte-footer {
    position: relative;
    margin-top: 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
}

.bondtofte-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

/* Glassmorphism Cards */
.bondtofte-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.bondtofte-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.group:hover .bondtofte-card {
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.2);
}

.group:nth-child(2):hover .bondtofte-card {
    box-shadow: 0 25px 50px -12px rgba(147, 51, 234, 0.2);
}

.group:nth-child(3):hover .bondtofte-card {
    box-shadow: 0 25px 50px -12px rgba(34, 197, 94, 0.2);
}

.group:nth-child(4):hover .bondtofte-card {
    box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.2);
}

/* Gradient Text */
.bondtofte-gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer Links */
.bondtofte-footer-link:hover {
    color: white;
    transform: translateX(0.5rem);
}

.bondtofte-footer-link .group\/link:hover span {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Color utilities */
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-green-400 { color: #4ade80; }
.text-cyan-300 { color: #67e8f9; }
.text-cyan-400 { color: #22d3ee; }
.bg-green-400 { background-color: #4ade80; }
.bg-blue-400 { background-color: #60a5fa; }
.bg-cyan-400 { background-color: #22d3ee; }
.bg-purple-400 { background-color: #a855f7; }
.bg-pink-400 { background-color: #f472b6; }

/* Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }

.from-slate-900 { --tw-gradient-from: #0f172a; --tw-gradient-to: rgb(15 23 42 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-blue-900 { --tw-gradient-to: rgb(30 58 138 / 0); --tw-gradient-stops: var(--tw-gradient-from), #1e3a8a, var(--tw-gradient-to); }
.to-slate-800 { --tw-gradient-to: #1e293b; }
.from-black\/50 { --tw-gradient-from: rgb(0 0 0 / 0.5); --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-transparent { --tw-gradient-to: transparent; }

.from-blue-500 { --tw-gradient-from: #3b82f6; --tw-gradient-to: rgb(59 130 246 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-cyan-500 { --tw-gradient-to: #06b6d4; }
.from-purple-500 { --tw-gradient-from: #a855f7; --tw-gradient-to: rgb(168 85 247 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-pink-500 { --tw-gradient-to: #ec4899; }
.from-green-500 { --tw-gradient-from: #22c55e; --tw-gradient-to: rgb(34 197 94 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-emerald-500 { --tw-gradient-to: #10b981; }
.from-orange-500 { --tw-gradient-from: #f97316; --tw-gradient-to: rgb(249 115 22 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-red-500 { --tw-gradient-to: #ef4444; }
.from-orange-600 { --tw-gradient-from: #ea580c; --tw-gradient-to: rgb(234 88 12 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-red-600 { --tw-gradient-to: #dc2626; }

/* Background utilities */
.bg-white\/5 { background-color: rgb(255 255 255 / 0.05); }
.bg-white\/10 { background-color: rgb(255 255 255 / 0.1); }
.bg-white\/15 { background-color: rgb(255 255 255 / 0.15); }
.bg-white\/20 { background-color: rgb(255 255 255 / 0.2); }
.bg-black { background-color: #000; }
.bg-black\/50 { background-color: rgb(0 0 0 / 0.5); }

/* Border utilities */
.border-white\/10 { border-color: rgb(255 255 255 / 0.1); }
.border-white\/20 { border-color: rgb(255 255 255 / 0.2); }

/* Backdrop filter */
.backdrop-blur-lg { backdrop-filter: blur(16px); }

/* Animations */
@keyframes bondtofte-pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

.bondtofte-blob-1 {
    animation: bondtofte-pulse 2s ease-in-out infinite;
}

.bondtofte-blob-2 {
    animation: bondtofte-pulse 2.5s ease-in-out infinite;
    animation-delay: 1s;
}

.bondtofte-blob-3 {
    animation: bondtofte-pulse 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* Hover states */
.hover\:text-white:hover { color: white; }
.hover\:text-cyan-300:hover { color: #67e8f9; }
.hover\:text-cyan-400:hover { color: #22d3ee; }
.hover\:bg-white\/10:hover { background-color: rgb(255 255 255 / 0.1); }
.hover\:bg-white\/15:hover { background-color: rgb(255 255 255 / 0.15); }
.hover\:border-\[#00a8cc\]:hover { border-color: #00a8cc; }
.hover\:text-\[#00a8cc\]:hover { color: #00a8cc; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:translate-x-2:hover { transform: translateX(0.5rem); }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.hover\:shadow-orange-500\/50:hover { box-shadow: 0 10px 15px -3px rgb(249 115 22 / 0.5), 0 4px 6px -4px rgb(249 115 22 / 0.5); }
.hover\:from-orange-600:hover { --tw-gradient-from: #ea580c; --tw-gradient-to: rgb(234 88 12 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.hover\:to-red-600:hover { --tw-gradient-to: #dc2626; }

/* Group hover states */
.group\/link:hover .group-hover\/link\:scale-150 { transform: scale(1.5); }
.group\/btn:hover .group-hover\/btn\:animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.group\/btn:hover .group-hover\/btn\:translate-x-1 { transform: translateX(0.25rem); }

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:visible { visibility: visible; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* Focus states */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* === RESPONSIVE DESIGN === */
@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:flex-row { flex-direction: row; }
    .lg\:space-y-0 > * + * { margin-top: 0; }
}

/* === WORDPRESS COMPATIBILITY === */
/* Override Divi styles that might conflict */
#et-main-area {
    background: transparent !important;
}

#main-content {
    background: #f2f2f2;
    min-height: 60vh;
}

/* Ensure proper spacing */
.bondtofte-footer {
    clear: both;
}

/* Hide original Divi footer if present */
#main-footer {
    display: none !important;
}

/* Copyright text gradient */
.bondtofte-copyright {
    background: linear-gradient(135deg, #9ca3af 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Better mobile menu positioning */
@media (max-width: 767px) {
    #bondtofte-mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 20rem;
        max-width: 80vw;
        background: #003d57;
        z-index: 50;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
    }
    
    #bondtofte-mobile-menu.open {
        transform: translateX(0);
    }
    
    .bondtofte-menu-mobile .sub-menu {
        padding-left: 1rem;
    }
}

/* Ensure text readability */
.bondtofte-footer .text-gray-300,
.bondtofte-footer .text-gray-400 {
    color: rgba(209, 213, 219, 0.9);
}

.bondtofte-footer strong {
    color: white;
}

/* Button hover effects */
.bondtofte-footer .group\/btn {
    position: relative;
    overflow: hidden;
}

.bondtofte-footer .group\/btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bondtofte-footer .group\/btn:hover::before {
    opacity: 1;
}

/* Accessibility improvements */
.bondtofte-footer a:focus,
.bondtofte-nav a:focus,
button:focus {
    outline: 2px solid #00a8cc;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .bondtofte-footer,
    .bondtofte-nav {
        display: none;
    }
}