/* ============================================================
   Cordoba Legal Group — Global Stylesheet
   Premium law-firm aesthetic: midnight + champagne gold + light
   ============================================================ */

/* --- Selection --- */
::selection {
    background-color: #C5A880;
    color: #ffffff;
}

/* --- Page entrance --- */
.page-enter {
    animation: pageIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pageIn {
    0%   { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Cinematic Hero Background --- */
.hero-bg {
    background-color: #0A0F1C;
    background-image:
        radial-gradient(circle at 30% 50%, rgba(197,168,128,0.12) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(10,15,28,0.90), rgba(10,15,28,1)),
        url('https://images.unsplash.com/photo-1505663912202-ac22d4cb3707?auto=format&fit=crop&w=2500&q=80');
    background-size: 100% 100%, 100% 100%, cover;
    background-position: center 0, center, center;
    background-attachment: scroll, scroll, fixed;
}

.dark-section-bg {
    background-color: #0A0F1C;
    background-image: radial-gradient(circle at 100% 100%, rgba(197,168,128,0.05) 0%, transparent 40%);
}

/* --- Subtle light-section noise texture --- */
.texture-light {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* --- Premium Form Inputs (raw CSS — not @apply, Play CDN doesn't process @apply in external files) --- */
.input-field {
    width: 100%;
    border-radius: 0;
    border: 0;
    border-bottom: 2px solid #e5e7eb; /* gray-200 */
    background: transparent;
    padding: 1.25rem 0.5rem 0.75rem;
    color: #0A0F1C; /* brand-dark */
    font-size: 1rem;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.3s ease, color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}
.input-field:focus {
    border-color: #C5A880; /* brand-accent */
    box-shadow: none;
}
select.input-field {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239ca3af'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25rem;
    padding-right: 2rem;
    cursor: pointer;
}
select.input-field option {
    color: #0A0F1C;
    background: #ffffff;
}

/* --- Floating label (raw CSS implementation) ---
   Parent div must be position:relative. The input has placeholder=" " (space)
   so :placeholder-shown matches empty inputs.
   When empty + not focused  → label is full-size, sitting where the input value would be.
   When filled or focused    → label shrinks and floats above the input. */
.float-label,
.input-field + label,
.input-field ~ label {
    position: absolute;
    left: 0.5rem;
    top: 1.25rem;
    font-size: 0.875rem;
    color: #6b7280; /* gray-500 */
    font-weight: 300;
    pointer-events: none;
    transform-origin: left top;
    transform: translateY(-1.5rem) scale(0.75);
    transition: transform 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}
/* When input is empty AND not focused → drop the label into the input row */
.input-field:placeholder-shown:not(:focus) + label,
.input-field:placeholder-shown:not(:focus) ~ label {
    transform: translateY(0) scale(1);
    color: #9ca3af; /* gray-400 */
}
/* select has no placeholder-shown — use :invalid (when disabled option is selected) */
select.input-field:invalid:not(:focus) + label,
select.input-field:invalid:not(:focus) ~ label {
    transform: translateY(0) scale(1);
    color: #9ca3af;
}
/* Focused state — always floated + accent color */
.input-field:focus + label,
.input-field:focus ~ label {
    color: #C5A880; /* brand-accent */
    transform: translateY(-1.5rem) scale(0.75);
}

/* --- High-End Buttons (raw CSS) --- */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #C5A880; /* brand-accent */
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
    background: #B0946D; /* brand-accentHover */
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-transform: uppercase;
    background: transparent;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.3s ease, color 0.3s ease;
}
.btn-outline:hover {
    background: #ffffff;
    color: #0A0F1C;
}

.btn-outline-dark {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #d1d5db;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #0A0F1C;
    text-transform: uppercase;
    background: transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.btn-outline-dark:hover {
    background: #f3f4f6;
    border-color: transparent;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- FAQ Accordion --- */
.faq-answer {
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s ease-in-out,
                margin 0.5s ease-in-out;
}

/* --- Active nav link (raw CSS) --- */
.nav-link {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748B; /* brand-muted */
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: #C5A880; /* brand-accent */
}
.nav-link.active {
    color: #C5A880;
}

/* --- Skip-to-content (a11y) --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 0.75rem 1.5rem;
    background: #C5A880;
    color: #fff;
    font-size: 0.875rem;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
}
