/* v3 - 2026-07-03 15:30:11 */
/* ==================== KOSY LIVING - Global Styles ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #333; background-color: #f7f5f2; line-height: 1.6; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.3s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.hidden { display: none !important; }

/* ==================== Variables ==================== */
:root {
  --primary: #6b5b4f;
  --primary-dark: #5d4e44;
  --primary-light: #8a7a6e;
  --accent: #a68b6a;
  --bg: #f7f5f2;
  --bg-white: #fff;
  --bg-card: #fff;
  --bg-footer: #e5ddd4;
  --text: #333;
  --text-light: #666;
  --text-lighter: #999;
  --border: #e8e4df;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  --container: 1200px;
}

/* ==================== Layout ==================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2rem; color: var(--text); margin-bottom: 12px; font-weight: 600; letter-spacing: 1px; }
.section-header p { color: var(--text-light); font-size: 0.95rem; }
.section-header .line { width: 40px; height: 2px; background: var(--primary); margin: 16px auto 0; }

/* ==================== Header / Nav ==================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); transition: var(--transition);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 0; align-items: center; }
.nav a {
  font-size: 0.85rem; color: var(--text); padding: 8px 14px; border-radius: 4px;
  transition: var(--transition); letter-spacing: 0.5px; white-space: nowrap;
}
.nav a:hover { color: var(--primary); }
.nav a.active { background: var(--primary); color: #fff; }

/* Sub-navigation - desktop click to expand */
.nav .has-submenu { position: relative; display: flex; align-items: center; }
.nav .submenu-toggle {
  display: inline-block; margin-left: 2px; font-size: 0.6rem; color: var(--text-light);
  cursor: pointer; padding: 4px; transition: transform 0.3s; user-select: none;
}
.nav .submenu-toggle:hover { color: var(--primary); }
.nav .submenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 180px;
  background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow-hover);
  padding: 8px 0; z-index: 1001; margin-top: 4px;
}
.submenu a {
  display: block; padding: 10px 20px; font-size: 0.8rem; border-bottom: none;
  color: var(--text-light);
}
.submenu a:hover { background: var(--bg); color: var(--primary); }
.submenu a.active { background: var(--primary); color: #fff; }
.submenu.active { display: block; animation: fadeIn 0.2s ease; }

.header-right { display: flex; align-items: center; gap: 16px; }
.header-phone { font-size: 0.85rem; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--primary); transition: var(--transition); }

/* ==================== Sub Nav (page internal secondary nav) ==================== */
.sub-nav { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 12px 0; }
.sub-nav-inner { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sub-nav-inner a { padding: 8px 20px; border-radius: 20px; font-size: 0.85rem; color: var(--text-light); border: 1px solid var(--border); transition: var(--transition); }
.sub-nav-inner a:hover, .sub-nav-inner a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==================== Hero ==================== */
.hero { position: relative; height: 90vh; min-height: 600px; display: flex; overflow: hidden; margin-top: 64px; }
.hero-bg { position: absolute; inset: 0; z-index: 1; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.45), rgba(0,0,0,0.15)); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: var(--container); margin: 0 auto; padding: 120px 24px 0; width: 100%; color: #fff; }
.hero-content h1 { font-size: 2.8rem; font-weight: 300; margin-bottom: 16px; line-height: 1.2; letter-spacing: 2px; max-width: 600px; }
.hero-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; font-weight: 300; }
.hero-search-bar {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; align-items: stretch; background: #fff; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  border-radius: var(--radius);
  max-width: 860px; width: 92%;
}
.hero-form-thumb {
  width: 150px; flex-shrink: 0; position: relative; overflow: hidden;
}
.hero-form-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-search-bar .field { flex: 1; padding: 14px 18px; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-search-bar .field:last-of-type { border-right: 1px solid var(--border); }
.hero-search-bar .field label { display: block; font-size: 0.6rem; color: var(--text-lighter); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.hero-search-bar .field input { width: 100%; border: none; outline: none; font-size: 0.9rem; color: var(--text); background: transparent; }
.hero-search-bar .search-btn {
  padding: 0 28px; background: #2c2c2c; color: #fff; border: none; cursor: pointer;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
}
.hero-search-bar .search-btn:hover { background: #000; }

/* ==================== Buttons ==================== */
.btn { display: inline-block; padding: 12px 32px; border-radius: var(--radius); font-size: 0.9rem; transition: var(--transition); cursor: pointer; border: none; font-family: inherit; letter-spacing: 0.5px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(107,91,79,0.25); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary); color: #fff; }
.btn-small { padding: 6px 16px; background: var(--accent); color: #fff; border-radius: 16px; font-size: 0.75rem; }

/* ==================== Cards ==================== */
.card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-img { width: 100%; height: 220px; object-fit: cover; background: linear-gradient(135deg, #e8e4df, #f0ece7); }
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.card-body p { color: var(--text-light); font-size: 0.85rem; line-height: 1.6; }

/* ==================== Grid ==================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ==================== Feature Items ==================== */
.feature-item { text-align: center; padding: 32px 20px; background: var(--bg-card); border-radius: var(--radius-lg); transition: var(--transition); }
.feature-item:hover { box-shadow: var(--shadow-hover); }
.feature-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; }
.feature-item h3 { font-size: 1rem; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.feature-item p { color: var(--text-light); font-size: 0.85rem; }

/* ==================== Tabs / Filters ==================== */
.tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn { padding: 8px 20px; border: 1px solid var(--border); background: transparent; border-radius: 20px; cursor: pointer; font-family: inherit; font-size: 0.85rem; color: var(--text-light); transition: var(--transition); }
.tab-btn:hover, .tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s; }

.filter-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-label { font-weight: 600; color: var(--text); font-size: 0.9rem; margin-right: 8px; }
.filter-options { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-options button { padding: 6px 16px; border: 1px solid var(--border); background: transparent; border-radius: 16px; cursor: pointer; font-family: inherit; font-size: 0.8rem; color: var(--text-light); transition: var(--transition); }
.filter-options button:hover, .filter-options button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==================== Gallery / Masonry ==================== */
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; background: var(--bg-card); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%); display: flex; align-items: flex-end; padding: 20px; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: #fff; font-size: 1rem; font-weight: 500; }
.gallery-overlay p { color: rgba(255,255,255,0.8); font-size: 0.8rem; margin-top: 4px; }

/* ==================== Masonry Card ==================== */
.masonry-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); break-inside: avoid; margin-bottom: 20px; }
.masonry-card:hover { box-shadow: var(--shadow-hover); }
.masonry-card img { width: 100%; display: block; }
.masonry-card .content { padding: 16px; }
.masonry-card .content h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 6px; font-weight: 500; }
.masonry-card .content p { color: var(--text-light); font-size: 0.8rem; }

/* ==================== Designer List Item ==================== */
.designer-item { display: flex; gap: 24px; background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); transition: var(--transition); }
.designer-item:hover { box-shadow: var(--shadow-hover); }
.designer-item .avatar { width: 160px; height: 200px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, #ddd, #eee); }
.designer-item .info { flex: 1; }
.designer-item .info-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.designer-item .info-header h3 { font-size: 1.2rem; color: var(--text); font-weight: 600; }
.designer-item .info-header .tag { padding: 4px 12px; background: var(--bg); border-radius: 12px; font-size: 0.75rem; color: var(--text-light); }
.designer-item .specialty { color: var(--text-light); font-size: 0.85rem; margin-bottom: 12px; }
.designer-item .awards { color: var(--text-light); font-size: 0.8rem; line-height: 1.8; margin-bottom: 12px; }
.designer-item .stats { display: flex; gap: 20px; font-size: 0.8rem; color: var(--text-lighter); }
.designer-item .project-cases { display: flex; gap: 10px; margin-top: 16px; }
.designer-item .project-cases img { width: 100px; height: 70px; border-radius: var(--radius); object-fit: cover; background: linear-gradient(135deg, #ddd, #eee); }

/* ==================== Steps / Timeline ==================== */
.steps { display: flex; justify-content: space-between; position: relative; }
.steps::before { content: ''; position: absolute; top: 30px; left: 10%; right: 10%; height: 1px; background: var(--border); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; flex: 1; }
.step-num { width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; margin: 0 auto 16px; border: 4px solid var(--bg-white); box-shadow: var(--shadow); }
.step h4 { font-size: 1rem; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.step p { color: var(--text-light); font-size: 0.8rem; padding: 0 10px; }

.timeline { display: flex; justify-content: center; align-items: center; gap: 0; margin: 40px 0; flex-wrap: wrap; }
.timeline-item { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); }
.timeline-item .icon { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.timeline-item .text h4 { font-size: 0.85rem; color: var(--text); font-weight: 600; }
.timeline-item .text p { font-size: 0.75rem; color: var(--text-light); }
.timeline-arrow { color: var(--text-lighter); font-size: 1.2rem; padding: 0 12px; }

/* ==================== Form ==================== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text); font-size: 0.85rem; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.9rem; transition: var(--transition); background: var(--bg-white); color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ==================== Page Header ==================== */
.page-header { padding: 140px 0 60px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; text-align: center; margin-top: 64px; }
.page-header h1 { font-size: 2.5rem; font-weight: 300; margin-bottom: 12px; letter-spacing: 2px; }
.page-header p { opacity: 0.85; font-size: 1rem; font-weight: 300; }
.page-header-light { padding: 140px 0 60px; background: linear-gradient(135deg, #8a7a6e 0%, #6b5b4f 100%); color: #fff; text-align: center; margin-top: 64px; }
.page-header-light h1 { font-size: 2.5rem; font-weight: 300; margin-bottom: 12px; letter-spacing: 2px; }
.page-header-light p { opacity: 0.85; font-size: 1rem; font-weight: 300; }

/* ==================== Breadcrumb ==================== */
.breadcrumb { background: var(--bg-white); padding: 16px 0; font-size: 0.8rem; color: var(--text-lighter); border-bottom: 1px solid var(--border); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text); }

/* ==================== Footer ==================== */
.footer { background: var(--bg-footer); color: var(--text-light); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: var(--text); margin-bottom: 20px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; margin-bottom: 20px; }
.footer-brand .qr { width: 100px; height: 100px; background: var(--bg-white); border-radius: var(--radius); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--text-lighter); }
.footer-brand .hotline { font-size: 0.8rem; color: var(--text-light); margin-bottom: 4px; }
.footer-brand .phone { font-size: 1.4rem; font-weight: 700; color: var(--text); letter-spacing: 1px; }
.footer-col h4 { color: var(--text); font-size: 0.9rem; margin-bottom: 20px; font-weight: 600; }
.footer-col a { display: block; margin-bottom: 10px; font-size: 0.8rem; color: var(--text-light); transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(0,0,0,0.06); padding: 20px 0; text-align: center; font-size: 0.75rem; color: var(--text-lighter); }

/* Footer social media */
.footer-social .social-item {
  display: flex; align-items: center; gap: 8px; position: relative;
  margin-bottom: 10px; font-size: 0.8rem; color: var(--text-light); transition: var(--transition);
}
.footer-social .social-item:hover { color: var(--primary); }
.footer-social .social-ico {
  width: 22px; height: 22px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; color: inherit;
}
.footer-social .social-ico svg { width: 100%; height: 100%; fill: currentColor; }
.footer-social .social-qr {
  position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover);
  padding: 10px 12px; z-index: 50; text-align: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: var(--transition);
}
.footer-social .social-item:hover .social-qr { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.footer-social .social-qr img { width: 130px; height: 130px; object-fit: contain; display: block; }
.footer-social .social-qr-label {
  display: block; margin-top: 6px; font-size: 0.7rem; color: var(--text-light); white-space: nowrap;
}

/* ==================== Stats ==================== */
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 8px; }

/* ==================== Sidebar ==================== */
.sidebar { background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.sidebar h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 16px; font-weight: 600; }
.sidebar-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item .rank { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--text); }
.sidebar-item .rank.top { background: var(--primary); color: #fff; }
.sidebar-item .info { flex: 1; }
.sidebar-item .info h5 { font-size: 0.85rem; color: var(--text); font-weight: 500; }
.sidebar-item .info p { font-size: 0.75rem; color: var(--text-lighter); }
.sidebar-item .count { font-size: 0.9rem; font-weight: 700; color: var(--primary); }

/* ==================== Cost Calculator ==================== */
.calc-box { background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.calc-box h4 { font-size: 1rem; color: var(--text); margin-bottom: 16px; font-weight: 600; }
.calc-display { background: var(--bg); border-radius: var(--radius); padding: 16px; text-align: center; margin-bottom: 20px; }
.calc-display .currency { font-size: 0.85rem; color: var(--text-light); }
.calc-display .amount { font-size: 2rem; font-weight: 700; color: var(--text); letter-spacing: 2px; }
.calc-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.calc-row:last-child { border-bottom: none; }
.calc-row .label { color: var(--text-light); }
.calc-row .value { color: var(--text); font-weight: 600; }

/* ==================== Pagination ==================== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius); font-size: 0.85rem; color: var(--text-light); transition: var(--transition); }
.pagination a:hover { background: var(--bg); color: var(--primary); }
.pagination a.active { background: var(--primary); color: #fff; }

/* ==================== Animations ==================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* .reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; } */
/* .reveal.visible { opacity: 1; transform: translateY(0); } */

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .designer-item { flex-direction: column; }
  .designer-item .avatar { width: 100%; height: 240px; }
}
@media (max-width: 768px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-white); flex-direction: column; padding: 8px 16px;
    gap: 0; box-shadow: var(--shadow); max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav.active { display: flex; }
  .nav a { padding: 12px 16px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav .has-submenu { flex-wrap: wrap; }
  .nav .submenu-toggle { display: inline-block; }
  .nav .submenu { position: static; box-shadow: none; width: 100%; margin: 0; display: none; }
  .submenu.active { display: block; }
  .mobile-menu-btn { display: flex; }
  .header-phone { display: none; }
  .hero-content h1 { font-size: 2rem; }
  .hero-search-bar { flex-direction: column; position: relative; bottom: auto; left: auto; transform: none; margin: 20px 16px 0; width: auto; max-width: none; }
  .hero-form-thumb { width: 100%; height: 120px; }
  .hero-search-bar .field { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-search-bar .search-btn { padding: 16px 36px; justify-content: center; }
  .grid-2, .grid-3, .grid-4, .grid-masonry { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 30px; }
  .steps::before { display: none; }
  .timeline { flex-direction: column; gap: 16px; }
  .timeline-arrow { transform: rotate(90deg); }
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 1.5rem; }
  .page-header, .page-header-light { padding: 100px 0 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .sub-nav-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
}

/* Quill editor align classes fallback */
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }

/* Back to top floating button (all pages) */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .2s ease;
  z-index: 9999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }
.back-to-top svg { width: 22px; height: 22px; fill: #fff; }
@media (max-width: 768px) {
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .back-to-top svg { width: 20px; height: 20px; }
}
