/* ═══ Dynamo Site Base Styles ═══
   Extracted from inline <style> for caching & smaller page source.
   ──────────────────────────────────────────────────────────── */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Opacity fallback — ensures bg-opacity/border-opacity utilities work
   even if Tailwind CDN regenerates CSS in unexpected order */
.bg-opacity-10 { --tw-bg-opacity: 0.1 !important }
.bg-opacity-20 { --tw-bg-opacity: 0.2 !important }
.bg-opacity-25 { --tw-bg-opacity: 0.25 !important }
.bg-opacity-30 { --tw-bg-opacity: 0.3 !important }
.bg-opacity-40 { --tw-bg-opacity: 0.4 !important }
.bg-opacity-50 { --tw-bg-opacity: 0.5 !important }
.bg-opacity-60 { --tw-bg-opacity: 0.6 !important }
.bg-opacity-70 { --tw-bg-opacity: 0.7 !important }
.bg-opacity-75 { --tw-bg-opacity: 0.75 !important }
.bg-opacity-80 { --tw-bg-opacity: 0.8 !important }
.bg-opacity-90 { --tw-bg-opacity: 0.9 !important }
.border-opacity-10 { --tw-border-opacity: 0.1 !important }
.border-opacity-20 { --tw-border-opacity: 0.2 !important }
.border-opacity-25 { --tw-border-opacity: 0.25 !important }
.border-opacity-30 { --tw-border-opacity: 0.3 !important }
.border-opacity-50 { --tw-border-opacity: 0.5 !important }
.text-opacity-50 { --tw-text-opacity: 0.5 !important }
.text-opacity-70 { --tw-text-opacity: 0.7 !important }
.text-opacity-75 { --tw-text-opacity: 0.75 !important }
.text-opacity-80 { --tw-text-opacity: 0.8 !important }
.text-opacity-90 { --tw-text-opacity: 0.9 !important }

[x-cloak] {
    display: none !important;
}

/* Counter Animation Styles */
.counter {
    transition: transform 0.3s ease;
}

.counter-animating {
    transform: scale(1.05);
}

.counter-animated {
    animation: counterPulse 0.5s ease-out;
}

@keyframes counterPulse {
    0% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* ═══ Swiper Slider Default Styles ═══ */
.swiper {
    width: 100%;
}

.swiper.swiper-hero {
    height: 100vh;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-hero .swiper-slide {
    height: 100vh;
}

.slide-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    margin-bottom: 2rem;
}

.slide-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: #3b82f6;
    color: #fff !important;
    border-radius: 9999px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.slide-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: #fff !important;
    text-decoration: none !important;
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
}

.swiper-pagination-bullet-active {
    background: #fff !important;
}

/* ═══ Prose Content Styles (blog posts, articles, rich text) ═══ */
.prose-content {
    line-height: 1.8;
}

.prose-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.prose-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.prose-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.prose-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.prose-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.prose-content p {
    margin-bottom: 1.25rem;
}

.prose-content ul,
.prose-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose-content li {
    margin-bottom: 0.5rem;
}

.prose-content ul {
    list-style-type: disc;
}

.prose-content ol {
    list-style-type: decimal;
}

.prose-content ul ul {
    list-style-type: circle;
    margin-top: 0.375rem;
    margin-bottom: 0;
}

.prose-content ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.375rem;
    margin-bottom: 0;
}

.prose-content blockquote {
    border-left: 4px solid #6366f1;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #64748b;
}

.prose-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.7;
}

.prose-content code {
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose-content pre code {
    background: transparent;
    padding: 0;
    font-size: inherit;
}

.prose-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.prose-content a {
    color: #6366f1;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.prose-content a:hover {
    color: #4f46e5;
}

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

.prose-content th,
.prose-content td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    text-align: left;
}

.prose-content th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.prose-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

.prose-content figure {
    margin: 1.5rem 0;
}

.prose-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* Dark mode variants */
.dark .prose-content code {
    background: #374151;
    color: #e5e7eb;
}

.dark .prose-content blockquote {
    color: #9ca3af;
    border-left-color: #818cf8;
}

.dark .prose-content th {
    background: #1f2937;
}

.dark .prose-content th,
.dark .prose-content td {
    border-color: #374151;
}

.dark .prose-content hr {
    border-top-color: #374151;
}

.dark .prose-content a {
    color: #818cf8;
}

.dark .prose-content a:hover {
    color: #a5b4fc;
}

/* ═══ Mobile Responsiveness ═══ */

/* Prevent iOS auto-zoom on input focus (font-size < 16px triggers zoom) */
@media screen and (max-width: 1023px) {
    @supports (-webkit-overflow-scrolling: touch) {
        input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="file"]),
        select,
        textarea {
            font-size: 16px !important;
        }
    }
}

/* Prevent horizontal overflow — use clip instead of hidden so
   position: sticky still works on header/navigation elements. */
html, body {
    overflow-x: clip;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Media elements should respect their containers */
img, video, iframe, canvas, svg, embed, object {
    max-width: 100%;
}
