/* ==========================================================================
   Barbershop template — RSA Web Design
   Colors live in the custom properties below so the build pipeline's palette
   customization can re-theme the whole site by editing only :root.
   ========================================================================== */

:root {
    --color-primary:      #e8879a;  /* rose pink */
    --color-primary-dark: #d4607a;
    --color-dark:         #1a0d10;  /* deep rose-black */
    --color-dark-soft:    #261118;
    --color-light:        #fdf0f3;  /* warm rose off-white */
    --color-text:         #2e1a1f;
    --color-text-muted:   #7a5c63;
    --color-text-on-dark: #f5e0e5;
    --color-line:         #f0d4da;
    --color-line-dark:    #3d2028;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-light);
}

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 5rem 0; }
.section-dark { background: var(--color-dark); color: var(--color-text-on-dark); }

.section-eyebrow {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8125rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
}

/* ── Header / nav ─────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 13, 16, 0.96);
    border-bottom: 1px solid rgba(232, 135, 154, 0.25);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.nav-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-on-dark);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--color-primary); }

.nav-cta {
    border: 1px solid var(--color-primary);
    padding: 0.4rem 1rem;
    color: var(--color-primary) !important;
}

.nav-cta:hover { background: var(--color-primary); color: var(--color-dark) !important; }

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: url('../images/hero.jpg') center/cover no-repeat;
    color: var(--color-text-on-dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(26, 13, 16, 0.92) 25%, rgba(26, 13, 16, 0.55) 70%, rgba(26, 13, 16, 0.35));
}

.hero-inner { position: relative; max-width: 640px; margin-left: max(calc((100vw - 1120px) / 2), 1.25rem); padding: 6rem 1.25rem; }

.hero-eyebrow {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8125rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 1.25rem;
}

.hero-sub { max-width: 34rem; margin-bottom: 2rem; font-size: 1.125rem; }

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

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.9375rem;
    padding: 0.8rem 1.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

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

.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }

.btn-ghost {
    border-color: var(--color-text-on-dark);
    color: var(--color-text-on-dark);
    background: transparent;
}

.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-block { width: 100%; }

/* ── About ────────────────────────────────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
    align-items: center;
}

.about-media img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 6px solid var(--color-dark);
    box-shadow: 12px 12px 0 var(--color-primary);
}

.about-copy p { margin-bottom: 1rem; }

.about-points { list-style: none; margin-top: 1.5rem; }

.about-points li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.about-points li::before {
    content: '✂';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* ── Services ─────────────────────────────────────────────────────────── */

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

.service-card {
    background: var(--color-dark-soft);
    border: 1px solid rgba(232, 135, 154, 0.2);
    display: flex;
    flex-direction: column;
}

.service-card img { aspect-ratio: 4 / 3; object-fit: cover; }

.service-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

.service-body h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.service-body p { font-size: 0.9375rem; color: var(--color-text-on-dark); opacity: 0.85; flex: 1; }

.service-price {
    margin-top: 1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.125rem;
    color: var(--color-primary);
}

/* ── Gallery ──────────────────────────────────────────────────────────── */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-grid img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    filter: saturate(0.9);
    transition: filter 0.2s, transform 0.2s;
}

.gallery-grid img:hover { filter: saturate(1.05); transform: scale(1.015); }

/* ── Team ─────────────────────────────────────────────────────────────── */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.team-card { text-align: center; }

.team-card img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid rgba(232, 135, 154, 0.3);
}

.team-card h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.0625rem;
    color: #fff;
}

.team-role { color: var(--color-primary); font-size: 0.9375rem; }

/* ── Testimonials ─────────────────────────────────────────────────────── */

/* Fixed-background "transparent" band — the shop reads through the cards.
   The image scrolls slower than the page (background-attachment: fixed);
   cards are semi-transparent so the photo shows through them. */
.section-parallax {
    background-image: linear-gradient(rgba(26, 13, 16, 0.82), rgba(26, 13, 16, 0.82)), url('../images/gallery-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-text-on-dark);
}

.section-parallax .section-title { color: #ffffff; }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: rgba(26, 13, 16, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 3px solid var(--color-primary);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 1.75rem;
}

.testimonial-card p { font-style: italic; margin-bottom: 1.25rem; }

.testimonial-card footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.875rem;
    color: var(--color-text-on-dark);
}

.testimonial-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-dark);
    font-weight: 600;
}

/* ── Contact ──────────────────────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info p { margin-bottom: 1.5rem; }

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

.contact-details li {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(232, 135, 154, 0.2);
}

.contact-details strong {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8125rem;
    color: var(--color-primary);
    display: inline-block;
    min-width: 6.5rem;
}

.contact-form-wrap {
    background: var(--color-dark-soft);
    border: 1px solid rgba(232, 135, 154, 0.2);
    padding: 2rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(253, 240, 243, 0.06);
    border: 1px solid rgba(232, 135, 154, 0.3);
    color: var(--color-text-on-dark);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-extra { display: none; }

.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.success { color: #7fc989; }
.form-status.error   { color: #e08a7f; }

/* ── Map band ─────────────────────────────────────────────────────────── */

/* The map opens the section full-bleed — kill the section's own top
   padding so the band sits flush under the testimonials section */
.contact.section { padding-top: 0; }

.map-band {
    margin-bottom: 4rem;
    height: 420px;
    border-bottom: 1px solid rgba(232, 135, 154, 0.25);
}

.map-band iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 640px) {
    .map-band { height: 280px; margin-bottom: 2.5rem; }
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--color-dark);
    color: var(--color-text-on-dark);
    border-top: 1px solid rgba(232, 135, 154, 0.25);
    padding: 1.75rem 0;
    font-size: 0.9375rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* The privacy link shares the credit link's treatment rather than carrying its
   own colour — one rule to keep in step with the palette, not two. */
.powered-by a, .footer-legal a { color: var(--color-primary); text-decoration: none; }

/* ── Scroll to top ────────────────────────────────────────────────────── */

.scroll-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 90;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.15s;
}

.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.scroll-top:hover { background: var(--color-primary-dark); }

.scroll-top svg { width: 22px; height: 22px; }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    /* Fixed backgrounds are unreliable on mobile browsers */
    .section-parallax { background-attachment: scroll; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-inner { margin-left: 0; }
}

@media (max-width: 640px) {
    .section { padding: 3.5rem 0; }
    .services-grid, .team-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Nav collapses earlier than the content grids — the full link row plus the
   CTA needs ~1000px before it fits on one line (tablet widths wrapped/clipped it) */
@media (max-width: 1000px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--color-dark);
        border-bottom: 1px solid rgba(232, 135, 154, 0.25);
        padding: 0.5rem 0 1rem;
    }

    .nav-links.is-open { display: flex; }

    .nav-links li { text-align: center; }

    .nav-links a { display: block; padding: 0.8rem 1.25rem; }

    .nav-cta { border: none; margin-top: 0.25rem; }
}
