﻿:root {
    --bg: #f8f1e7;
    --bg-deep: #f1e6d6;
    --accent: #d15a2c;
    --accent-dark: #9c3d1e;
    --ink: #1b1b1b;
    --muted: #5c5248;
    --card: #ffffff;
    --shadow: 0 20px 60px rgba(28, 20, 12, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, #fff6ea 0%, var(--bg) 45%, var(--bg-deep) 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 6vw 3rem;
    position: relative;
    overflow: hidden;
    background: url('/assets/img/bgfirst.jpg') center/cover no-repeat;
    color: #fff;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.hero::after {
    display: none;
}

.hero__content,
.hero__visual {
    position: relative;
    z-index: 1;
}

.hero__tag {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    font-size: 1.1rem;
    color: #e6e6e6;
    margin-bottom: 0.5rem;
}

.hero__logo {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 0.8rem;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.15);
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    margin: 0 0 1rem;
}

.hero__lead {
    font-size: 1.1rem;
    color: #e0e0e0;
    max-width: 520px;
}

.hero__actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__card {
    background: var(--card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 320px;
    margin-left: auto;
    animation: floatIn 0.9s ease both;
}

.hero__time {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.6rem 0;
}

.hero__note {
    color: var(--accent-dark);
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(209, 90, 44, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--accent-dark);
    border: 2px solid var(--accent-dark);
}

.intro,
.barbers,
.booking {
    padding: 3.5rem 6vw;
}

.intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.intro__text h2,
.barbers h2,
.booking h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 1rem;
}

.intro__highlights {
    display: grid;
    gap: 1.5rem;
}

.intro__highlights h4 {
    margin-bottom: 0.4rem;
}

.btn--alt {
    background: #b84d24;
    color: #fff;
}

.info-sections {
    padding: 3.5rem 6vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.info-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.6rem;
    box-shadow: var(--shadow);
    border: 1px solid #e6dfd5;
}

.info-card h2 {
    margin-top: 0;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.8rem;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed #d7cec2;
    font-weight: 600;
}

.price-list span:last-child {
    color: #4a7a5a;
    white-space: nowrap;
}

.barbers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.barber-card {
    background: var(--card);
    padding: 1.8rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent);
}

.booking {
    background: linear-gradient(135deg, #fff 0%, #fff7ef 100%);
}

.booking__content {
    max-width: 760px;
    margin: 0 auto;
}

.booking__form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.booking-panel {
    grid-column: 1 / -1;
    background: #efe7dc;
    border-radius: 16px;
    padding: 1.4rem;
    display: grid;
    gap: 1rem;
}

.booking-panel.is-hidden {
    display: none;
}

.booking-panel h3 {
    margin: 0;
    font-size: 1.1rem;
}

.booking-panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.required {
    color: var(--accent-dark);
    margin-left: 0.2rem;
}

.pill {
    border: none;
    background: #dcd2c5;
    color: var(--ink);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    font-weight: 600;
}

.date-strip {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    gap: 0.6rem;
    background: #e3dbd1;
    padding: 0.6rem;
    border-radius: 14px;
}

.calendar {
    background: #e8dfd4;
    border-radius: 16px;
    padding: 1rem;
    display: grid;
    gap: 0.8rem;
}

.calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.calendar__label {
    font-weight: 700;
    text-transform: capitalize;
}

.calendar__nav {
    border: none;
    background: #a9a2a0;
    color: #fff;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    cursor: pointer;
}

.calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.85rem;
    color: #5f564b;
    font-weight: 600;
}

.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
}

.calendar__cell {
    border: none;
    background: #f5efe8;
    border-radius: 10px;
    padding: 0.65rem 0;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.calendar__cell.is-active {
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.calendar__cell.is-disabled {
    background: #b7b0ab;
    color: #3f3b36;
    cursor: not-allowed;
}

.calendar__cell.is-empty {
    background: transparent;
    cursor: default;
}

.date-nav {
    border: none;
    background: #a9a2a0;
    color: #fff;
    border-radius: 10px;
    width: 42px;
    font-size: 1.5rem;
    cursor: pointer;
}

.date-list {
    display: grid;
    grid-template-columns: repeat(7, minmax(80px, 1fr));
    gap: 0.4rem;
}

.date-card {
    border: none;
    background: #ece7e1;
    border-radius: 10px;
    padding: 0.7rem 0.4rem;
    text-align: center;
    cursor: pointer;
    display: grid;
    gap: 0.2rem;
    font-weight: 600;
}

.date-card__day {
    font-size: 1rem;
}

.date-card__label {
    font-size: 0.85rem;
    color: #5f564b;
}

.date-card.is-active {
    background: #ffffff;
    color: #1d1a16;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.date-card.is-disabled {
    background: #b7b0ab;
    color: #3f3b36;
    cursor: not-allowed;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.8rem;
}

.time-pill {
    border: none;
    background: #c9c1b8;
    color: #2a2621;
    border-radius: 10px;
    padding: 0.8rem 0.6rem;
    font-weight: 700;
    cursor: pointer;
}

.time-pill.is-active {
    background: #d15a2c;
    color: #fff;
}

.empty-state {
    margin: 0;
    grid-column: 1 / -1;
    color: var(--muted);
}

.time-pill.is-disabled {
    background: #d65c5c;
    color: #fff;
    cursor: not-allowed;
}

.barber-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.barber-choice {
    border: 2px solid #d9cfc4;
    background: transparent;
    border-radius: 16px;
    padding: 0.9rem;
    display: grid;
    gap: 0.6rem;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
}

.barber-choice img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    display: block;
}

.barber-choice__name {
    font-size: 1rem;
    font-weight: 700;
}

.barber-choice.is-active {
    border-color: var(--accent);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.barber-choice.is-active img {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
    box-shadow: 0 10px 20px rgba(209, 90, 44, 0.35);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

input,
select {
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #d5c7b7;
    font-size: 1rem;
    font-family: inherit;
}

input:focus,
select:focus {
    outline: 2px solid rgba(209, 90, 44, 0.35);
    border-color: var(--accent);
}

.form-note {
    grid-column: 1 / -1;
    color: var(--muted);
    margin: 0.4rem 0 0;
}

.form-message {
    grid-column: 1 / -1;
    font-weight: 600;
    margin: 0;
}

.form-message.success {
    color: #1e7c4b;
}

.form-message.error {
    color: #b3312f;
}

.footer {
    padding: 2.5rem 6vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #1d1a16;
    color: #f7efe5;
}

.footer__link {
    color: #f7efe5;
    font-weight: 600;
}

.cancel-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.cancel-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 520px;
    text-align: center;
}

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

@media (max-width: 640px) {
    .hero {
        padding: 3rem 6vw;
    }

    .hero__card {
        margin: 0;
        width: 100%;
    }

    .date-list {
        grid-template-columns: repeat(7, minmax(72px, 1fr));
        overflow-x: auto;
    }

    .date-strip {
        padding: 0.5rem;
    }

    .time-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .calendar {
        padding: 0.8rem;
    }

    .barber-choice img {
        height: 180px;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
