/* ==========================================================
   Wedding & Event — Public site stylesheet
   Tông màu: kem ngà + vàng đồng + than chì (sang trọng, tối giản)
   ========================================================== */
:root {
  --cream: #faf6f0;
  --cream-2: #f3ece1;
  --gold: #b98a2f;
  --gold-light: #d9b45f;
  --ink: #2b2620;
  --ink-soft: #6b6257;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 38, 32, .08);
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; }

.section { padding: 84px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; letter-spacing: .28em; text-transform: uppercase;
  font-size: 12px; color: var(--gold); font-weight: 600; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); }
.divider {
  width: 70px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
}

/* ---------- Header ---------- */
.topbar {
  background: var(--ink); color: #e9e2d6; font-size: 13px; padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--gold-light); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 240, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(185, 138, 47, .18);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.logo span { color: var(--gold); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .25s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), var(--gold-light));
  color: #fff; font-weight: 600; font-size: 15px; border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(185, 138, 47, .35); transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(185, 138, 47, .45); }
.btn-outline {
  background: transparent; color: var(--gold); border: 1.5px solid var(--gold); box-shadow: none;
}
.btn-outline:hover { background: var(--gold); color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30, 25, 18, .72) 20%, rgba(30, 25, 18, .25) 70%);
}
.hero-inner { position: relative; color: #fff; max-width: 640px; padding: 90px 0; }
.hero-inner .eyebrow {
  letter-spacing: .3em; text-transform: uppercase; font-size: 13px;
  color: var(--gold-light); font-weight: 600;
}
.hero-inner h1 { font-size: clamp(34px, 5.5vw, 58px); margin: 16px 0 20px; }
.hero-inner p { font-size: 18px; color: #f0e9dd; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; padding: 40px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { font-family: var(--font-display); font-size: 34px; color: var(--gold-light); display: block; }
.stat span { font-size: 14px; color: #cfc6b8; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.about-img::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold-light); border-radius: var(--radius); z-index: -1;
}
.about-text .eyebrow {
  letter-spacing: .28em; text-transform: uppercase; font-size: 12px; color: var(--gold); font-weight: 600;
}
.about-text h2 { font-size: clamp(28px, 4vw, 38px); margin: 10px 0 18px; }
.about-text p { color: var(--ink-soft); margin-bottom: 14px; white-space: pre-line; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow); transition: transform .25s; border-top: 3px solid transparent;
}
.service-card:hover { transform: translateY(-6px); border-top-color: var(--gold); }
.service-card .icon {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream-2); font-size: 28px; margin-bottom: 18px;
}
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Projects ---------- */
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-bar button {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid rgba(185, 138, 47, .4);
  background: transparent; color: var(--ink-soft); font-size: 14px; cursor: pointer; transition: all .2s;
  font-family: var(--font-body);
}
.filter-bar button.active, .filter-bar button:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/3; display: block;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover img { transform: scale(1.07); }
.project-card .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; color: #fff;
  background: linear-gradient(180deg, transparent 40%, rgba(25, 20, 14, .82));
}
.project-card .overlay small {
  color: var(--gold-light); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 600;
}
.project-card .overlay h3 { font-size: 19px; margin-top: 4px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow);
  position: relative;
}
.testi-card::before {
  content: "\201C"; font-family: var(--font-display); font-size: 74px; color: var(--gold-light);
  position: absolute; top: 6px; left: 20px; opacity: .5; line-height: 1;
}
.testi-card p { color: var(--ink-soft); font-size: 15px; margin: 20px 0 18px; font-style: italic; }
.testi-card b { display: block; }
.testi-card span { font-size: 13px; color: var(--gold); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3 { font-size: 24px; margin-bottom: 18px; }
.contact-info ul { list-style: none; }
.contact-info li { display: flex; gap: 14px; margin-bottom: 16px; color: var(--ink-soft); }
.contact-info li .ci { font-size: 20px; line-height: 1.4; }
.contact-info li a { color: var(--ink); font-weight: 600; }
.contact-info li a:hover { color: var(--gold); }
.social-row { display: flex; gap: 12px; margin-top: 22px; }
.social-row a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream-2); font-size: 19px; transition: all .2s; border: 1px solid rgba(185,138,47,.25);
}
.social-row a:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }
.contact-form {
  background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 22px; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e5dcCC; border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; background: var(--cream);
  transition: border-color .2s; color: var(--ink);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; }
.alert-success { background: #eaf6ea; color: #256a2c; border: 1px solid #bfe3c2; }
.alert-error { background: #fdeeee; color: #a33030; border: 1px solid #f0c9c9; }

.map-wrap { margin-top: 60px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc6b8; padding: 60px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 4fr 3fr 3fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 20px; margin-bottom: 16px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; text-align: center; font-size: 13px;
}

/* ---------- Nút nổi (gọi điện / zalo / messenger) ---------- */
.float-btns { position: fixed; right: 18px; bottom: 22px; display: flex; flex-direction: column; gap: 12px; z-index: 200; }
.float-btns a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 22px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  animation: pulse 2s infinite;
}
.fb-phone { background: #2fb463; }
.fb-zalo  { background: #0068ff; font-size: 13px !important; font-weight: 700; }
.fb-mess  { background: #a333c8; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(185, 138, 47, .45); }
  70% { box-shadow: 0 0 0 14px rgba(185, 138, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(185, 138, 47, 0); }
}

/* ---------- Trang chi tiết dự án ---------- */
.page-hero {
  background: var(--ink); color: #fff; padding: 70px 0 60px; text-align: center;
}
.page-hero small { color: var(--gold-light); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 44px); margin-top: 10px; }
.breadcrumb { font-size: 14px; color: #cfc6b8; margin-top: 14px; }
.breadcrumb a { color: var(--gold-light); }
.album-desc { max-width: 760px; margin: 0 auto 40px; text-align: center; color: var(--ink-soft); }
.album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.album-grid a { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: block; }
.album-grid img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .4s; }
.album-grid a:hover img { transform: scale(1.04); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 12, 8, .92); display: none;
  align-items: center; justify-content: center; z-index: 500; padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 26px; font-size: 34px; color: #fff; cursor: pointer; background: none; border: none;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); font-size: 40px; color: #fff;
  background: none; border: none; cursor: pointer; padding: 10px 16px; opacity: .8;
}
.lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid, .projects-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid, .projects-grid, .testi-grid, .album-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; background: var(--cream);
    flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid rgba(185,138,47,.2);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .topbar { display: none; }
  .section { padding: 60px 0; }
}

/* ---------- Lọc theo danh mục (dạng link) ---------- */
.filter-bar a.filter-link {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid rgba(185, 138, 47, .4);
  color: var(--ink-soft); font-size: 14px; transition: all .2s; display: inline-block;
}
.filter-bar a.filter-link.active, .filter-bar a.filter-link:hover {
  background: var(--gold); border-color: var(--gold); color: #fff;
}

/* ---------- Phân trang ---------- */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin-top: 46px; flex-wrap: wrap;
}
.pagination a, .pagination .current, .pagination .dots {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px; border-radius: 999px; font-size: 15px;
}
.pagination a {
  border: 1.5px solid rgba(185, 138, 47, .4); color: var(--ink-soft); transition: all .2s;
}
.pagination a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.pagination .current {
  background: var(--gold); color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(185, 138, 47, .35);
}
.pagination .dots { color: var(--ink-soft); }

/* ---------- Thẻ dự án kiểu card trắng (giống mẫu vuốt ngang) ---------- */
.pcard {
  background: var(--white); border-radius: 6px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(43, 38, 32, .09); display: block;
  transition: transform .25s, box-shadow .25s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(43, 38, 32, .16); }
.pcard-img { overflow: hidden; }
.pcard-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-body { padding: 20px 16px 22px; text-align: center; }
.pcard-body h3 {
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcard-body small {
  display: block; margin-top: 8px; color: var(--gold);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.pcard-body small .sep { color: #cbbfa5; padding: 0 4px; }

/* ---------- Carousel vuốt ngang ---------- */
.carousel-wrap { position: relative; }
.projects-carousel {
  display: flex; gap: 24px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px 4px 22px; cursor: grab;
  scrollbar-width: none; -ms-overflow-style: none;
}
.projects-carousel::-webkit-scrollbar { display: none; }
.projects-carousel.dragging { cursor: grabbing; scroll-behavior: auto; }
.projects-carousel .pcard {
  flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start;
}
.car-btn {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--white); color: var(--gold); font-size: 26px; line-height: 1;
  box-shadow: 0 6px 18px rgba(43, 38, 32, .18); transition: all .2s;
  display: grid; place-items: center;
}
.car-btn:hover { background: var(--gold); color: #fff; }
.car-prev { left: -14px; }
.car-next { right: -14px; }

@media (max-width: 960px) {
  .projects-carousel .pcard { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .projects-carousel .pcard { flex-basis: 86%; }
  .car-prev { left: 2px; } .car-next { right: 2px; }
}

/* ---------- Logo 2 dòng: tên chính nổi bật + dòng phụ ---------- */
.logo { display: inline-flex; flex-direction: column; line-height: 1.1; }
.logo .logo-main {
  font-family: var(--font-display); font-size: 27px; font-weight: 700; color: var(--gold);
}
.logo .logo-sub {
  font-family: var(--font-body); font-size: 10.5px; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px;
}
.site-footer .logo .logo-main { color: var(--gold-light); }
.site-footer .logo .logo-sub { color: #cfc6b8; }
