:root {
  --navy: #071036;
  --navy-deep: #020617;
  --navy-soft: #132153;
  --gold: #b8903d;
  --gold-light: #d8bc75;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --ink: #172033;
  --muted: #657083;
  --line: #e7dfcf;
  --shadow: 0 18px 48px rgba(7, 16, 54, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--gold);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  color: #fff;
  background: rgba(2, 6, 23, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.22);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 650;
  font-size: 0.94rem;
}

.nav-links a {
  opacity: 0.88;
  transition: color 160ms ease, opacity 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--gold-light);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-line {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(7, 16, 54, 0.85) 43%, rgba(7, 16, 54, 0.36) 72%, rgba(2, 6, 23, 0.74) 100%),
    url("assets/kabana-hero.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.68));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 132px 0 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-tagline {
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(1.2rem, 2.3vw, 2rem);
  font-family: Georgia, "Times New Roman", serif;
}

.hero-copy {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--gold-light);
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus {
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, 0.14);
}

.trust-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: -46px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trust-strip div {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--navy);
  font-size: 1.12rem;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.showcase {
  padding-bottom: 50px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  grid-template-rows: repeat(2, minmax(230px, 1fr));
  gap: 18px;
}

.showcase-card {
  position: relative;
  min-height: 230px;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.showcase-card-large {
  grid-row: span 2;
  min-height: 478px;
}

.showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.72));
}

.showcase-card figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
}

.showcase-card figcaption span {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 760px;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--navy);
  font-weight: 800;
  border-bottom: 2px solid var(--gold);
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.section-heading p:not(.eyebrow),
.about-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.02rem;
}

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

.service-card {
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 16, 54, 0.06);
}

.service-number {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.service-card h3,
.property-card h3,
.process-grid h3 {
  margin: 18px 0 10px;
  color: var(--navy);
  font-size: 1.18rem;
}

.service-card p,
.property-card p,
.process-grid p {
  color: var(--muted);
  margin: 0;
}

.search-types {
  width: 100%;
  max-width: none;
  padding: 92px max(16px, calc((100% - var(--max)) / 2));
  background: var(--cream);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.property-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(7, 16, 54, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.property-card:hover,
.property-card:focus {
  transform: translateY(-3px);
  border-color: rgba(184, 144, 61, 0.55);
  box-shadow: 0 20px 44px rgba(7, 16, 54, 0.14);
}

.property-media {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
  background-color: var(--navy);
}

.property-body {
  padding: 24px;
}

.property-kicker {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 58px;
  align-items: center;
}

.about-visual {
  display: grid;
  place-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.about-visual img {
  width: min(360px, 100%);
}

.about-copy p {
  max-width: 660px;
}

.about-copy .about-kicker {
  margin-bottom: 8px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
}

.about-title {
  margin-bottom: 22px !important;
  color: var(--gold) !important;
  font-size: clamp(1.35rem, 2.3vw, 2rem) !important;
  line-height: 1.18 !important;
}

.team {
  padding-top: 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.team-grid div {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 16, 54, 0.06);
}

.team-grid span {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.team-grid h3 {
  margin: 16px 0 8px;
  color: var(--navy);
  font-size: 1.12rem;
}

.team-grid p {
  margin: 0;
  color: var(--muted);
}

.process {
  padding-top: 20px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process-grid div {
  padding: 24px;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 16, 54, 0.06);
}

.process-grid span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: start;
  padding: 92px max(16px, calc((100% - var(--max)) / 2));
  color: #fff;
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(7, 16, 54, 0.9)),
    url("assets/kabana-hero.png");
  background-size: cover;
  background-position: center;
}

.contact-copy h2,
.contact-copy p {
  color: #fff;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-detail {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-detail strong,
.contact-detail span,
.contact-detail a {
  display: block;
}

.contact-detail span,
.contact-detail a {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-detail a {
  width: fit-content;
  color: var(--gold-light);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d8dce4;
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 144, 61, 0.16);
}

.contact-form .button {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--navy);
  font-weight: 750;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px max(16px, calc((100% - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.76);
  background: var(--navy-deep);
}

@media (max-width: 980px) {
  .service-grid,
  .property-grid,
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-card-large {
    grid-row: span 1;
  }

  .about,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .nav-shell {
    min-height: 70px;
  }

  .brand span {
    max-width: 160px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(2, 6, 23, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: 780px;
    background-position: 58% center;
  }

  .hero h1 {
    max-width: 320px;
    font-size: clamp(2.2rem, 9.6vw, 2.55rem);
    overflow-wrap: break-word;
  }

  .hero-content {
    padding-top: 122px;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-strip,
  .service-grid,
  .property-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-rows: none;
  }

  .showcase-card,
  .showcase-card-large {
    min-height: 300px;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .section,
  .search-types,
  .contact-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
