/* ============================================================
   HomeCraft Planner — Global Stylesheet
   ============================================================ */
/* ============================================================ */

:root {
  --primary-dark: #3a5a8c;
  --primary: #4a6fa5;
  --primary-light: #6b8cbc;
  --accent: #ff914d;
  --accent-light: #ffaa70;
  --gradient-1: linear-gradient(135deg, #4a6fa5 0%, #6b8cbc 100%);
  --gradient-2: linear-gradient(45deg, #ff914d 0%, #ffaa70 100%);
  --gradient-hero: linear-gradient(135deg, #3a5a8c 0%, #4a6fa5 40%, #6b8cbc 70%, #ff914d 100%);
  --gradient-card: linear-gradient(135deg, rgba(74, 111, 165, 0.06) 0%, rgba(107, 140, 188, 0.06) 100%);
  --light-bg: #f5f7fa;
  --white: #ffffff;
  --dark-text: #1e2a3b;
  --muted-text: #6c757d;
  --border: #e3e8f0;
  --card-shadow: 0 8px 32px rgba(74, 111, 165, 0.10);
  --hover-shadow: 0 16px 48px rgba(74, 111, 165, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --nav-height: 72px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode */
[data-theme="dark"] {
  --light-bg: #111827;
  --white: #1f2937;
  --dark-text: #f1f5f9;
  --muted-text: #94a3b8;
  --border: #374151;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --hover-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --gradient-card: linear-gradient(135deg, rgba(74, 111, 165, 0.12) 0%, rgba(107, 140, 188, 0.08) 100%);
}

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-text);
  background: var(--light-bg);
  transition: background 0.3s, color 0.3s;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

input,
textarea,
select,
button {
  font-family: inherit;
}

/* ── Navigation ──────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--gradient-hero);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background: var(--gradient-hero);
}

.navbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.logo-tagline {
  font-size: 0.62rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  display: block;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-2);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-toggle .caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 5px;
  transition: transform 0.22s;
  vertical-align: middle;
}

.nav-dropdown:hover .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 200;
}

/* Bridge the gap so hover isn't lost when moving mouse to menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-text);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--gradient-card);
  color: var(--primary);
}

.dropdown-item .di-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* Theme & hamburger */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.btn-theme {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  color: white;
}

.btn-theme:hover {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  justify-content: center;
  align-items: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 16px;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-text);
  transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--gradient-card);
  color: var(--primary);
}

.mobile-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-text);
  padding: 16px 16px 8px;
}

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 6px 20px rgba(74, 111, 165, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74, 111, 165, 0.45);
}

.btn-accent {
  background: var(--gradient-2);
  color: white;
  box-shadow: 0 6px 20px rgba(255, 145, 77, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 145, 77, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ── Section Headings ────────────────────────────────────── */
.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-lg {
  padding: 96px 0;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted-text);
  max-width: 580px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(74, 111, 165, 0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.tag-accent {
  background: rgba(255, 145, 77, 0.12);
  color: var(--accent);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}

.card-body {
  padding: 28px;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: var(--gradient-1);
  color: white;
}

.card-icon.accent {
  background: var(--gradient-2);
}

.card-icon.green {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.card-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.card-text {
  font-size: 0.875rem;
  color: var(--muted-text);
  line-height: 1.6;
}

/* ── Grid Layouts ────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--gradient-hero);
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  margin-bottom: 22px;
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: white;
  line-height: 1.18;
  margin-bottom: 18px;
}

.hero-title span {
  background: linear-gradient(90deg, #ffca7a, #ff914d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

/* Floating icons */
.hero-float {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  opacity: 0.85;
}

.float-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  color: white;
  min-width: 100px;
}

.float-card .f-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.float-card .f-label {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
}

.float-card:nth-child(2) {
  margin-top: 32px;
}

.float-card:nth-child(4) {
  margin-top: -16px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero-float .float-card {
  animation: float 4s ease-in-out infinite;
}

.hero-float .float-card:nth-child(2) {
  animation-delay: 0.8s;
}

.hero-float .float-card:nth-child(3) {
  animation-delay: 1.6s;
}

.hero-float .float-card:nth-child(4) {
  animation-delay: 2.4s;
}

/* ── How it works ────────────────────────────────────────── */
.step-card {
  text-align: center;
  padding: 32px 24px;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: white;
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(74, 111, 165, 0.3);
}

/* ── Feature list ────────────────────────────────────────── */
.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--dark-text);
}

.feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ── Calculator Forms ────────────────────────────────────── */
.calc-wrapper {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.calc-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  padding: 36px;
}

.calc-result-card {
  background: var(--gradient-1);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: white;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.calc-result-card .result-num {
  font-family: 'Sora', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.calc-result-card .result-label {
  font-size: 0.88rem;
  opacity: 0.82;
  margin-bottom: 4px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dark-text);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--light-bg);
  color: var(--dark-text);
  font-size: 1rem;
  /* 16px prevents iOS zoom on focus */
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.12);
  background: var(--white);
}

[data-theme="dark"] .form-control {
  background: #1f2937;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--muted-text);
  margin-top: 5px;
}

/* Range slider */
.form-range {
  background: var(--border);
  outline: none;
  appearance: none;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Result rows */
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.result-row:last-child {
  border-bottom: none;
}

.result-row .r-label {
  font-size: 0.85rem;
  opacity: 0.82;
}

.result-row .r-val {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ── Table ───────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  background: rgba(74, 111, 165, 0.07);
  color: var(--dark-text);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table tr:hover td {
  background: var(--gradient-card);
}

.data-table td {
  border-bottom: 1px solid var(--border);
  color: var(--dark-text);
}

/* Card view for mobile tables */
@media (max-width: 576px) {

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table th,
  .data-table td,
  .data-table tr {
    display: block;
  }

  .data-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .data-table tr {
    margin-bottom: 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .data-table td {
    border: none;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 50% !important;
    text-align: right !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .data-table td:last-child {
    border-bottom: none;
  }

  .data-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted-text);
  }
}

[data-theme="dark"] .data-table th {
  background: rgba(74, 111, 165, 0.15);
}

/* Delete row btn */
.btn-del {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-del:hover {
  background: #ef4444;
  color: white;
}

/* ── Progress / Gauge ────────────────────────────────────── */
.progress {
  height: 10px;
  border-radius: 5px;
  background: var(--border);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 5px;
  background: var(--gradient-1);
  transition: width 0.6s ease;
}

.progress-bar.accent {
  background: var(--gradient-2);
}

/* ── Layout Planner Grid ─────────────────────────────────── */
#room-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(20, 1fr);
  gap: 1px;
  background: var(--border);
  border: 2px solid var(--primary);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 500px;
}

.grid-cell {
  background: var(--white);
  transition: background 0.15s;
  position: relative;
  cursor: crosshair;
}

.grid-cell:hover {
  background: rgba(74, 111, 165, 0.1);
}

.furniture-piece {
  position: absolute;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  cursor: grab;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 10;
  text-align: center;
  line-height: 1.1;
}

.furniture-piece:active {
  cursor: grabbing;
}

/* Furniture library */
.furniture-library {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.furn-btn {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--gradient-card);
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-text);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.furn-btn:hover {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
}

/* ── Accordion (FAQ) ─────────────────────────────────────── */
.accordion-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--gradient-card);
  color: var(--primary);
}

.accordion-header .acc-icon {
  font-size: 18px;
  transition: transform 0.22s;
  flex-shrink: 0;
}

.accordion-header.open .acc-icon {
  transform: rotate(45deg);
}

.accordion-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.9rem;
  color: var(--muted-text);
}

.accordion-body.open {
  padding: 0 20px 18px;
}

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-section {
  background: var(--gradient-hero);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section .cta-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  position: relative;
}

.cta-section .cta-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
  position: relative;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.email-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.email-input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.22);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--gradient-hero);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

[data-theme="dark"] .site-footer {
  background: var(--gradient-hero);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-desc {
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col-title {
  font-weight: 700;
  color: white;
  margin-bottom: 18px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-links a::before {
  content: '→';
  font-size: 0.8em;
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  background: var(--gradient-hero);
  padding: 64px 0;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.page-hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-primary {
  background: rgba(74, 111, 165, 0.12);
  color: var(--primary);
}

.badge-accent {
  background: rgba(255, 145, 77, 0.12);
  color: var(--accent);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

/* ── Alert ───────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

.alert-info {
  background: rgba(74, 111, 165, 0.1);
  border: 1px solid rgba(74, 111, 165, 0.25);
  color: var(--primary);
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonial-card {
  padding: 28px;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted-text);
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--muted-text);
}

/* ── Unit toggle ─────────────────────────────────────────── */
.unit-toggle {
  display: flex;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  width: fit-content;
}

.unit-btn {
  padding: 12px 24px;
  min-height: 48px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted-text);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.unit-btn.active {
  background: var(--gradient-1);
  color: white;
}

/* ── Gantt ───────────────────────────────────────────────── */
.gantt-bar {
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

/* ── Print ───────────────────────────────────────────────── */
@media print {

  .navbar,
  .site-footer,
  .btn-primary,
  .btn-accent,
  .btn-outline,
  .hamburger,
  .hero-float {
    display: none !important;
  }

  .calc-wrapper {
    grid-template-columns: 1fr;
  }

  .calc-result-card {
    background: white !important;
    color: black !important;
    border: 2px solid var(--primary);
  }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .navbar-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .hero-float {
    display: none;
  }

  .calc-wrapper {
    grid-template-columns: 1fr;
  }

  .calc-result-card {
    position: static;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 52px 0;
  }

  .container {
    padding: 0 16px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .email-form {
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  animation: fadeUp 0.55s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* ── Misc Utilities ──────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--muted-text);
}

.text-white {
  color: white;
}

.fw-700 {
  font-weight: 700;
}

.fw-800 {
  font-weight: 800;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mb-48 {
  margin-bottom: 48px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.df {
  display: flex;
}

.df-ac {
  display: flex;
  align-items: center;
}

.df-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.w-100 {
  width: 100%;
}

.separator {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.rounded {
  border-radius: var(--radius);
}

.overflow-x {
  overflow-x: auto;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ── Back to Top Button ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 25px;
  /* Exact spec */
  right: 25px;
  /* Exact spec */
  width: 50px;
  /* Desktop size */
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a6fa5, #6b8cbc);
  /* Exact spec */
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  /* Exact spec */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

.back-to-top svg {
  transition: transform 0.3s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .back-to-top {
    width: 45px;
    /* Tablet size */
    height: 45px;
    bottom: 25px;
    right: 25px;
  }
}

@media (max-width: 576px) {
  .back-to-top {
    width: 40px;
    /* Mobile size */
    height: 40px;
    bottom: 25px;
    right: 25px;
  }
}