/*
Theme Name:        Salon Theme
Theme URI:         https://github.com/salo-theme
Author:            Ahmed Raza
Author URI:        https://salo-theme.com
Description:       A premium, modern, and fully Elementor-compatible WordPress theme for Ladies Salons, Beauty Studios, Makeup Artists, Bridal Makeup, Hair Stylists, Nail Studios, Spas & Skincare Clinics. Designed for luxury, elegance, and effortless client management.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       salo
Tags:              beauty, salon, spa, elementor, woocommerce, one-page, blog, full-width-template, custom-colors, custom-menu, featured-images, footer-widgets, left-sidebar, right-sidebar, sticky-post, threaded-comments, translation-ready
*/

/* ==========================================
   CSS CUSTOM PROPERTIES — DESIGN SYSTEM
   ========================================== */
:root {
    /* Brand Colors */
    --salo-primary: #C9A86A;
    /* Champagne Gold */
    --salo-primary-dark: #B59357;
    /* Darker Gold for hover/contrast */
    --salo-primary-light: #F3E8DA;
    /* Champagne Beige */
    --salo-secondary: #F8F3EC;
    /* Soft Cream */
    --salo-secondary-dark: #EFE4D6;
    /* Sand */
    --salo-accent: #C9A86A;
    /* Accent */

    /* Neutrals */
    --salo-dark: #2F2A26;
    /* Primary Text */
    --salo-dark-soft: #443C37;
    --salo-gray-dark: #6B6258;
    /* Secondary Text */
    --salo-gray: #8A8077;
    --salo-gray-light: #E2D9CE;
    --salo-border: #EFE4D6;
    /* Sand */
    --salo-light: #FAF7F2;
    /* Warm Ivory */
    --salo-white: #FCFAF7;
    /* Pearl White */
    --salo-beige: #F7F1E8;
    /* Warm Linen */
    --salo-cream: #F8F3EC;
    /* Soft Cream */

    /* Typography */
    --font-heading: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Jost', 'Helvetica Neue', sans-serif;
    --font-accent: 'Playfair Display', 'Georgia', serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Line Heights */
    --leading-tight: 1.2;
    --leading-snug: 1.375;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.10), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 30px 60px -10px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 8px 30px rgba(201, 169, 110, 0.25);
    --shadow-pink: 0 8px 30px rgba(232, 196, 184, 0.35);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container-max: 1200px;
    --container-wide: 1400px;
    --section-py: 4.5rem;
    --header-height: 80px;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: var(--salo-dark-soft);
    background-color: var(--salo-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-tight);
    color: var(--salo-dark);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: clamp(2.5rem, 5vw, var(--text-6xl));
}

h2 {
    font-size: clamp(2rem, 4vw, var(--text-5xl));
}

h3 {
    font-size: clamp(1.5rem, 3vw, var(--text-3xl));
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, var(--text-2xl));
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
    color: var(--salo-gray-dark);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--salo-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--salo-primary-dark);
}

strong,
b {
    font-weight: var(--weight-semibold);
}

em,
i {
    font-style: italic;
}

ul,
ol {
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

li {
    margin-bottom: var(--space-2);
    line-height: var(--leading-relaxed);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

blockquote {
    border-left: 4px solid var(--salo-primary);
    padding: var(--space-4) var(--space-6);
    margin: var(--space-8) 0;
    background: var(--salo-beige);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--salo-dark);
}

hr {
    border: none;
    border-top: 1px solid var(--salo-border);
    margin: var(--space-8) 0;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-wide {
    max-width: var(--container-wide);
}

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

.section-padding-sm {
    padding: var(--space-16) 0;
}

/* ==========================================
   SECTION HEADER (Reusable)
   ========================================== */
.salo-section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.salo-section-header .subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--salo-primary);
    margin-bottom: var(--space-3);
    position: relative;
}

.salo-section-header .subtitle::before,
.salo-section-header .subtitle::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--salo-primary);
    vertical-align: middle;
}

.salo-section-header .subtitle::before {
    margin-right: var(--space-3);
}

.salo-section-header .subtitle::after {
    margin-left: var(--space-3);
}

.salo-section-header h2 {
    margin-bottom: var(--space-4);
}

.salo-section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: var(--text-lg);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.95rem var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    width: 350px;
    height: 350px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--salo-primary), var(--salo-primary-dark));
    color: var(--salo-white);
    border: none;
    box-shadow: 0 4px 15px rgba(201, 168, 106, 0.25), var(--shadow-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--salo-primary-dark), var(--salo-primary));
    color: var(--salo-white);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(201, 168, 106, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--salo-dark);
    border-color: var(--salo-dark-soft);
}

.btn-outline:hover {
    background: var(--salo-primary);
    color: var(--salo-white);
    border-color: var(--salo-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(201, 168, 106, 0.25);
}

.btn-white {
    background: var(--salo-white);
    color: var(--salo-primary);
    border-color: var(--salo-white);
}

.btn-white:hover {
    background: var(--salo-primary);
    color: var(--salo-white);
    border-color: var(--salo-primary);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--salo-white);
    border-color: var(--salo-white);
}

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

.btn-sm {
    padding: 0.6rem var(--space-5);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: 1.1rem var(--space-10);
    font-size: var(--text-base);
}

/* ==========================================
   CARDS
   ========================================== */
.salo-card {
    background: var(--salo-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--salo-border);
    transition: all var(--transition-normal);
}

.salo-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--salo-primary-light);
}

/* ==========================================
   DECORATIVE ELEMENTS
   ========================================== */
.salo-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    justify-content: center;
    margin: var(--space-6) 0;
}

.salo-divider-line {
    width: 60px;
    height: 1px;
    background: var(--salo-primary);
}

.salo-divider-icon {
    color: var(--salo-primary);
    font-size: var(--text-lg);
}

/* Stars */
.salo-stars {
    color: var(--salo-primary);
    font-size: var(--text-sm);
    letter-spacing: 2px;
}

/* Badges */
.salo-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--salo-beige);
    color: var(--salo-primary-dark);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.05em;
}

/* ==========================================
   FORMS
   ========================================== */
.salo-form input,
.salo-form select,
.salo-form textarea {
    width: 100%;
    padding: 0.875rem var(--space-5);
    background: var(--salo-white);
    border: 1.5px solid var(--salo-border);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--salo-dark);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    margin-bottom: var(--space-4);
}

.salo-form input:focus,
.salo-form select:focus,
.salo-form textarea:focus {
    border-color: var(--salo-primary);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

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

/* Submit button inside form — force theme styles over browser defaults */
.salo-form button[type="submit"],
.salo-form button[type="submit"].btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: 0.95rem var(--space-9);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--salo-primary), var(--salo-primary-dark));
    color: var(--salo-white);
    box-shadow: 0 4px 15px rgba(201, 168, 106, 0.25), var(--shadow-gold);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    -webkit-appearance: none;
    appearance: none;
    white-space: normal;
}

.salo-form button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--salo-primary-dark), var(--salo-primary));
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(201, 168, 106, 0.45);
    color: var(--salo-white);
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    position: static;
    display: block;
    padding: var(--space-2) var(--space-4);
    background: var(--salo-primary);
    color: var(--salo-white);
}

.screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    height: 1px;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================
   SCROLL TO TOP
   ========================================== */
#salo-scroll-top {
    position: fixed;
    bottom: 100px;
    right: var(--space-6);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--salo-primary), var(--salo-primary-dark));
    color: var(--salo-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
}

#salo-scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#salo-scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* ==========================================
   WHATSAPP FLOAT BUTTON
   ========================================== */
.salo-whatsapp-float {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--salo-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.salo-whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    color: var(--salo-white);
}

.salo-whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: #25D366;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==========================================
   PAGE LOADER
   ========================================== */
#salo-loader {
    position: fixed;
    inset: 0;
    background: var(--salo-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#salo-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.salo-loader-inner {
    text-align: center;
}

.salo-loader-logo {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--salo-primary);
    margin-bottom: var(--space-4);
    letter-spacing: 0.1em;
}

.salo-loader-inner img.custom-logo {
    max-height: 80px;
    margin-bottom: var(--space-4);
    animation: loaderLogoPulse 2s ease-in-out infinite;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes loaderLogoPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}


.salo-loader-bar {
    width: 80px;
    height: 3px;
    background: var(--salo-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto;
}

.salo-loader-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--salo-primary), var(--salo-secondary));
    border-radius: var(--radius-full);
    animation: loader-fill 1.5s ease forwards;
}

@keyframes loader-fill {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* ==========================================
   WORDPRESS ALIGNMENTS
   ========================================== */
.alignleft {
    float: left;
    margin: 0 var(--space-6) var(--space-4) 0;
}

.alignright {
    float: right;
    margin: 0 0 var(--space-4) var(--space-6);
}

.aligncenter {
    display: block;
    margin: 0 auto var(--space-4);
}

.alignwide {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ==========================================
   WORDPRESS CORE CLASSES
   ========================================== */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--text-sm);
    color: var(--salo-gray);
    text-align: center;
    margin-top: var(--space-2);
}

.sticky {}

.gallery-caption {
    font-size: var(--text-sm);
    color: var(--salo-gray);
}

.bypostauthor {}

.page-links {
    clear: both;
    margin: var(--space-8) 0;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--salo-primary);
}

.text-dark {
    color: var(--salo-dark);
}

.text-gray {
    color: var(--salo-gray);
}

.text-white {
    color: var(--salo-white);
}

.bg-light {
    background-color: var(--salo-light);
}

.bg-beige {
    background-color: var(--salo-beige);
}

.bg-cream {
    background-color: var(--salo-cream);
}

.bg-dark {
    background-color: var(--salo-dark);
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

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

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

.mt-auto {
    margin-top: auto;
}

.w-100 {
    width: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

.position-relative {
    position: relative;
}

.rounded-full {
    border-radius: var(--radius-full);
}