/* Performance: Reserve space for icon font to prevent CLS */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-display: block;
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

/* Performance: Optimize image rendering */
img {
    content-visibility: auto;
}

/* Performance: GPU acceleration for animations */
.transition-transform,
.transition-all,
.transition-opacity {
    will-change: auto;
}

/* Performance: Reduce paint on scroll */
.site-header {
    contain: layout style paint;
}

.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    user-select: none;
}

.brand-wordmark--lg {
    font-size: 1.75rem;
}

@media (min-width: 640px) {
    .brand-wordmark--lg {
        font-size: 2rem;
    }
}

.brand-wordmark--md {
    font-size: 1.5rem;
}

.brand-wordmark--sm {
    font-size: 1.125rem;
}

.brand-wordmark-menu {
    color: #ea580c;
}

.brand-wordmark-q {
    color: #191c1d;
}

.brand-wordmark--on-dark .brand-wordmark-menu {
    color: #ffb380;
}

.brand-wordmark--on-dark .brand-wordmark-q {
    color: #0f0f10;
}

.glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.gradient-cta {
    background: linear-gradient(135deg, #a04100 0%, #ff6b00 100%);
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: #f8f9fa;
    color: #191c1d;
}

h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #52525b;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link-active {
    color: #ea580c;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
}

@media (min-width: 1024px) {
    .site-header-inner {
        min-height: 4.5rem;
    }
}

.site-header-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #52525b;
    transition: color 0.2s, background-color 0.2s;
    white-space: nowrap;
}

.site-header-link:hover {
    color: #ea580c;
    background-color: #fff7ed;
}

.site-header-call {
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    text-decoration: none;
}

.site-header-call:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
}

.site-header-call-icon {
    font-size: 1.125rem;
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

.site-header-call-label {
    white-space: nowrap;
}

.site-header-call-number {
    padding-left: 0.375rem;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 600;
    opacity: 0.95;
}

.site-header-call-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.site-header-call-compact .material-symbols-outlined {
    font-size: 1.25rem;
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

.site-header-panel {
    align-items: center;
    padding: 0.625rem 1.125rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #a04100 0%, #ff6b00 100%);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.site-header-panel:hover {
    color: #fff;
    opacity: 0.92;
    transform: translateY(-1px);
}

.site-header-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #18181b;
    transition: background-color 0.2s;
}

.site-header-menu-btn:hover {
    background: #f4f4f5;
}

.site-header-call-mobile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
}

.site-header-call-mobile .material-symbols-outlined {
    font-size: 1.5rem;
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.marketing-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #18181b;
}

.marketing-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e4e4e7;
    background: #fafafa;
    font-size: 0.9375rem;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.marketing-form-input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.25);
    background: #fff;
}

.marketing-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #a04100 0%, #ff6b00 100%);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.marketing-form-submit:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.marketing-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: #f4f4f5;
    border-radius: 0.875rem;
}

.form-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #71717a;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.form-tab--active {
    background: #fff;
    color: #ea580c;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

#mobileMenuPanel {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

#mobileMenuPanel.open {
    transform: translateX(0);
}

.legal-article {
    scroll-margin-top: 7rem;
}

.legal-article h2 {
    color: #18181b;
}

.legal-article h3 {
    color: #27272a;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1rem;
}

.legal-article p,
.legal-article li {
    color: #52525b;
    line-height: 1.75;
}

.legal-article ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.legal-article ul li + li {
    margin-top: 0.25rem;
}

.section-label {
    display: inline-block;
    padding: 0.375rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #a04100;
    background-color: #ffdbcc;
    border-radius: 9999px;
}

.site-footer {
    background: linear-gradient(160deg, #7a3000 0%, #a04100 35%, #ff6b00 100%);
    color: #fff;
}

.site-footer-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.25rem;
}

.site-footer-muted {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.site-footer-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    font-weight: 500;
}

.site-footer-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s, opacity 0.2s;
}

.site-footer-link:hover {
    color: #fff;
    opacity: 1;
}

.site-footer-contact {
    font-weight: 600;
    font-size: 0.9375rem;
}

.site-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.625rem 1.125rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.75rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.site-footer-cta:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.site-footer-social {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.site-footer-social:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.site-footer-bottom {
    font-weight: 600;
    font-size: 0.875rem;
}

.call-fab {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    z-index: 55;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.125rem;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: call-fab-pulse 2.5s ease-in-out infinite;
}

.call-fab:active {
    transform: scale(0.96);
}

.call-fab-icon {
    font-size: 1.375rem;
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

.call-fab-text {
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@keyframes call-fab-pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45);
    }
    50% {
        box-shadow: 0 8px 32px rgba(22, 163, 74, 0.65), 0 0 0 8px rgba(34, 197, 94, 0.15);
    }
}

.phone-preview-shell {
    position: relative;
    width: min(420px, calc(100vw - 1.5rem));
    height: min(840px, calc(100vh - 7rem));
    padding: 12px 10px 14px;
    background: linear-gradient(145deg, #1c1c1e 0%, #2c2c2e 50%, #1c1c1e 100%);
    border-radius: 2.75rem;
    box-shadow:
        0 0 0 2px #3a3a3c,
        0 0 0 4px #1c1c1e,
        0 24px 64px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .phone-preview-shell {
        width: min(440px, calc(100vw - 2rem));
        height: min(880px, calc(100vh - 5.5rem));
    }
}

@media (min-width: 1024px) {
    .phone-preview-shell {
        width: min(460px, calc(100vw - 3rem));
        height: min(920px, calc(100vh - 4.5rem));
    }
}

.phone-preview-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 22px;
    background: #1c1c1e;
    border-radius: 0 0 1rem 1rem;
    z-index: 2;
    pointer-events: none;
}

.phone-preview-frame {
    flex: 1;
    width: 100%;
    border: none;
    border-radius: 2rem;
    background: #fff;
}

.template-carousel-viewport {
    overflow: hidden;
    margin: 0 2.75rem;
}

.template-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.template-carousel-item {
    flex: 0 0 calc((100% - 4 * 1.5rem) / 5);
    min-width: 0;
}

@media (max-width: 1279px) {
    .template-carousel-item {
        flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
    }
}

@media (max-width: 767px) {
    .template-carousel-viewport {
        margin: 0 2.25rem;
    }

    .template-carousel-item {
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 479px) {
    .template-carousel-viewport {
        margin: 0;
    }

    .template-carousel-item {
        flex: 0 0 100%;
    }
}

.template-carousel-arrow {
    position: absolute;
    top: 38%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: #fff;
    color: #18181b;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, opacity 0.2s, transform 0.2s;
}

.template-carousel-arrow:hover:not(:disabled) {
    background: #fff7ed;
    color: #ea580c;
    transform: scale(1.05);
}

.template-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.template-carousel-arrow--prev {
    left: 0.5rem;
}

.template-carousel-arrow--next {
    right: 0.5rem;
}

@media (max-width: 479px) {
    .template-carousel-arrow {
        top: auto;
        bottom: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .template-carousel-arrow--prev {
        left: calc(50% - 3rem);
    }

    .template-carousel-arrow--next {
        right: calc(50% - 3rem);
    }
}
