/* ============================================================
   components.css — Reusable UI elements
   Buttons, form inputs, cards, nav, logo, badges
   ============================================================ */

/* ── Nav ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.logo-icon   { width: 28px; height: 28px; }
.logo-ease   { color: var(--navy); }
.logo-my     { color: var(--blue-light); }
.logo-office { color: var(--navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all 0.15s;
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--gray-100);
}

.nav-phone {
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.nav-phone:hover {
  background: var(--navy-dark) !important;
}

/* ── Buttons ── */
.btn-plan {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.btn-plan-outline {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-plan-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-plan-fill {
  background: var(--navy);
  color: var(--white);
}

.btn-plan-fill:hover {
  background: var(--navy-dark);
}

.btn-browse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  background: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-browse:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

.btn-submit:hover   { background: var(--navy-dark); }
.btn-submit:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
}

.btn-cta-white {
  background: var(--white);
  color: var(--navy);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-cta-white:hover { background: var(--gray-100); }

.btn-cta-outline {
  background: transparent;
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-cta-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* ── Form ── */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  resize: none;
  height: 70px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Plan card ── */
.plan-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: box-shadow 0.2s;
}

.plan-card:hover     { box-shadow: var(--shadow-md); }
.plan-card.featured  { border: 2px solid var(--navy); }

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--gray-900);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.plan-icon svg { width: 18px; height: 18px; color: var(--blue); }

.plan-name  { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.plan-desc  { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }
.plan-price { font-size: 2.2rem; font-weight: 800; color: var(--gray-900); line-height: 1; margin-bottom: 4px; }
.plan-price sup { font-size: 1rem; vertical-align: top; margin-top: 6px; }
.plan-per   { font-size: 13px; color: var(--gray-400); font-weight: 400; margin-bottom: 20px; }
.plans-note { text-align: center; font-size: 12px; color: var(--gray-400); margin-top: 16px; }

.plan-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--gray-600);
}

.plan-features li.off {
  color: var(--gray-300);
  text-decoration: line-through;
}

.feat-check { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.feat-cross { color: var(--gray-300); flex-shrink: 0; margin-top: 1px; }

/* ── Space card ── */
.space-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

.space-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.space-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.space-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.space-card:hover .space-img-wrap img { transform: scale(1.04); }

.space-price-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.95);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-800);
  padding: 4px 10px;
  border-radius: 100px;
}

.space-body   { padding: 16px; }

.space-city {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.space-city svg { width: 14px; height: 14px; color: var(--gray-400); flex-shrink: 0; }

.space-areas { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }

.space-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.space-link:hover { color: var(--navy); }

/* ── City card ── */
.city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s;
}

.city-card:hover {
  border-color: var(--navy);
  background: var(--blue-bg);
}

.city-card-left { display: flex; align-items: center; gap: 8px; }
.city-dot  { width: 8px; height: 8px; background: var(--blue-light); border-radius: 50%; flex-shrink: 0; }
.city-name { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.city-price { font-size: 12px; color: var(--gray-500); margin-top: 1px; }
.city-arrow { color: var(--gray-300); font-size: 16px; }
.city-card:hover .city-arrow { color: var(--navy); }

/* ── Brand pill ── */
.brand-pill {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 11px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  transition: all 0.15s;
}

.brand-pill:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--blue-bg);
}

/* ── Why feat card ── */
.why-feat {
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s;
}

.why-feat:hover { box-shadow: var(--shadow-sm); }

.why-feat-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.why-feat-icon svg { width: 18px; height: 18px; color: var(--blue); }
.why-feat h4 { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.why-feat p  { font-size: 13px; color: var(--gray-500); line-height: 1.55; }

/* ── Testimonial card ── */
.test-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.test-stars  { color: var(--amber); font-size: 15px; margin-bottom: 12px; }
.test-text   { font-size: 14px; color: var(--gray-700); line-height: 1.65; margin-bottom: 18px; }
.test-author { border-top: 1px solid var(--gray-100); padding-top: 14px; }
.test-name   { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.test-role   { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--white);
  transition: background 0.15s;
}

.faq-q:hover { background: var(--gray-50); }
.faq-q span  { font-size: 14px; font-weight: 500; color: var(--gray-800); padding-right: 16px; }

.faq-chevron {
  color: var(--gray-400);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}

.faq-item.open .faq-chevron { color: var(--navy); }

.faq-a {
  display: none;
  padding: 14px 20px 16px;
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  border-top: 1px solid var(--gray-100);
}

.faq-item.open .faq-a { display: block; }

/* ── Compare table ── */
.compare-table-wrap {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-table { width: 100%; border-collapse: collapse; }

.compare-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.compare-table th:not(:first-child) { text-align: center; }
.th-emo { background: var(--blue-bg); }

.emo-label {
  display: inline-flex;
  align-items: center;
  background: var(--amber);
  color: var(--gray-900);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 6px;
}

.compare-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  color: var(--gray-700);
}

.compare-table td:not(:first-child)  { text-align: center; }
.compare-table td.emo-col            { background: #f0f7ff; }
.compare-table tr:last-child td      { border-bottom: none; }
.compare-table tr:hover td           { background: var(--gray-50); }
.compare-table tr:hover td.emo-col   { background: #e0f0ff; }

.ct-check     { color: var(--green); font-size: 18px; }
.ct-cross     { color: var(--red); font-size: 16px; }
.ct-sometimes { font-size: 13px; color: var(--gray-400); }
.ct-bold      { font-weight: 700; color: var(--navy); }

/* ── How it works card ── */
.hiw-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  z-index: 1;
}

.hiw-num {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hiw-icon { font-size: 22px; margin-bottom: 10px; }
.hiw-card h4 { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.hiw-card p  { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* ── Floating WhatsApp ── */
.float-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.2s;
}

.float-wa:hover { transform: scale(1.08); }
