/* =========================================================
   intimate-wedding.css – CSS cho phần NỘI DUNG trang
   "Intimate Wedding" (không gồm navigation / footer)

   Mọi class có tiền tố .iw- và mọi biến màu/font nằm trong .iw
   nên không ảnh hưởng tới các trang khác của website.
   ========================================================= */

/* =========================================================
   1. TOKENS + RESET NHẸ
   ========================================================= */
.iw {
  --green:    #244336;
  --ink:      #111111;
  --muted:    #6f665f;
  --line:     rgba(20, 20, 20, 0.14);
  --bg-page:  #f8f5f1;
  --bg-light: #fbf8f5;
  --bg-blush: #f3e8e2;

  --font-ui:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bodoni Moda", "Playfair Display", "Didot", "Times New Roman", serif; /* Playfair bù glyph tiếng Việt */

  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* specificity 0 để không đè các style bên dưới */
:where(.iw) *,
:where(.iw) *::before,
:where(.iw) *::after { box-sizing: border-box; }

:where(.iw) :is(h1, h2, h3, p, figure, ol, ul) { margin: 0; }
:where(.iw) :is(ol, ul) { padding: 0; list-style: none; }
:where(.iw) a { color: inherit; text-decoration: none; }
:where(.iw) a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.iw section[id] { scroll-margin-top: var(--header-h, 80px); }

/* =========================================================
   2. KHUNG, SECTION, NHÃN CHAPTER
   ========================================================= */
.iw-wrap {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding-inline: clamp(20px, 3vw, 40px);
}

.iw-section { padding-block: clamp(56px, 8vw, 112px); }
.iw-section--light { background: var(--bg-light); }
.iw-section--blush { background: var(--bg-blush); }

/* "CHAPTER TWO ——— FOR INTENTIONAL GATHERINGS" */
.iw-chapter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 40px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.iw-chapter__rule {
  width: 48px;
  height: 1px;
  background: var(--line);
}
.iw-chapter--ruled {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

/* =========================================================
   3. TIÊU ĐỀ + ĐOẠN MÔ TẢ + NÚT
   ========================================================= */
.iw-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink);
}
.iw-h2 em {
  display: block;
  font-style: italic;
  text-transform: none;
}
.iw-h2 em.iw-accent { color: var(--green); }

.iw-h2--sm { font-size: clamp(40px, 4.4vw, 68px); }
.iw-h2--xl { font-size: clamp(44px, 6vw, 88px); }

.iw-lead {
  max-width: 26em;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}
.iw-h2 + .iw-lead { margin-top: 28px; }

.iw-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 40px;
}

.iw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--green);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.iw-btn--solid { background: var(--green); color: #fff; }
.iw-btn--solid:hover { background: #1b3329; }
.iw-btn--line { background: transparent; color: var(--green); }
.iw-btn--line:hover { background: var(--green); color: #fff; }

.iw-tags {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================
   4. KHUNG ẢNH (placeholder + ảnh thật)
   Ảnh thật: <figure class="iw-media"><img src="..." alt="..."></figure>
   ========================================================= */
.iw-media {
  position: relative;
  overflow: hidden;
  background: var(--ph, #8b8983);
}
.iw-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Màu giữ chỗ – xoá khi đã có ảnh thật */
.iw-ph-a { --ph: linear-gradient(160deg, #3d5233, #8f9a7d 55%, #b58d6b); }
.iw-ph-b { --ph: linear-gradient(180deg, #d9dcdf, #8f8f8a 60%, #b8703f); }
.iw-ph-c { --ph: linear-gradient(180deg, #2b2b2b, #a9a9a5); }
.iw-ph-d { --ph: linear-gradient(160deg, #1f2a2b, #3f5a5c 60%, #d8e2e4); }
.iw-ph-e { --ph: linear-gradient(160deg, #6a5a35, #a48a54 55%, #c8b79b); }
.iw-ph-f { --ph: linear-gradient(180deg, #4a4a48, #d0d0cd); }
.iw-ph-g { --ph: linear-gradient(160deg, #4b4a44, #8c7b6b); }
.iw-ph-h { --ph: linear-gradient(160deg, #e9d3cf, #f6ebe4 60%, #cfb9a8); }

/* =========================================================
   5. LAYOUT 2 CỘT DÙNG CHUNG (tiêu đề trái / nội dung phải)
   ========================================================= */
.iw-split {
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .iw-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 72px;
    align-items: start;
  }
  .iw-split--shots { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 48px; }
  .iw-split--works { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 56px; }
}

/* =========================================================
   6. CHAPTER ONE – HERO
   ========================================================= */
.iw-hero { padding: 28px 0 56px; }

.iw-hero__grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .iw-hero { padding: 34px 0 40px; }
  .iw-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
}

.iw-kicker {
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.iw-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.iw-hero__title span,
.iw-hero__title em { display: block; }
.iw-hero__title em {
  font-style: italic;
  text-transform: none;
}

.iw-hero .iw-lead { max-width: 22em; margin-top: 36px; }
.iw-hero .iw-actions { margin-top: 40px; }

/* Collage 2 ảnh chồng nhau */
.iw-collage__frame { position: relative; }
.iw-collage__main {
  width: 72%;
  margin-left: auto;
  aspect-ratio: 507 / 620;
}
.iw-collage__inset {
  position: absolute;
  top: 35%;
  left: 0;
  width: 40%;
  aspect-ratio: 282 / 352;
}
.iw-collage__captions {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================
   7. DANH SÁCH ĐÁNH SỐ (Chapter 2, Process, Q&A)
   ========================================================= */
.iw-rows { border-top: 1px solid var(--line); }

.iw-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .iw-row { grid-template-columns: 96px minmax(0, 1fr); column-gap: 0; padding: 28px 0; }
}

.iw-row__num {
  padding-top: 0.45em;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--green);
}

.iw-row__text {
  max-width: 40em;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  text-wrap: pretty;
}

.iw-row__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.iw-row__desc {
  max-width: 32em;
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

/* Q&A: câu hỏi hơi nhỏ hơn vì dài */
.iw-rows--faq .iw-row__title { font-size: clamp(26px, 3.1vw, 46px); }

/* =========================================================
   8. CHAPTER THREE – 4 ẢNH COVERAGE
   ========================================================= */
.iw-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
}
@media (min-width: 1024px) {
  .iw-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.iw-shot .iw-media { aspect-ratio: 4 / 5; }
.iw-shot figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a433d;
}

/* =========================================================
   9. CHAPTER FOUR – PROCESS (ảnh dưới tiêu đề)
   ========================================================= */
.iw-process__photo {
  max-width: 430px;
  margin-top: 28px;
  aspect-ratio: 4 / 5;
}

/* =========================================================
   10. CHAPTER FIVE – WORKS (4 thẻ so le)
   ========================================================= */
.iw-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 16px;
  align-items: start;
}
@media (min-width: 1100px) {
  .iw-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .iw-card:nth-child(2) { margin-top: 44px; }
  .iw-card:nth-child(3) { margin-top: 2px; }
  .iw-card:nth-child(4) { margin-top: 50px; }
}

.iw-card { display: block; }
.iw-card__frame { overflow: hidden; }            /* cắt phần ảnh phóng to khi hover */
.iw-card__frame .iw-media {
  aspect-ratio: 3 / 4;
  transition: transform .6s ease;
}
.iw-card:hover .iw-card__frame .iw-media { transform: scale(1.03); }

.iw-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4a433d;
}
.iw-card__view { color: var(--muted); transition: color .2s; }
.iw-card:hover .iw-card__view { color: var(--green); }

.iw-card__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* =========================================================
   11. CHAPTER SIX – PRIVATE CONSULTATION
   ========================================================= */
.iw-consult {
  display: grid;
  gap: 32px;
  align-items: end;
}
@media (min-width: 900px) {
  .iw-consult {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 64px;
  }
}
.iw-consult .iw-lead { max-width: 34em; }
.iw-consult .iw-actions { margin-top: 32px; }

/* =========================================================
   12. Q&A
   ========================================================= */
.iw-faq__intro .iw-lead { max-width: 24em; }

/* =========================================================
   13. GIẢM CHUYỂN ĐỘNG
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .iw * { transition: none !important; }
}
