:root {
    --bg: #f7f7f7;
    --surface: #ffffff;
    --text: #111111;
    --muted: #555555;
    --border: #dddddd;
    --primary: #000000;
    --primary-hover: #333333;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--bg);
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
.btn,
.btn-primary,
.btn-secondary {
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 30px;
    background: #ffffff;
    box-shadow: 0 1px 18px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-brand a {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.nav-links a {
    color: #333333;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('img/hero.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 0 20px;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    color: #ffffff;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    margin: 0;
    line-height: 1.02;
}

.hero-content p {
    font-size: 1.15rem;
    margin: 1rem 0 1.75rem;
    color: #f1f1f1;
}

.section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.section p {
    color: var(--muted);
    line-height: 1.75;
    max-width: 760px;
}

.services-grid,
.stylists-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 30px;
}

.service-card,
.stylist-card,
.confirm-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.stylist-card:hover,
.confirm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stylists-section {
    padding: 40px;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.stylists-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 30px;
}

.stylist-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stylist-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.btn-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none;
    background: var(--primary);
    color: #ffffff;
}

.btn-select:hover {
    background: var(--primary-hover);
}

.service-card input {
    position: absolute;
    top: 16px;
    left: 16px;
    transform: scale(1.4);
    z-index: 2;
}

.service-card img,
.stylist-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-info,
.stylist-card .content {
    padding: 20px;
}

.service-info h3,
.stylist-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.service-info p,
.stylist-card p {
    margin: 0;
    color: var(--muted);
}

.services-section {
    padding: 40px;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.service-card {
    width: 260px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    background: var(--surface);
    text-align: left;
    position: relative;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.btn-next {
    display: inline-flex;
    margin-top: 30px;
    padding: 12px 25px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-next:hover {
    background: var(--primary-hover);
}

.stylist-card {
    text-align: center;
}

.stylist-card .content {
    padding: 24px 20px 28px;
}

.btn,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-next,
.btn-select,
.btn-confirm,
.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-next,
.btn-select,
.btn-confirm,
.btn-home {
    background: var(--primary);
    color: #ffffff;
}

.btn-next:hover,
.btn-select:hover,
.btn-confirm:hover,
.btn-home:hover {
    background: var(--primary-hover);
}

.btn-secondary:hover {
    background: #f7f7f7;
}

.btn-large {
    margin-top: 24px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.day,
.hour-btn {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 14px;
    background: #ffffff;
    font-size: 1rem;
    color: var(--text);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.day:hover,
.hour-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

.day.selected {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
}

.hours-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.hour-btn {
    min-width: 140px;
}

/* Calendar specific styles (from calendar.html) */
.calendar-section {
    padding: 40px;
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.day {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: var(--surface);
}

.day:hover {
    background: #f5f5f5;
}

.day.selected {
    background: var(--primary);
    color: #fff;
    font-weight: bold;
}

.hour-btn {
    padding: 10px 20px;
    border: 1px solid var(--primary);
    background: var(--surface);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

.hour-btn:hover {
    background: var(--primary);
    color: #fff;
}

.btn-confirm {
    display: inline-flex;
    margin-top: 25px;
    padding: 12px 25px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-confirm:hover {
    background: var(--primary-hover);
}

.confirm-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.confirm-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
}

.confirm-card h2 {
    margin: 0 0 18px;
    font-size: 2.35rem;
}

.confirm-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.75;
}

/* Confirm page specific styles */
.confirm-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    background: var(--bg);
}

.confirm-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.confirm-card h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: bold;
}

.confirm-card p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 10px;
}

.btn-home {
    display: inline-flex;
    margin-top: 25px;
    padding: 12px 25px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-home:hover {
    background: var(--primary-hover);
}

.footer {
    background: #000000;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

.footer p {
    margin: 0.3rem 0;
    color: #cccccc;
}

@media (max-width: 900px) {
    .calendar-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .hero {
        min-height: 65vh;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .calendar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
