/* 
DEVELOPER INSTRUCTIONS FOR UPDATING SITE CONTENT:

Service List Updates:
- Update service cards in services.html
- Modify pricing in pricing.html
- Adjust service descriptions as needed

Service Areas Updates:
- Update area lists in areas.html and index.html
- Modify the areas array in scripts.js for form options
- Adjust service area descriptions

Pricing Updates:
- Modify pricing tables in pricing.html
- Update starting prices in services.html service cards
- Adjust package pricing and descriptions

These changes should cover most content updates needed for the business.
*/

/* Custom CSS for Ray's Beauty & Barber */

/* Font Variables and Setup */
:root{
  --font-heading: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}
html{ font-family: var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1,h2,h3{ font-family: var(--font-heading); font-weight: 600; letter-spacing: .1px; }

.logo-text{
  font-family: "Alex Brush", cursive;   /* your current font */
  font-weight: 600;                     /* allow browser faux bold where supported */
  font-synthesis-weight: auto;
  color: #2B4A83;                       /* navy */
  letter-spacing: .15px;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem);
  line-height: 1.05;

  /* subtle thickness without changing the look */
  text-shadow:
    0 0 .01px currentColor,
    .22px 0 currentColor,
   -.22px 0 currentColor,
    0 .22px currentColor,
    0 -.22px currentColor;
}

/* Safari improvement, optional */
@supports (-webkit-text-stroke: .2px currentColor) {
  .logo-text { -webkit-text-stroke: .15px currentColor; }
}

/* Navigation links with modern stylish font */
.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
header nav a:not(.logo-text):not(.nav-link){
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 600;
  letter-spacing: .2px;
  color: #2B4A83;
  font-size: clamp(.95rem, .9rem + .25vw, 1.05rem);
  line-height: 1.2;
  text-shadow: none;
  text-decoration: none;
}
header nav a:not(.logo-text):hover,
header nav a:not(.logo-text):focus{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn, button, .cta{ font-family: var(--font-body); font-weight: 600; }
.lead{ font-size: 1.05rem; line-height: 1.7; }

/* Enhanced Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.animate-fade-in-delay-1 {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(60px);
}

.animate-slide-left {
    animation: slideLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateX(-60px);
}

.animate-slide-right {
    animation: slideRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateX(60px);
}

.animate-bounce-in {
    animation: bounceIn 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    opacity: 0;
    transform: scale(0.3);
}

.animate-pulse-gentle {
    animation: pulseGentle 3s ease-in-out infinite;
}

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

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

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGentle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: all 320ms ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-fade-in-delay-1,
    .animate-fade-in-delay-2,
    .animate-fade-in-delay-3,
    .animate-on-scroll {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Button Styles */
.btn-primary {
    @apply bg-brandPink text-brandBlue hover:bg-brandPink/90 px-8 py-4 rounded-full font-semibold transition-all duration-200 hover:scale-105 focus:outline-none focus:ring-2 focus:ring-brandBlue/30;
}

.btn-secondary {
    @apply bg-brandPink text-brandBlue hover:bg-brandPink/90 px-8 py-4 rounded-full font-semibold transition-all duration-200 hover:scale-105 focus:outline-none focus:ring-2 focus:ring-brandBlue/30;
}

/* Image Card Styles with 4:3 ratio */
.image-card {
    @apply aspect-w-4 aspect-h-3 rounded-2xl overflow-hidden shadow-lg hover:shadow-xl transition-shadow duration-200;
}

.image-card img {
    @apply w-full h-full object-cover;
}

/* Focus Styles for Accessibility */
.focus-visible:focus {
    @apply outline-none ring-2 ring-brandPink ring-offset-2;
}

/* Mobile Menu Styles */
.mobile-menu {
    transition: all 0.3s ease-in-out;
}

.mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(217, 154, 164, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

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

.button-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.button-hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button-hover:hover::before {
    width: 300px;
    height: 300px;
}

.button-hover:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--brand-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-pink);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--brand-pink) 80%, transparent);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    a[href^="tel:"]:after {
        content: " (" attr(href) ")";
    }
    
    a[href^="mailto:"]:after {
        content: " (" attr(href) ")";
    }
}

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

/* Form Styling Enhancements */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Sticky Badge Positioning */
.sticky-badge {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 50;
}

@media (min-width: 768px) {
    .sticky-badge {
        bottom: 2rem;
        right: 2rem;
    }
}

/* Modal Backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Skip Link Styles */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus,
.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Text Selection Styling */
::selection {
    background-color: #dbeafe;
    color: #1e40af;
}

::-moz-selection {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Dark Mode Support (for future use) */
@media (prefers-color-scheme: dark) {
    /* Currently using light theme only as specified */
    /* Dark mode styles can be added here if needed in the future */
}

/* Enhanced Body Text Sizing */
.text-base { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-lg { font-size: 1.25rem !important; line-height: 1.875rem !important; }
.text-xl { font-size: 1.375rem !important; line-height: 2rem !important; }
.text-sm { font-size: 1rem !important; line-height: 1.5rem !important; }

/* Global Paragraph Text Sizing */
p { font-size: 1.125rem !important; line-height: 1.75rem !important; }

/* Responsive Typography Adjustments */
@media (max-width: 640px) {
    /* Make main headline much smaller on mobile */
    .text-4xl {
        font-size: 1.875rem !important; /* 30px instead of 36px */
        line-height: 2.25rem !important;
    }
    
    /* Reduce subtitle sizes on mobile */
    .text-xl {
        font-size: 1.125rem !important; /* 18px instead of 20px */
        line-height: 1.75rem !important;
    }
    
    /* Reduce medium text sizes */
    .text-2xl {
        font-size: 1.5rem !important; /* 24px instead of 24px */
        line-height: 2rem !important;
    }
    
    /* Make body text smaller on mobile */
    p {
        font-size: 1rem !important; /* 16px instead of 18px */
        line-height: 1.5rem !important;
    }
    
    /* Reduce button text size */
    .text-lg {
        font-size: 1rem !important; /* 16px instead of 18px */
        line-height: 1.5rem !important;
    }
    
    /* Reduce base text size */
    .text-base {
        font-size: 0.9rem !important; /* 14.4px instead of 16px */
        line-height: 1.4rem !important;
    }
    
    /* Make small text even smaller */
    .text-sm {
        font-size: 0.875rem !important; /* 14px */
        line-height: 1.25rem !important;
    }
    
    .text-responsive-xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .text-responsive-2xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    /* Hide floating Schedule button on mobile */
    #availability-badge {
        display: none !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Schedule My Appointment button mobile optimization */
    #availability-badge {
        min-height: 48px !important;
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        white-space: nowrap;
        max-width: calc(100vw - 32px);
        right: 16px !important;
        top: 80px !important;
    }
    
    .card-hover:hover {
        transform: none;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
}

/* Improved Contrast for Better Accessibility */
.text-gray-600 {
    color: #4b5563 !important;
}

.text-gray-500 {
    color: #6b7280 !important;
}

/* Custom Grid for Service Areas */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

/* Enhanced Focus Indicators */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Utility Classes */
.text-balance {
    text-wrap: balance;
}

.container-padding {
    @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
}

/* Animation Delays for Staggered Effects */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Floating Animation for Logo */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shimmer Effect for CTAs */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Text Typing Effect */
.typing-text {
    overflow: hidden;
    border-right: 2px solid #3b82f6;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #3b82f6; }
}

/* Gradient Background Animation */
.animated-gradient {
    background: linear-gradient(-45deg, #ffffff, #f8fafc, #e2e8f0, #ffffff);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
