/* ═══════════════════════════════════════════════
   AUTO-JAR — Design System (Vanilla CSS)
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────── */
:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 10%;
    --card: 0 0% 99%;
    --card-foreground: 240 10% 10%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 10%;
    --primary: 24 95% 53%;
    --primary-foreground: 0 0% 100%;
    --secondary: 240 5% 93%;
    --secondary-foreground: 240 10% 15%;
    --muted: 240 5% 93%;
    --muted-foreground: 240 5% 40%;
    --accent: 24 95% 53%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --border: 240 5% 88%;
    --input: 240 5% 88%;
    --ring: 24 95% 53%;
    --radius: 0.75rem;
}

.dark {
    --background: 220 15% 8%;
    --foreground: 0 0% 95%;
    --card: 220 15% 10%;
    --card-foreground: 0 0% 95%;
    --popover: 220 15% 10%;
    --popover-foreground: 0 0% 95%;
    --primary: 24 95% 53%;
    --primary-foreground: 0 0% 100%;
    --secondary: 220 15% 15%;
    --secondary-foreground: 0 0% 90%;
    --muted: 220 15% 15%;
    --muted-foreground: 220 10% 55%;
    --accent: 24 95% 53%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --border: 220 15% 18%;
    --input: 220 15% 18%;
    --ring: 24 95% 53%;
}

/* ── Reset & Base ──────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: hsl(24 95% 53%) transparent;
    scrollbar-width: thin;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: hsl(24 95% 53%);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(24 95% 60%);
}

::selection {
    background-color: hsl(24 95% 53% / 0.25);
    color: hsl(240 10% 10%);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

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

img,
video {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* ── Container ─────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ── Typography ────────────────────────────────── */
.font-heading {
    font-family: 'Space Grotesk', sans-serif;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.text-base {
    font-size: 1rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.75;
}

.italic {
    font-style: italic;
}

.text-foreground {
    color: hsl(var(--foreground));
}

.text-muted-foreground {
    color: hsl(var(--muted-foreground));
}

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

.text-white {
    color: #fff;
}

.text-gradient {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(36 100% 60%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Layout Utilities ──────────────────────────── */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.block {
    display: block;
}

.hidden {
    display: none;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.inset-0 {
    inset: 0;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.shrink-0 {
    flex-shrink: 0;
}

.min-w-0 {
    min-width: 0;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-10 {
    gap: 2.5rem;
}

.w-full {
    width: 100%;
}

.w-fit {
    width: fit-content;
}

.h-full {
    height: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.text-center {
    text-center: center;
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Spacing */
.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pb-16 {
    padding-bottom: 4rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mt-0\.5 {
    margin-top: 0.125rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.ml-6 {
    margin-left: 1.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

/* ── Grid System ───────────────────────────────── */
.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .md\:py-28 {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    .md\:p-8 {
        padding: 2rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
    }

    .md\:text-6xl {
        font-size: 3.75rem;
    }

    .md\:text-xl {
        font-size: 1.25rem;
    }

    .md\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .lg\:grid-cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }

    .lg\:flex {
        display: flex;
    }

    .lg\:hidden {
        display: none;
    }
}

/* ── Responsive show/hide ──────────────────────── */
@media (min-width: 640px) {
    .sm\:flex {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex;
    }
}

/* ── Components: Card ──────────────────────────── */
.card {
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    border-color: hsl(var(--primary) / 0.3);
}

.card-content {
    padding: 1.25rem;
}

/* ── Components: Button ────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.625rem 1.25rem;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    padding: 0.625rem 1.25rem;
}

.btn-outline:hover {
    background: hsl(var(--secondary));
}

.btn-ghost {
    background: transparent;
    color: hsl(var(--foreground));
    padding: 0.5rem;
}

.btn-ghost:hover {
    background: hsl(var(--secondary));
}

.btn-icon {
    padding: 0.625rem;
}

.btn-full {
    width: 100%;
}

/* Button glow */
.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, hsl(24 95% 53% / 0.4), hsl(36 100% 60% / 0.2));
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-glow:hover::after {
    opacity: 1;
}

/* ── Components: Badge / Pill ──────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-primary {
    background: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
}

.badge-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── Components: Form ──────────────────────────── */
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: hsl(var(--muted-foreground) / 0.5);
}

.form-input:focus,
.form-textarea:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.form-textarea {
    resize: none;
}

/* ── Header ────────────────────────────────────── */
.site-header {
    position: relative;
    z-index: 50;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, box-shadow 0.4s ease;
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border) / 0.3);
}

/* Transparent header on homepage — overlaps hero */
.site-header.header-transparent {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom-color: transparent;
}

/* Dark gradient overlay for readability on transparent header */
.site-header.header-transparent::before {
    content: '';
    position: absolute;
    inset: 0;
    bottom: -2rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.4s ease;
}

/* Hide gradient when scrolled (glass takes over) */
.site-header.header-transparent.header-fixed::before {
    opacity: 0;
}

/* White text for transparent header */
.site-header.header-transparent:not(.header-fixed) .nav-link {
    color: rgba(255,255,255,0.85);
}
.site-header.header-transparent:not(.header-fixed) .nav-link:hover {
    color: #fff;
}
.site-header.header-transparent:not(.header-fixed) .nav-icon-link {
    color: rgba(255,255,255,0.85);
}
.site-header.header-transparent:not(.header-fixed) .nav-icon-link:hover {
    color: #fff;
}
.site-header.header-transparent:not(.header-fixed) .theme-toggle {
    color: rgba(255,255,255,0.85);
}
.site-header.header-transparent:not(.header-fixed) .mobile-toggle {
    color: rgba(255,255,255,0.85);
}

/* Show light logo (white) on transparent, hide dark logo */
.site-header.header-transparent:not(.header-fixed) .logo-light {
    display: none;
}
.site-header.header-transparent:not(.header-fixed) .logo-dark {
    display: block;
}
/* In dark mode, transparent header already shows the correct (light) logo */
.dark .site-header.header-transparent:not(.header-fixed) .logo-light {
    display: none;
}
.dark .site-header.header-transparent:not(.header-fixed) .logo-dark {
    display: block;
}

/* When scrolled past header — becomes fixed with liquid glass */
.site-header.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: hsl(var(--background) / 0.65);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-bottom-color: hsl(var(--border) / 0.3);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 hsl(var(--background) / 0.3);
}

/* Animate only from non-transparent (standard pages) */
.site-header.header-fixed:not(.header-transparent) {
    animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.site-header .header-inner {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
}

.site-header .logo {
    height: 2rem;
    width: auto;
}

.site-header .logo-dark {
    display: none;
}

.dark .site-header .logo-light {
    display: none;
}

.dark .site-header .logo-dark {
    display: block;
}

/* Desktop nav */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.nav-link:hover {
    color: hsl(var(--foreground));
}

.nav-link.active {
    color: hsl(var(--primary));
}

/* Serwis dropdown */
.serwis-dropdown {
    position: relative;
}

.serwis-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 0.5rem;
    width: 18rem;
    display: none;
    z-index: 99;
}

.serwis-dropdown:hover .dropdown-panel,
.dropdown-panel.open {
    display: block;
}

.dropdown-inner {
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-height: 70vh;
    overflow-y: auto;
}

.dropdown-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    transition: all 0.15s;
}

.dropdown-link:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--secondary));
}

.dropdown-link.featured {
    color: hsl(var(--primary));
    font-weight: 500;
}

.dropdown-link.featured:hover {
    background: hsl(var(--primary) / 0.1);
}

.dropdown-divider {
    border-top: 1px solid hsl(var(--border));
    margin: 0.25rem 0;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s ease;
}

.nav-icon-link:hover {
    color: hsl(var(--primary));
}

.header-phone-btn {
    display: none;
}

@media (min-width: 640px) {
    .header-phone-btn {
        display: inline-flex;
    }
}

/* Mobile menu */
.mobile-toggle {
    display: flex;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20rem;
    background: hsl(var(--background));
    border-left: 1px solid hsl(var(--border));
    z-index: 101;
    padding: 2rem 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-panel.open {
    transform: translateX(0);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    transition: all 0.15s;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    border: none;
    background: none !important;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    outline: none;
    box-shadow: none;
}

button.mobile-nav-link {
    background: none !important;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    color: hsl(var(--foreground));
}

.mobile-nav-link:hover {
    background: hsl(var(--secondary));
}

.mobile-nav-link.active {
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
}

.mobile-nav-link .chevron {
    color: hsl(var(--muted-foreground));
}

.mobile-sub-menu {
    margin-left: 1rem;
    display: none;
}

.mobile-sub-menu.open {
    display: block;
}

.mobile-sub-link {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    transition: all 0.15s;
}

.mobile-sub-link:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--secondary));
}

.mobile-sub-link.featured {
    color: hsl(var(--primary));
    font-weight: 500;
}

.dropdown-divider {
    height: 1px;
    background: hsl(var(--border));
}

/* ── Theme Toggle ──────────────────────────────── */
.theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
    transition: background 0.2s;
}

.theme-toggle:hover {
    background: hsl(var(--secondary));
}

.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

.dark .theme-toggle .icon-sun {
    display: block;
}

.dark .theme-toggle .icon-moon {
    display: none;
}

/* ── Footer ────────────────────────────────────── */
.site-footer {
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-logo {
    height: 2rem;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo.dark-only {
    display: none;
}

.dark .footer-logo.light-only {
    display: none;
}

.dark .footer-logo.dark-only {
    display: block;
}

.footer-link {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.footer-link:hover {
    color: hsl(var(--primary));
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* ── Floating Phone ────────────────────────────── */
.floating-phone {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: hsl(var(--primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px hsl(24 95% 53% / 0.4);
    z-index: 40;
    transition: transform 0.2s, box-shadow 0.2s;
}

.floating-phone:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px hsl(24 95% 53% / 0.5);
}

.floating-phone svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ── Hero Section ──────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay-lr {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.hero-overlay-bt {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent, rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-content h1,
.hero-content h2,
.hero-content h3,
.hero-content p {
    color: #fff;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.7);
}

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

.section-heading h2 {
    font-size: 1.875rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .section-heading h2 {
        font-size: 2.25rem;
    }
}

.section-heading p {
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* ── SVG Icons (inline) ────────────────────────── */
.icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 1.75rem;
    height: 1.75rem;
}

.icon-xs {
    width: 0.875rem;
    height: 0.875rem;
}

.icon-primary {
    color: hsl(var(--primary));
}

/* ── Animations ────────────────────────────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

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

    50% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@keyframes bounce-gentle {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.6;
    }
}

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

.shimmer-text {
    background: linear-gradient(110deg,
            hsl(24 95% 50%) 0%,
            hsl(24 95% 50%) 30%,
            hsl(45 100% 85%) 50%,
            hsl(24 95% 50%) 70%,
            hsl(24 95% 50%) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3.5s ease-in-out infinite;
}

.scroll-indicator {
    animation: bounce-gentle 2s ease-in-out infinite;
}

.gradient-border {
    position: relative;
    overflow: hidden;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(135deg, hsl(24 95% 53%), hsl(36 100% 60%), hsl(24 95% 53%));
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ── Glassmorphism ─────────────────────────────── */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass {
    background: rgba(15, 18, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Aspect Ratios ─────────────────────────────── */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1;
}

/* ── Rounded ───────────────────────────────────── */
.rounded-lg {
    border-radius: var(--radius);
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-md {
    border-radius: 0.375rem;
}

/* ── Borders ───────────────────────────────────── */
.border {
    border: 1px solid hsl(var(--border));
}

.border-t {
    border-top: 1px solid hsl(var(--border));
}

.border-b {
    border-bottom: 1px solid hsl(var(--border));
}

/* ── Backgrounds ───────────────────────────────── */
.bg-background {
    background: hsl(var(--background));
}

.bg-card {
    background: hsl(var(--card));
}

.bg-secondary {
    background: hsl(var(--secondary));
}

/* ── Icon containers ───────────────────────────── */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.icon-box-sm {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
}

.icon-box-md {
    width: 2.75rem;
    height: 2.75rem;
}

.icon-box-lg {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
}

.icon-box-primary {
    background: hsl(var(--primary) / 0.1);
}

.icon-box-circle {
    border-radius: 50%;
}

/* ── Transitions ───────────────────────────────── */
.transition-colors {
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.5s ease;
}

/* Hover transform */
.hover-scale:hover {
    transform: scale(1.05);
}

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

.group:hover .group-hover-primary {
    color: hsl(var(--primary));
}

.group:hover .group-hover-primary-bg {
    background: hsl(var(--primary) / 0.1);
}

/* ── Max width ─────────────────────────────────── */
.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

/* ── Z-Index ───────────────────────────────────── */
.z-10 {
    z-index: 10;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* ── Page transition ───────────────────────────── */
#content {
    transition: opacity 0.25s ease;
}

#content.fading {
    opacity: 0;
}

/* ── Scroll margin for anchors ─────────────────── */
.scroll-mt-20 {
    scroll-margin-top: 5rem;
}

/* ── Stagger delay helpers ─────────────────────── */
.delay-1 {
    transition-delay: 0.08s;
}

.delay-2 {
    transition-delay: 0.16s;
}

.delay-3 {
    transition-delay: 0.24s;
}

.delay-4 {
    transition-delay: 0.32s;
}

.delay-5 {
    transition-delay: 0.40s;
}

/* ── Star rating ───────────────────────────────── */
.star-filled {
    fill: hsl(var(--primary));
    color: hsl(var(--primary));
}

/* ── Hero Slider ───────────────────────────────── */
.hero-slider {
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {

    /* On mobile: let content dictate height instead of 100dvh */
    .hero-slider {
        height: auto !important;
        min-height: auto !important;
    }

    .hero-slide {
        position: relative !important;
        inset: auto !important;
        display: none;
    }

    .hero-slide.active {
        display: block;
    }

    .hero-slider .container {
        height: auto !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        padding-top: 5rem !important;
        padding-bottom: 2rem !important;
    }

    /* Hide arrows on mobile — swipe / dots to navigate */
    .hero-slider .hero-arrow {
        display: none;
    }

    /* Smaller stat values on mobile */
    .hero-slider .stat-value {
        font-size: 1.75rem !important;
    }

    .hero-slider #hero-stats {
        gap: 1rem !important;
        flex-wrap: wrap;
    }

    .hero-slider #hero-stats .text-xs {
        font-size: 0.65rem;
    }

    .hero-dots {
        bottom: 0.25rem;
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}


.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.hero-arrow:hover {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.hero-arrow-left {
    left: 1rem;
}

.hero-arrow-right {
    right: 1rem;
}

@media (max-width: 767px) {
    .hero-arrow {
        width: 2.25rem;
        height: 2.25rem;
    }

    .hero-arrow-left {
        left: 0.5rem;
    }

    .hero-arrow-right {
        right: 0.5rem;
    }
}

@media (min-width: 768px) {
    .hero-arrow-left {
        left: 1.5rem;
    }

    .hero-arrow-right {
        right: 1.5rem;
    }
}

.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

@media (max-width: 767px) {
    .hero-dots {
        bottom: 0.75rem;
    }
}

.hero-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    background: hsl(var(--primary));
    width: 1.5rem;
    border-radius: 9999px;
}

/* ── Promo Banner ──────────────────────────────── */
.promo-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    min-height: 280px;
}

@media (min-width: 768px) {
    .promo-banner {
        min-height: 340px;
    }
}

/* Promo slider dots — visible in both light and dark modes */
.promo-dot.hero-dot {
    background: hsl(var(--muted-foreground) / 0.3);
}

.promo-dot.hero-dot.active {
    background: hsl(var(--primary));
    width: 1.5rem;
    border-radius: 9999px;
}

/* Equal-height promo slides */
.promo-slide .card {
    min-height: 220px;
}

@media (min-width: 768px) {
    .promo-slide .card {
        min-height: 240px;
    }
}

/* ── Gallery hover ─────────────────────────────── */
.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ── Table ─────────────────────────────────────── */
.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
}

.price-table th {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.price-table td {
    font-size: 0.875rem;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table .price-value {
    font-weight: 600;
    color: hsl(var(--primary));
    text-align: right;
}

.price-table th:last-child {
    text-align: right;
}

/* ── Loading spinner ───────────────────────────── */
.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ── Counter stats ─────────────────────────────── */
.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 3rem;
    }
}

/* ═══ CMS Highlight (admin preview spotlight) ═══ */
.cms-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 99999;
    cursor: pointer;
    animation: cms-fade-in 0.3s ease;
}

@keyframes cms-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes cms-outline-pulse {

    0%,
    100% {
        outline-color: hsl(24 95% 53% / 1);
        box-shadow: 0 0 20px 4px hsl(24 95% 53% / 0.4);
    }

    50% {
        outline-color: hsl(24 95% 53% / 0.5);
        box-shadow: 0 0 8px 2px hsl(24 95% 53% / 0.15);
    }
}

.cms-highlight {
    outline: 3px solid hsl(24 95% 53% / 0.8);
    outline-offset: 4px;
    border-radius: 6px;
    animation: cms-outline-pulse 1.5s ease-in-out infinite;
}