/* ==========================================================================
   FIAN Capital — Design system
   Trust, calm, professional. Navy + sage + warm neutrals.
   ========================================================================== */

:root {
  --color-navy: #1b3a4b;
  --color-navy-deep: #122a36;
  --color-navy-soft: #2a5166;
  --color-sage: #5b8a72;
  --color-sage-dark: #4a7360;
  --color-sage-light: #e8f2ec;
  --color-gold: #c4a35a;
  --color-gold-soft: #e8d9b0;
  --color-bg: #f7f5f2;
  --color-bg-alt: #efebe5;
  --color-white: #ffffff;
  --color-text: #2c2c2c;
  --color-text-muted: #5c636a;
  --color-border: #ddd6cc;
  --color-error: #a63d3d;
  --color-success: #2f6b4f;

  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", Times, serif;

  --shadow-sm: 0 1px 2px rgba(27, 58, 75, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 58, 75, 0.1);
  --shadow-lg: 0 16px 48px rgba(27, 58, 75, 0.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --container: 1120px;
  --header-h: 72px;

  --transition: 0.2s ease;
}

/* Reset / base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-sage-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--transition);
}

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

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--color-navy);
  font-weight: 650;
  margin: 0 0 0.6em;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

/* Layout
   ========================================================================== */

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--navy {
  background: linear-gradient(145deg, var(--color-navy-deep) 0%, var(--color-navy) 55%, var(--color-navy-soft) 100%);
  color: var(--color-white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--color-white);
}

.section--navy p,
.section--navy li {
  color: rgba(255, 255, 255, 0.9);
}

.section--sage {
  background: var(--color-sage-light);
}

.grid-2 {
  display: grid;
  gap: 2.5rem;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

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

  .grid-2--top {
    align-items: start;
  }
}

@media (min-width: 900px) {
  .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.stack > * + * {
  margin-top: 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 40rem;
}

.text-center {
  text-align: center;
}

.text-center .lead {
  margin-inline: auto;
}

.muted {
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.75rem;
}

.section--navy .eyebrow {
  color: var(--color-gold-soft);
}

/* Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-navy);
  line-height: 1.15;
}

.logo:hover {
  color: var(--color-navy);
}

.logo__mark {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.logo__sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--color-navy);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--color-sage);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  display: none;
  text-decoration: none;
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.95rem;
}

.header-phone:hover {
  color: var(--color-sage-dark);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
  color: var(--color-navy);
}

.nav-toggle:hover {
  border-color: var(--color-navy-soft);
}

.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .header-phone {
    display: inline;
  }

  .nav-toggle {
    display: none;
  }
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
  padding: 1rem 0 1.25rem;
}

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

.nav-mobile a {
  display: block;
  padding: 0.7rem 0;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-bg-alt);
}

.nav-mobile a:last-child {
  border-bottom: 0;
}

.nav-mobile .btn {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover {
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--color-sage-dark);
  border-color: var(--color-sage-dark);
  color: var(--color-white);
}

.btn--secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--light {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn--light:hover {
  background: var(--color-gold-soft);
  border-color: var(--color-gold-soft);
  color: var(--color-navy-deep);
}

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

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

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(247, 245, 242, 0.97) 0%, rgba(247, 245, 242, 0.88) 42%, rgba(27, 58, 75, 0.55) 100%),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat;
  z-index: 0;
}

.hero__bg--city {
  background:
    linear-gradient(115deg, rgba(18, 42, 54, 0.88) 0%, rgba(27, 58, 75, 0.72) 45%, rgba(91, 138, 114, 0.45) 100%),
    url("https://images.unsplash.com/photo-1570129477492-45c003edd2be?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat;
}

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

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

.hero--dark .lead {
  color: rgba(255, 255, 255, 0.9);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 2.5rem;
  }
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-pills li {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.hero--dark .trust-pills li {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

/* Cards
   ========================================================================== */

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.card--lift:hover {
  box-shadow: var(--shadow-md);
  border-color: #d0c8bc;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--color-sage-light);
  color: var(--color-sage-dark);
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* Steps
   ========================================================================== */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-navy);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

/* Form
   ========================================================================== */

.form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.form-card h2,
.form-card h3 {
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.form-card .form-intro {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.15rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.form-group .optional {
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(91, 138, 114, 0.2);
  background: var(--color-white);
}

.form-group textarea {
  min-height: 88px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 520px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: #e7f5ee;
  color: var(--color-success);
  border: 1px solid #b7dfc8;
}

.form-status--error {
  background: #fceaea;
  color: var(--color-error);
  border: 1px solid #f0c4c4;
}

/* Trust bar
   ========================================================================== */

.trust-bar {
  background: var(--color-white);
  border-block: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.trust-bar__list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

@media (min-width: 700px) {
  .trust-bar__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-bar strong {
  display: block;
  color: var(--color-navy);
  font-size: 1rem;
}

.trust-bar span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* FAQ
   ========================================================================== */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 650;
  color: var(--color-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-sage);
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.15rem 1.15rem;
  color: var(--color-text-muted);
}

/* Testimonials
   ========================================================================== */

.quote {
  background: var(--color-white);
  border-left: 4px solid var(--color-sage);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-navy);
}

.quote footer {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-style: normal;
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Areas / links
   ========================================================================== */

.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.area-links a {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.9rem;
}

.area-links a:hover {
  border-color: var(--color-sage);
  background: var(--color-sage-light);
}

.area-links a.is-coming {
  opacity: 0.65;
  pointer-events: none;
}

/* CTA band
   ========================================================================== */

.cta-band {
  text-align: center;
}

.cta-band .lead {
  margin-inline: auto;
  margin-bottom: 0.5rem;
}

/* Footer
   ========================================================================== */

.site-footer {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-gold-soft);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo__mark {
  color: var(--color-white);
  letter-spacing: 0.08em;
}

.footer-brand .logo__sub {
  color: rgba(255, 255, 255, 0.55);
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 28ch;
}

.footer-col h3 {
  color: var(--color-gold-soft);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col li a {
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Content pages
   ========================================================================== */

.page-hero {
  padding: 2.75rem 0 2rem;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-navy);
}

.breadcrumb span[aria-hidden] {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.prose {
  max-width: 680px;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul {
  color: var(--color-text-muted);
}

/* Mobile sticky CTA
   ========================================================================== */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(18, 42, 54, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  gap: 0.5rem;
}

.mobile-cta .btn {
  flex: 1;
  padding: 0.7rem 0.5rem;
  font-size: 0.9rem;
}

@media (max-width: 899px) {
  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: 72px;
  }
}

/* Utilities
   ========================================================================== */

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--color-navy);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

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

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--color-text-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-sage);
  font-weight: 700;
}

.split-visual {
  border-radius: var(--radius-lg);
  min-height: 280px;
  background:
    linear-gradient(160deg, rgba(27, 58, 75, 0.35), rgba(91, 138, 114, 0.25)),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1000&q=80") center / cover no-repeat;
  box-shadow: var(--shadow-md);
}

/* Form invalid states (JS-enhanced)
   ========================================================================== */

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--color-error);
}
