/* Pain Therapy Massage - Custom Styles */

/* CSS Variables */
:root {
    --color-warmth: #8B7355;
    --color-warmth-dark: #6B5A45;
    --color-peach: #F4D4B8;
    --color-peach-light: #FDF6F0;
    --color-slate: #2D3748;
    --color-white: #FFFFFF;
    --color-gray-100: #F7FAFC;
    --color-gray-400: #A0AEC0;
    --color-gray-600: #718096;
    --color-gray-700: #4A5568;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-warmth);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-warmth);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Custom Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-warmth);
    color: var(--color-white);
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--color-warmth-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-warmth);
    color: var(--color-warmth);
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--color-warmth);
    color: var(--color-white);
}

/* Card Hover Effects */
.service-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: var(--color-warmth);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-gray-400);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-slate);
}

/* Mobile Menu Animation */
[data-menu] {
    transition: all 0.3s ease;
}

[data-menu].hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

[data-menu]:not(.hidden) {
    opacity: 1;
    max-height: 500px;
}

/* Smooth Scrolling for Anchor Links */
html {
    scroll-padding-top: 80px;
}

/* Image Lazy Loading Placeholder */
img[loading="lazy"] {
    background-color: var(--color-gray-100);
}

/* Testimonial Card Animation */
.testimonial-card {
    transition: transform 0.2s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
}

/* Hero Section Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Navigation Active State */
.nav-link-active {
    color: var(--color-warmth);
    font-weight: 600;
}

/* Service Icon Background */
.service-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(139, 115, 85, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Link Hover */
footer a {
    transition: color 0.2s ease;
}

/* Google Map Container */
.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact Form Success/Error Messages */
.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.form-message-success {
    background-color: #C6F6D5;
    color: #22543D;
    border: 1px solid #9AE6B4;
}

.form-message-error {
    background-color: #FED7D7;
    color: #742A2A;
    border: 1px solid #FC8181;
}

/* Print Styles */
@media print {
    nav,
    footer,
    .btn-primary,
    .btn-secondary {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }

    a:focus,
    button:focus {
        outline-width: 3px;
    }
}
