/**
 * Custom CSS additions for Rolreefsystemen
 * 
 * Additional styles to complement Tailwind CSS
 */

/* Headings - Hedvig Letters Serif */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
   font-family: 'Hedvig Letters Serif', serif !important;
}

h1, h2,
.h1, .h2,  {
   font-family: 'Hedvig Letters Serif', serif !important;
   letter-spacing: -1.61px;
}

/* Body text - Inter */
body, p, span, div, a, li, td, th, input, textarea, select, button {
   font-family: 'Inter', sans-serif !important;
}

/* Headings and their children inherit serif font */
h1 span, h2 span, h3 span {
   font-family: 'Hedvig Letters Serif', serif !important;
}

/* Ocean Dark Background Override */
.bg-ocean-dark {
    --tw-bg-opacity: 1;
    background-color: rgb(7 29 57) !important;
}

/* Product Description Styling */
.product-description {
    color: #1E3A5F;
    line-height: 1.7;
    max-width: none;
}

.product-description h2 {
    color: #1E3A5F;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    line-height: 1.2;
    font-family: 'Hedvig Letters Serif', serif !important;
}

.product-description h3 {
    color: #1E3A5F;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    line-height: 1.3;
    font-family: 'Hedvig Letters Serif', serif !important;
}

.product-description h4 {
    color: #4A90E2;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.25rem;
    line-height: 1.4;
    font-family: 'Hedvig Letters Serif', serif !important;
}

.product-description h5 {
    color: #4A90E2;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    line-height: 1.4;
    font-family: 'Hedvig Letters Serif', serif !important;
}

.product-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-family: 'Inter', sans-serif !important;
}

.product-description ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.product-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style-type: decimal;
}

.product-description li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-family: 'Inter', sans-serif !important;
}

.product-description strong {
    color: #1E3A5F;
    font-weight: 600;
}

.product-description em {
    font-style: italic;
    color: #4A90E2;
}

/* First heading has no top margin */
.product-description h2:first-child,
.product-description h3:first-child,
.product-description h4:first-child,
.product-description h5:first-child {
    margin-top: 0;
}

/* Prose Ocean - Product Description Typography */
.prose-ocean {
    color: #374151;
    line-height: 1.7;
    max-width: none;
}

.prose-ocean h1 {
    color: #1E3A5F;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    line-height: 1.2;
    font-family: 'Hedvig Letters Serif', serif !important;
}

.prose-ocean h2 {
    color: #1E3A5F;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    line-height: 1.25;
    font-family: 'Hedvig Letters Serif', serif !important;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E6F3FF;
}

.prose-ocean h3 {
    color: #1E3A5F;
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.75rem;
    line-height: 1.3;
    font-family: 'Hedvig Letters Serif', serif !important;
}

.prose-ocean h4 {
    color: #1E3A5F;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    line-height: 1.4;
    font-family: 'Hedvig Letters Serif', serif !important;
}

.prose-ocean p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #4b5563;
    font-family: 'Inter', sans-serif !important;
}

.prose-ocean ul {
    margin-bottom: 1.25rem;
    margin-top: 0.75rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.prose-ocean ol {
    margin-bottom: 1.25rem;
    margin-top: 0.75rem;
    padding-left: 1.5rem;
    list-style-type: decimal;
}

.prose-ocean li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #4b5563;
    font-family: 'Inter', sans-serif !important;
}

.prose-ocean li::marker {
    color: #1E3A5F;
}

.prose-ocean strong {
    color: #1E3A5F;
    font-weight: 600;
}

.prose-ocean em {
    font-style: italic;
}

.prose-ocean a {
    color: #ea580c;
    text-decoration: underline;
    transition: color 0.2s;
}

.prose-ocean a:hover {
    color: #1E3A5F;
}

.prose-ocean blockquote {
    border-left: 4px solid #1E3A5F;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.prose-ocean table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.prose-ocean th {
    background: #1E3A5F;
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}

.prose-ocean td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.prose-ocean tr:hover td {
    background: #f9fafb;
}

/* First elements have no top margin */
.prose-ocean > h1:first-child,
.prose-ocean > h2:first-child,
.prose-ocean > h3:first-child,
.prose-ocean > h4:first-child,
.prose-ocean > p:first-child {
    margin-top: 0;
}

/* Last elements have no bottom margin */
.prose-ocean > p:last-child,
.prose-ocean > ul:last-child,
.prose-ocean > ol:last-child {
    margin-bottom: 0;
}

.category-description ul li {
    position: relative;
    padding-left: 24px;
    list-style: none;
}

.category-description ul li::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 0;
    color: #009b4d; /* green, adjust as needed */
}

.prose-ocean  .category-description ul {
    position: relative;
    padding-left: 0px;
    list-style: none;
}

/* Blog Content Styling */
.blog-content {
    color: #374151;
    line-height: 1.8;
    font-size: 1.125rem;
}

.blog-content h2 {
    color: #1E3A5F;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    line-height: 1.3;
    font-family: 'Hedvig Letters Serif', serif !important;
}

.blog-content h3 {
    color: #1E3A5F;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
    line-height: 1.4;
    font-family: 'Hedvig Letters Serif', serif !important;
}

.blog-content h4 {
    color: #1E3A5F;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    line-height: 1.4;
    font-family: 'Hedvig Letters Serif', serif !important;
}

.blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-family: 'Inter', sans-serif !important;
}

.blog-content ul {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.blog-content ol {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    padding-left: 1.5rem;
    list-style-type: decimal;
}

.blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    padding-left: 0.5rem;
    font-family: 'Inter', sans-serif !important;
}

.blog-content strong {
    color: #1E3A5F;
    font-weight: 600;
}

.blog-content em {
    font-style: italic;
}

.blog-content a {
    color: #4A90E2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-content a:hover {
    color: #1E3A5F;
}

.blog-content .product-box-wrapper a {
    text-decoration: none;
    color: inherit;
}

.blog-content blockquote {
    border-left: 4px solid #4A90E2;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6B7280;
}

.blog-content img {
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.blog-content hr {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 2.5rem 0;
}

/* First heading has no top margin */
.blog-content h2:first-child,
.blog-content h3:first-child,
.blog-content h4:first-child {
    margin-top: 0;
}

/* ============================================
   Homepage Styles
   ============================================ */

/* Homepage Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Product card hover effects */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

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

.product-image {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Feature card effects */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(30, 58, 95, 0.25);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    transition: transform 0.3s ease;
}

/* Trust badge hover */
.trust-badge {
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: scale(1.05);
}

.trust-badge:hover .trust-icon {
    transform: rotateY(180deg);
}

.trust-icon {
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

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

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

/* ============================================
   Footer Styles
   ============================================ */

/* Footer social link hover effects */
.footer-social-link {
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

/* Footer link hover effects */
.footer-link {
    transition: all 0.2s ease;
}

.footer-link:hover {
    padding-left: 4px;
}

/* Footer back to top button */
.footer-back-to-top {
    transition: all 0.3s ease;
}

.footer-back-to-top:hover {
    transform: translateY(-2px);
}