:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef2f6;
  --surface-dark: #111827;
  --text: #172033;
  --text-muted: #5f6b7a;
  --text-soft: #8b96a5;
  --border: #d9e0e7;
  --primary: #0f4c81;
  --primary-dark: #0a365d;
  --accent: #c1121f;
  --shadow-sm: 0 10px 30px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 18px 45px rgba(16, 24, 40, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --transition: all 0.28s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

/* =========================
   NAV
========================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(244, 246, 248, 0.88);
  border-bottom: 1px solid rgba(217, 224, 231, 0.8);
}

.nav__container {
  width: min(92%, var(--container));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav__brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--surface-dark);
}

.nav__brand span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  color: var(--text-muted);
  font-size: 15px;
  transition: var(--transition);
}

.nav__links a:hover {
  color: var(--primary);
}

.nav__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--surface-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.nav__button:hover {
  background: var(--primary);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  padding: 120px 0 70px;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(15, 76, 129, 0.08), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(193, 18, 31, 0.06), transparent 28%);
}

.hero__container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.hero__content {
  max-width: 760px;
}

.hero__tag,
.section-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--surface-dark);
}

.hero__description {
  margin-top: 24px;
  max-width: 620px;
  font-size: 18px;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--surface-dark);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--surface);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed var(--border);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--surface-dark);
}

/* =========================
   SECTIONS
========================= */
.finder,
.features,
.results,
.contact {
  padding: 40px 0 90px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  color: var(--surface-dark);
}

.section-header p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 17px;
}

.section-header--results {
  margin-bottom: 26px;
}

/* =========================
   FILTERS
========================= */
.finder-box {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.field select:focus {
  border-color: rgba(15, 76, 129, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.08);
}

.field select:disabled {
  background: #f5f7fa;
  color: var(--text-soft);
  cursor: not-allowed;
}

.finder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

/* =========================
   FEATURES
========================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.feature__number {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.feature h3 {
  font-size: 22px;
  color: var(--surface-dark);
}

.feature p {
  margin-top: 10px;
  color: var(--text-muted);
}

/* =========================
   STATES
========================= */
.state-box {
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.hidden {
  display: none !important;
}

/* =========================
   RESULTS
========================= */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.result-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.result-card__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.result-card__image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #dde6ee, #f5f8fb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 16px;
}

.result-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-card__body {
  padding: 26px;
}

.result-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.result-card__title {
  font-size: 26px;
  line-height: 1.15;
  color: var(--surface-dark);
}

.result-card__meta {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.result-card__description {
  margin-top: 18px;
  color: var(--text);
  font-size: 16px;
}

.result-card__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.result-detail {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #edf1f5;
}

.result-detail span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.result-detail strong {
  color: var(--surface-dark);
  font-size: 15px;
}

/* =========================
   CONTACT
========================= */
.contact-box {
  padding: 42px;
  border-radius: 32px;
  background: linear-gradient(135deg, #0f172a, #16243d);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.contact-content {
  max-width: 700px;
}

.contact .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #d9e8ff;
}

.contact h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.contact p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.contact .btn {
  margin-top: 28px;
}

/* =========================
   FOOTER
========================= */
.footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  background: #eef2f6;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 22px;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 380px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(217, 224, 231, 0.9);
}

.footer-bottom p {
  color: var(--text-soft);
  font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__container {
    min-height: 74px;
  }

  .nav__links,
  .nav__button {
    display: none;
  }

  .hero {
    padding: 110px 0 48px;
  }

  .hero__description {
    font-size: 16px;
  }

  .finder,
  .features,
  .results,
  .contact {
    padding: 30px 0 70px;
  }

  .finder-box,
  .contact-box {
    padding: 24px;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .result-card__media,
  .result-card__details,
  .footer-content {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 560px) {
  .hero__title {
    font-size: 40px;
  }

  .section-header h2,
  .contact h2 {
    font-size: 34px;
  }

  .result-card__title {
    font-size: 22px;
  }

  .btn {
    width: 100%;
  }

  .hero__actions,
  .finder-actions {
    flex-direction: column;
  }
}
.action-message {
  margin: 14px 0 22px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(15, 76, 129, 0.08);
  border: 1px solid rgba(15, 76, 129, 0.14);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}

.btn--ghost.is-loading::after {
  border: 2px solid rgba(95, 107, 122, 0.35);
  border-top-color: var(--text-muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}