/*
 * Site-wide base styles — extracted from base.html inline <style> block.
 * Loads AFTER tokens.css so :root variables resolve.
 */

/*
 * iOS Safari fix: 16px font-size on inputs prevents the page from
 * zooming in when a field is focused. Kept narrow (no .form-control /
 * .form-select selectors here — let Tailwind/crispy-tailwind own input
 * sizing, padding, and borders).
 */
input,
textarea,
select {
    font-size: 16px;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Global typography */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--brand-dark);
    background-color: var(--brand-light);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Volkhov', serif;
    color: var(--brand-blue);
}

html, body {
    overflow-x: hidden;
}

/*
 * Form inputs styled when templates use class="form-input" / "form-textarea"
 * directly (not via crispy-tailwind). No !important, no width: 100% —
 * crispy-tailwind owns full-width/padding/border for its generated output
 * via its own utility classes. These rules only kick in where a template
 * explicitly opts in by writing class="form-input".
 */
.form-input,
.form-textarea,
.form-select {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #1f2937;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 3px rgba(249, 168, 38, 0.18);
}

.form-textarea {
    min-height: 6rem;
}

/*
 * Project's primary CTA button (Jadoo-theme legacy name).
 * NOTE: do NOT add a .container rule here — Tailwind already provides
 * a responsive .container with proper max-widths per breakpoint, and
 * a fixed `max-width: 1200px` override would break every templates'
 * `class="container mx-auto"` layout.
 */
.btn-jadoo-primary {
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-jadoo-primary:hover {
    background-color: var(--brand-blue);
    color: white;
}

/* Shared animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alpine.js — keep [x-cloak] elements hidden until Alpine evaluates them */
[x-cloak] {
    display: none !important;
}
