/* Fin Realty — shared styles
   Palette: Fin Realty blue, charcoal, white.
   Desktop-first, then a simple mobile pass. */

:root {
  --blue: #007fa8;
  --blue-bright: #00aeef;
  --blue-hover: #006687;
  --charcoal: #1c2127;
  --ink: #2a3138;
  --muted: #5b6570;
  --line: #d4dbe2;
  --bg: #f4f6f8;
  --white: #ffffff;
  --max: 1100px;
  --header-h: 80px;
  --shadow: 0 8px 28px rgba(28, 33, 39, 0.08);
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-hover);
}

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.5rem 0.85rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(calc(100% - 3.5rem), var(--max));
  margin-inline: auto;
}

/* Header
   -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 58px;
  width: auto;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: var(--radius);
}

.site-nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav a[aria-current="page"] {
  color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue-bright);
}

/* Page heroes
   -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 34rem;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--charcoal) center / cover no-repeat;
}

.hero--page {
  min-height: 20rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 33, 39, 0.78) 0%,
    rgba(28, 33, 39, 0.42) 55%,
    rgba(28, 33, 39, 0.18) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3.75rem;
  max-width: 38rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.hero .eyebrow {
  color: #8ad8f5;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.015em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
}

.hero h1 {
  color: var(--white);
}

.lede,
.hero-lede {
  margin: 0 0 1.6rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-lede {
  color: rgba(255, 255, 255, 0.92);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons
   -------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.72rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-on-light {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line);
}

.btn-on-light:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Sections
   -------------------------------------------------- */
.section {
  padding: 4.75rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.bg-soft {
  background: var(--bg);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split--top {
  align-items: start;
}

.split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  min-height: 18rem;
}

.prose h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.28rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

/* Cards
   -------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 13.5rem;
  object-fit: cover;
}

.card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.card p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  flex: 1;
}

.card .more {
  font-weight: 650;
  text-decoration: none;
}

.card .more::after {
  content: " →";
}

/* Steps
   -------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.step-num {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

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

/* Contact facts
   -------------------------------------------------- */
.facts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.facts li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.facts span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.facts a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.facts a:hover {
  color: var(--blue);
}

/* Form
   -------------------------------------------------- */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.75rem;
  box-shadow: var(--shadow);
}

.form h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

.form > p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-success {
  background: #e8f6ec;
  border: 1px solid #b7dfc2;
  color: #215c34;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
}

/* CTA band
   -------------------------------------------------- */
.cta-band {
  background: var(--charcoal);
  color: var(--white);
  padding: 3.5rem 0;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  color: var(--white);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
}

/* Footer
   -------------------------------------------------- */
.site-footer {
  background: #14181d;
  color: #c5ccd3;
  padding: 2.4rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.6rem;
}

.site-footer h2 {
  margin: 0 0 0.35rem;
  color: var(--white);
  font-size: 1.15rem;
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.site-footer a {
  color: #d7eef8;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue-bright);
  text-decoration: underline;
}

.copyright {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid #2a323a;
  color: #8b949c;
  font-size: 0.88rem;
}

/* Mobile
   -------------------------------------------------- */
@media (max-width: 860px) {
  .wrap {
    width: min(calc(100% - 2rem), var(--max));
  }

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

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 0.85rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.35rem;
  }

  .hero {
    min-height: 26rem;
  }

  .hero--page {
    min-height: 16rem;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(28, 33, 39, 0.28) 0%,
      rgba(28, 33, 39, 0.78) 100%
    );
  }

  .split,
  .card-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.25rem 0;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    height: 48px;
  }
}
