html { scroll-behavior: smooth; }

body { font-feature-settings: "cv02", "cv03", "cv04", "cv11"; }

/* Offset anchored sections so the sticky header doesn't cover their headings. */
[id] { scroll-margin-top: 90px; }

/* Hero overlay: dark on the text side, fading toward the image focal point. */
.hero-overlay {
  background-image: linear-gradient(
    to right,
    rgba(12, 20, 39, 0.86) 0%,
    rgba(12, 20, 39, 0.70) 42%,
    rgba(12, 20, 39, 0.40) 100%
  );
}

@media (max-width: 767px) {
  .hero-overlay {
    background-image: linear-gradient(
      to bottom,
      rgba(12, 20, 39, 0.55) 0%,
      rgba(12, 20, 39, 0.80) 60%,
      rgba(12, 20, 39, 0.92) 100%
    );
  }
}

/* Hero image: always covers, shifts focal point on mobile so the subject stays in frame. */
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
}
@media (min-width: 768px) {
  .hero-image { object-position: center center; }
}
.hero-image.soften { filter: brightness(0.9) saturate(0.97); }

/* ---------- Forms ---------- */
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgb(209 213 219);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 120ms, box-shadow 120ms;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(55 65 81);
  margin-bottom: 0.375rem;
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Phone input component ---------- */
.phone-wrap { display: flex; }
.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.75rem;
  border: 1px solid rgb(209 213 219);
  border-right: 0;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  background: #fff;
  color: rgb(55 65 81);
  transition: background 120ms;
  white-space: nowrap;
  height: 44px;
}
.phone-btn:hover { background: rgb(249 250 251); }
.phone-btn svg { width: 14px; height: 14px; color: rgb(107 114 128); }
.phone-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgb(209 213 219);
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.95rem;
  transition: border-color 120ms, box-shadow 120ms;
  height: 44px;
}
.phone-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.375rem;
  max-height: 22rem;
  background: #fff;
  border: 1px solid rgb(229 231 235);
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.22);
  z-index: 40;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .country-dropdown { width: 22rem; right: auto; }
}
.country-search {
  padding: 0.75rem;
  border-bottom: 1px solid rgb(229 231 235);
  background: rgb(249 250 251);
}
.country-search input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(229 231 235);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: #fff;
}
.country-search input:focus { outline: none; border-color: #2563eb; }
.country-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  overflow-y: auto;
  flex: 1;
}
.country-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: rgb(55 65 81);
}
.country-list li:hover, .country-list li.active { background: rgb(239 246 255); }
.country-list li .flag { font-size: 1.125rem; line-height: 1; }
[data-flag], .country-list .flag {
  font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji",
    "Twemoji Mozilla", sans-serif;
  font-weight: normal;
  font-style: normal;
}
.country-list li .cname { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-list li .cdial { color: rgb(107 114 128); font-variant-numeric: tabular-nums; }

/* ---------- FAQ accordion (native <details>, works without JS) ---------- */
.faq-item {
  border: 1px solid rgb(229 231 235);
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 150ms, border-color 150ms;
}
.faq-item[open] { border-color: rgb(191 219 254); box-shadow: 0 8px 24px -16px rgba(37,99,235,0.35); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  font-weight: 600;
  color: rgb(17 24 39);
  font-size: 1.0625rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .chev {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: #2563eb;
  transition: transform 200ms ease;
}
.faq-item[open] > summary .chev { transform: rotate(180deg); }
.faq-body { padding: 0 1.25rem 1.25rem; color: rgb(75 85 99); line-height: 1.65; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6);
  transition: transform 150ms, box-shadow 150ms;
}
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 32px -8px rgba(37, 211, 102, 0.7); }
.wa-float svg { width: 1.9rem; height: 1.9rem; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(17 24 39);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: rgb(75 85 99); line-height: 1.7; margin-bottom: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin: 0.5rem 0 1rem; color: rgb(75 85 99); }
.legal ul li { margin-bottom: 0.35rem; line-height: 1.6; }
