/*
 * Modern Elegance Formalwear - Components
 * Reusable UI components for the luxury website
 */

/* ===== TOP BAR (Business Hours) ===== */

.top-bar {
    background: linear-gradient(135deg, var(--color-champagne) 0%, var(--color-champagne-dark) 100%);
    color: #ffffff;
    padding: 10px 0;
    font-size: 0.75rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: calc(var(--z-fixed) + 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    opacity: 0;
    animation: slideUpBar 0.5s ease-out 2s forwards;
}

@keyframes slideUpBar {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.top-bar--hidden {
    animation: none;
    transform: translateY(100%);
    opacity: 0;
}

.top-bar__close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.top-bar__close:hover {
    opacity: 1;
}

.top-bar__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: nowrap;
}

.top-bar__title {
    font-weight: var(--font-semibold);
    margin-right: var(--space-1);
    font-size: 0.9rem;
}

.top-bar__schedule {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.top-bar__day {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    white-space: nowrap;
}

.top-bar__day-name {
    font-weight: var(--font-semibold);
    opacity: 0.8;
}

.top-bar__day-name--today {
    opacity: 1;
    font-weight: var(--font-bold);
    color: var(--color-champagne-light);
}

.top-bar__day-hours {
    color: var(--color-gallery-white);
}

.top-bar__day-hours--closed {
    opacity: 0.5;
}

.top-bar__divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.top-bar__contact {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.top-bar__phone {
    color: var(--color-champagne-light);
    text-decoration: none;
    transition: color var(--transition-base);
}

.top-bar__phone:hover {
    color: var(--color-gallery-white);
}

.top-bar__status {
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: var(--font-semibold);
    margin-left: var(--space-2);
}

.top-bar__status--open {
    background: #22c55e;
    color: white;
}

.top-bar__status--closed {
    background: #ef4444;
    color: white;
}

@media (max-width: 968px) {
    .top-bar__schedule {
        gap: var(--space-2);
    }

    .top-bar__day {
        font-size: 0.65rem;
    }
}

@media (max-width: 640px) {
    .top-bar {
        padding: var(--space-2);
    }

    .top-bar__content {
        flex-direction: column;
        gap: var(--space-2);
    }

    .top-bar__schedule {
        gap: var(--space-2);
    }

    .top-bar__day-name {
        display: none;
    }

    .top-bar__day-name--abbrev {
        display: inline;
    }

    .top-bar__divider {
        display: none;
    }
}

/* ===== NAVIGATION ===== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-4) 0;
    transition: all var(--transition-elegant);
}

.nav--transparent {
    background: transparent;
}

.nav--solid {
    background: var(--color-soft-ivory);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-2) 0;
    /* Shrink padding on scroll */
}

.nav--solid .nav__logo-image {
    max-height: 60px;
    /* Shrink logo on scroll */
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: block;
    max-height: 80px;
    width: auto;
    transition: opacity var(--transition-base);
}

.nav__logo-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-height: 80px;
}

.nav--transparent .nav__logo {
    opacity: 1;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.nav__link {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-text-primary);
    position: relative;
    padding: var(--space-2) 0;
}

.nav--transparent .nav__link {
    color: var(--color-gallery-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__cta {
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: 1px solid currentColor;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    cursor: pointer;
    transition: all var(--transition-base);
}

.nav__cta:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-gallery-white);
}

/* Mobile Navigation */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    transition: all var(--transition-base);
}

.nav--transparent .nav__toggle {
    color: var(--color-gallery-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Hide close button on desktop */
.nav__close {
    display: none;
}

@media (max-width: 968px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-gallery-white);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-8);
        padding: var(--space-12);
        transition: right var(--transition-elegant);
        box-shadow: var(--shadow-elegant);
        overflow-x: hidden;
    }

    .nav__menu--open {
        right: 0;
    }

    .nav__menu .nav__link {
        color: var(--color-text-primary);
        font-size: var(--text-lg);
    }

    .nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: var(--space-6);
        right: var(--space-6);
        width: 44px;
        height: 44px;
        background: var(--color-background-alt);
        border: none;
        border-radius: 50%;
        font-size: var(--text-xl);
        cursor: pointer;
        color: var(--color-text-primary);
        transition: all var(--transition-base);
    }

    .nav__close:hover {
        background: var(--color-accent);
        color: var(--color-gallery-white);
    }
}

/* ===== HERO SECTION ===== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: #000;
    /* Fallback */
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.6) 100%);
}

.hero__content {
    position: relative;
    text-align: center;
    color: var(--color-gallery-white);
    max-width: 800px;
    padding: var(--space-8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-champagne-light);
    margin-bottom: var(--space-4);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero__title {
    font-size: var(--text-7xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero__description {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-10);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero__cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

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

/* Hero Mobile Responsive */
@media (max-width: 480px) {
    .hero__title {
        font-size: var(--text-3xl);
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .hero__content {
        padding: var(--space-4);
        max-width: 100%;
    }

    .hero__description {
        font-size: var(--text-sm);
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: var(--text-4xl);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero__description {
        font-size: var(--text-base);
    }
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn--primary {
    background: var(--color-accent);
    color: #ffffff;
}

.btn--primary:hover {
    background: var(--color-accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Specific Nav CTA Style */
.nav__cta {
    background: var(--color-accent) !important;
    color: #ffffff !important;
}

.nav__cta:hover {
    background: var(--color-accent) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--color-gallery-white);
    border: 1px solid var(--color-gallery-white);
}

.btn--outline:hover {
    background: var(--color-gallery-white);
    color: var(--color-text-primary);
}

.btn--dark {
    background: var(--color-accent);
    color: #ffffff;
}

.btn--dark:hover {
    background: var(--color-accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn--ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ===== SECTION ===== */

.section {
    padding: var(--section-padding-y) 0;
}

.section--alt {
    background-color: var(--color-background-alt);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-accent);
    margin-bottom: var(--space-3);
}

.section__title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
}

.section__description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* ===== COLLECTION CARDS ===== */

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

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

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

.collection-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.collection-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-elegant);
}

.collection-card:hover .collection-card__image {
    transform: scale(1.05);
}

.collection-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(26, 26, 26, 0.8) 0%,
            rgba(26, 26, 26, 0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-8);
    transition: background var(--transition-elegant);
}

.collection-card:hover .collection-card__overlay {
    background: linear-gradient(to top,
            rgba(26, 26, 26, 0.9) 0%,
            rgba(26, 26, 26, 0.3) 100%);
}

.collection-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-gallery-white);
    margin-bottom: var(--space-2);
}

.collection-card__link {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-champagne-light);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.collection-card:hover .collection-card__link {
    opacity: 1;
    transform: translateY(0);
}

.collection-card__link::after {
    content: '→';
    transition: transform var(--transition-base);
}

.collection-card:hover .collection-card__link::after {
    transform: translateX(5px);
}

/* ===== GALLERY GRID ===== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: var(--color-background-alt);
}

.gallery-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-elegant);
}

.gallery-item:hover .gallery-item__image {
    transform: scale(1.03);
}

/* ===== SERVICE CARDS ===== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

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

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

.service-card {
    padding: var(--space-10);
    background: var(--color-gallery-white);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all var(--transition-base);
}

.service-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-6);
    color: var(--color-accent);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.service-card__description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: 0;
}

/* ===== FEATURES ===== */

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    padding: var(--space-12) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

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

.feature {
    text-align: center;
}

.feature__number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}

.feature__label {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-text-secondary);
}

/* ===== TESTIMONIAL ===== */

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-12);
    opacity: 0;
    animation: slideInRight 1s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial__quote {
    font-family: var(--font-accent);
    font-size: var(--text-3xl);
    font-style: italic;
    line-height: var(--leading-relaxed);
    color: var(--color-text-primary);
    margin-bottom: var(--space-8);
}

.testimonial__author {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-text-secondary);
}

/* ===== FOOTER ===== */

.footer {
    background: var(--color-deep-charcoal);
    color: var(--color-gallery-white);
    padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

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

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

.footer__brand {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.footer__about {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--leading-relaxed);
    margin-bottom: 0;
}

.footer__title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-6);
    color: var(--color-champagne-light);
}

.footer__links {
    list-style: none;
}

.footer__link {
    display: block;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-2) 0;
    transition: color var(--transition-base);
}

.footer__link:hover {
    color: var(--color-champagne-light);
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-4);
}

.footer__bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer__copyright {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
}

.footer__social {
    display: flex;
    gap: var(--space-4);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-gallery-white);
}

/* ===== CTA BANNER ===== */

.cta-banner {
    background: var(--color-background-alt);
    padding: var(--space-16) 0;
    text-align: center;
}

.cta-banner__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.cta-banner__description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

/* ===== FADE IN ANIMATION ===== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SPECIAL OFFER BADGE ===== */

.badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--color-accent);
    color: var(--color-gallery-white);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.badge--outline {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
    background-color: var(--color-background-alt);
    padding: var(--space-12) 0;
    text-align: center;
    overflow-x: hidden;
    /* Prevent horizontal scrollbar */
    overflow-y: visible;
}

.reviews-section .section__header {
    margin-bottom: var(--space-4);
}

.reviews-section .section__title {
    margin-bottom: var(--space-2);
}

.reviews-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    /* Ensure track doesn't spill out */
}

.reviews-track-container {
    width: 100%;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    width: 100%;
}

.review-card {
    flex: 0 0 100%;
    width: 100%;
    padding: var(--space-8);
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.review-card.active {
    opacity: 1;
}

.review-stars {
    color: #FFD700;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    letter-spacing: 2px;
}

.review-text {
    font-family: var(--font-body);
    /* Normal readable font */
    font-size: 1.25rem;
    font-style: normal;
    color: var(--color-text-primary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.review-author {
    font-family: var(--font-body);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.google-icon {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="%23EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"/><path fill="%234285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"/><path fill="%23FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"/><path fill="%2334A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"/><path fill="none" d="M0 0h48v48H0z"/></svg>') no-repeat center center;
    display: inline-block;
}

.review-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.review-nav:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.review-prev {
    left: -70px;
}

.review-next {
    right: -70px;
}

@media (max-width: 968px) {
    .review-prev {
        left: 10px;
    }

    .review-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .review-nav {
        display: none;
    }
}



.review-prev {
    transform: translateX(10px);
}

.review-nav-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .review-nav {
        display: none;
        /* Hide on mobile to clean up UI, swipe/auto is enough, or keep if desired */
    }
}

/* ===== APPOINTMENT FORM ===== */

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-gallery-white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.form-input {
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background: var(--color-gallery-white);
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.checkbox-item input:checked+.checkbox-custom {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition-base);
}

.checkbox-item input:checked+.checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
}

.form-actions {
    margin-top: var(--space-8);
}

.btn--block {
    width: 100%;
}

/* Success State */
.form-success {
    text-align: center;
    padding: var(--space-12);
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto var(--space-6);
    box-shadow: var(--shadow-lg);
}

.success-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.success-message {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CATEGORY CARDS (Homepage Collection) ===== */

.category-card {
    display: block;
    text-decoration: none;
    color: var(--color-text-primary);
}

.category-card__image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    /* Standard Portrait Ratio */
    margin-bottom: var(--space-4);
    max-height: 450px;
    /* Prevent massive images */
}

.category-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s ease;
}

.category-card:hover .category-card__image {
    transform: scale(1.03);
}

.category-card__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

/* Ensure Collection Grid uses 1 row of 3 on desktop */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

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

/* ===== REVIEWS POLISH ===== */

.review-text {
    font-family: var(--font-body);
    font-size: 1.35rem;
    /* Bigger text */
    font-style: normal;
    /* Normal font (not italic unless specified) */
    line-height: 1.6;
    color: var(--color-text-primary);
    max-width: 800px;
    margin: 0 auto var(--space-6);
}

.review-author {
    font-family: var(--font-body);
    /* Normal font instead of cursive */
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}