/* Danny's Barbershop — design tokens & layout */

:root {
    --bg: #f6f3ed;
    --bg-alt: #efe9df;
    --bg-dark: #121212;
    --bg-dark-elevated: #1c1c1c;
    --text: #1a1a1a;
    --text-muted: #4a4a4a;
    --text-on-dark: #f0ebe3;
    --accent: #c5a059;
    --accent-hover: #d4b06a;
    --border: rgba(26, 26, 26, 0.08);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.06);
    --radius: 12px;
    --radius-lg: 20px;
    --header-h: 72px;
    --nav-h: 52px;
    --font-body: "DM Sans", system-ui, sans-serif;
    --font-display: "Bebas Neue", Impact, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --content-max: 1120px;
    /* Hero is a bit wider so the homepage photo reads larger (same aspect ratio) */
    --hero-inner-max: 1240px;
    --trans: 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    text-align: left;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color var(--trans), opacity var(--trans);
}

a:hover {
    color: #9a7a3d;
}

/* ——— Header ——— */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand__logo {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs) var(--space-sm);
}

.site-nav a {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    color: var(--text);
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: background var(--trans), color var(--trans);
}

.site-nav a:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.header-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    color: #c13584;
    font-size: 1.35rem;
    text-decoration: none;
    transition: background var(--trans), transform var(--trans);
}

.header-social:hover {
    background: var(--bg-alt);
    color: #e4405f;
    transform: scale(1.05);
}

/* ——— Sections ——— */

main {
    overflow-x: hidden;
}

.section {
    padding: var(--space-xl) var(--space-md);
}

.section--alt {
    background: var(--bg-alt);
}

.section--dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.section-inner {
    max-width: var(--content-max);
    margin: 0 auto;
}

.section-inner--narrow {
    max-width: 720px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header--light .eyebrow {
    color: var(--accent);
}

.section-header--light h2 {
    color: #fff;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    letter-spacing: 0.04em;
    margin: 0 0 var(--space-sm);
    font-weight: 400;
    line-height: 1.05;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 var(--space-xs);
}

.section-lead {
    max-width: 520px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ——— Hero ——— */

.hero {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-xl);
    /* Slightly tighter side padding so the hero image can use more viewport */
    padding-left: clamp(0.75rem, 3vw, var(--space-md));
    padding-right: clamp(0.75rem, 3vw, var(--space-md));
}

.hero__inner {
    max-width: min(100%, var(--hero-inner-max));
    margin: 0 auto;
    display: grid;
    gap: var(--space-lg);
    align-items: center;
}

@media (min-width: 900px) {
    .hero__inner {
        /* More width to the photo column — same image shape, larger on screen */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr);
        gap: calc(var(--space-xl) + 0.25rem);
    }
}

.hero__copy {
    text-align: center;
}

@media (min-width: 900px) {
    .hero__copy {
        text-align: left;
    }
}

.hero__copy h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5rem);
    letter-spacing: 0.03em;
    margin: 0 0 var(--space-sm);
    line-height: 0.95;
    font-weight: 400;
}

.hero__tagline {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin: 0 0 var(--space-md);
    max-width: 28ch;
}

@media (min-width: 900px) {
    .hero__tagline {
        margin-left: 0;
        margin-right: auto;
    }
}

.hero__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    /* Let the photo keep its natural aspect ratio so baked-in text isn’t cropped */
    background: #e8e4dc;
}

.hero__media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ——— Buttons ——— */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background var(--trans), color var(--trans), transform var(--trans), box-shadow var(--trans);
}

.btn--primary {
    background: var(--accent);
    color: #1a1a1a;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
}

.btn--primary:hover {
    background: var(--accent-hover);
    color: #1a1a1a;
    transform: translateY(-1px);
}

.btn--dark {
    background: var(--bg-dark);
    color: #fff;
}

.btn--dark:hover {
    background: #2a2a2a;
    color: #fff;
}

/* ——— Services ——— */

.services-card {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--space-md);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.services-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* ——— Gallery (home) ——— */

.gallery-block {
    margin-bottom: var(--space-xl);
}

.gallery-block:last-of-type {
    margin-bottom: var(--space-md);
}

.gallery-block__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: 0.05em;
    margin: 0 0 var(--space-sm);
    font-weight: 400;
}

.gallery-block__text {
    color: var(--text-muted);
    max-width: 62ch;
    margin: 0 0 var(--space-md);
}

.gallery-grid {
    display: grid;
    gap: var(--space-md);
}

.gallery-grid--three {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery-item {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    background: #fff;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.gallery-cta {
    text-align: center;
    padding-top: var(--space-sm);
}

/* ——— Team ——— */

.team .section-inner {
    padding-bottom: var(--space-sm);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    justify-items: center;
}

.team-card {
    text-align: center;
    max-width: 280px;
    padding: var(--space-md);
    background: var(--bg-dark-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.team-card__photo {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
}

.team-card__name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.06em;
    margin: 0 0 0.25rem;
    color: #fff;
    font-weight: 400;
}

.team-card__role {
    margin: 0 0 var(--space-sm);
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.team-card__phone {
    color: var(--text-on-dark);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
}

.team-card__phone:hover {
    color: var(--accent);
}

/* ——— About ——— */

.prose {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 auto var(--space-lg);
}

.about-contact {
    max-width: var(--content-max);
    margin: 0 auto var(--space-lg);
    padding: 0 var(--space-md);
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-card {
    background: #fff;
    padding: var(--space-md);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    margin: 0 0 var(--space-sm);
    font-weight: 400;
}

.contact-card a {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text);
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-card address {
    font-style: normal;
    color: var(--text-muted);
    line-height: 1.5;
}

.map-wrap {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-md) var(--space-lg);
}

.map-wrap iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 320px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ——— Gallery page ——— */

.gallery-hero {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-hero__bg {
    position: absolute;
    inset: 0;
}

.gallery-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) saturate(0.9);
}

.gallery-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.gallery-hero__content h1 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 6rem);
    letter-spacing: 0.06em;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    font-weight: 400;
}

.gallery-hero__sub {
    margin: var(--space-sm) 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
}

.gallery-page-content .gallery-text-block {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.gallery-page-content .gallery-text-block:last-of-type {
    border-bottom: none;
}

.gallery-text-block h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.5rem);
    letter-spacing: 0.05em;
    margin: 0 0 var(--space-sm);
    font-weight: 400;
}

.gallery-text-block p {
    color: var(--text-muted);
    max-width: 65ch;
    margin: 0 0 var(--space-md);
}

.gallery-text-block--solo p {
    margin-bottom: 0;
}

.gallery-page-content .gallery-grid {
    margin-top: var(--space-md);
}

.gallery-back {
    text-align: center;
    margin: var(--space-xl) 0 0;
}

/* ——— Footer ——— */

.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: var(--space-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

.site-footer a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
}

/* ——— Mobile ——— */

@media (max-width: 640px) {
    .header-inner {
        justify-content: center;
    }

    .brand {
        order: 0;
    }

    .header-social {
        order: 1;
    }

    .site-nav {
        order: 2;
        width: 100%;
        justify-content: center;
        padding-top: var(--space-sm);
        border-top: 1px solid var(--border);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
