/* ============================================
   Labulla Barber — Editorial Style
   Forest Green + Off-White Palette
   ============================================ */

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

:root {
    --green-900: #0f2418;
    --green-800: #1a3a2a;
    --green-700: #234d38;
    --green-600: #2d6348;
    --green-500: #3a7d5c;
    --green-400: #5a9e7a;
    --cream: #f5f0e8;
    --cream-light: #faf7f2;
    --cream-dark: #e8e0d0;
    --ink: #1a1a18;
    --ink-light: #3a3a36;
    --ink-muted: #6b6b64;
    --white: #ffffff;
    --gold: #c8a86e;
    --gold-light: #dfc08a;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Typography ---- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green-500);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--green-900);
    margin-bottom: 48px;
}

.text-accent {
    color: var(--green-600);
    font-style: italic;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 4px;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn--light {
    background: var(--cream);
    color: var(--green-900);
}

.btn--light:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn--ghost-light {
    background: transparent;
    color: var(--cream);
    border: 1.5px solid rgba(245, 240, 232, 0.5);
}

.btn--ghost-light:hover {
    border-color: var(--cream);
    background: rgba(245, 240, 232, 0.1);
}

.btn--dark {
    background: var(--green-800);
    color: var(--cream);
}

.btn--dark:hover {
    background: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 36, 24, 0.3);
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(15, 36, 24, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(0,0,0,0.15);
}

.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav__brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav__brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: -0.01em;
}

.nav__brand-tag {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 2px;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav__link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.75);
    transition: color 0.25s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
    color: var(--cream);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-900);
    background: var(--cream);
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s var(--ease-out);
}

.nav__cta:hover {
    background: var(--gold);
    color: var(--green-900);
    transform: translateY(-1px);
}

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 36, 24, 0.55) 0%,
        rgba(15, 36, 24, 0.7) 50%,
        rgba(15, 36, 24, 0.85) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: 0 24px;
    margin-left: 8%;
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--cream);
    margin-bottom: 24px;
    max-width: 680px;
}

.hero__sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.8);
    max-width: 520px;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--cream);
    opacity: 0.6;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Services ---- */
.services {
    padding: 120px 0;
    background: var(--cream);
}

.services__header {
    margin-bottom: 72px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.card__number {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 400;
    font-style: italic;
    color: var(--green-400);
    padding: 28px 28px 0;
}

.card__title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--green-900);
    padding: 8px 28px 0;
}

.card__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink-muted);
    padding: 12px 28px 24px;
}

.card__img-wrap {
    overflow: hidden;
    border-radius: 0 0 8px 8px;
}

.card__img-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.card:hover .card__img-wrap img {
    transform: scale(1.05);
}

/* ---- About ---- */
.about {
    padding: 120px 0;
    background: var(--green-900);
}

.about__layout {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__image {
    position: relative;
}

.about__image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 8px;
}

.about__image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--green-600);
    border-radius: 8px;
    z-index: -1;
}

.about__content {
    color: var(--cream);
}

.about__content .section-eyebrow {
    color: var(--gold);
}

.about__content .section-title {
    color: var(--cream);
    margin-bottom: 32px;
}

.about__body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.75);
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(245, 240, 232, 0.15);
}

.stat__number {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cream);
    display: block;
}

.stat__label {
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.5);
    letter-spacing: 0.04em;
    margin-top: 4px;
}

/* ---- Gallery ---- */
.gallery {
    padding: 120px 0;
    background: var(--cream-light);
}

.gallery__header {
    margin-bottom: 72px;
}

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

.gallery__item {
    border-radius: 8px;
    overflow: hidden;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
    display: block;
}

.gallery__item:hover img {
    transform: scale(1.04);
}

.gallery__item--large {
    grid-column: 1 / 8;
    grid-row: 1 / 2;
}

.gallery__item--large img {
    height: 420px;
}

.gallery__item:nth-child(2) {
    grid-column: 8 / 13;
    grid-row: 1 / 2;
}

.gallery__item:nth-child(2) img {
    height: 200px;
}

.gallery__item:nth-child(3) {
    grid-column: 8 / 11;
    grid-row: 2 / 3;
}

.gallery__item:nth-child(3) img {
    height: 200px;
}

.gallery__item:nth-child(4) {
    grid-column: 11 / 13;
    grid-row: 2 / 3;
}

.gallery__item:nth-child(4) img {
    height: 200px;
}

.gallery__item--wide {
    grid-column: 1 / 13;
    grid-row: 3 / 4;
}

.gallery__item--wide img {
    height: 300px;
}

/* ---- Quote ---- */
.quote {
    padding: 100px 0;
    background: var(--green-800);
    text-align: center;
}

.quote__mark {
    font-family: var(--font-serif);
    font-size: 8rem;
    line-height: 0.8;
    color: var(--green-600);
    margin-bottom: -24px;
}

.quote__text {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: var(--cream);
    max-width: 760px;
    margin: 0 auto 24px;
}

.quote__attribution {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ---- Visit / Contact ---- */
.visit {
    padding: 120px 0 0;
    background: var(--cream);
}

.visit__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 64px;
}

.visit__info .section-title {
    margin-bottom: 32px;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.visit__detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visit__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.visit__detail a {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-800);
    transition: color 0.2s;
    line-height: 1.4;
}

.visit__detail a:hover {
    color: var(--green-500);
}

.visit__note {
    font-size: 0.9rem;
    color: var(--ink-muted);
    font-style: italic;
}

.visit__form-wrap {
    background: var(--white);
    border-radius: 8px;
    padding: 48px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.visit__form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 32px;
}

.form__group {
    margin-bottom: 24px;
}

.form__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--cream-light);
    border: 1.5px solid var(--cream-dark);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(58, 125, 92, 0.12);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--green-800);
    color: var(--cream);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.visit__map {
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
}

/* ---- Footer ---- */
.footer {
    background: var(--green-900);
    padding: 64px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    align-items: start;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.footer__name {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cream);
}

.footer__tagline {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.5);
    margin-top: 8px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.65);
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--cream);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__contact a {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.65);
    transition: color 0.2s;
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer__bottom p {
    font-size: 0.78rem;
    color: rgba(245, 240, 232, 0.35);
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .about__layout {
        gap: 48px;
    }

    .gallery__item--large img {
        height: 320px;
    }

    .gallery__item img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background: var(--green-900);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    }

    .nav__menu.open {
        transform: translateX(0);
    }

    .nav__link {
        font-size: 1rem;
        color: var(--cream);
    }

    .nav__cta {
        margin-top: 12px;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__content {
        margin-left: 0;
        padding: 0 24px;
    }

    .hero__headline {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

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

    .about__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image img {
        height: 360px;
    }

    .about__image-accent {
        display: none;
    }

    .about__stats {
        flex-direction: column;
        gap: 20px;
    }

    .gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery__item--large {
        grid-column: 1 / -1;
    }

    .gallery__item--large img {
        height: 260px;
    }

    .gallery__item:nth-child(2),
    .gallery__item:nth-child(3),
    .gallery__item:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery__item:nth-child(2) img,
    .gallery__item:nth-child(3) img,
    .gallery__item:nth-child(4) img {
        height: 180px;
    }

    .gallery__item--wide {
        grid-column: 1 / -1;
    }

    .gallery__item--wide img {
        height: 200px;
    }

    .visit__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .visit__form-wrap {
        padding: 32px 24px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

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

    .section-title {
        margin-bottom: 32px;
    }

    .services,
    .about,
    .gallery,
    .quote {
        padding: 80px 0;
    }
}
