/* ===== Keyframe Animations ===== */
@keyframes kenBurns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.1); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-fadeInUp {
    animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-fadeIn {
    animation: fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

/* ===== Scroll Reveal ===== */
/* Uses `translate` (individual transform) so it never conflicts with
   Tailwind hover:-translate-y-* which uses the `transform` shorthand. */
.scroll-reveal {
    opacity: 0;
    translate: 0 20px;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                translate 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.scroll-reveal.visible {
    opacity: 1;
    translate: 0 0;
}

/* ===== Card hover GPU smoothing ===== */
/* Sets the full transition property list explicitly so scroll-reveal
   (opacity + translate) and hover lift (transform + border-color) both
   animate smoothly with appropriate durations. Higher specificity (0,3,1)
   wins over .scroll-reveal (0,1,0) and Tailwind utilities (0,1,0). */
section .grid > div.group,
section .grid > a.group,
section .space-y-6 > div.group,
section .space-y-6 > a.group {
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                translate 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
                border-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ===== Lucide icon sizing ===== */
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ===== Smooth scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Scroll nav buttons ===== */
.scroll-nav {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scroll-nav-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    border: 1px solid #1F1F1F;
    background: #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #A1A1AA;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.scroll-nav-btn:hover {
    border-color: #8B5CF6;
    color: #fff;
    background: rgba(139, 92, 246, 0.08);
}

/* ===== Quote Modal ===== */
.quote-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.quote-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.quote-modal {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90dvh;
    overflow-y: auto;
    background: #0A0A0A;
    border: 1px solid #1F1F1F;
    border-radius: 1.25rem;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.38s cubic-bezier(0.34, 1.4, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: #1F1F1F transparent;
}

.quote-overlay.open .quote-modal {
    transform: scale(1) translateY(0);
}

.quote-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid #1F1F1F;
}

.quote-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #1F1F1F;
    background: #000;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #8B5CF6;
    margin-bottom: 0.625rem;
}

.quote-modal-title {
    font-family: Poppins, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 0.25rem;
    line-height: 1.25;
}

.quote-modal-subtitle {
    color: #A1A1AA;
    font-size: 0.875rem;
    margin: 0;
}

.quote-close-btn {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    border: 1px solid #1F1F1F;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.quote-close-btn:hover {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.08);
}

.quote-form-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
}

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

@media (max-width: 480px) {
    .quote-grid-2 { grid-template-columns: 1fr; }
    .quote-modal-header { padding: 1.5rem 1.25rem 1.25rem; }
    .quote-form-body { padding: 1.25rem; }
    .quote-divider,
    .quote-contact-row { padding-left: 1.25rem; padding-right: 1.25rem; }
}

.quote-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quote-label {
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #A1A1AA;
    letter-spacing: 0.03em;
}

.quote-input {
    width: 100%;
    background: #000;
    border: 1px solid #1F1F1F;
    border-radius: 0.75rem;
    padding: 0.8125rem 1rem;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.quote-input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.quote-input::placeholder {
    color: #3A3A45;
}

textarea.quote-input {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

select.quote-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.quote-input option {
    background: #0A0A0A;
    color: #fff;
}

.quote-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.9375rem 1.5rem;
    background: #8B5CF6;
    border: none;
    border-radius: 0.875rem;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    margin-top: 0.25rem;
}

.quote-submit-btn:hover:not(:disabled) {
    background: #7C3AED;
    transform: translateY(-1px);
}

.quote-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.quote-error {
    color: #F87171;
    font-size: 0.875rem;
    text-align: center;
    margin-top: -0.5rem;
    font-family: Inter, sans-serif;
}

.quote-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem 0;
    color: #3A3A45;
    font-size: 0.8125rem;
}

.quote-divider::before,
.quote-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1F1F1F;
}

.quote-contact-row {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 2rem 1.75rem;
    flex-wrap: wrap;
}

.quote-contact-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid #1F1F1F;
    background: #000;
    color: #A1A1AA;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.quote-contact-chip:hover {
    border-color: #8B5CF6;
    color: #fff;
    transform: translateY(-1px);
}

.quote-contact-chip img {
    width: 1.125rem;
    height: 1.125rem;
    object-fit: contain;
    flex-shrink: 0;
}

/* Success state */
.quote-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
}

.quote-success-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    border: 1px solid #1F1F1F;
    background: rgba(139, 92, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.quote-success-title {
    font-family: Poppins, sans-serif;
    font-weight: 800;
    font-size: 1.625rem;
    color: #fff;
    margin: 0 0 0.75rem;
}

.quote-success-text {
    color: #A1A1AA;
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 380px;
    margin: 0;
}
