/*
Theme Name: BARBER CHAIR
Theme URI: https://barberchair.local
Author: GitHub Copilot
Description: Premium barber shop WordPress theme with pricing, team section, and on-page booking demo.
Version: 1.0.0
Text Domain: barber-chair
*/

:root {
    --bg: #120f0d;
    --bg-soft: #1d1713;
    --panel: rgba(33, 26, 21, 0.86);
    --panel-strong: rgba(26, 20, 16, 0.95);
    --line: rgba(255, 255, 255, 0.08);
    --text: #f5eadf;
    --muted: #c9b39f;
    --accent: #d08a3c;
    --accent-strong: #f0ab54;
    --success: #9ed19b;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(208, 138, 60, 0.16), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #0d0a08 0%, #17110e 55%, #0d0a08 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: relative;
    padding: 24px 0 40px;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 70px 0 auto auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(208, 138, 60, 0.28), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.topbar,
.hero,
.section,
.site-footer {
    animation: rise-in 0.8s ease both;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(24, 19, 15, 0.74);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-strong), #8d5422);
    color: #1a120d;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong,
.nav-cta,
.button,
.service-tag,
.ghost-action {
    letter-spacing: 0.04em;
}

.brand-text strong,
.eyebrow,
h1,
h2,
h3 {
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

.brand-text strong {
    font-size: 1.35rem;
    font-weight: 400;
}

.brand-text small {
    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
}

.nav-links a:hover,
.site-footer a:hover {
    color: var(--accent-strong);
}

.nav-cta,
.button,
.service-select,
.ghost-action {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-cta,
.button,
.service-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-weight: 800;
}

.nav-cta,
.button-primary,
.service-select {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: #1b120c;
}

.button-secondary,
.ghost-action {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-cta:hover,
.button:hover,
.service-select:hover,
.ghost-action:hover {
    transform: translateY(-2px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 24px;
    align-items: stretch;
    padding: 28px 0 0;
}

.hero-copy,
.hero-visual,
.service-card,
.master-card,
.gallery-copy,
.booking-panel,
.booking-copy,
.feature-card,
.gallery-tile,
.site-footer,
.section {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-copy,
.hero-visual,
.booking-copy,
.booking-panel,
.section,
.site-footer {
    border-radius: var(--radius-xl);
}

.hero-copy {
    padding: 42px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-strong);
    font-size: 1rem;
}

h1,
h2,
h3,
.feature-card h2 {
    margin: 0;
    font-weight: 400;
    line-height: 0.92;
}

h1 {
    font-size: clamp(3.8rem, 8vw, 7.2rem);
    max-width: 11ch;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4.4rem);
}

h3,
.feature-card h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.hero-text,
.section-heading p,
.booking-copy p,
.service-card p,
.master-card-body p,
.gallery-copy p,
.feature-card span,
.feature-card p,
.booking-list li span,
.form-feedback,
.brand-text small,
.nav-links,
.service-meta span {
    color: var(--muted);
}

.hero-text {
    max-width: 54ch;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 18px 0 0;
}

.hero-actions,
.booking-list-header,
.booking-highlights {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 28px;
}

.hero-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 36px 0 0;
}

.hero-stats li {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats strong,
.service-meta strong,
.booking-list li strong {
    display: block;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 800;
}

.hero-visual {
    padding: 24px;
    display: grid;
    gap: 18px;
    background:
        linear-gradient(rgba(14, 10, 7, 0.5), rgba(14, 10, 7, 0.85)),
    url("hero.webp") center/cover;
}

.feature-card {
    border-radius: var(--radius-lg);
    padding: 22px;
    background: rgba(12, 10, 8, 0.7);
}

.feature-card-main {
    margin-top: auto;
}

.feature-card-note {
    margin-left: auto;
    max-width: 280px;
}

.section {
    margin-top: 24px;
    padding: 34px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.section-heading.compact {
    margin-bottom: 18px;
}

.section-heading p {
    max-width: 62ch;
    margin: 0;
    line-height: 1.7;
}

.service-grid,
.master-grid,
.gallery-layout {
    display: grid;
    gap: 18px;
}

.service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.master-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.service-card {
    padding: 24px;
}

.service-tag {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(208, 138, 60, 0.12);
    color: var(--accent-strong);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.service-card p {
    min-height: 88px;
    line-height: 1.65;
}

.service-meta {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.master-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.master-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.master-card-body {
    padding: 20px;
}

.gallery-layout {
    grid-template-columns: 1.1fr 1fr 1fr;
    grid-auto-rows: 220px;
}

.gallery-tile {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.gallery-copy {
    padding: 26px;
    display: flex;
    align-items: end;
}

.gallery-copy p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0;
}

.booking-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
}

.booking-copy,
.booking-panel {
    padding: 30px;
}

.booking-highlights span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.booking-form {
    display: grid;
    gap: 16px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-group label {
    color: var(--muted);
    font-size: 0.92rem;
}

.field-group input,
.field-group select {
    width: 100%;
    padding: 14px 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    outline: none;
}

.field-group input:focus,
.field-group select:focus {
    border-color: rgba(240, 171, 84, 0.88);
    box-shadow: 0 0 0 4px rgba(208, 138, 60, 0.14);
}

.date-select-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.9fr;
    gap: 10px;
}

.button-wide {
    width: 100%;
}

.form-feedback {
    min-height: 24px;
    margin: 0;
}

.form-feedback.success {
    color: var(--success);
}

.form-feedback.error {
    color: #ff9f9f;
}

.booking-list-panel {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.booking-list li {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.booking-list li.empty-state {
    place-items: center;
    text-align: center;
    color: var(--muted);
    min-height: 120px;
}

.ghost-action {
    padding: 10px 14px;
}

.site-footer {
    margin: 24px 0 36px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-details {
    display: grid;
    gap: 4px;
}

.footer-details p {
    margin: 0;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

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

@media (max-width: 1080px) {
    .hero,
    .booking-layout,
    .service-grid,
    .master-grid,
    .gallery-layout {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .gallery-copy {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
    }

    .topbar,
    .nav-links,
    .hero-stats,
    .field-row,
    .service-grid,
    .master-grid,
    .gallery-layout,
    .booking-layout,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .topbar,
    .site-footer {
        border-radius: 28px;
    }

    .topbar,
    .site-footer,
    .hero-actions,
    .booking-list-header {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        display: grid;
        width: 100%;
        text-align: center;
    }

    .hero-copy,
    .hero-visual,
    .section,
    .booking-copy,
    .booking-panel {
        padding: 24px;
    }

    h1 {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .gallery-layout {
        grid-auto-rows: 180px;
    }

    .date-select-grid {
        grid-template-columns: 1fr;
    }
}