/* ==========================================================================
   La Chance Commercial Investments LLC
   Warm editorial — paper ground, terracotta accent, rules instead of boxes
   ========================================================================== */
:root {
  --paper:      #faf8f4;
  --surface:    #ffffff;
  --sand:       #f1ebe0;
  --sand-deep:  #e8dfd0;
  --ink:        #1c1b19;
  --ink-soft:   #3a3732;
  --muted:      #6b655c;
  --accent:     #a34d2e;
  --accent-deep:#8a3f24;
  --line:       #e4ded3;
  --line-ink:   rgba(250, 248, 244, .18);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --radius: 4px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -.016em;
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 6.6vw, 4.7rem); }
h2 { font-size: clamp(2rem, 4.3vw, 3.05rem); }
h3 { font-size: 1.27rem; font-weight: 600; letter-spacing: -.008em; }

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

a { color: inherit; }
em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1.25rem;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.eyebrow,
.eyebrow-dark {
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.15rem;
}

.section-lede {
  font-family: var(--font-display);
  font-size: clamp(1.14rem, 2.1vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
}

/* ==========================================================================
   Buttons — flat, square, editorial
   ========================================================================== */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.65rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .015em;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}

.btn-accent { --btn-bg: var(--accent); --btn-fg: var(--paper); --btn-bd: var(--accent); }
.btn-accent:hover { --btn-bg: var(--accent-deep); --btn-bd: var(--accent-deep); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
}
.btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }

.btn-sm { padding: .62rem 1.15rem; font-size: .84rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -.01em;
}
.brand-sub {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav > a {
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--accent); }
.nav-cta { margin-left: .2rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 88% 12%, color-mix(in srgb, var(--sand) 85%, transparent), transparent 70%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -14%;
  width: min(46vw, 420px);
  aspect-ratio: 1;
  border: 1px solid var(--sand-deep);
  border-radius: 50%;
}

.hero-inner { max-width: 62rem; }

.hero-title { margin-bottom: 1.5rem; }
.hero-title em {
  display: inline-block;
  color: var(--accent);
  font-style: italic;
}

.hero-lede {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 2.3rem;
}

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

.hero-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: .7rem 1.75rem;
  list-style: none;
  max-width: none;
  margin: clamp(2.75rem, 6.5vw, 4.25rem) 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-strip li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-strip li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  flex: 0 0 auto;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(3.75rem, 8.5vw, 6.75rem) 0; }
.section-sand { background: var(--sand); }

/* hairline between two consecutive paper sections */
.section + .section:not(.section-sand) > .container { border-top: 1px solid var(--line); padding-top: clamp(3.75rem, 8.5vw, 6.75rem); }
.section + .section:not(.section-sand) { padding-top: 0; }

.section-head { margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem); max-width: 58rem; }
.section-head h2 { margin-bottom: .65rem; }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.card {
  position: relative;
  padding: 2.1rem 1.9rem 2rem;
  background: var(--paper);
  border: 0;
  border-radius: 0;
  transition: background-color .3s var(--ease);
}
.card::before { content: none; }
.card:hover { background: var(--surface); transform: none; box-shadow: none; }

.card-num {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.approach-copy .btn { margin-top: 2rem; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.5rem 3.5rem;
  border-bottom: 1px solid var(--sand-deep);
}
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -.05rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* ---------- Broker ---------- */
#broker { padding-top: clamp(3.75rem, 8.5vw, 6.75rem); }
#broker > .container { border-top: 0 !important; padding-top: 0 !important; }

.broker-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
  padding: 0;
  background: transparent;
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  padding-top: 2.25rem;
}

.broker-mark {
  display: grid;
  place-items: center;
  width: clamp(84px, 11vw, 116px);
  height: clamp(84px, 11vw, 116px);
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
}

.broker-body h2 { margin-bottom: .15rem; }

.broker-role {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.broker-creds {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.broker-creds li {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .4rem .8rem;
}

.broker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.75rem;
}

/* ---------- Sectors ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}
.sector {
  background: var(--paper);
  padding: 1.9rem 1.6rem;
  transition: background-color .3s var(--ease);
}
.sector:hover { background: var(--surface); }
.sector h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.sector p { color: var(--muted); font-size: .91rem; margin: 0; }

/* ==========================================================================
   Facebook feed
   ========================================================================== */
.fb-wrap { display: flex; flex-direction: column; align-items: center; }

.fb-embed {
  width: 100%;
  /* Facebook caps the Page Plugin at 500px; a wider card leaves a blank strip
     beside the plugin content, so the card tracks the plugin exactly. */
  max-width: 502px;
  min-height: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.fb-embed iframe { border: 0; overflow: hidden; width: 100%; }

.fb-fallback {
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: .94rem;
  max-width: 34ch;
}
.fb-fallback strong { color: var(--ink); display: block; margin-bottom: .4rem; }

.fb-link { margin-top: 1.5rem; }
.fb-link a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease);
}
.fb-link a:hover { border-color: var(--accent); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.6rem 1.5rem;
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--sand-deep);
}
.contact-details dt {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .35rem;
}
.contact-details dd { margin: 0; font-size: .96rem; color: var(--ink-soft); }
.contact-details a { text-decoration: none; border-bottom: 1px solid var(--sand-deep); }
.contact-details a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Form ---------- */
.form-card {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  box-shadow: none;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .45rem;
}
.field label span { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .78rem .9rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b655c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b3391f;
  background: color-mix(in srgb, #b3391f 5%, var(--paper));
}

.field-error {
  margin: .4rem 0 0;
  font-size: .81rem;
  font-weight: 500;
  color: #b3391f;
}

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#submitBtn { margin-top: .5rem; }
#submitBtn[data-loading="true"] { pointer-events: none; opacity: .75; }
#submitBtn[data-loading="true"] .btn-label { opacity: .5; }

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, var(--paper) 40%, transparent);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
#submitBtn[data-loading="true"] .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
  margin: 1rem 0 0;
  font-size: .79rem;
  color: var(--muted);
  text-align: center;
}

.form-status {
  margin: .9rem 0 0;
  font-size: .88rem;
  font-weight: 500;
  text-align: center;
  color: #b3391f;
}
.form-status:empty { margin: 0; }

.form-success { text-align: center; padding: 1.5rem .5rem; }
.success-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 1.25rem;
  color: var(--paper);
  background: var(--accent);
  border-radius: 50%;
}
.form-success h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .4rem; }
.form-success p { color: var(--muted); margin-bottom: 1.5rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 62%, transparent);
  padding: clamp(2.75rem, 6vw, 4rem) 0 2rem;
}
.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.footer-brand { display: flex; align-items: center; gap: .85rem; }
.footer-brand .brand-mark { color: var(--ink); background: var(--paper); }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--paper);
  margin: 0;
  line-height: 1.2;
}
.footer-tag { margin: .15rem 0 0; font-size: .85rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: .6rem 1.5rem;
  justify-content: flex-end;
}
.footer-nav a {
  font-size: .89rem;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-nav a:hover { color: var(--paper); }

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-ink);
  font-size: .81rem;
}
.footer-legal p { margin: 0; }
.footer-fine { margin-top: .35rem; opacity: .75; }
.footer-fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-fine a:hover { color: var(--paper); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .approach-grid,
  .contact-grid,
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

/* The desktop header needs ~830px: brand (234) + nav (533) + gutters.
   Below that the row overflowed and scrolled the page sideways, so the
   hamburger has to take over here, not at the 760px phone breakpoint. */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-115%);
    transition: transform .35s var(--ease);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav > a:not(.btn) {
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    color: var(--ink);
  }
  .nav-cta { margin: 1.1rem 0 0; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-strip { gap: .6rem 1.4rem; }
  .brand-sub { font-size: .56rem; letter-spacing: .15em; }
}

@media (max-width: 640px) {
  .broker-card { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
