/*
Theme Name: WEB dự toán
Theme URI: https://example.com/webdutoan-theme/
Author: Your Name
Author URI: https://example.com/
Description: A theme for WEB dự toán.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Text Domain: webdutoan
*/

#quote-table-body{
    position: relative;
}
.material-mix-info,.column-customizer-btn{
    display: none;
}
/* ==========================================================================
   XPRO — Xưởng Nội Thất
   Refined editorial e-commerce aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Palette */
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --paper: #fafaf7;
  --card: #ffffff;
  --line: #ebe8e0;
  --line-strong: #d8d4ca;
  --muted: #6b7280;
  --muted-soft: #9ca3af;

  --navy: #3b4a5a;
  --navy-deep: #2c3a48;
  --red: #e63946;
  --red-deep: #c92d3a;
  --gold: #c9a961;

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Be Vietnam Pro', system-ui, sans-serif;

  /* Layout */
  --container: 1280px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, 0.04), 0 1px 1px rgba(20, 20, 30, 0.03);
  --shadow: 0 4px 14px rgba(20, 20, 30, 0.06), 0 1px 2px rgba(20, 20, 30, 0.04);
  --shadow-lg: 0 18px 50px rgba(20, 20, 30, 0.12), 0 6px 14px rgba(20, 20, 30, 0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-toggle {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  transition: background .25s var(--ease);
}
.menu-toggle:hover { background: rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.menu-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  line-height: 1;
}
.brand-text .small { font-size: 9px; letter-spacing: 0.18em; color: var(--ink-soft); font-weight: 500; }
.brand-text .big { font-size: 22px; color: var(--red); font-weight: 800; letter-spacing: 0.04em; }

.header-right {
  display: flex; align-items: center; gap: 18px;
}
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 999px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.2); transform: scale(1.05); }
.icon-btn svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.6; }

.auth-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.auth-text a { transition: color .2s var(--ease); }
.auth-text a:hover { color: var(--red); }
.auth-text .sep { color: var(--muted-soft); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 540px;
  overflow: hidden;
  background: #e9e6df;
}
.hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 30%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.section {
  padding: 64px 0 32px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink);
}
.section-title-rule {
  width: 80px; height: 2px;
  background: var(--ink);
  margin: 0 auto 36px;
  position: relative;
}
.section-title-rule::before,
.section-title-rule::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink);
}
.section-title-rule::before { left: -12px; }
.section-title-rule::after { right: -12px; }

/* ==========================================================================
   PRODUCT SLIDER (Sản phẩm mới)
   ========================================================================== */
.slider-wrap {
  position: relative;
  padding: 0 70px;
}
.slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  overflow: hidden;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  transition: all .25s var(--ease);
  z-index: 2;
}
.slider-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-50%) scale(1.05);
}
.slider-btn:hover svg { stroke: white; }
.slider-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; transition: stroke .25s var(--ease); }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.product-card .img-wrap {
  aspect-ratio: 1.05 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f3ee 0%, #ebe8e0 100%);
  position: relative;
}
.product-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.product-card:hover .img-wrap img { transform: scale(1.06); }
.product-card .body {
  padding: 18px 16px 22px;
  text-align: center;
}
.product-card .name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  transition: color .2s var(--ease);
}
.product-card:hover .name { color: var(--red); }
.product-card .price {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   FEATURED — Tabs
   ========================================================================== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 38px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  padding: 0 16px;
}
.tab {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 2px;
  position: relative;
  transition: color .25s var(--ease);
}
.tab::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .3s var(--ease), left .3s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 600; }
.tab.active::after { width: 100%; left: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: #d8dde3;
  padding: 64px 0 40px;
  margin-top: 0px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.6), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-brand .brand-mark {
  width: 130px; height: 130px;
  background: white;
  border-radius: 12px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  font-size: 14px;
  color: #d8dde3;
  transition: color .2s var(--ease), padding-left .25s var(--ease);
  display: inline-block;
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }

.footer-info { display: grid; grid-template-columns: 80px 1fr; row-gap: 12px; column-gap: 12px; }
.footer-info dt { font-size: 14px; color: #b8c0c8; font-weight: 500; }
.footer-info dd { font-size: 14px; color: white; line-height: 1.5; }
.footer-info dd a { transition: color .2s var(--ease); }
.footer-info dd a:hover { color: var(--gold); }

/* ==========================================================================
   MENU DRAWER
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 28, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
  z-index: 90;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 380px;
  background: var(--card);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform .45s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  transition: background .2s var(--ease);
}
.drawer-close:hover { background: var(--paper); }
.drawer-close svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 2; }

.drawer-nav {
  padding: 16px 0;
  flex: 1;
  overflow-y: auto;
}
.drawer-nav > li > a,
.drawer-nav > li > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 32px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  transition: background .2s var(--ease), color .2s var(--ease);
  letter-spacing: 0.01em;
}
.drawer-nav > li > a:hover,
.drawer-nav > li > button:hover {
  background: var(--paper);
  color: var(--red);
}
.drawer-nav > li > button.active-row {
  background: #f3f0e9;
  color: var(--ink);
}
.drawer-nav .chev { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Drawer flyout panels */
.drawer-flyout {
  position: fixed;
  top: 0; bottom: 0;
  left: 380px;
  width: 320px;
  background: white;
  z-index: 99;
  padding: 28px 32px;
  border-left: 1px solid var(--line);
  box-shadow: 18px 0 40px rgba(20,22,28,0.08);
  transform: translateX(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.drawer-flyout.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.drawer-flyout h5 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.drawer-flyout ul li {
  margin-bottom: 4px;
}
.drawer-flyout ul li a,
.drawer-flyout ul li button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  width: 100%;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.drawer-flyout ul li a:hover,
.drawer-flyout ul li button:hover {
  background: var(--paper);
  color: var(--red);
}
.drawer-flyout ul li button.active-row {
  background: #f3f0e9;
}
.drawer-flyout .see-all {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  font-size: 13px;
  color: var(--muted);
  padding: 12px 14px;
}
.drawer-flyout .see-all a {
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s var(--ease);
}
.drawer-flyout .see-all a:hover { color: var(--red); }

.drawer-flyout.layer-2 { left: 700px; }

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.detail-header {
  position: relative;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.detail-header .menu-toggle svg,
.detail-header .icon-btn svg { stroke: var(--ink); }

.breadcrumb {
  padding: 28px 0 12px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.breadcrumb a { color: var(--muted); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 8px; color: var(--muted-soft); }
.breadcrumb .current { color: var(--ink); }

.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  padding: 28px 0 80px;
  align-items: start;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gallery-main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 1.4 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
}
.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .6s var(--ease);
}
.gallery-main:hover img { transform: scale(1.03); }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.thumb {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  aspect-ratio: 1.3 / 1;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
  display: grid; place-items: center;
  padding: 8px;
}
.thumb:hover { border-color: var(--ink); transform: translateY(-2px); }
.thumb.active { border-color: var(--red); border-width: 2px; }
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.detail-info h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--ink);
}
.rating {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.stars { display: inline-flex; gap: 2px; color: var(--red); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.rating-text { font-size: 14px; color: var(--muted); }

.price-tag {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.status-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px;
  margin-bottom: 18px;
}
.status-row .label { color: var(--ink); font-weight: 500; }
.status-row .value { color: var(--muted); }
.status-row .value.in-stock { color: #16a34a; font-weight: 500; }
.status-row .value.out-of-stock { color: var(--red); font-weight: 500; }

.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}

.specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.specs li {
  font-size: 15px;
  color: var(--ink);
  display: flex;
  gap: 8px;
}
.specs li strong { font-weight: 600; min-width: 130px; }
.specs li span { color: var(--ink-soft); font-weight: 400; }

.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-action-form,
.product-action-form .btn {
  width: 100%;
}
.single-product-options {
  max-width: 720px;
  margin: 0 0 80px auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all .3s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-outline {
  background: white;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: white;
}
.btn-outline svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; transition: transform .3s var(--ease); }
.btn-outline:hover svg { transform: translateX(-2px); }

.btn-primary {
  background: var(--navy);
  color: white;
  border: 1.5px solid var(--navy);
  box-shadow: 0 4px 14px rgba(59, 74, 90, 0.25);
}
.btn-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(59, 74, 90, 0.35);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .8s var(--ease) both; }
.fade-up.d-1 { animation-delay: .08s; }
.fade-up.d-2 { animation-delay: .16s; }
.fade-up.d-3 { animation-delay: .24s; }
.fade-up.d-4 { animation-delay: .32s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .product-grid, .slider { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .site-header { padding: 14px 18px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-text .big { font-size: 18px; }
  .auth-text { display: none; }
  .hero { height: 360px; }
  .section { padding: 48px 0 24px; }
  .section-title { font-size: 22px; }
  .slider-wrap { padding: 0 50px; }
  .slider-btn { width: 42px; height: 42px; }
  .product-grid, .slider { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tabs { gap: 18px; }
  .tab { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .drawer { width: 86vw; }
  .drawer-flyout, .drawer-flyout.layer-2 { display: none; }
  .detail-grid { padding: 18px 0 60px; }
  .detail-info h1 { font-size: 24px; }
  .price-tag { font-size: 26px; }
}
@media (max-width: 480px) {
  .product-grid, .slider { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   GALLERY HERO (Thư viện 3D)
   ========================================================================== */
.gallery-hero {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: #1a1a1a;
}
.gallery-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.gallery-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.gallery-hero-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 0 32px;
  gap: 28px;
}
.gallery-tabs {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  justify-content: center;
}
.gallery-tab {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  padding: 10px 4px;
  position: relative;
  transition: color .25s var(--ease);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.gallery-tab::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: white;
  transition: width .3s var(--ease), left .3s var(--ease);
}
.gallery-tab:hover { color: white; }
.gallery-tab.active { color: white; font-weight: 600; }
.gallery-tab.active::after { width: 100%; left: 0; }

.search-bar {
  width: 100%;
  max-width: 760px;
  background: white;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}
.search-bar .left-icon {
  width: 22px; height: 22px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.search-bar input {
  flex: 1;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 16px 14px;
  background: transparent;
  outline: none;
  color: var(--ink);
}
.search-bar input::placeholder { color: var(--muted); }
.search-btn {
  width: 50px; height: 50px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: all .25s var(--ease);
  flex-shrink: 0;
}
.search-btn:hover { background: var(--ink); border-color: var(--ink); }
.search-btn:hover svg { stroke: white; }
.search-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; transition: stroke .25s var(--ease); }

/* ---------- Filter chips (Đề xuất dành cho bạn) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
  padding: 36px 0 28px;
  justify-content: center;
}
.filter-chip {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s var(--ease);
  padding: 4px 0;
  position: relative;
}
.filter-chip:hover { color: var(--ink); }
.filter-chip.active {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Top horizontal row ---------- */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.gallery-card {
  cursor: pointer;
  display: block;
  transition: transform .3s var(--ease);
}
.gallery-card:hover { transform: translateY(-3px); }
.gallery-card .img {
  border-radius: var(--radius);
  overflow: hidden;
  background: #ebe8e0;
  aspect-ratio: 1.4 / 1;
  margin-bottom: 12px;
}
.gallery-card .img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery-card:hover .img img { transform: scale(1.06); }
.gallery-card .label {
  font-size: 14px;
  color: var(--ink);
  text-align: center;
  font-weight: 500;
}

/* ---------- Masonry grid ---------- */
.masonry {
  column-count: 5;
  column-gap: 16px;
}
.masonry-card {
  break-inside: avoid;
  margin-bottom: 20px;
  cursor: pointer;
  display: block;
}
.masonry-card .img {
  border-radius: var(--radius);
  overflow: hidden;
  background: #ebe8e0;
  margin-bottom: 10px;
  position: relative;
}
.masonry-card .img img {
  width: 100%;
  display: block;
  transition: transform .8s var(--ease);
}
.masonry-card:hover .img img { transform: scale(1.04); }
.masonry-card .label {
  font-size: 14px;
  color: var(--ink);
  text-align: center;
  font-weight: 500;
  padding-bottom: 6px;
}
.gallery-empty {
  text-align: center;
  color: var(--muted);
  padding: 64px 0 90px;
}
.navigation.pagination {
  padding: 36px 0 70px;
  text-align: center;
}
.nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: white;
  transition: all .2s var(--ease);
}
.page-numbers.current,
.page-numbers:hover {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 1100px) {
  .gallery-row { grid-template-columns: repeat(3, 1fr); }
  .masonry { column-count: 3; }
}
@media (max-width: 768px) {
  .gallery-hero { height: 380px; }
  .gallery-tabs { gap: 18px; }
  .gallery-tab { font-size: 13px; }
  .search-bar { padding: 4px 4px 4px 16px; }
  .search-bar input { padding: 12px 8px; font-size: 14px; }
  .search-btn { width: 42px; height: 42px; }
  .gallery-row { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 2; }
  .filter-bar { gap: 10px 20px; padding: 24px 0 20px; }
}
@media (max-width: 480px) {
  .gallery-row { grid-template-columns: 1fr; }
  .masonry { column-count: 1; }
}

/* ==========================================================================
   GALLERY DETAIL PAGE
   ========================================================================== */
.gallery-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  padding: 40px 0 80px;
  align-items: start;
}
.gallery-detail-image {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1.05 / 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.gallery-detail-image > img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery-detail-image:hover > img { transform: scale(1.02); }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  transition: all .25s var(--ease);
  z-index: 2;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.gallery-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.06);
}
.gallery-arrow.prev { left: 18px; }
.gallery-arrow.next { right: 18px; }
.gallery-arrow svg {
  width: 28px; height: 28px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.5;
}

.zoom-btn {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: all .2s var(--ease);
}
.zoom-btn:hover { transform: translateX(-50%) scale(1.08); }
.zoom-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.8; }

.gallery-detail-info { padding: 12px 0; }
.gallery-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 36px;
}
.gallery-detail-info h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.gallery-detail-info .id {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.gallery-detail-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 500;
  background: white;
  color: var(--ink);
  transition: all .2s var(--ease);
}
.fav-btn:hover { background: #fff7eb; border-color: var(--gold); }
.fav-btn svg { width: 14px; height: 14px; fill: var(--gold); }
.fav-btn.active { background: #fff7eb; border-color: var(--gold); color: var(--gold); }
.date { font-size: 14px; color: var(--muted); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin-bottom: 56px;
}
.spec-row .label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.spec-row .value {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spec-row .value.has-link {
  cursor: pointer;
  transition: color .2s var(--ease);
}
.spec-row .value.has-link:hover { color: var(--red); }
.spec-row .value svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.gallery-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.btn-download {
  background: var(--navy);
  color: white;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all .25s var(--ease);
  cursor: pointer;
}
.btn-download:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(59, 74, 90, 0.3);
}
.btn-download svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 1.8; }

.btn-manage {
  background: white;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 14px 38px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all .25s var(--ease);
  cursor: pointer;
}
.btn-manage:hover {
  background: var(--ink);
  color: white;
}

@media (max-width: 1100px) {
  .gallery-detail { grid-template-columns: 1fr; gap: 40px; padding: 24px 0 60px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
  .spec-grid { grid-template-columns: 1fr; margin-bottom: 32px; }
  .gallery-detail-info h1 { font-size: 24px; }
  .gallery-arrow { width: 48px; height: 48px; }
  .gallery-actions { justify-content: stretch; }
  .btn-download, .btn-manage { flex: 1; justify-content: center; padding: 14px 20px; }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-hero {
  min-height: 520px;
  padding: 160px 0 90px;
  text-align: center;
  background: #fafaf7;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.contact-hero .container {
  position: relative;
  z-index: 2;
}
.contact-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.34) 45%, rgba(0,0,0,0.62) 100%);
  z-index: 1;
  pointer-events: none;
}
.contact-hero::after {
  content: 'XPRO';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(180px, 28vw, 360px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -0.04em;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}
.contact-hero > * { position: relative; z-index: 2; }
.contact-hero .eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 22px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.contact-hero .eyebrow::before,
.contact-hero .eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.72);
}
.contact-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 22px;
  color: white;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.contact-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: #fff0f1;
}
.contact-hero .lead {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  padding: 60px 0;
  align-items: start;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  box-shadow: var(--shadow);
}
.contact-form::before {
  content: '';
  position: absolute;
  top: -1px; left: 32px;
  width: 64px; height: 3px;
  background: var(--red);
}
.contact-form h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.contact-form .subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: span 2; }
.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.form-field label .req { color: var(--red); margin-left: 4px; }
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  outline: none;
  transition: all .25s var(--ease);
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-body);
  line-height: 1.55;
}
.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover { border-color: var(--line-strong); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--ink);
  background: white;
  box-shadow: 0 0 0 4px rgba(20,20,30,0.04);
}
.form-submit {
  width: 100%;
  margin-top: 16px;
  padding: 18px 28px;
  background: var(--ink);
  color: white;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.form-submit:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.3);
}
.form-submit svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .25s var(--ease); }
.form-submit:hover svg { transform: translateX(4px); }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: all .3s var(--ease);
  position: relative;
}
.info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(230,57,70,0) 0%, rgba(230,57,70,0.04) 100%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.info-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.info-card:hover::before { opacity: 1; }
.info-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--paper);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all .3s var(--ease);
}
.info-card:hover .icon {
  background: var(--ink);
}
.info-card:hover .icon svg { stroke: white; }
.info-card .icon svg {
  width: 22px; height: 22px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.6;
  transition: stroke .3s var(--ease);
}
.info-card.accent .icon { background: var(--red); }
.info-card.accent .icon svg { stroke: white; }
.info-card.accent:hover .icon { background: var(--red-deep); }
.info-card .body { flex: 1; }
.info-card .title {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.info-card .value {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}
.info-card .value a { transition: color .2s var(--ease); }
.info-card .value a:hover { color: var(--red); }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: all .25s var(--ease);
}
.social-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.social-link:hover svg { stroke: white; fill: white; }
.social-link svg { width: 16px; height: 16px; stroke: var(--ink); fill: var(--ink); }
.social-link span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.map-section {
  padding: 0 0 90px;
}
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 460px;
  background: #f0eee7;
  position: relative;
  box-shadow: var(--shadow);
}
.map-frame iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}
.map-pin-card {
  position: absolute;
  top: 24px; left: 24px;
  background: white;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  border-left: 3px solid var(--red);
}
.map-pin-card .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.map-pin-card .name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.map-pin-card .addr { font-size: 13px; color: var(--muted); line-height: 1.5; }

@media (max-width: 1100px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .contact-hero { min-height: 440px; padding: 130px 0 70px; }
  .contact-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .form-field.full { grid-column: span 1; }
  .map-frame { height: 360px; }
  .map-pin-card { top: 14px; left: 14px; right: 14px; max-width: none; padding: 14px 16px; }
}

/* ==========================================================================
   WELCOME / LANDING PAGE (100vh)
   ========================================================================== */
.welcome {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  background: #1a1a1a;
}
.welcome-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.welcome-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  animation: slowZoom 20s var(--ease-soft) infinite alternate;
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.welcome-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

/* Header sits on transparent welcome */
.welcome .site-header { padding: 28px 40px; }
.welcome .site-header .menu-toggle svg,
.welcome .site-header .icon-btn svg { stroke: white; }
.welcome .site-header .menu-toggle:hover { background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); }
.welcome .auth-text { color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.welcome .auth-text a:hover { color: var(--gold); }
.welcome .brand-text .small { color: white; text-shadow: 0 2px 6px rgba(0,0,0,0.4); }

/* Welcome content area */
.welcome-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 40px 7vh;
  pointer-events: none;
}

.welcome-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  pointer-events: auto;
}
.welcome-eyebrow::before,
.welcome-eyebrow::after {
  content: '';
  width: 28px; height: 1px;
  background: rgba(255,255,255,0.6);
}

.welcome-tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 400;
  color: white;
  letter-spacing: -0.005em;
  margin-bottom: 36px;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
  max-width: 800px;
  line-height: 1.35;
  pointer-events: auto;
}
.welcome-tagline em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

/* Card row */
.welcome-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 1180px;
  pointer-events: auto;
}

.welcome-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 30px 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s var(--ease);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  text-align: center;
  align-items: center;
}
.welcome-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(230, 57, 70, 0) 0%, rgba(230, 57, 70, 0) 60%, rgba(230, 57, 70, 0.06) 100%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.welcome-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  background: white;
}
.welcome-card:hover::before { opacity: 1; }

.welcome-card .pill {
  display: inline-block;
  padding: 7px 22px;
  background: var(--navy);
  color: white;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  margin-bottom: 18px;
  transition: background .3s var(--ease);
}
.welcome-card:hover .pill {
  background: var(--red);
}

.welcome-card .title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.18;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 18px;
  transition: color .3s var(--ease);
}
.welcome-card:hover .title { color: var(--ink); }

.welcome-card .icon-wrap {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--navy);
  transition: transform .4s var(--ease), color .3s var(--ease);
}
.welcome-card:hover .icon-wrap {
  transform: translate(4px, -2px) rotate(-4deg);
  color: var(--red);
}
.welcome-card .icon-wrap svg {
  width: 32px; height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Subtle decorative corner number */
.welcome-card .corner-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-soft);
  letter-spacing: 0.05em;
}

/* Scroll cue */
.welcome-scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  z-index: 6;
  pointer-events: none;
}
.welcome-scroll-cue .line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* Animation entry */
@keyframes welcomeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.welcome-eyebrow,
.welcome-tagline,
.welcome-card {
  animation: welcomeUp .9s var(--ease) both;
}
.welcome-eyebrow { animation-delay: .1s; }
.welcome-tagline { animation-delay: .25s; }
.welcome-card:nth-child(1) { animation-delay: .42s; }
.welcome-card:nth-child(2) { animation-delay: .56s; }
.welcome-card:nth-child(3) { animation-delay: .70s; }

@media (max-width: 900px) {
  .welcome { min-height: 720px; }
  .welcome-content { padding: 0 24px 8vh; }
  .welcome-cards { grid-template-columns: 1fr; gap: 12px; max-width: 440px; }
  .welcome-card { min-height: auto; padding: 22px 26px; }
  .welcome-card .title { font-size: 20px; margin: 4px 0 14px; }
  .welcome-card .icon-wrap { width: 38px; height: 38px; }
  .welcome-card .icon-wrap svg { width: 26px; height: 26px; }
  .welcome-tagline { margin-bottom: 24px; font-size: 18px; }
  .welcome-scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .welcome .site-header { padding: 16px 18px; }
  .welcome-card { padding: 18px 22px; }
  .welcome-card .pill { font-size: 11px; padding: 5px 16px; margin-bottom: 12px; }
}
