/* 
  Hiro Barbershop — Ultra-Premium Brand CSS
  Brand: #e9c176 (gold), #c5a059 (deep gold), #b87333 (copper), #ffdea5 (light gold)
*/

/* =============================================
   GLOBAL RESET & OVERFLOW
   ============================================= */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0D0D0D; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #e9c176, #b87333);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: #ffdea5; }

/* =============================================
   SELECTION
   ============================================= */
::selection { background: rgba(233,193,118,0.32); color: #ffdea5; }

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.reveal-left  { transform: translateX(-28px); }
.reveal.reveal-right { transform: translateX(28px); }
.reveal.reveal-scale { transform: scale(0.96); }
.reveal.reveal-visible { opacity:1; transform: none; }
.reveal-delay-100 { transition-delay: 80ms; }
.reveal-delay-200 { transition-delay: 160ms; }
.reveal-delay-300 { transition-delay: 240ms; }
.reveal-delay-400 { transition-delay: 320ms; }
@media (max-width: 768px) {
    .reveal { transition-duration: 0.4s; }
    .reveal-left, .reveal-right { transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* =============================================
   GRADIENT TEXT — SLOGAN HIGHLIGHT
   ============================================= */
.text-gold-gradient {
    background: linear-gradient(135deg, #ffdea5 0%, #e9c176 35%, #c5a059 65%, #b87333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   BODY — GRAIN TEXTURE OVERLAY
   ============================================= */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* =============================================
   HEADER — PREMIUM BAR
   ============================================= */
header {
    position: relative;
}
header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(233,193,118,0.5) 30%, rgba(233,193,118,0.8) 50%, rgba(233,193,118,0.5) 70%, transparent 100%);
    pointer-events: none;
}

/* =============================================
   HERO SECTION
   ============================================= */

/* Large left ambient glow */
.hero-glow {
    position: absolute;
    top: 10%;
    left: -10%;
    width: min(600px, 100vw);
    height: min(600px, 100vw);
    background: radial-gradient(ellipse at center,
        rgba(233,193,118,0.09) 0%,
        rgba(184,115,51,0.05) 35%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: pulseGlow 7s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
    from { opacity:0.55; transform: scale(0.92) translateY(0); }
    to   { opacity:1;    transform: scale(1.08) translateY(-24px); }
}

/* Gold line accent */
.hero-label-line {
    display: inline-block;
    width: 32px; height: 1.5px;
    background: linear-gradient(to right, #e9c176, rgba(233,193,118,0.15));
    vertical-align: middle;
    margin-right: 12px;
    margin-bottom: 3px;
    border-radius: 1px;
}

/* Corner ornament — top-left */
.hero-corner-ornament {
    position: absolute;
    top: 88px; left: 0;
    width: 120px; height: 120px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.2;
}
.hero-corner-ornament::before,
.hero-corner-ornament::after { content: ''; position: absolute; background: #e9c176; }
.hero-corner-ornament::before { top:24px; left:0; width:56px; height:1px; }
.hero-corner-ornament::after  { top:0; left:24px; width:1px; height:56px; }

/* Floating scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    opacity: 0.35;
    animation: floatUpDown 2.8s ease-in-out infinite;
    pointer-events: none; z-index: 5;
}
.scroll-indicator-dot  { width:4px; height:4px; border-radius:50%; background:#e9c176; }
.scroll-indicator-line { width:1px; height:30px; background: linear-gradient(to bottom, #e9c176, transparent); }
@keyframes floatUpDown {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-10px); }
}

/* =============================================
   CTA BUTTON — SHIMMER + GLOW
   ============================================= */
.btn-primary-hero {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.35s ease, transform 0.2s ease, background-color 0.3s ease;
    letter-spacing: 0.22em;
}
.btn-primary-hero::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-18deg);
    transition: left 0.65s ease;
}
.btn-primary-hero:hover {
    box-shadow: 0 0 36px rgba(233,193,118,0.55), 0 6px 20px rgba(184,115,51,0.3);
    transform: translateY(-3px);
}
.btn-primary-hero:hover::after { left: 160%; }

/* =============================================
   BADGE PULSE
   ============================================= */
.badge-pulse {
    animation: borderGlow 3.8s ease-in-out infinite;
}
@keyframes borderGlow {
    0%,100% { box-shadow: 0 0 0 0 rgba(233,193,118,0); }
    50%      { box-shadow: 0 0 14px 2px rgba(233,193,118,0.28); }
}

/* =============================================
   FEATURE CARDS — DIAMOND ICON
   ============================================= */
article.group > div:first-child {
    transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
article.group:hover > div:first-child {
    box-shadow: 0 0 0 6px rgba(233,193,118,0.08), 0 0 28px rgba(233,193,118,0.22);
    border-color: rgba(233,193,118,0.9) !important;
    background: rgba(233,193,118,0.07) !important;
}
article.group h3 { transition: color 0.3s ease; }
article.group:hover h3 { color: #e9c176; }

/* Number counter accent (if used) */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffdea5, #c5a059);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.35s ease, border-color 0.35s ease;
}
/* Top gradient line */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e9c176, transparent);
    transform: scaleX(0);
    transition: transform 0.45s ease;
    z-index: 2;
}
/* Ambient inner glow */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(233,193,118,0.06) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(233,193,118,0.35) !important;
    box-shadow: 0 20px 56px rgba(0,0,0,0.5),
                0 0 0 1px rgba(233,193,118,0.2),
                0 0 30px rgba(233,193,118,0.07);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after  { opacity: 1; }

/* Service price gradient */
.service-price {
    background: linear-gradient(135deg, #ffdea5, #c5a059);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.product-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.38s cubic-bezier(0.4,0,0.2,1), box-shadow 0.38s ease;
}
/* Bottom copper-gold bar sweep */
.product-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, #b87333, #e9c176, #ffdea5, #e9c176, #b87333);
    transform: scaleX(0);
    transition: transform 0.45s ease;
    z-index: 3;
}
/* Overlay gradient */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(233,193,118,0.05) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 64px rgba(0,0,0,0.6),
                0 0 0 1px rgba(233,193,118,0.22),
                0 0 36px rgba(233,193,118,0.07);
}
.product-card:hover::before { transform: scaleX(1); }
.product-card:hover::after  { opacity: 1; }

/* =============================================
   GALLERY / PORTFOLIO
   ============================================= */
.gallery-item {
    position: relative;
    overflow: hidden;
}
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(13,13,13,0.75) 0%,
        rgba(184,115,51,0.18) 40%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 1;
}
/* Gold corner brackets on hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(233,193,118,0);
    transition: border-color 0.4s ease;
    z-index: 2;
    pointer-events: none;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover::after  { border-color: rgba(233,193,118,0.4); }
.gallery-item img {
    transition: transform 0.55s cubic-bezier(0.4,0,0.2,1), filter 0.45s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05) saturate(1.1);
}

/* =============================================
   TEAM CARDS
   ============================================= */
.team-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.team-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #b87333, #e9c176, #ffdea5, #e9c176, #b87333, transparent);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
/* Top-left name tag accent line */
.team-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(233,193,118,0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.45), 0 0 24px rgba(233,193,118,0.09);
}
.team-card:hover::before { transform: scaleX(1); }
.team-card:hover::after  { opacity: 1; }

/* =============================================
   SECTION DIVIDER LINES
   ============================================= */
.gold-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #c5a059, #e9c176, #c5a059, transparent);
    width: 60%;
    margin: 0 auto;
    opacity: 0.45;
}

/* Section top-border glow */
section {
    position: relative;
}

/* =============================================
   SECTION HEADER LABELS (e.g. "— DỊCH VỤ —")
   ============================================= */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 600;
    color: #c5a059;
}
.section-label::before,
.section-label::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: linear-gradient(to right, #e9c176, rgba(233,193,118,0.2));
}
.section-label::after {
    background: linear-gradient(to left, #e9c176, rgba(233,193,118,0.2));
}

/* =============================================
   MARQUEE / TICKER (decorative brand strip)
   ============================================= */
.brand-ticker {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    border-top: 1px solid rgba(233,193,118,0.12);
    border-bottom: 1px solid rgba(233,193,118,0.12);
    background: rgba(13,13,13,0.8);
    padding: 12px 0;
}
.brand-ticker-inner {
    display: inline-block;
    animation: tickerScroll 22s linear infinite;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(233,193,118,0.5);
    gap: 48px;
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =============================================
   BOOKING SECTION — CTA GLOW RING
   ============================================= */
.cta-section-wrapper {
    position: relative;
    overflow: hidden;
}
.cta-section-wrapper::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(233,193,118,0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* =============================================
   FOOTER
   ============================================= */
footer::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, #b87333 20%, #e9c176 50%, #b87333 80%, transparent);
    opacity: 0.45;
}
footer a { transition: color 0.2s ease; }
footer a:hover { color: #e9c176; }

/* Social icon hover */
footer a[href*="facebook"]:hover,
footer a[href*="instagram"]:hover,
footer a[href*="tiktok"]:hover {
    color: #e9c176;
    filter: drop-shadow(0 0 6px rgba(233,193,118,0.5));
}

/* =============================================
   MOBILE MENU LINK HOVER
   ============================================= */
#mobile-menu a {
    position: relative;
    transition: color 0.25s ease;
}
#mobile-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 50%; right: 50%;
    height: 1px;
    background: #e9c176;
    transition: left 0.35s ease, right 0.35s ease;
}
#mobile-menu a:hover::after { left: 0; right: 0; }

/* =============================================
   LANGUAGE SWITCHER DROPDOWN
   ============================================= */
.lang-active {
    background: linear-gradient(135deg, rgba(233,193,118,0.15), rgba(184,115,51,0.08)) !important;
    border-left: 2px solid #e9c176;
}

/* =============================================
   STAGGER ANIMATION — HERO ELEMENTS
   ============================================= */
.animate-fade-in-up { animation: fadeInUp 0.72s cubic-bezier(0.4,0,0.2,1) both; }
.hero-label { animation-delay: 0ms; }
.hero-h1    { animation-delay: 150ms; }
.hero-p     { animation-delay: 300ms; }
.hero-cta   { animation-delay: 450ms; }
.hero-trust { animation-delay: 600ms; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0%   { transform: translateX(-100%) skewX(-20deg); }
    100% { transform: translateX(300%) skewX(-20deg); }
}

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 768px) {
    .hero-corner-ornament { display: none; }
    .scroll-indicator { display: none; }
    .hero-glow { width: 380px; height: 380px; left: -25%; top: 5%; }
    body::before { opacity: 0.25; }
}
