/* ============================================
   Victory Chiropractic — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(107, 27, 42, 0.15);
    color: #6B1B2A;
}

/* ---------- Navbar ---------- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(254, 252, 251, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-fixed.scrolled {
    background: rgba(254, 252, 251, 0.95);
    border-bottom-color: rgba(107, 27, 42, 0.08);
    box-shadow: 0 1px 20px rgba(107, 27, 42, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #6B1B2A;
    color: #fff;
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid #6B1B2A;
    cursor: pointer;
}

.btn-primary:hover {
    background: #8a1c3c;
    border-color: #8a1c3c;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(107, 27, 42, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #6B1B2A;
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(107, 27, 42, 0.3);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(107, 27, 42, 0.06);
    border-color: #6B1B2A;
    transform: translateY(-1px);
}

/* ---------- Section Labels ---------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6B1B2A;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: #6B1B2A;
}

.section-label-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #E8C4C4;
}

.section-label-light::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: #E8C4C4;
}

/* ---------- Hero ---------- */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-size: 60px 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(107, 27, 42, 0.07);
    border: 1px solid rgba(107, 27, 42, 0.12);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: 'Inter', system-ui, sans-serif;
}

.hero-title {
    animation: heroTitle 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-content {
    animation: heroContent 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-image {
    animation: heroImage 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-trust {
    animation: heroTrust 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
    transform: translateY(10px);
}

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

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

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

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

.hero-img-wrapper {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---------- Services ---------- */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card-inner {
    position: relative;
    overflow: hidden;
}

.service-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6B1B2A, #E8C4C4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(107, 27, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    background: rgba(107, 27, 42, 0.12);
    transform: scale(1.05);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- About ---------- */
.about-images {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-images.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-images .about-img-main {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-images:hover .about-img-main {
    transform: scale(1.01);
}

/* ---------- Approach ---------- */
.approach-step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.approach-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.approach-step:hover .step-number {
    background: #8a1c3c;
    border-color: #b0254e;
    transform: scale(1.1);
}

.step-number {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Contact Form ---------- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6B5C4E;
    letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(107, 27, 42, 0.15);
    border-radius: 8px;
    background: #fff;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    color: #473D35;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #c8bfb6;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #6B1B2A;
    box-shadow: 0 0 0 3px rgba(107, 27, 42, 0.08);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: rgba(107, 27, 42, 0.3);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B1B2A' 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;
    cursor: pointer;
}

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

/* ---------- Contact Items ---------- */
.contact-item {
    transition: transform 0.3s ease;
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(107, 27, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #6B1B2A;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    box-shadow: 0 4px 15px rgba(107, 27, 42, 0.3);
}

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

.back-to-top:hover {
    background: #8a1c3c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 27, 42, 0.4);
}

/* ---------- Mobile Menu ---------- */
.mobile-nav-link {
    transition: all 0.3s ease;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

    .section-label {
        font-size: 0.7rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-trust {
        flex-direction: column;
        gap: 0.5rem;
    }
}
