@import 'variables.css';
@import 'base.css';

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  min-height: 78px;
}

.logo-home {
    text-decoration: none;
    color: var(--black);
}

.logo { 
    font-size: 1.4rem; 
    font-weight: 800; 
    letter-spacing: 0.04em; 
}
.logo span { 
    font-weight: 400; 
}
nav { 
    display: flex; 
    gap: 24px; 
}
nav a { 
    text-decoration: none; 
    color: var(--black);
     font-weight: 500; 
    }
.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  padding: 14px 24px; 
  border-radius: 999px; 
  text-decoration: none;
  font-weight: 600; 
  transition: 0.3s ease; 
  border: 1px solid var(--black);
}
.btn-dark { 
    background: var(--black); 
    color: var(--white); 
}
.btn-light { 
    background: var(--white); 
    color: var(--black); }
.hero { 
    padding: 0 0 60px; 
}
.hero-grid {
  display: grid; 
  grid-template-columns: 1.2fr 0.8fr; 
  gap: 32px; align-items: center;
}
.eyebrow {
  text-transform: uppercase; 
  font-size: 0.82rem; 
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 12px;
}
.hero h1, .page-banner h1 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.1; 
  margin-bottom: 18px;
}
.hero-desc { 
    color: var(--muted); 
    font-size: 1.05rem; 
    max-width: 640px; }
.hero-actions { 
    display: flex; 
    gap: 14px; 
    margin-top: 28px; 
    flex-wrap: wrap; }
.hero-card {
  min-height: 460px;
  border-radius: 32px;
  background: linear-gradient(145deg, #111, #333);
  box-shadow: var(--shadow); 
  display: flex; 
  align-items: end; 
  padding: 28px;
}
.hero-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff; 
  padding: 24px; 
  border-radius: 24px; 
  width: 100%;
}
.section { 
    padding: 72px 0; 
}
.alt-bg { 
    background: var(--gray); 
}
.section-head { 
    margin-bottom: 28px; 
}
.section-head h2 { 
    font-size: clamp(1.8rem, 3vw, 2.8rem); 
}
.card-grid {
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 22px;
}
.card {
  background: var(--white); 
  border: 1px solid var(--line);
  border-radius: var(--radius); 
  padding: 24px; 
  box-shadow: var(--shadow);
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.04);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.service-img-wrap {
    position: relative;
    height: 75%;
    overflow: hidden;
}
.service-img-wrap img.service-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}
.service-card:hover .service-img {
    transform: scale(1.08);
}
.service-body {
    padding: 16px 20px;
    flex-grow: 1;               /* Đẩy nội dung đều xuống đáy */
}

.service-name {
  text-transform: uppercase;
}

.barber-img{
    width: 100%;
    height: 72%;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.card h3 { 
    margin-bottom: 10px; 
    font-size: 1.2rem; }
.card p { 
    color: var(--muted); 
}
.card-meta {
  margin-top: 16px; 
  display: flex; 
  justify-content: space-between;
  font-weight: 600; 
  color: var(--black);
}
.avatar-placeholder {
  width: 72px; 
  height: 72px; 
  border-radius: 50%;
  background: var(--black); 
  color: var(--white);
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 1.6rem; 
  font-weight: 700; 
  margin-bottom: 16px;
}
.muted { 
    color: var(--muted); 
    margin-bottom: 10px;
}
.stars { 
    color: var(--black); 
    font-size: 1.1rem; 
    margin-bottom: 10px; }
.page-banner { 
    padding: 70px 0 20px; 
}
.booking-wrap {
  display: grid; 
  grid-template-columns: 1.15fr 0.85fr; 
  gap: 24px;
}
.booking-form-card, .booking-info-card {
  background: var(--white); 
  border: 1px solid var(--line);
  border-radius: 24px; 
  box-shadow: var(--shadow); 
  padding: 28px;
}
.form-grid {
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 18px;
}
.form-group { 
    display: flex; 
    flex-direction: column; 
}
.form-group label { 
    margin-bottom: 8px; 
    font-weight: 600; 
}
.form-group input, .form-group select, .form-group textarea {
  padding: 14px 16px; 
  border-radius: 14px; 
  border: 1px solid var(--line);
  font-size: 1rem; 
  font-family: inherit; 
  outline: none;
}
.full-width { 
    grid-column: 1 / -1; 
}
.full-btn { 
    width: 100%; 
    margin-top: 18px; 
}
.form-message { 
    margin-top: 14px;
    font-weight: 600; 
}
.form-message.success { 
    color: #0a7a2f; 
}
.form-message.error { 
    color: #b42318; 
}

.custom-carousel-img {
    height: calc(100vh - 78px); /* Cố định chiều cao cho tất cả ảnh */
    object-fit: cover;
    object-position: center;
}

.section-title {
    color: #000;
    font-size: 36px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    position: relative;
    padding-left: 23px;
    margin: 0;
}

.section-title::before {
    position: absolute;
    content: '';
    left: 0;
    top: 30%;
    width: 4px;
    height: 27px;
    background: #EDCAA2;
}

.barber-carousel { padding: 30px 0 60px; }
.barber-card-v2 {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}
.barber-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.barber-img-v2 {
    position: relative;
    padding-top: 130%; /* Tỉ lệ ảnh đứng profile */
    overflow: hidden;
}
.barber-img-v2 img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.barber-card-v2:hover .barber-img-v2 img { transform: scale(1.1); }
.barber-info-v2 {
    padding: 25px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.barber-info-v2 .btn {
    margin-top: auto;
}
.barber-name-v2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #111;
}
.barber-spec-v2 {
    color: #b08d57;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}
.barber-bio-v2 {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Swiper Custom Navigation & Pagination */
.unified-swiper { 
    padding: 10px 0 90px; 
    overflow: hidden; 
    position: relative; 
}
.unified-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}
.unified-swiper .swiper-slide > * {
    width: 100%;
}
.unified-swiper .swiper-pagination {
    bottom: 5px !important;
}
.unified-swiper .swiper-pagination-bullet-active {
    background: #000;
}
.unified-swiper .custom-nav {
    top: auto;
    bottom: 8px;
    width: 35px;
    height: 35px;
    background: #e3e3e3;
    border-radius: 50%;
    color: #444;
    transition: all 0.3s ease;
    z-index: 10;
}
.unified-swiper .custom-nav::after {
    font-size: 16px;
    font-weight: bold;
}
.unified-swiper .swiper-button-prev.custom-nav {
    left: 0;
}
.unified-swiper .swiper-button-next.custom-nav {
    left: 55px;
}
.unified-swiper .custom-nav:hover {
    background: #444;
    color: #fff;
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .barber-img-v2 { padding-top: 120%; }
    .barber-info-v2 {
        padding: 10px 5px;
    }
    .barber-name-v2 {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    .barber-spec-v2 {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        margin-bottom: 5px;
    }
    .barber-bio-v2 {
        display: none; /* Ẩn bio trên mobile để tránh quá chật chội */
    }
    .barber-info-v2 .btn {
        font-size: 0.8rem;
        padding: 8px 5px;
    }
}

/* Video Collection Styles */
.video-card-v2 {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: var(--black);
    height: 450px;
}
.video-thumb {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 100%;
}
.video-thumb img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.3s;
}
.video-card-v2:hover .video-thumb img { opacity: 1; transform: scale(1.05); }
.play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--black);
    transition: 0.3s;
}
.video-card-v2:hover .play-overlay { background: #EDCAA2; color: #fff; transform: translate(-50%, -50%) scale(1.1); }

/* Footer Styles */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 60px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.footer-info .logo {
    margin-bottom: 24px;
}
.footer-info p {
    color: #a0a0a0;
    margin-bottom: 12px;
}
.footer-info strong {
    color: var(--white);
}
.footer-socials {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}
.footer-socials a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.footer-socials a:hover {
    color: #EDCAA2;
}
.footer-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}
.footer-map iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}

.swiper-wrapper {
    padding-top: 1.5rem !important;
    padding-bottom: 3.5rem !important;
}

@media (max-width: 992px) {
    .hero-grid, .booking-wrap, .card-grid, .footer-grid { 
        grid-template-columns: 1fr; 
    }
    .logo-home {
        padding-left: 10px;
    }

    .section-title::before{
        top: 20%; 
    }

    .hero {
        padding: 0;
    }
    .footer-grid { gap: 40px; }
    .footer-map { min-height: 300px; }
    .form-grid {
        grid-template-columns: 1fr; 
    }
    nav { 
        display: none;
    }
    .service-card {
        height: 400px;
    }
    .video-card-v2 {
        height: 400px;
    }

    .carousel-inner {
        height: 240px;
    }

    .carousel-item {
        height: 100%;
    }
    .custom-carousel-img {
        height: 100%;
        /* You can restrict max height if you do not want it to be too large on tablets */
        max-height: 60vh;
        object-fit: cover;
    }
}