/* Trang chủ Diễm My Wedding */
:root {
  --ink: #2c2220; --muted: #7a6d66; --gold: #b8925a; --gold-2: #d9bd8c; --ivory: #faf6f0; --cream: #f3ece2; --wine: #7b2431;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Be Vietnam Pro", system-ui, sans-serif; --script: "Great Vibes", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ivory); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .3em; font-size: 12px; color: var(--gold); margin: 0 0 8px; font-weight: 600; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 46px); line-height: 1.15; text-align: center; margin: 0 0 12px; }
.h2.left { text-align: left; }
.sub { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 40px; }
.btn { display: inline-block; text-decoration: none; background: var(--ink); color: #fff; border: 1px solid var(--ink); padding: 13px 26px; border-radius: 999px; font-size: 15px; letter-spacing: .02em; transition: .2s; }
.btn:hover { background: var(--wine); border-color: var(--wine); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.sm { padding: 8px 16px; font-size: 14px; }

/* đầu trang */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250,246,240,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(184,146,90,.25); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); font-family: var(--serif); font-style: italic; font-size: 18px; }
.logo-text b { display: block; font-family: var(--serif); font-size: 19px; letter-spacing: .12em; font-weight: 600; line-height: 1.1; }
.logo-text small { color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--wine); }
.nav-cta { background: #0068ff; color: #fff !important; padding: 8px 16px; border-radius: 999px; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* hero */
.hero { padding: 60px 0 70px; background: radial-gradient(circle at 85% 20%, rgba(217,189,140,.35), transparent 45%), radial-gradient(circle at 0 100%, rgba(123,36,49,.08), transparent 40%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.08; margin: 0 0 18px; }
.hero h1 em { font-family: var(--script); font-style: normal; color: var(--wine); font-size: 1.15em; }
.lead { color: var(--muted); font-size: 17px; max-width: 540px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.slogan { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold); margin: 0; }
.hero-phone { display: grid; justify-items: center; }
.phone { position: relative; width: 300px; height: 610px; border-radius: 44px; background: #111; padding: 12px; box-shadow: 0 40px 80px rgba(44,34,32,.3), inset 0 0 0 2px #333; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 33px; background: #fff; }
.phone-notch { position: absolute; top: 12px; left: 50%; width: 110px; height: 24px; margin-left: -55px; background: #111; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-cap { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* các mục */
.sec { padding: 84px 0; }
.sec.alt { background: var(--cream); }

/* mẫu thiệp */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.tpl { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 40px rgba(44,34,32,.08); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.tpl:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(44,34,32,.14); }
.tpl-mock { display: block; padding: 22px; background: linear-gradient(135deg, var(--cream), #fff); text-decoration: none; }
.mock { aspect-ratio: 9 / 15; max-width: 200px; margin: 0 auto; border-radius: 18px; background: var(--b); color: var(--t); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.15); overflow: hidden; position: relative; }
.mock-dark { background: var(--p); color: #fff; }
.mock-night { background: var(--b); color: var(--t); outline: 1px solid var(--p); outline-offset: -8px; }
.mock-polaroid .mk-ph { background: #fff; border: 6px solid #fff; border-bottom-width: 22px; outline: 0; opacity: 1; transform: rotate(-3deg); box-shadow: 0 6px 14px rgba(0,0,0,.18); background-image: linear-gradient(135deg, var(--a), var(--p)); background-clip: content-box; }
.mock-split { justify-content: space-between; }
.mock-split .mk-ph { width: 100%; border-radius: 0; outline: 0; opacity: .7; }
.mock-split .mk-n { font-family: 'Josefin Sans', sans-serif !important; text-transform: uppercase; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.mk-k { font-size: 8px; letter-spacing: .3em; text-transform: uppercase; opacity: .75; }
.mk-ph { width: 74%; aspect-ratio: 3 / 4; margin: 10px 0; background: linear-gradient(135deg, var(--a), var(--p)); opacity: .55; border-radius: 4px; outline: 1px solid var(--a); outline-offset: 4px; }
.mock-arch .mk-ph { border-radius: 80px 80px 6px 6px; outline: 0; border: 3px solid #fff; opacity: .6; }
.mock-full { justify-content: flex-end; padding-bottom: 22px; color: #fff; }
.mock-full .mk-ph { position: absolute; inset: 0; width: auto; aspect-ratio: auto; margin: 0; border-radius: 0; outline: 0; opacity: 1; background: linear-gradient(to bottom, transparent 45%, rgba(0,0,0,.55)), linear-gradient(160deg, var(--a), var(--p)); }
.mock-full > span:not(.mk-ph) { position: relative; }
.mk-n { font-size: 24px; line-height: 1.05; color: var(--p); }
.mock-dark .mk-n, .mock-full .mk-n { color: #fff; }
.mk-n i { display: block; font-style: normal; font-size: .6em; color: var(--a); }
.mk-d { font-size: 11px; letter-spacing: .2em; margin-top: 6px; }
.tpl-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-2); border-radius: 999px; padding: 2px 10px; }
.tpl-body h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 8px 0 4px; }
.tpl-body p { color: var(--muted); font-size: 14px; margin: 0 0 16px; flex: 1; }
.tpl-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* dịch vụ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feat { background: #fff; border-radius: 16px; padding: 24px; }
.feat i { font-style: normal; font-size: 28px; }
.feat h3 { font-family: var(--serif); font-size: 23px; margin: 8px 0 4px; font-weight: 600; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }
.feat b { color: var(--ink); font-weight: 600; word-break: break-all; }

/* hướng dẫn */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border: 1px solid rgba(184,146,90,.3); border-radius: 16px; padding: 26px 20px 22px; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: -18px; left: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; }
.steps b { display: block; font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 14.5px; }
.tip { margin: 36px auto 0; max-width: 760px; background: var(--ink); color: #f1e9de; border-radius: 18px; padding: 26px 28px; }
.tip h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 8px; color: var(--gold-2); font-weight: 400; }
.tip p { margin: 0; }
.tip code { background: rgba(255,255,255,.1); padding: 2px 8px; border-radius: 6px; font-size: 14px; word-break: break-all; }

/* liên hệ */
.contact { background: linear-gradient(135deg, #2c2220, #4a2a2c); color: #f4ece2; }
.contact .eyebrow { color: var(--gold-2); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.owner { font-size: 18px; margin: 0 0 6px; }
.contact .slogan { color: var(--gold-2); }
.addr { color: #cbbfb2; }
.contact-btns { display: grid; gap: 14px; }
.big-btn { display: flex; justify-content: space-between; align-items: center; text-decoration: none; padding: 18px 24px; border-radius: 16px; font-size: 16px; transition: transform .2s; }
.big-btn:hover { transform: translateY(-2px); }
.big-btn b { font-size: 20px; letter-spacing: .04em; }
.big-btn.zalo { background: #0068ff; color: #fff; }
.big-btn.call { background: var(--gold); color: #fff; }
.big-btn.fb { background: #1877f2; color: #fff; }

.foot { background: #1f1816; color: #b7aca2; text-align: center; padding: 30px 0 100px; font-size: 14px; }
.foot p { margin: 4px 0; }
.foot b { color: var(--gold-2); letter-spacing: .1em; }
.foot a { color: #e8ddd0; }
.foot .small { font-size: 12px; opacity: .7; }

.float { position: fixed; right: 16px; bottom: 18px; z-index: 30; display: grid; gap: 10px; }
.fl { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.fl svg { width: 24px; height: 24px; }
.fl.zalo { background: #0068ff; }
.fl.call { background: var(--wine); animation: ring 2.4s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(123,36,49,.5); } 60% { box-shadow: 0 0 0 14px rgba(123,36,49,0); } }

@media (max-width: 960px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: fixed; top: 66px; left: 0; right: 0; background: var(--ivory); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid rgba(184,146,90,.3); transform: translateY(-120%); transition: transform .3s; box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(0,0,0,.05); }
  .nav-cta { text-align: center; margin-top: 10px; border: 0 !important; }
  .menu-open .nav { transform: none; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 36px 0 50px; }
  .hero-in { grid-template-columns: 1fr; }
  .phone { width: 270px; height: 550px; }
  .sec { padding: 64px 0; }
  .feat-grid, .steps, .contact-in { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .fl.call { animation: none; } }
