/* HM Photobooth — style.css
   Tông: giấy ấm + espresso, motif "The Wedding Post" (masthead báo in + dải photo strip) */

:root {
  --paper: #f4efe6;
  --card: #fffcf6;
  --greige: #ddd5c7;
  --ink: #372a1e;
  --espresso: #432100;
  --brass: #9c7a4f;
  --brass-dark: #7d5f3a;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16.5px;
}

img { max-width: 100%; display: block; }
a { color: var(--brass-dark); text-decoration: none; }
a:hover { color: var(--espresso); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass-dark);
  outline-offset: 3px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--espresso); line-height: 1.22; letter-spacing: -0.01em; }
/* chữ nghiêng nhấn nhá trong tiêu đề */
h1 em, h2 em, h3 em, .accent-i {
  font-style: italic;
  font-weight: 400;
  color: var(--brass-dark);
  letter-spacing: 0;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Masthead rules (thick–thin, như đầu báo The Wedding Post) ---------- */
.rule-masthead {
  border: 0;
  border-top: 3px solid var(--espresso);
  position: relative;
  margin: 10px 0;
}
.rule-masthead::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 4px;
  border-top: 1px solid var(--espresso);
}

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-dark);
  font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--greige);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--espresso);
  letter-spacing: 0.02em;
}
.brand-word {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-dark);
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { list-style: none; position: relative; }
.nav a {
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass-dark); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.has-sub > a::after { content: ' ▾'; font-size: 11px; }
.sub {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 250px;
  background: var(--card);
  border: 1px solid var(--greige);
  border-top: 3px solid var(--espresso);
  box-shadow: 0 12px 30px rgba(46, 36, 27, 0.12);
  padding: 6px 0;
  z-index: 60;
}
.sub li { list-style: none; }
.sub a { padding: 9px 18px; font-size: 14.5px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }

.nav-cta {
  background: var(--espresso);
  color: var(--paper) !important;
  padding: 10px 20px !important;
  border-radius: 2px;
  margin-left: 10px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--brass-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--espresso);
  color: var(--espresso);
  font-size: 20px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--espresso);
    padding: 8px 0 16px;
  }
  .nav.open { display: flex; }
  .sub {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding-left: 16px;
  }
  .nav-cta { margin: 10px 24px 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; }
.hero-img { width: 100%; height: min(88vh, 720px); object-fit: cover; object-position: center 30%; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(46,36,27,0.25) 0%, rgba(46,36,27,0.05) 40%, rgba(244,239,230,0.96) 92%, var(--paper) 100%);
}
.hero-panel {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: min(860px, calc(100% - 48px));
  text-align: center;
  padding-bottom: 34px;
}
.hero-panel .eyebrow { color: var(--espresso); }
.hero-title {
  font-size: clamp(34px, 5.6vw, 62px);
  margin: 14px 0 10px;
}
.hero-dateline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 0;
  border-top: 3px solid var(--espresso);
  border-bottom: 1px solid var(--espresso);
  margin: 18px 0 22px;
}
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: 1px solid var(--espresso);
  cursor: pointer;
}
.btn-solid { background: var(--espresso); color: var(--paper); }
.btn-solid:hover { background: var(--brass-dark); border-color: var(--brass-dark); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--espresso); }
.btn-ghost:hover { background: var(--espresso); color: var(--paper); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--greige); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(28px, 4vw, 42px); margin: 12px 0 14px; }
.section-head p { color: #5d5044; }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--greige);
  border-top: 3px solid var(--espresso);
  padding: 28px;
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { font-size: 15px; color: #5d5044; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; }

.card-img { padding: 0; overflow: hidden; }
.card-img img { height: 230px; width: 100%; object-fit: cover; }
.card-img .card-body { padding: 22px 26px 26px; }

/* ---------- Photo strip gallery (chữ ký thị giác) ---------- */
.strips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 26px;
  align-items: start;
}
@media (max-width: 920px) { .strips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .strips { grid-template-columns: 1fr; } }

.strip {
  background: #fffdf8;
  padding: 12px 12px 16px 26px;
  border: 1px solid #e4dccd;
  box-shadow: 0 8px 22px rgba(46, 36, 27, 0.14);
  position: relative;
  transform: rotate(-1.3deg);
  transition: transform 0.25s ease;
}
.strip:nth-child(even) { transform: rotate(1.2deg); }
.strip:hover { transform: rotate(0deg) translateY(-4px); }
/* hàng lỗ đục bên trái — như khung in đục lỗ của HM */
.strip::before {
  content: '';
  position: absolute;
  top: 14px; bottom: 14px; left: 9px;
  width: 8px;
  background-image: radial-gradient(circle 3.2px, var(--paper) 99%, transparent 100%);
  background-size: 8px 18px;
  background-repeat: repeat-y;
}
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.strip img + img { margin-top: 10px; }
.strip figcaption {
  font-family: var(--font-display);
  font-size: 12.5px;
  text-align: center;
  color: var(--espresso);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 12px;
}

/* ---------- Pricing tables ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 15px; }
.price-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--espresso);
  padding: 0 0 14px;
}
.price-table th, .price-table td { border: 1px solid var(--greige); padding: 14px 16px; text-align: left; vertical-align: top; }
.price-table thead th {
  background: var(--espresso);
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 13.5px;
  text-transform: uppercase;
}
.price-table .pkg { font-family: var(--font-display); font-size: 18px; color: var(--espresso); white-space: nowrap; }
.price-table .price { font-weight: 700; color: var(--brass-dark); white-space: nowrap; }
.price-table ul { padding-left: 18px; }
.price-table li { margin: 3px 0; }
.table-scroll { overflow-x: auto; }

.notes { background: var(--card); border-left: 3px solid var(--brass); padding: 20px 24px; margin-top: 28px; font-size: 15px; }
.notes ul { padding-left: 18px; }
.notes li { margin: 5px 0; }

.badge-deal {
  display: inline-block;
  background: var(--brass);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}

/* ---------- Feature list (phần mềm) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 920px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--card);
  border: 1px solid var(--greige);
  padding: 24px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: #5d5044; }
.feature .soon {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-dark);
  border: 1px solid var(--brass);
  padding: 2px 8px;
  margin-bottom: 10px;
}

/* ---------- Client list ---------- */
.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--espresso);
}
.clients span { white-space: nowrap; }
.clients span::after { content: '·'; margin-left: 34px; color: var(--brass); }
.clients span:last-child::after { content: ''; }

/* ---------- Package spec (mua máy) ---------- */
.spec-list { list-style: none; }
.spec-list li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--greige);
  font-size: 15.5px;
}
.spec-list li::before { content: '—'; color: var(--brass); flex-shrink: 0; }
.spec-list b { color: var(--espresso); }

.price-tag {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  color: var(--espresso);
}
.price-tag small { font-size: 0.45em; color: var(--brass-dark); letter-spacing: 0.1em; }

/* ---------- Contact ---------- */
.contact-box {
  background: var(--card);
  border: 1px solid var(--greige);
  border-top: 3px solid var(--espresso);
  padding: 36px;
  text-align: center;
}
.contact-phone {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  color: var(--espresso);
  display: block;
  margin: 10px 0 4px;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--espresso); color: var(--paper); text-align: center; padding: 64px 24px; }
.cta-band h2 { color: var(--paper); font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; }
.cta-band p { color: #d8cbbd; margin-bottom: 26px; }
.cta-band .btn { border-color: var(--paper); color: var(--paper); }
.cta-band .btn:hover { background: var(--paper); color: var(--espresso); }
.cta-band .btn-solid { background: var(--brass); border-color: var(--brass); }
.cta-band .btn-solid:hover { background: var(--paper); border-color: var(--paper); color: var(--espresso); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); padding: 46px 0 34px; border-top: 1px solid var(--greige); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: 17px; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 6px 0; font-size: 14.5px; }
.footer-tagline { font-family: var(--font-display); color: var(--espresso); font-size: 18px; margin: 8px 0 12px; }
.footer-meta {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 3px solid var(--espresso);
  position: relative;
  font-size: 13px;
  color: #6e6154;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-meta::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 4px;
  border-top: 1px solid var(--espresso);
}

/* ---------- Zalo floating ---------- */
.zalo-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 80;
  background: #0068ff;
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.zalo-float:hover { background: #0053cc; color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Page hero (trang con) ---------- */
.page-head { padding: 64px 0 30px; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 12px 0; }
.page-head p { max-width: 680px; color: #5d5044; }
