html { scroll-behavior: smooth; }

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

/* Hero overlay: dark on the text side, fading toward the image focal point.
   Strong enough that any text (or image-baked text like "Hello"/"Bonjour")
   behind the overlay recedes into the background. */
.hero-overlay {
  background-image: linear-gradient(
    to right,
    rgba(12, 20, 39, 0.88) 0%,
    rgba(12, 20, 39, 0.72) 40%,
    rgba(12, 20, 39, 0.42) 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, but 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: 90% center; /* mobile: show the right side (subject) */
}
@media (min-width: 768px) {
  .hero-image { object-position: center center; }
}

/* Subtle blur to push image-baked text into the background. */
.hero-image.soften {
  filter: brightness(0.85) saturate(0.95);
}

.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; }

/* Force color flag rendering on Windows Chrome/Edge (which normally drops to
   letter fallback). Noto Color Emoji webfont is loaded for this purpose. */
[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; }
