/* ===================================
   CHERZ SALON — CUSTOM STYLES
   =================================== */

/* ---- Base & Utilities ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    position: relative;
}

/* ---- Geometric Background Decorations ---- */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle--2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle--3 {
    width: 120px;
    height: 120px;
    background: rgba(16, 185, 129, 0.1);
    top: 40%;
    right: 5%;
    animation: spin 20s linear infinite;
}

.geo-circle--4 {
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    top: -200px;
    right: -200px;
}

.geo-square {
    position: absolute;
    pointer-events: none;
}

.geo-square--1 {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.06);
    top: 25%;
    left: 5%;
    transform: rotate(15deg);
    animation: float 7s ease-in-out infinite;
}

.geo-square--2 {
    width: 100px;
    height: 100px;
    background: rgba(16, 185, 129, 0.1);
    bottom: 10%;
    right: -30px;
    transform: rotate(30deg);
    animation: spin 15s linear infinite;
}

.geo-square--3 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    bottom: -50px;
    left: 10%;
    transform: rotate(45deg);
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.geo-triangle--1 {
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(16, 185, 129, 0.06);
    top: 30%;
    left: 2%;
    animation: float 9s ease-in-out infinite;
}

.geo-diamond {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.15);
    transform: rotate(45deg);
    pointer-events: none;
}

.geo-diamond--1 {
    top: 15%;
    right: 8%;
    animation: spin 12s linear infinite;
}

.geo-dots {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(16, 185, 129, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    width: 120px;
    height: 120px;
    top: 60%;
    right: 3%;
}

/* ---- Animations ---- */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ---- Navigation ---- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #059669;
    color: white;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #059669;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #059669;
}

.btn-secondary:hover {
    background: #059669;
    color: white;
    transform: translateY(-2px);
}

/* ---- Tags ---- */
.tag-emerald {
    display: inline-block;
    background: #d1fae5;
    color: #047857;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tag-cream {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #a7f3d0;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---- Hero ---- */
.hero-image-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 12px;
    height: 550px;
}

.hero-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-img:hover img {
    transform: scale(1.05);
}

.hero-img--1 {
    grid-column: 1 / 8;
    grid-row: 1 / 9;
}

.hero-img--2 {
    grid-column: 6 / 13;
    grid-row: 4 / 11;
}

.hero-img--3 {
    grid-column: 3 / 9;
    grid-row: 8 / 13;
}

/* Floating Stat Cards */
.floating-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
}

.stat-card--1 { animation-delay: 0.3s; }
.stat-card--2 { animation-delay: 0.5s; }
.stat-card--3 { animation-delay: 0.7s; }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 1.5rem;
}

/* ---- Service Cards ---- */
.service-card {
    perspective: 1000px;
}

.service-card-inner {
    background: white;
    border-radius: 20px;
    padding: 32px;
    height: 100%;
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-inner::before {
    transform: scaleX(1);
}

.service-card:hover .service-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    background: #d1fae5;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

/* ---- About Section ---- */
.about-img-wrap {
    position: relative;
    z-index: 1;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #059669;
    color: white;
    padding: 20px 28px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.4);
}

.about-badge span:first-child {
    display: block;
    line-height: 1;
}

.about-feature {
    transition: transform 0.3s ease;
}

.about-feature:hover {
    transform: translateX(8px);
}

/* ---- Gallery ---- */
.gallery-item {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    transition: transform 0.6s ease;
}

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

/* ---- CTA Card ---- */
.cta-card {
    box-shadow: 0 30px 60px rgba(5, 150, 105, 0.3);
}

/* ---- Contact ---- */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(8px);
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #1f2937;
    transition: all 0.3s ease;
    background: #f9fafb;
    outline: none;
}

.input-field:focus {
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.input-field::placeholder {
    color: #9ca3af;
}

.input-field option {
    padding: 8px;
}

/* ---- Scroll Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

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

/* ---- Navbar Scroll State ---- */
#navbar.scrolled {
    background: rgba(255, 253, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-image-grid {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .hero-image-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(6, 1fr);
        height: 400px;
    }

    .hero-img--1 {
        grid-column: 1 / 3;
        grid-row: 1 / 4;
    }

    .hero-img--2 {
        grid-column: 1 / 2;
        grid-row: 3 / 7;
    }

    .hero-img--3 {
        grid-column: 2 / 3;
        grid-row: 2 / 5;
    }

    .floating-cards {
        flex-direction: column;
    }

    .stat-card {
        width: 100%;
    }

    .about-badge {
        right: 10px;
        bottom: -10px;
        padding: 14px 20px;
    }

    .about-badge span:first-child {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-image-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
        height: 350px;
    }

    .hero-img--1 {
        grid-column: 1;
        grid-row: 1 / 2;
    }

    .hero-img--2 {
        grid-column: 1;
        grid-row: 2 / 3;
    }

    .hero-img--3 {
        grid-column: 1;
        grid-row: 3 / 4;
    }

    h1 {
        font-size: 2.5rem;
    }

    .text-5xl {
        font-size: 2.25rem;
    }
}
