/* ============================================
   Modify Alterations and Boutique — Custom Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
    --burgundy-50: #fdf2f2;
    --burgundy-100: #fce7e7;
    --burgundy-200: #f9d0d0;
    --burgundy-300: #f3a8a8;
    --burgundy-400: #e97070;
    --burgundy-500: #d44242;
    --burgundy-600: #b82828;
    --burgundy-700: #961c1c;
    --burgundy-800: #7c1d1d;
    --burgundy-900: #6b1a1a;
    --burgundy-950: #3d0a0a;
    --blush-300: #ffb8b8;
    --blush-400: #ff8a8a;
    --blush-500: #ff5c5c;
    --blush-600: #f03a3a;
    --cream: #FFF8F5;
    --sand: #F5E6E0;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Geometric Background Shapes --- */
.geometric-shapes {
    z-index: 0;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: var(--blush-400);
    top: 15%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle--2 {
    width: 200px;
    height: 200px;
    background: var(--burgundy-500);
    bottom: 20%;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle--3 {
    width: 120px;
    height: 120px;
    background: var(--blush-300);
    top: 60%;
    right: 15%;
    animation: float 7s ease-in-out infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.06;
}

.geo-triangle--1 {
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid var(--burgundy-500);
    top: 30%;
    left: 5%;
    animation: spin 20s linear infinite;
}

.geo-rect {
    position: absolute;
    opacity: 0.05;
}

.geo-rect--1 {
    width: 160px;
    height: 160px;
    background: var(--blush-400);
    bottom: 10%;
    right: 8%;
    transform: rotate(45deg);
    animation: float 9s ease-in-out infinite;
}

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

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Navbar --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all var(--transition-base);
}

.nav-fixed.scrolled {
    background: rgba(255, 248, 245, 0.95);
    backdrop-blur-md;
    box-shadow: 0 1px 20px rgba(107, 26, 26, 0.08);
}

.nav-fixed.scrolled .logo-text {
    color: var(--burgundy-900) !important;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--burgundy-600);
    transition: width var(--transition-base);
}

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

/* --- Mobile Menu --- */
.mobile-menu-btn {
    position: relative;
    z-index: 60;
}

.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) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--burgundy-700);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid var(--burgundy-700);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--burgundy-800);
    border-color: var(--burgundy-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 26, 26, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--burgundy-700);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid var(--burgundy-200);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--burgundy-50);
    border-color: var(--burgundy-400);
    transform: translateY(-2px);
}

/* Hero buttons */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--burgundy-800);
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    background: var(--cream);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* --- Badges --- */
.badge-service {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.4rem 1rem;
    background: var(--burgundy-100);
    color: var(--burgundy-700);
    border-radius: 50px;
}

/* --- Hero Badge --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    color: rgba(255, 248, 245, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--burgundy-50) 0%, var(--blush-50) 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

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

.service-icon-wrap {
    transition: transform var(--transition-base);
}

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

/* --- Gallery --- */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(107, 26, 26, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: inherit;
}

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

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    font-family: 'Playfair Display', serif;
    color: rgba(255, 184, 184, 0.15);
    line-height: 1;
    pointer-events: none;
}

/* --- Input Fields --- */
.input-field {
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--burgundy-100);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--burgundy-950);
    background: white;
    transition: all var(--transition-base);
    outline: none;
    width: 100%;
}

.input-field:focus {
    border-color: var(--burgundy-400);
    box-shadow: 0 0 0 4px rgba(184, 40, 40, 0.1);
}

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

.input-field:hover:not(:focus) {
    border-color: var(--burgundy-200);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .geo-circle, .geo-triangle, .geo-rect {
        animation: none;
    }
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--burgundy-700);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 40;
    box-shadow: 0 4px 15px rgba(107, 26, 26, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--burgundy-800);
    transform: translateY(-3px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-triangle--1 {
        display: none;
    }
    
    .geo-rect--1 {
        width: 80px;
        height: 80px;
    }
}

/* --- Focus Visible --- */
*:focus-visible {
    outline: 2px solid var(--burgundy-500);
    outline-offset: 2px;
}

/* --- Selection --- */
::selection {
    background: var(--burgundy-200);
    color: var(--burgundy-900);
}
