/* =============================================
   Perfect Image Barbershop — Stylesheet
   Bold editorial · Forest green + off-white
   ============================================= */

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

:root {
    --forest:       #1A3C34;
    --forest-deep:  #0F261F;
    --forest-mid:   #244F44;
    --forest-light: #2D6052;
    --off-white:    #F4F1EB;
    --off-white-dim:#E8E3D9;
    --cream:        #FAFAF7;
    --accent:       #C8A86E;
    --accent-light: #D4BA85;
    --text-dark:    #1A1A18;
    --text-mid:     #4A4A46;
    --text-light:   #7A7A74;
    --radius-sm:    8px;
    --radius-md:    14px;
    --radius-lg:    24px;
    --transition:   0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ── Typography ─────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    color: var(--forest);
}

.text-accent { color: var(--accent); }

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* ── Buttons ────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    padding: 0.9rem 1.75rem;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--forest);
    color: var(--off-white);
}
.btn-primary:hover {
    background: var(--forest-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 60, 52, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--off-white);
    border: 1.5px solid rgba(244, 241, 235, 0.5);
}
.btn-outline:hover {
    background: rgba(244, 241, 235, 0.1);
    border-color: var(--off-white);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--forest);
    color: var(--off-white);
}
.btn-dark:hover {
    background: var(--forest-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 60, 52, 0.3);
}

.btn-full { width: 100%; justify-content: center; }

/* ── Navigation ─────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(244, 241, 235, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26, 60, 52, 0.08);
    transition: var(--transition);
}
.nav.scrolled {
    background: rgba(244, 241, 235, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.nav-brand-mark {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--forest);
    background: var(--forest);
    color: var(--off-white);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--forest);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    padding: 0.5rem 0.875rem;
    border-radius: 50px;
    transition: var(--transition);
}
.nav-link:hover { color: var(--forest); background: rgba(26, 60, 52, 0.06); }

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--off-white);
    background: var(--forest);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-left: 0.5rem;
    transition: var(--transition);
}
.nav-cta:hover { background: var(--forest-mid); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}
.nav-toggle-line {
    display: block;
    height: 2px;
    background: var(--forest);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}
.nav-toggle.active .nav-toggle-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ───────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 35%, var(--forest-mid) 70%, #1E4D3F 100%);
    padding-top: 72px;
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(200, 168, 110, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 30%, rgba(45, 96, 82, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 10% 80%, rgba(200, 168, 110, 0.08) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 4rem clamp(1.5rem, 5vw, 4rem) 3rem;
    max-width: 600px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--off-white);
    margin-bottom: 1.5rem;
}
.hero-accent {
    font-style: italic;
    font-weight: 500;
    color: var(--accent);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(244, 241, 235, 0.75);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(244, 241, 235, 0.6);
}
.hero-meta-item svg { color: var(--accent); opacity: 0.8; }

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: clamp(280px, 42vw, 560px);
    height: auto;
    max-height: calc(100vh - 72px);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: var(--radius-lg);
    mask-image: linear-gradient(to left, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 60%, transparent 100%);
}

.hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

/* ── Services ───────────────────────────── */
.services {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: var(--off-white);
}

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

.service-card {
    background: var(--cream);
    border: 1px solid rgba(26, 60, 52, 0.08);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 60, 52, 0.1);
    border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

.service-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(26, 60, 52, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    margin-bottom: 1.25rem;
    transition: var(--transition);
}
.service-card:hover .service-card-icon { background: var(--forest); color: var(--off-white); }

.service-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--forest);
}

.service-card-desc {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.service-card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(200, 168, 110, 0.12);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    display: inline-block;
}

/* ── About ──────────────────────────────── */
.about {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.about-image-wrap {
    position: relative;
}
.about-image-wrap img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    aspect-ratio: 560/680;
}
.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 40%;
    background: var(--forest);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.12;
}

.about-content { padding: 1rem 0; }

.about-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(26, 60, 52, 0.1);
    border-bottom: 1px solid rgba(26, 60, 52, 0.1);
}

.about-stat { text-align: left; }
.about-stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1;
    margin-bottom: 0.35rem;
}
.about-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Gallery ────────────────────────────── */
.gallery {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: var(--off-white);
}

.gallery .section-header { margin-bottom: 3rem; }

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item--wide { grid-column: span 7; }
.gallery-item:not(.gallery-item--wide) { grid-column: span 5; }
.gallery-grid .gallery-item:nth-child(2) { grid-row: 2; }
.gallery-grid .gallery-item:nth-child(3) { grid-row: 1; }
.gallery-grid .gallery-item:nth-child(4) { grid-row: 2; }
.gallery-grid .gallery-item:nth-child(5) { grid-row: 1; }

/* ── Visit ──────────────────────────────── */
.visit {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: var(--forest);
    color: var(--off-white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.visit-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    color: var(--off-white);
    margin-bottom: 2.5rem;
}

.visit-details { margin-bottom: 2.5rem; }

.visit-detail {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.visit-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(244, 241, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.visit-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(244, 241, 235, 0.5);
    margin-bottom: 0.25rem;
}
.visit-detail-value {
    font-size: 1rem;
    color: var(--off-white);
    line-height: 1.6;
}
.visit-link { transition: color var(--transition); }
.visit-link:hover { color: var(--accent); }

.visit-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}
.visit-map-link { display: block; position: relative; }
.visit-map-link img {
    width: 100%;
    height: auto;
    aspect-ratio: 800/350;
    object-fit: cover;
    border-radius: var(--radius-md);
    opacity: 0.7;
    transition: var(--transition);
}
.visit-map-link:hover img { opacity: 1; }
.visit-map-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--off-white);
    background: rgba(26, 60, 52, 0.85);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}
.visit-map-link:hover .visit-map-overlay { background: rgba(26, 60, 52, 0.95); }

/* ── Form ───────────────────────────────── */
.visit-form-wrap {
    position: sticky;
    top: 100px;
}

.visit-form-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-dark);
}

.visit-form-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--forest);
}

.visit-form-sub {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.75rem;
}

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

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--cream);
    border: 1.5px solid rgba(26, 60, 52, 0.12);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}
.form-input:focus {
    border-color: var(--forest);
    background: var(--off-white);
    box-shadow: 0 0 0 3px rgba(26, 60, 52, 0.08);
}
.form-input::placeholder { color: var(--text-light); }

.form-select { appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%234A4A46' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-textarea { resize: vertical; min-height: 80px; }

.form-note {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
}

.form-success {
    text-align: center;
    padding: 2rem 1rem;
}
.form-success-icon {
    color: var(--forest);
    margin: 0 auto 1rem;
}
.form-success-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--forest);
}
.form-success-text {
    font-size: 0.9rem;
    color: var(--text-mid);
}

/* ── Footer ─────────────────────────────── */
.footer {
    background: var(--forest-deep);
    color: rgba(244, 241, 235, 0.7);
    padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(244, 241, 235, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.footer-logo-mark {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    background: var(--forest-mid);
    color: var(--off-white);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--off-white);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
    color: rgba(244, 241, 235, 0.55);
}

.footer-col-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.footer-links li { margin-bottom: 0.6rem; }
.footer-links a,
.footer-links span {
    font-size: 0.9rem;
    color: rgba(244, 241, 235, 0.6);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--off-white); }

.footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid rgba(244, 241, 235, 0.06);
}
.footer-hours li:last-child { border-bottom: none; }
.footer-hours span:first-child { color: rgba(244, 241, 235, 0.55); }
.footer-hours span:last-child { color: rgba(244, 241, 235, 0.85); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: rgba(244, 241, 235, 0.35);
}

/* ── Animations ─────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile Menu ────────────────────────── */
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(244, 241, 235, 0.98);
    backdrop-filter: blur(16px);
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(26, 60, 52, 0.08);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    gap: 0.25rem;
}
.nav-links.mobile-open .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
    .hero { flex-direction: column; min-height: auto; padding-top: 100px; padding-bottom: 0; }
    .hero-content { padding: 3rem clamp(1.5rem, 5vw, 3rem) 2rem; max-width: 100%; text-align: center; }
    .hero-headline { font-size: clamp(2.5rem, 10vw, 4rem); }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-meta { justify-content: center; }
    .hero-image {
        position: relative;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        max-height: 400px;
    }
    .hero-image img { border-radius: var(--radius-lg); mask-image: none; -webkit-mask-image: none; }
    .hero-divider { display: none; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .about-grid { grid-template-columns: 1fr; }
    .about-image-wrap { max-width: 480px; margin: 0 auto; }

    .gallery-item--wide { grid-column: span 12; }
    .gallery-item:not(.gallery-item--wide) { grid-column: span 6; }
    .gallery-grid .gallery-item:nth-child(2),
    .gallery-grid .gallery-item:nth-child(3),
    .gallery-grid .gallery-item:nth-child(4),
    .gallery-grid .gallery-item:nth-child(5) { grid-row: auto; }

    .visit-grid { grid-template-columns: 1fr; }
    .visit-form-wrap { sticky: unset; top: unset; }

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

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

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

    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item--wide,
    .gallery-item:not(.gallery-item--wide) { grid-column: span 1; }

    .about-stats { flex-wrap: wrap; gap: 1.5rem; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}
