/* ========================================
   Alpha Barber Co. — Stylesheet
   Black, White, Gold/Brass palette
   Mobile-first, WCAG 2.1 AA compliant
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --dark-2: #2a2a2a;
    --gray: #888;
    --light-gray: #e0e0e0;
    --white: #f5f5f5;
    --pure-white: #ffffff;
    --gold: #c9a84c;
    --gold-light: #dfc06a;
    --gold-dark: #a8872e;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 72px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover, a:focus {
    color: var(--gold-light);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--black);
}

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

.btn-outline:hover, .btn-outline:focus {
    background: var(--gold);
    color: var(--black);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-2);
    height: var(--header-height);
    transition: background 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
}

.logo-alpha {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 4px;
}

.logo-barber {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--white);
    letter-spacing: 3px;
    font-weight: 400;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold);
}

.nav-cta {
    padding: 10px 24px;
    font-size: 0.8rem;
}

.header-cta-mobile {
    display: none;
    padding: 8px 16px;
    font-size: 0.75rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--black) 100%);
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 4rem 0;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.05;
    color: var(--pure-white);
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Info Bar --- */
.info-bar {
    background: var(--dark);
    border-top: 2px solid var(--gold);
    padding: 2rem 0;
}

.info-bar-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--gold);
}

.info-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 4px;
}

.info-item span {
    font-size: 0.85rem;
    color: var(--light-gray);
    line-height: 1.5;
}

.info-item a {
    color: var(--light-gray);
}

.info-item a:hover {
    color: var(--gold);
}

/* --- Sections --- */
.section {
    padding: 5rem 0;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pure-white);
    margin-bottom: 2rem;
    line-height: 1.1;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-placeholder {
    background: var(--dark);
    border: 1px solid var(--dark-2);
    border-radius: 8px;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--gray);
}

.about-content p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* --- Services Preview --- */
.services-preview {
    background: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--black);
    border: 1px solid var(--dark-2);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.service-card-icon {
    color: var(--gold);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    color: var(--pure-white);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.service-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
}

/* --- Reviews --- */
.reviews-section {
    background: var(--black);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.review-card {
    background: var(--dark);
    border: 1px solid var(--dark-2);
    border-radius: 8px;
    padding: 2rem;
}

.review-stars {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-card p {
    font-size: 0.95rem;
    color: var(--light-gray);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-source {
    font-size: 0.8rem;
    color: var(--gray);
    font-style: normal;
}

/* --- CTA Section --- */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--black) 100%);
    border-top: 1px solid var(--dark-2);
    border-bottom: 1px solid var(--dark-2);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    padding: 4rem 0 0;
    border-top: 2px solid var(--gold);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 1rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--gray);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--gold);
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-links a,
.footer-links p {
    display: block;
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--dark-2);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* --- Floating CTA (mobile) --- */
.floating-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
    transition: all 0.3s;
}

.floating-cta:hover {
    background: var(--gold-light);
    color: var(--black);
    transform: translateY(-2px);
}

/* --- Page Header (inner pages) --- */
.page-header {
    padding: 8rem 0 3rem;
    background: var(--dark);
    text-align: center;
    border-bottom: 2px solid var(--gold);
    margin-top: var(--header-height);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    color: var(--pure-white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--light-gray);
    font-size: 1.1rem;
}

/* --- Services Page --- */
.services-section {
    padding: 4rem 0;
}

.service-category {
    margin-bottom: 3rem;
}

.service-category h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dark-2);
}

.service-table {
    width: 100%;
    border-collapse: collapse;
}

.service-table th {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--dark-2);
}

.service-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--dark-2);
    font-size: 0.95rem;
    color: var(--light-gray);
    vertical-align: top;
}

.service-table tr:hover td {
    background: var(--dark);
}

.service-table .service-name {
    color: var(--pure-white);
    font-weight: 500;
}

.service-table .service-price-cell {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}

.service-table .service-duration-cell {
    white-space: nowrap;
    color: var(--gray);
}

.services-note {
    background: var(--dark);
    border: 1px solid var(--dark-2);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* --- Team Page --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.team-card {
    background: var(--dark);
    border: 1px solid var(--dark-2);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}

.team-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.team-card-photo {
    background: var(--dark-2);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.team-card-photo svg {
    opacity: 0.3;
}

.team-card-info {
    padding: 1.5rem;
}

.team-card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--pure-white);
    margin-bottom: 0.25rem;
}

.team-card-info .team-handle {
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: block;
}

.team-card-info p {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.team-card-info .team-rating {
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.team-card-info .btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* --- Gallery Page --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 4rem 0;
}

.gallery-item {
    background: var(--dark);
    border: 1px solid var(--dark-2);
    border-radius: 8px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.85rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

.gallery-item:hover {
    border-color: var(--gold);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Book Page --- */
.book-section {
    padding: 4rem 0;
}

.book-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: var(--dark);
    border: 1px solid var(--dark-2);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s;
}

.book-card:hover {
    border-color: var(--gold);
}

.book-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--pure-white);
    margin-bottom: 0.5rem;
}

.book-card p {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.book-walkin {
    background: var(--dark);
    border: 1px solid var(--dark-2);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
}

.book-walkin h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.book-walkin p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-list svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-list h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pure-white);
    margin-bottom: 0.25rem;
}

.contact-info-list p, .contact-info-list a {
    font-size: 0.95rem;
    color: var(--light-gray);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--dark-2);
    aspect-ratio: 1;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-cta {
        font-size: 1rem;
        padding: 14px 32px;
    }

    .hamburger {
        display: flex;
    }

    .header-cta-mobile {
        display: inline-block;
    }

    .info-bar-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .floating-cta {
        display: block;
    }

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

    .service-table th:last-child,
    .service-table td:last-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

/* --- Accessibility --- */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--gold);
    color: var(--black);
    padding: 12px 24px;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}