/**
 * Salons.City — Global Stylesheet
 * Warm Rose & Champagne Design System
 * Fonts: Playfair Display + DM Sans
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ===== CSS Variables ===== */
:root {
    /* Brand Colors */
    --primary-color:    #c97a5e;   /* rose — replaces blue */
    --secondary-color:  #8b5a6b;   /* mauve */
    --accent-color:     #e8c5b0;   /* blush */

    /* Neutrals */
    --text-primary:     #1a1410;
    --text-secondary:   #5c4a40;
    --text-tertiary:    #9e8a7a;
    --background:       #ffffff;
    --background-secondary: #faf8f5;
    --background-tertiary:  #f5ede0;
    --border-color:     rgba(201, 122, 94, 0.2);
    --border-light:     rgba(0, 0, 0, 0.06);

    /* Glass */
    --glass-bg:     rgba(255, 255, 255, 0.75);
    --glass-border: rgba(201, 122, 94, 0.12);
    --glass-shadow: 0 8px 32px rgba(26, 20, 16, 0.08);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(26, 20, 16, 0.04);
    --shadow-md: 0 4px 16px rgba(26, 20, 16, 0.07);
    --shadow-lg: 0 12px 40px rgba(26, 20, 16, 0.10);

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;

    /* Transition */
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    /* Fonts */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--background-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { opacity: 0.75; }

/* ===== Containers ===== */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.logo:hover { color: var(--primary-color); }

.logo span {
    color: var(--primary-color);
    font-style: italic;
}

.nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    padding: 8px 14px;
    border-radius: 100px;
    transition: var(--transition);
}

.nav a:hover {
    background: rgba(201, 122, 94, 0.08);
    color: var(--primary-color);
    opacity: 1;
}

.nav a.active {
    color: var(--primary-color);
    background: rgba(201, 122, 94, 0.1);
    font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: var(--font-primary);
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--text-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201, 122, 94, 0.3);
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(0, 0, 0, 0.18);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    opacity: 1;
}

.btn-rose {
    background: var(--primary-color);
    color: #fff;
}

.btn-rose:hover {
    background: #a85a3e;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201, 122, 94, 0.35);
    opacity: 1;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.8125rem;
}

/* ===== Cards ===== */
.glass-card {
    background: var(--background);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 122, 94, 0.25);
}

/* ===== Business Cards ===== */
.business-card {
    background: var(--background);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    gap: 20px;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 122, 94, 0.25);
}

.business-card.premium {
    background: linear-gradient(135deg, rgba(201, 122, 94, 0.06) 0%, rgba(139, 90, 107, 0.06) 100%);
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(201, 122, 94, 0.15);
}

.business-image {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.business-content { flex: 1; }

.business-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.business-category {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(201, 122, 94, 0.1);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ===== Cities Grid ===== */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 40px 0;
}

.city-card {
    position: relative;
    padding: 28px 24px;
    background: var(--background);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: left;
    transition: var(--transition);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.city-card::after {
    content: '→';
    position: absolute;
    right: 24px;
    bottom: 24px;
    font-size: 18px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
}

.city-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.city-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 122, 94, 0.3);
}

/* ===== Section ===== */
.section {
    padding: 64px 0;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-tertiary);
    max-width: 620px;
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 40px;
}

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.9375rem;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--background);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 122, 94, 0.12);
}

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    padding: 64px 0 32px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-column h4 {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-column ul { list-style: none; }

.footer-column ul li { margin-bottom: 10px; }

.footer-column a {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    font-weight: 300;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    display: block;
}

.footer-logo span { color: var(--accent-color); font-style: italic; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.25);
    font-size: 0.8125rem;
    margin: 0;
    font-weight: 300;
}

/* ===== Badges & Tags ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-rose {
    background: rgba(201, 122, 94, 0.12);
    color: var(--primary-color);
}

.badge-dark {
    background: var(--text-primary);
    color: #fff;
}

.badge-champagne {
    background: var(--background-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ===== Stats Strip ===== */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--text-primary);
    border-radius: 28px;
    overflow: hidden;
}

.stat-item {
    padding: 28px 24px;
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.07);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== Alerts ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.25);
    color: #1a7a35;
}

.alert-error {
    background: rgba(201, 122, 94, 0.1);
    border-color: rgba(201, 122, 94, 0.25);
    color: var(--primary-color);
}

.alert-info {
    background: rgba(139, 90, 107, 0.08);
    border-color: rgba(139, 90, 107, 0.2);
    color: var(--secondary-color);
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    background: var(--background);
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    opacity: 1;
}

.page-link.active {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

/* ===== Utility Classes ===== */
.text-center  { text-align: center; }
.text-rose    { color: var(--primary-color); }
.text-muted   { color: var(--text-tertiary); }
.text-dark    { color: var(--text-primary); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

.grid     { display: grid; gap: 16px; }
.grid-2   { grid-template-columns: repeat(2, 1fr); }
.grid-3   { grid-template-columns: repeat(3, 1fr); }
.grid-4   { grid-template-columns: repeat(4, 1fr); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .grid-4          { grid-template-columns: repeat(2, 1fr); }
    .stats-strip     { grid-template-columns: repeat(2, 1fr); }
    .stat-item::after { display: none !important; }
}

@media (max-width: 768px) {
    h1               { font-size: 2.2rem; }
    h2               { font-size: 1.8rem; }
    .section-title   { font-size: 1.8rem; }
    .section         { padding: 44px 0; }
    .grid-2,
    .grid-3,
    .grid-4          { grid-template-columns: 1fr; }
    .business-card   { flex-direction: column; }
    .business-image  { width: 100%; height: 200px; }
    .stats-strip     { border-radius: 20px; }
    .stat-num        { font-size: 1.8rem; }
    .footer          { padding: 48px 0 24px; }
    .footer-grid     { gap: 32px; }
    .footer-bottom   { flex-direction: column; text-align: center; }
    .nav             { gap: 0; }
    .header-content  { padding: 14px 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .cities-grid { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: 1fr; }
    .btn         { padding: 12px 22px; font-size: 0.875rem; }
}