/* ============================================
   Hair Gin Salon — Custom Styles
   ============================================ */

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

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

body {
    min-height: 100vh;
    line-height: 1.7;
    color: #1e421e;
    background-color: #fdfcfa;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(53, 112, 53, 0.1);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(30, 66, 30, 0.08);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #1e421e;
}

.nav__brand-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #1e421e;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__menu a {
    text-decoration: none;
    color: #1e421e;
    font-weight: 600;
    font-size: 0.938rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav__menu a:hover {
    background: rgba(53, 112, 53, 0.08);
}

.nav__cta {
    background: #357035 !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 700 !important;
}

.nav__cta:hover {
    background: #265426 !important;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 0.85rem 1.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--primary {
    background: #357035;
    color: #fff;
    border-color: #357035;
}

.btn--primary:hover {
    background: #265426;
    border-color: #265426;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(53, 112, 53, 0.3);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn--white {
    background: #fff;
    color: #1e421e;
    border-color: #fff;
}

.btn--white:hover {
    background: #f2f7f2;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #1e421e;
    overflow: hidden;
    padding-top: 72px;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(16, 36, 16, 0.92) 0%,
        rgba(30, 66, 30, 0.80) 50%,
        rgba(53, 112, 53, 0.55) 100%
    );
    z-index: 1;
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b3cfb3;
    margin-bottom: 1rem;
}

.hero__headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.18;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.hero__sub {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.trust-item svg {
    color: #b3cfb3;
    flex-shrink: 0;
}

.hero__image-wrap {
    position: relative;
}

.hero__image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__badge {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    background: #fff;
    color: #1e421e;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Section shared --- */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #357035;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #1e421e;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-sub {
    font-size: 1.063rem;
    color: #3a6b3a;
    line-height: 1.75;
}

/* --- Cards --- */
.card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(30, 66, 30, 0.06);
    border: 1px solid rgba(53, 112, 53, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 66, 30, 0.12);
}

/* --- Services --- */
.services {
    background: #f2f7f2;
}

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

.service-card {
    text-align: center;
    padding: 2.25rem 1.75rem;
}

.service-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #357035;
    box-shadow: 0 4px 12px rgba(53, 112, 53, 0.1);
}

.service-card__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.188rem;
    font-weight: 700;
    color: #1e421e;
    margin-bottom: 0.75rem;
}

.service-card__desc {
    font-size: 0.938rem;
    color: #3a6b3a;
    line-height: 1.7;
}

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

.about__images {
    position: relative;
}

.about__img-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(30, 66, 30, 0.12);
}

.about__img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__img-small {
    position: absolute;
    bottom: -2rem;
    right: -1rem;
    width: 55%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(30, 66, 30, 0.15);
    border: 4px solid #fdfcfa;
}

.about__img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__content .section-eyebrow {
    text-align: left;
}

.about__content .section-title {
    text-align: left;
}

.about__text {
    font-size: 1.063rem;
    color: #3a6b3a;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about__list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.about__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #1e421e;
}

.about__list li svg {
    flex-shrink: 0;
}

/* --- Gallery --- */
.gallery {
    background: #f2f7f2;
}

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

.gallery__item {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    position: relative;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

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

.testimonial-card {
    padding: 2rem;
}

.testimonial-card__stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-card__text {
    font-size: 1rem;
    line-height: 1.75;
    color: #1e421e;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-card__footer {
    border-top: 1px solid rgba(53, 112, 53, 0.1);
    padding-top: 1rem;
}

.testimonial-card__name {
    font-weight: 700;
    font-size: 0.938rem;
    color: #357035;
}

/* --- CTA --- */
.cta-section {
    padding: 6rem 0;
    background: #1e421e;
}

.cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-box__eyebrow {
    color: #b3cfb3 !important;
}

.cta-box__title {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-box__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.cta-box__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Contact --- */
.contact {
    background: #f2f7f2;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__text {
    font-size: 1.063rem;
    color: #3a6b3a;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contact__details {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

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

.contact__item-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #357035;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(53, 112, 53, 0.08);
}

.contact__item dt {
    font-size: 0.813rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #357035;
    margin-bottom: 0.25rem;
}

.contact__item dd {
    font-size: 1rem;
    color: #1e421e;
    line-height: 1.6;
}

.contact__item a {
    color: #1e421e;
    text-decoration: none;
    transition: color 0.2s;
}

.contact__item a:hover {
    color: #357035;
    text-decoration: underline;
}

.contact__hours h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e421e;
    margin-bottom: 1rem;
}

.contact__hours ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.contact__hours li {
    display: flex;
    justify-content: space-between;
    font-size: 0.938rem;
    color: #3a6b3a;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(53, 112, 53, 0.1);
}

.contact__hours li span:last-child {
    font-weight: 700;
    color: #1e421e;
}

/* --- Contact Form --- */
.contact__form-wrap {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(30, 66, 30, 0.08);
    border: 1px solid rgba(53, 112, 53, 0.06);
}

.contact__form h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e421e;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e421e;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(53, 112, 53, 0.15);
    border-radius: 12px;
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 1rem;
    color: #1e421e;
    background: #fdfcfa;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #357035;
    box-shadow: 0 0 0 3px rgba(53, 112, 53, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9bb89b;
}

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

.form-success {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #f2f7f2;
    border: 1px solid rgba(53, 112, 53, 0.2);
    border-radius: 12px;
    color: #1e421e;
    font-weight: 600;
    text-align: center;
}

/* --- Map --- */
.map-section {
    padding: 0;
}

.map-section__wrap {
    border-radius: 0;
    overflow: hidden;
}

.map-section__wrap iframe {
    width: 100%;
    display: block;
}

/* --- Footer --- */
.footer {
    background: #102410;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

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

.footer__brand p {
    margin-top: 1rem;
    font-size: 0.938rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer__quick h4,
.footer__contact h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.063rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer__quick ul,
.footer__contact ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.footer__quick a,
.footer__contact a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.938rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.footer__quick a:hover,
.footer__contact a:hover {
    color: #b3cfb3;
}

.footer__contact li {
    display: flex !important;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.938rem;
}

.footer__contact svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: #b3cfb3;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer__bottom a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__bottom a:hover {
    color: #b3cfb3;
}

/* --- Scroll Reveal (progressive enhancement) --- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.js .reveal-delay-1 { transition-delay: 0.1s; }
.js .reveal-delay-2 { transition-delay: 0.2s; }
.js .reveal-delay-3 { transition-delay: 0.3s; }
.js .reveal-delay-4 { transition-delay: 0.4s; }
.js .reveal-delay-5 { transition-delay: 0.5s; }
.js .reveal-delay-6 { transition-delay: 0.6s; }

/* --- Mobile Menu --- */
@media (max-width: 900px) {
    .nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 252, 250, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.25rem;
        border-bottom: 1px solid rgba(53, 112, 53, 0.1);
        box-shadow: 0 8px 24px rgba(30, 66, 30, 0.08);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav__menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__menu a,
    .nav__menu .nav__cta {
        width: 100%;
        text-align: left;
        padding: 0.85rem 1rem;
        border-radius: 12px;
        font-size: 1rem;
    }

    .nav__menu .nav__cta {
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero__sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__trust {
        justify-content: center;
    }

    .hero__image-wrap {
        max-width: 480px;
        margin: 0 auto;
    }

    .hero__badge {
        left: 50%;
        transform: translateX(-50%);
    }

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

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

    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about__images {
        max-width: 480px;
        margin: 0 auto;
    }

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

    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 4rem 0;
    }

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

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 3rem;
    }

    .hero__image {
        border-radius: 16px;
    }

    .hero__badge {
        bottom: -0.75rem;
        left: 50%;
        transform: translateX(-50%);
    }

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

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

    .contact__form-wrap {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero__image {
        animation: heroImageIn 0.8s ease both;
    }

    @keyframes heroImageIn {
        from { opacity: 0; transform: scale(0.96); }
        to { opacity: 1; transform: scale(1); }
    }
}
