/* ============================================
   Hidden Gem Salon Biloxi — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(52, 165, 120, 0.2);
    color: #0d1c2b;
}

/* --- Navbar --- */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(4, 8, 14, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* --- Hero Animations --- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 165, 120, 0.5), transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 79, 110, 0.6), transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: -3s;
}

.hero-orb--3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(142, 213, 184, 0.4), transparent 70%);
    top: 40%;
    left: 20%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Hero entrance animations */
.hero-badge {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-trust {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

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

/* --- Scroll Indicator --- */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: border-color 0.3s ease;
}

.scroll-indicator:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

/* --- Section Labels --- */
.section-label {
    letter-spacing: 0.15em;
}

.section-title {
    line-height: 1.15;
}

.section-subtitle {
    line-height: 1.7;
}

/* --- Service Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #34a578, #2e4f6e);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(13, 28, 43, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f0faf5, #e0f5ec);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f8a60;
    margin-bottom: 1.25rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-card-icon {
    background: linear-gradient(135deg, #34a578, #1f8a60);
    color: white;
    transform: scale(1.05);
}

.service-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d1c2b;
    margin-bottom: 0.5rem;
}

.service-card-desc {
    color: #507098;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* --- About Section --- */
.about-images {
    position: relative;
}

.about-img-main {
    box-shadow: 0 25px 80px rgba(13, 28, 43, 0.15);
}

.about-img-float {
    box-shadow: 0 15px 50px rgba(13, 28, 43, 0.12);
}

.about-experience-badge {
    box-shadow: 0 10px 40px rgba(13, 28, 43, 0.12);
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 1rem;
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}

.gallery-item {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item--large {
    grid-column: span 5;
    grid-row: span 2;
}

@media (max-width: 767px) {
    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

.gallery-item--wide {
    grid-column: span 7;
}

@media (max-width: 767px) {
    .gallery-item--wide {
        grid-column: span 2;
    }
}

.gallery-item:not(.gallery-item--large):not(.gallery-item--wide) {
    grid-column: span 3;
}

@media (max-width: 767px) {
    .gallery-item:not(.gallery-item--large):not(.gallery-item--wide) {
        grid-column: span 1;
    }
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 8, 14, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-text {
    color: white;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1023px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 165, 120, 0.3);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(52, 165, 120, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-author-name {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-author-location {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* --- Buttons --- */
.cta-primary {
    box-shadow: 0 4px 20px rgba(52, 165, 120, 0.3);
}

.cta-primary:hover {
    box-shadow: 0 8px 40px rgba(52, 165, 120, 0.4);
}

.cta-secondary {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-secondary:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #34a578, #1f8a60);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(52, 165, 120, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(52, 165, 120, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* --- Input Fields --- */
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid rgba(13, 28, 43, 0.1);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-family: 'Inter', system-ui, sans-serif;
    color: #0d1c2b;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: #a8b8cc;
}

.input-field:focus {
    border-color: #34a578;
    box-shadow: 0 0 0 4px rgba(52, 165, 120, 0.1);
}

.input-field:hover:not(:focus) {
    border-color: rgba(13, 28, 43, 0.2);
}

select.input-field {
    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='%23507098' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* --- Mobile Menu --- */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.revealed {
        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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Responsive Tweaks --- */
@media (max-width: 639px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .about-img-float {
        -bottom: 4px;
        -right: 4px;
    }

    .about-experience-badge {
        -top: 2px;
        -left: 2px;
        padding: 0.75rem;
    }

    .about-experience-badge span:nth-child(1) {
        font-size: 1.5rem;
    }
}
