/* =========================================================
   BAIG & ASSOCIATES
   HOME / INDEX PAGE CSS
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

:where([class^="ri-"])::before {
    content: "\f3c2";
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

.serif {
    font-family: 'Playfair Display', serif;
}


/* =========================================================
   GOLD GRADIENT
   ========================================================= */

.gold-gradient {
    background: linear-gradient(
        135deg,
        rgba(197, 165, 114, 0.10) 0%,
        rgba(197, 165, 114, 0.40) 100%
    );
}


/* =========================================================
   HERO SLIDER
   ========================================================= */

.hero-slider {
    height: 600px;
    background: #000;
}

.slider-wrapper {
    height: 100%;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.slide {
    height: 600px;
    min-width: 100%;
    flex-shrink: 0;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}


/* =========================================================
   HERO OVERLAY
   ========================================================= */

.slide > .absolute.inset-0 {
    pointer-events: none;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.slide .container {
    position: relative;
    z-index: 10;
}

.slide h2 {
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
}

.slide p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}


/* =========================================================
   HERO BUTTON
   ========================================================= */

.slide a {
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.slide a:hover {
    transform: translateY(-2px);
}


/* =========================================================
   SLIDER ARROWS
   ========================================================= */

.slider-arrow {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.35);

    color: #ffffff;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.slider-arrow i {
    font-size: 28px;
    line-height: 1;
}

.slider-arrow:hover {
    background: #C5A572;
    border-color: #C5A572;
    color: #000000;
}

.slider-arrow:focus {
    outline: none;
}


/* =========================================================
   SLIDER DOTS
   ========================================================= */

.slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-dots .dot {
    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: #ffffff;

    opacity: 0.45;

    cursor: pointer;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background-color 0.3s ease;
}

.slider-dots .dot:hover {
    opacity: 0.85;
}

.slider-dots .dot.opacity-100 {
    opacity: 1;
    transform: scale(1.25);
    background: #C5A572;
}


/* =========================================================
   PRACTICE AREA CARDS
   ========================================================= */

.practice-card {
    min-height: 390px;

    display: flex;
    flex-direction: column;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.practice-card .card-overlay {
    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.35s ease;
}

.practice-card:hover .card-overlay {
    opacity: 1;
}

.practice-card > .p-8 {
    position: relative;
    z-index: 10;
}


/* =========================================================
   PRACTICE AREA SERVICE BUTTON
   ========================================================= */

.service-button {
    width: fit-content;

    border: 1px solid #C5A572;

    color: #C5A572;

    padding: 10px 18px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.service-button i {
    font-size: 17px;
}

.service-button:hover {
    background: #C5A572;
    color: #000000;

    transform: translateX(3px);
}


/* =========================================================
   FORM
   ========================================================= */

.form-input {
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.form-input:focus {
    border-color: #C5A572;

    box-shadow:
        0 0 0 2px rgba(197, 165, 114, 0.20);
}


/* =========================================================
   FORM ERROR
   ========================================================= */

.border-red-500 {
    border-color: #ef4444 !important;

    box-shadow:
        0 0 0 2px rgba(239, 68, 68, 0.08);
}


/* =========================================================
   NUMBER INPUT
   ========================================================= */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* =========================================================
   MAP PLACEHOLDER
   ========================================================= */

.map-placeholder {
    width: 100%;
    height: 100%;

    position: relative;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15)
        ),
        url('https://public.readdy.ai/gen_page/map_placeholder_1280x720.png');

    background-size: cover;
    background-position: center;
}

.map-overlay {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-width: 180px;

    padding: 14px 20px;

    background: rgba(0, 0, 0, 0.72);

    color: #ffffff;

    border-radius: 8px;

    text-align: center;
}

.map-overlay i {
    color: #C5A572;
    font-size: 28px;
}

.map-overlay span {
    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   MOBILE - TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .hero-slider {
        height: 560px;
    }

    .slide {
        height: 560px;
    }

    .slide h2 {
        font-size: 42px;
    }

    .slide p {
        font-size: 18px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .hero-slider {
        height: 540px;
    }

    .slide {
        height: 540px;

        background-position: center center;
    }

    .slide .container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .slide h2 {
        font-size: 34px;
        line-height: 1.18;

        margin-bottom: 16px;
    }

    .slide p {
        font-size: 16px;
        line-height: 1.6;

        margin-bottom: 25px;
    }

    .slide a {
        padding: 11px 18px;
        font-size: 14px;
    }


    /* Arrows */

    .slider-arrow {
        width: 40px;
        height: 40px;

        background: rgba(0, 0, 0, 0.45);
    }

    .slider-arrow i {
        font-size: 23px;
    }


    /* Dots */

    .slider-dots {
        bottom: 20px;
    }

    .slider-dots .dot {
        width: 9px;
        height: 9px;
    }


    /* Practice cards */

    .practice-card {
        min-height: auto;
    }

    .service-button {
        margin-top: 22px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .hero-slider {
        height: 500px;
    }

    .slide {
        height: 500px;
    }

    .slide h2 {
        font-size: 29px;
    }

    .slide p {
        font-size: 15px;
    }

    .slide a {
        padding: 10px 15px;
        font-size: 13px;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .slider-arrow i {
        font-size: 21px;
    }

    .service-button {
        font-size: 13px;
        padding: 9px 15px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C5A572;
    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .slider-wrapper,
    .slider-arrow,
    .slider-dots .dot,
    .practice-card,
    .service-button {
        transition: none !important;
    }

}