/* ============================================
   Hector's Dominican Barbershop — Styles
   Palette: Emerald Green + Cream
   ============================================ */

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

:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;

    --cream-50:  #fefdf8;
    --cream-100: #fefce8;
    --cream-200: #fef9c3;
    --cream-300: #fef08a;
    --cream-400: #fde68a;

    --stone-50:  #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --stone-950: #0c0a09;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.06);
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--stone-800);
    background-color: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--emerald-700);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
    font-weight: 500;
}

.skip-link:focus {
    top: 1rem;
}

.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: 100;
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--emerald-800);
    letter-spacing: -0.02em;
}

.nav__logo-icon {
    color: var(--emerald-600);
}

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

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--stone-600);
    transition: color 0.2s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-500);
    border-radius: 1px;
    transition: width 0.2s ease;
}

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

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

.nav__cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--emerald-600);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav__cta:hover {
    background: var(--emerald-700);
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 101;
}

.nav__toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--stone-700);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--primary {
    color: #fff;
    background: var(--emerald-600);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn--primary:hover {
    background: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.btn--ghost {
    color: var(--emerald-700);
    background: rgba(5, 150, 105, 0.08);
    border: 1.5px solid rgba(5, 150, 105, 0.2);
}

.btn--ghost:hover {
    background: rgba(5, 150, 105, 0.14);
    border-color: rgba(5, 150, 105, 0.35);
    transform: translateY(-2px);
}

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

.btn--dark:hover {
    background: var(--stone-900);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ---- Section Headers ---- */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-600);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    padding: 0.35rem 0.875rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--stone-900);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.05rem;
    color: var(--stone-500);
    max-width: 560px;
    line-height: 1.7;
}

.section-header--center {
    text-align: center;
}

.section-header--center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-900) 50%, var(--emerald-800) 100%);
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    pointer-events: none;
}

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

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-300);
    margin-bottom: 1.5rem;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald-400);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero__accent {
    color: var(--emerald-300);
    font-style: italic;
}

.hero__description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin-bottom: 2rem;
}

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

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

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.hero__trust-item svg {
    color: var(--emerald-400);
    flex-shrink: 0;
}

/* Hero Image */
.hero__image {
    position: relative;
}

.hero__image-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.hero__image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--emerald-500);
    border-radius: var(--radius-lg);
    opacity: 0.2;
    z-index: -1;
}

.hero__image-badge {
    position: absolute;
    bottom: 1.5rem;
    left: -1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--stone-800);
}

.hero__image-badge svg {
    color: var(--emerald-500);
}

/* ---- Services ---- */
.services {
    padding: 7rem 0;
    background: var(--cream-50);
}

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

.service-card {
    background: #fff;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--emerald-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-md);
    color: var(--emerald-600);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-card__icon {
    background: var(--emerald-600);
    border-color: var(--emerald-600);
    color: #fff;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--stone-500);
    line-height: 1.7;
}

/* ---- About ---- */
.about {
    padding: 7rem 0;
    background: var(--stone-50);
}

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

.about__image-group {
    position: relative;
}

.about__image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about__image-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--cream-50);
}

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

.about__stats {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    display: flex;
    gap: 0.75rem;
}

.about__stat {
    background: var(--emerald-600);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about__stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.about__stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.about__content {
    max-width: 480px;
}

.about__text {
    font-size: 1rem;
    color: var(--stone-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 2rem 0;
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--stone-700);
}

.about__feature-dot {
    width: 6px;
    height: 6px;
    background: var(--emerald-500);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Gallery ---- */
.gallery {
    padding: 7rem 0;
    background: var(--cream-50);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.gallery__item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

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

.gallery__item--large {
    grid-column: span 5;
    grid-row: span 2;
}

.gallery__item--large img {
    height: 100%;
    min-height: 400px;
}

.gallery__item--wide {
    grid-column: span 7;
}

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

.gallery__item:not(.gallery__item--large):not(.gallery__item--wide) img {
    height: 200px;
}

/* ---- Visit ---- */
.visit {
    padding: 7rem 0;
    background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
    position: relative;
    overflow: hidden;
}

.visit::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.visit__info {
    color: #fff;
}

.visit__info .section-tag {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--emerald-300);
}

.visit__info .section-title {
    color: #fff;
}

.visit__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2.5rem;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

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

.visit__detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--emerald-400);
    flex-shrink: 0;
}

.visit__detail strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.25rem;
}

.visit__detail p,
.visit__detail a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.visit__detail a:hover {
    color: var(--emerald-300);
    text-decoration: underline;
}

.visit__map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    min-height: 420px;
}

.visit__map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: var(--stone-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--stone-500);
    text-align: center;
    transition: background 0.3s ease;
}

.visit__map-placeholder:hover {
    background: var(--stone-300);
}

.visit__map-placeholder svg {
    color: var(--emerald-500);
}

.visit__map-placeholder p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--stone-700);
}

.visit__map-hint {
    font-size: 0.8rem;
    color: var(--stone-400);
}

/* ---- Footer ---- */
.footer {
    background: var(--stone-950);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer__logo svg {
    color: var(--emerald-500);
}

.footer__tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

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

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

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

.footer__contact p {
    font-size: 0.9rem;
}

.footer__bottom {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero__container {
        gap: 2.5rem;
    }
    
    .hero__headline {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about__inner {
        gap: 2.5rem;
    }
    
    .gallery__grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery__item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery__item--large img {
        min-height: 300px;
    }
    
    .gallery__item--wide {
        grid-column: span 2;
    }
    
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }
    
    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--cream-50);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1.25rem;
        box-shadow: var(--shadow-xl);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .nav__menu.open {
        transform: translateX(0);
    }
    
    .nav__cta {
        margin-top: 0.5rem;
    }

    .hero {
        padding: 7rem 0 4rem;
        min-height: auto;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero__image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero__image-badge {
        left: 0;
        bottom: 1rem;
    }
    
    .hero__trust {
        gap: 1rem;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .about__inner {
        grid-template-columns: 1fr;
    }
    
    .about__image-group {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about__image-secondary {
        right: -1rem;
        bottom: -1.5rem;
    }
    
    .about__stats {
        right: -1rem;
        top: -1rem;
    }
    
    .about__features {
        grid-template-columns: 1fr;
    }
    
    .gallery__grid {
        grid-template-columns: 1fr;
    }
    
    .gallery__item--large,
    .gallery__item--wide {
        grid-column: span 1;
    }
    
    .gallery__item--large img,
    .gallery__item--wide img {
        min-height: 220px;
    }
    
    .visit__inner {
        grid-template-columns: 1fr;
    }
    
    .visit__map {
        min-height: 280px;
    }
    
    .visit__map-placeholder {
        min-height: 280px;
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        justify-content: center;
        width: 100%;
    }
    
    .hero__image-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        display: inline-flex;
    }
}
