:root {
  --hb-bg: #f4f6f9;
  --hb-bg-alt: #ecf0f5;
  --hb-panel: rgba(255, 255, 255, 0.92);
  --hb-panel-strong: #ffffff;
  --hb-line: rgba(32, 48, 64, 0.12);
  --hb-ink: #1e2b39;
  --hb-muted: #617285;
  --hb-accent: #2f658f;
  --hb-accent-2: #71a8d4;
  --hb-family: #1d78b5;
  --hb-work: #445c74;
  --hb-accent-soft: rgba(47, 101, 143, 0.12);
  --hb-shadow: 0 24px 80px rgba(16, 24, 40, 0.12);
  --hb-radius-xl: 28px;
  --hb-radius-lg: 20px;
  --hb-radius-md: 14px;
  --hb-max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--hb-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(180deg, var(--hb-bg) 0%, var(--hb-bg-alt) 100%);
  -webkit-font-smoothing: antialiased;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--hb-bg);
  transition: all 0.6s ease-out;
  width: 100%;
  height: 100vh;
}

#preloader::after {
  animation-delay: -0.5s;
}

#preloader::before,
#preloader::after {
  content: "";
  position: absolute;
  border: 4px solid #59bec5;
  border-radius: 50%;
  animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes animate-preloader {
  0% {
    width: 10px;
    height: 10px;
    top: calc(50% - 5px);
    left: calc(50% - 5px);
    opacity: 1;
  }

  100% {
    width: 72px;
    height: 72px;
    top: calc(50% - 36px);
    left: calc(50% - 36px);
    opacity: 0;
  }
}

.skiptranslate {
  opacity: 0;
  display: none;
  position: absolute !important;
  top: -5000px;
}

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

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

.hb-shell {
  width: min(var(--hb-max-width), calc(100% - 40px));
  margin: 0 auto;
}

.hb-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--hb-line);
}

.hb-topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hb-brand img {
  width: 44px;
  height: 44px;
}

.hb-brand-copy strong,
.hb-brand-copy span {
  display: block;
}

.hb-brand-copy strong {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.hb-brand-copy span {
  color: var(--hb-muted);
  font-size: 0.92rem;
}

.hb-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hb-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--hb-muted);
  font-size: 0.95rem;
}

.hb-nav a:hover {
  color: var(--hb-accent);
  background: var(--hb-accent-soft);
}

.hb-main {
  padding: 24px 0 48px;
}

.hb-section {
  padding: 28px 0;
}

.hb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 20px;
  min-height: 680px;
  padding: 42px;
  border-radius: var(--hb-radius-xl);
  overflow: hidden;
  box-shadow: var(--hb-shadow);
  background:
    linear-gradient(135deg, rgba(18, 29, 43, 0.76), rgba(52, 105, 152, 0.24)),
    url("../img/scenery/Barcelona-trip-planner.png") center/cover;
}

.hb-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.hb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.hb-hero h1 {
  max-width: 8ch;
  margin: 18px 0 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.94;
}

.hb-hero p {
  max-width: 58ch;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.hb-actions,
.hb-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.hb-btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--hb-accent), var(--hb-accent-2));
}

.hb-btn-secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.hb-hero-grid {
  display: grid;
  gap: 16px;
  align-content: end;
}

.hb-hero-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--hb-ink);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}

.hb-hero-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
}

.hb-hero-card strong,
.hb-hero-card span {
  display: block;
}

.hb-hero-card strong {
  margin-top: 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
}

.hb-hero-card span {
  color: var(--hb-muted);
  line-height: 1.5;
}

.hb-hero-card-family {
  border: 1px solid rgba(29, 120, 181, 0.18);
}

.hb-hero-card-work {
  border: 1px solid rgba(68, 92, 116, 0.18);
}

.hb-section-head {
  margin-bottom: 22px;
}

.hb-kicker {
  color: var(--hb-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
}

.hb-section-head h2,
.hb-about-copy h2,
.hb-contact-copy h2 {
  margin: 8px 0 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.02;
}

.hb-section-head p,
.hb-about-copy p,
.hb-contact-copy p {
  margin: 0;
  color: var(--hb-muted);
  line-height: 1.7;
}

.hb-apartment-grid,
.hb-trust-grid {
  display: grid;
  gap: 18px;
}

.hb-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  padding: 22px;
  border-radius: var(--hb-radius-lg);
  background: var(--hb-panel);
  border: 1px solid var(--hb-line);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.hb-card-media img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  border-radius: 18px;
}

.hb-chip {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--hb-accent-soft);
  color: var(--hb-accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.hb-card-family .hb-chip {
  background: rgba(29, 120, 181, 0.12);
  color: var(--hb-family);
}

.hb-card-work .hb-chip {
  background: rgba(68, 92, 116, 0.12);
  color: var(--hb-work);
}

.hb-card h3,
.hb-trust-card h3 {
  margin: 14px 0 12px;
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
}

.hb-card p,
.hb-trust-card p {
  margin: 0 0 14px;
  color: var(--hb-muted);
  line-height: 1.72;
}

.hb-list {
  margin: 0;
  padding-left: 18px;
  color: var(--hb-muted);
  line-height: 1.8;
}

.hb-compare {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--hb-radius-lg);
  background: var(--hb-panel);
  border: 1px solid var(--hb-line);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.hb-compare-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hb-line);
}

.hb-compare-row strong {
  font-weight: 700;
}

.hb-compare-row span {
  color: var(--hb-accent);
  font-weight: 700;
  text-align: right;
}

.hb-trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hb-trust-card,
.hb-about,
.hb-contact,
.hb-footer-box {
  border-radius: var(--hb-radius-lg);
  background: var(--hb-panel);
  border: 1px solid var(--hb-line);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.hb-trust-card {
  padding: 24px;
}

.hb-about {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 24px;
  align-items: center;
}

.hb-about img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 18px;
}

.hb-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: 22px;
  padding: 24px;
  align-items: start;
}

.hb-contact-form form {
  padding: 24px;
  border-radius: 18px;
  background: #fbfcfe;
  border: 1px solid var(--hb-line);
}

.hb-contact-form .form-label {
  font-weight: 600;
}

.hb-contact-form .form-control {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--hb-line);
  box-shadow: none;
}

.hb-contact-form textarea.form-control {
  min-height: 140px;
}

.hb-contact-form .form-control:focus {
  border-color: rgba(47, 101, 143, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 101, 143, 0.12);
}

.hb-footer {
  padding: 24px 0 42px;
}

.hb-footer-box {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
}

.hb-footer-box p {
  margin: 0;
  color: var(--hb-muted);
}

.hb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 980px) {
  .hb-hero,
  .hb-card,
  .hb-about,
  .hb-contact {
    grid-template-columns: 1fr;
  }

  .hb-trust-grid {
    grid-template-columns: 1fr;
  }

  .hb-topbar-inner,
  .hb-footer-box,
  .hb-compare-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hb-compare-row span {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .hb-shell {
    width: min(var(--hb-max-width), calc(100% - 24px));
  }

  .hb-hero,
  .hb-card,
  .hb-about,
  .hb-contact,
  .hb-trust-card,
  .hb-contact-form form,
  .hb-footer-box {
    padding: 24px;
  }

  .hb-hero {
    min-height: auto;
  }

  .hb-hero h1 {
    max-width: none;
  }

  .hb-hero-card {
    grid-template-columns: 1fr;
  }

  .hb-hero-card img {
    height: 180px;
  }
}
