/* First Right Marketing — public homepage only.
   Self-contained, does not touch custom.css or brand.css (those style the
   back office / base suite chrome). Palette matches brand.css exactly:
   blue #1D5FC4, navy ink #0B2545, Inter. */

:root {
  --blue: #B4530F;
  --blue-dark: #8F400B;
  --ink: #0B2545;
  --body: #33415C;
  --line: #D6DBE2;
  --wash: #F5F8FC;
  --white: #FFFFFF;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.fr-home {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.fr-home .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.fr-home h1, .fr-home h2, .fr-home h3 { color: var(--ink); line-height: 1.2; margin: 0 0 16px; }
.fr-home h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; }
.fr-home h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
.fr-home h3 { font-size: 1.05rem; font-weight: 600; }
.fr-home p { margin: 0 0 16px; }

.fr-home a { color: var(--blue); }

/* Header */
.fr-home .site-head {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.fr-home .site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.fr-home .brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.fr-home .brand span { color: var(--blue); }

/* Buttons */
.fr-home .btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.fr-home .btn:hover { background: var(--blue-dark); }
.fr-home .btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--line);
  padding: 11.5px 22px;
}
.fr-home .btn-ghost:hover { background: var(--wash); }
.fr-home .btn-sm { padding: 9px 18px; font-size: 0.93rem; }

/* Hero */
.fr-home .hero { padding: 76px 0 64px; }
.fr-home .hero p.lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  max-width: 620px;
  margin-bottom: 28px;
}
.fr-home .hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fr-home .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--wash);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

/* Sections */
.fr-home section { padding: 56px 0; }
.fr-home .band { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fr-home .narrow { max-width: 680px; }

.fr-home .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.fr-home .card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.fr-home .card p { margin: 0; font-size: 0.97rem; }

.fr-home ul.plain { list-style: none; padding: 0; margin: 24px 0 0; }
.fr-home ul.plain li {
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.fr-home ul.plain li:last-child { border-bottom: 0; }
.fr-home ul.plain li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.fr-home .note {
  font-size: 0.95rem;
  color: var(--body);
  background: var(--white);
  border-left: 3px solid var(--blue);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-top: 24px;
}

/* Contact form */
.fr-home .contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  margin-top: 32px;
}
.fr-home .form-row { margin-bottom: 16px; }
.fr-home .form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.fr-home .form-row input,
.fr-home .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--white);
}
.fr-home .form-row input:focus,
.fr-home .form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.fr-home .form-row textarea { resize: vertical; min-height: 90px; }
.fr-home .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 0; }
.fr-home .form-grid .form-row:nth-child(odd) { padding-right: 8px; }
.fr-home .form-grid .form-row:nth-child(even) { padding-left: 8px; }
.fr-home .hp-field { position: absolute; left: -9999px; top: -9999px; }
.fr-home .form-note { font-size: 0.85rem; color: var(--body); margin-top: 10px; margin-bottom: 0; }
.fr-home .flash {
  padding: 13px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.93rem;
}
.fr-home .flash-danger { background: #FDECEC; color: #B42318; border: 1px solid #F5C2C0; }
.fr-home .flash-success { background: #E9F7EF; color: #12805C; border: 1px solid #B7E4C7; }

/* Footer */
.fr-home .site-foot {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 0.92rem;
  color: var(--body);
}
.fr-home .site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}
.fr-home .site-foot a { text-decoration: none; }
.fr-home .site-foot a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .fr-home .hero { padding: 52px 0 44px; }
  .fr-home section { padding: 44px 0; }
  .fr-home .site-head .wrap { min-height: 60px; }
  .fr-home .form-grid { grid-template-columns: 1fr; }
  .fr-home .form-grid .form-row:nth-child(odd),
  .fr-home .form-grid .form-row:nth-child(even) { padding-right: 0; padding-left: 0; }
}


/* ============================================================
   TRADE REGISTER + HERO VIDEO
   ------------------------------------------------------------
   Square corners instead of rounded, a solid navy block instead
   of a pale tint, heavier headings. Same words, said the way the
   trades say things.
   Accent is burnt orange #B4530F: 5.02:1 against white text,
   which clears the 4.5:1 minimum. The brighter oranges do not.
   ============================================================ */

.fr-home .card,
.fr-home .btn,
.fr-home .eyebrow,
.fr-home .contact-card { border-radius: 3px; }
.fr-home .note { border-radius: 0 3px 3px 0; }

.fr-home h1 { letter-spacing: -0.03em; font-weight: 800; }
.fr-home h2 { font-weight: 800; }
.fr-home .card h3 { font-weight: 700; }
.fr-home section { padding: 46px 0; }

/* The bands stay light. The hero is the one dark statement on the page;
   a second solid block straight underneath it reads as one unbroken mass
   and kills the hierarchy. */
.fr-home .band .plain li::before { background: var(--blue); }

/* --- Hero: full bleed aerial behind the headline --- */
.fr-home .hero {
  position: relative;
  padding: 104px 0 96px;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.fr-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.fr-home .hero-media video,
.fr-home .hero-media {
  width: 100%;
  height: 100%;
}
.fr-home .hero-media video {
  object-fit: cover;
  display: block;
}
/* The veil. Heavier on the left where the words are, lighter on the right so
   the roofs and the foothills still read. Without this the headline is
   unreadable over a bright sky. */
.fr-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11,37,69,0.92) 0%, rgba(11,37,69,0.80) 42%, rgba(11,37,69,0.42) 100%),
    linear-gradient(to bottom, rgba(11,37,69,0.30), rgba(11,37,69,0.55));
}
.fr-home .hero .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.fr-home .hero-text { flex: 1 1 auto; max-width: 640px; }

/* Slogan, right of the headline, over the aerial. Solid white with a shadow
   because the drone pans across bright roofs mid loop and 80% white stops
   being readable when one drifts behind it. The orange rule matches the
   buttons on the left so the eye crosses the hero instead of stopping. */
.fr-home .hero-slogan {
  flex: 0 0 auto;
  text-align: right;
  max-width: 320px;
  padding-bottom: 4px;
}
.fr-home .hero-slogan span {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: #FFFFFF;
  border-top: 3px solid var(--blue);
  padding-top: 16px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}
.fr-home .hero h1 { color: #FFFFFF; text-shadow: 0 1px 24px rgba(0,0,0,0.30); }
.fr-home .hero .lede { color: #D9E2EE; }
.fr-home .hero .eyebrow {
  color: #FFFFFF;
  background: rgba(255,255,255,0.14);
}
/* The ghost button needs a light outline on dark, not the light-theme one. */
.fr-home .hero .btn-ghost {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
}
.fr-home .hero .btn-ghost:hover { background: rgba(255,255,255,0.14); }

@media (max-width: 860px) {
  .fr-home .hero { padding: 76px 0 68px; }
  .fr-home .hero .wrap { display: block; }
  .fr-home .hero-slogan { display: none; }
  .fr-home .hero-media::after {
    background: linear-gradient(to bottom, rgba(11,37,69,0.80), rgba(11,37,69,0.90));
  }
}

