/* ============================================================
   FIRECLAY VENTURES — SITE STYLES
   Brand tokens, type, layout, animations.
   ============================================================ */

/* ---------- WEBFONTS ---------- */
@font-face {
  font-family: "Tinos";
  src: url("../fonts/Tinos-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* ---------- TOKENS ---------- */
:root {
  /* Brand */
  --fc-forest:          #042e2a;
  --fc-forest-700:      #14453f;
  --fc-forest-gradient: linear-gradient(160deg, var(--fc-forest) 0%, var(--fc-forest-700) 100%);
  --fc-ember:           #b55219;
  --fc-ember-hover:     #9a4315;
  --fc-bone:            #fcf7f5;
  --fc-bone-rgb:        252, 247, 245;
  --fc-bone-200:        #f3e5dc;
  --fc-stone-200:       #e3dfe0;
  --fc-stone-500:       #7a7a7a;
  --fc-stone-700:       #3a3a3a;
  --fc-ink:             #1a1f1e;
  --fc-forest-rule:     rgba(var(--fc-bone-rgb), 0.14);

  /* Type */
  --font-display: "Tinos", Georgia, "Times New Roman", serif;
  --font-body:    "Calibri", "Carlito", "Helvetica Neue", Arial, system-ui, sans-serif;

  --fs-eyebrow:  11px;
  --fs-caption:  12px;
  --fs-small:    13px;
  --fs-body:     15px;
  --fs-body-lg:  17px;
  --fs-h4:       20px;
  --fs-h3:       26px;
  --fs-h2:       34px;
  --fs-h1:       46px;
  --fs-display:  72px;

  --lh-tight:    1.05;
  --lh-snug:     1.2;
  --lh-normal:   1.55;
  --lh-loose:    1.65;

  --track-eyebrow: 0.18em;
  --track-display: -0.01em;

  /* Spacing (4px grid) */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radius / motion */
  --radius-sm: 2px;
  --dur-fast:  120ms;
  --dur-base:  200ms;
  --ease-out:  cubic-bezier(.2, .7, .2, 1);

  /* Semantic */
  --bg:        var(--fc-bone);
  --fg:        var(--fc-forest);
  --fg-body:   var(--fc-ink);
  --fg-muted:  var(--fc-stone-700);
  --fg-subtle: var(--fc-stone-500);
  --accent:    var(--fc-ember);
  --rule:      var(--fc-stone-200);

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size:   var(--fs-body);
  --bs-body-color:       var(--fc-ink);
  --bs-body-bg:          var(--fc-bone);
  --bs-link-color:       var(--fc-ember);
  --bs-link-hover-color: var(--fc-ember-hover);
  --bs-border-radius:    var(--radius-sm);
  --bs-primary-rgb:      181, 82, 25;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- DARK SURFACE ---------- */
[data-surface="dark"] {
  background: var(--fc-forest);
  color: var(--fc-bone);
  --fg: var(--fc-bone);
  --fg-body: var(--fc-bone);
  --fg-muted: rgba(var(--fc-bone-rgb), 0.72);
  --fg-subtle: rgba(var(--fc-bone-rgb), 0.5);
  --rule: var(--fc-forest-rule);
}

/* ---------- CONTAINER ---------- */
@media (min-width: 768px) {
  .container { --bs-gutter-x: var(--space-7); }
}

/* ---------- TYPE ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: var(--track-display);
  line-height: var(--lh-tight);
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(34px, 5.5vw, var(--fs-h1)); }
h2 { font-size: clamp(28px, 4vw, var(--fs-h2)); line-height: var(--lh-snug); }
h3 { font-size: clamp(22px, 2.5vw, var(--fs-h3)); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }

.fc-display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: var(--track-display);
  line-height: 1;
  font-size: clamp(46px, 8vw, var(--fs-display));
  text-wrap: balance;
  margin: 0;
}

p {
  font-family: var(--font-body);
  line-height: var(--lh-normal);
  color: var(--fg-body);
  text-wrap: pretty;
  margin: 0 0 var(--space-4);
}
p:last-child { margin-bottom: 0; }

ol {
  font-family: var(--font-body);
  line-height: var(--lh-normal);
  color: var(--fg-body);
  text-wrap: pretty;
  margin: 0 0 var(--space-4);
}

ul {
  font-family: var(--font-body);
  line-height: var(--lh-normal);
  color: var(--fg-body);
  text-wrap: pretty;
  margin: 0 0 var(--space-4);
}

.fc-body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-loose); }
.fc-small   { font-size: var(--fs-small); }
.fc-caption {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  color: var(--fg-subtle);
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Eyebrow — the brand's signature label */
.fc-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin: 0 0 var(--space-3);
}

/* Inline accent — ember color for callouts inside body or display text */
.fc-accent { color: var(--accent); }

/* Ember rule — signature motif from the logo */
.fc-ember-rule {
  display: block;
  height: 4px;
  width: 64px;
  background: var(--fc-ember);
  margin: var(--space-4) 0 var(--space-6);
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--fc-ember-hover); }

/* ---------- BUTTONS ---------- */
.btn-ember {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 22px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body);
  letter-spacing: 0.02em;
  color: var(--fc-bone);
  background: var(--fc-ember);
  border: 1px solid var(--fc-ember);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn-ember:hover,
.btn-ember:focus-visible {
  background: var(--fc-ember-hover);
  border-color: var(--fc-ember-hover);
  color: var(--fc-bone);
}

/* Outline variant — matches .btn-ember sizing so accept/reject read as equal weight on the consent banner. */
.btn-ember-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 22px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body);
  letter-spacing: 0.02em;
  color: var(--fc-bone);
  background: transparent;
  border: 1px solid var(--fc-bone);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn-ember-outline:hover,
.btn-ember-outline:focus-visible {
  background: var(--fc-ember);
  border-color: var(--fc-ember);
  color: var(--fc-bone);
}

/* ---------- NAVBAR ---------- */
.fcv-nav {
  background: var(--fc-forest);
  border-bottom: 2px solid var(--fc-ember);
  padding: var(--space-4) 0 var(--space-3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.fcv-nav .container { max-width: 1280px; }

.fcv-nav .navbar-brand {
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.fcv-nav .navbar-brand img {
  width: 150px;
  height: auto;
  display: block;
}

.fcv-nav .nav-link {
  color: var(--fc-bone);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 10px var(--space-3);
  border: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.fcv-nav .nav-link:hover,
.fcv-nav .nav-link:focus-visible {
  color: var(--fc-ember);
}

.fcv-nav .navbar-toggler {
  border: 1px solid var(--fc-forest-rule);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.fcv-nav .navbar-toggler:focus-visible {
  outline: 2px solid var(--fc-ember);
  outline-offset: 2px;
}
.fcv-nav .navbar-toggler:focus:not(:focus-visible) { box-shadow: none; }
.fcv-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba%28252,247,245,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile collapse — stack with padding, larger touch targets */
@media (max-width: 991.98px) {
  .fcv-nav .navbar-collapse { margin-top: var(--space-3); }
  .fcv-nav .nav-link { padding: 14px var(--space-3); }
}

/* ---------- HERO ---------- */
.fcv-hero {
  background: var(--fc-forest-gradient);
  padding: clamp(var(--space-8), 14vh, var(--space-9)) 0 clamp(var(--space-8), 16vh, 120px);
}

.fcv-hero .container { max-width: 1080px; }

.fcv-hero h1.fc-display {
  margin-bottom: var(--space-5);
}

.fcv-hero .fcv-subhead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-loose);
  color: var(--fc-bone);
  max-width: 640px;
  margin: 0 0 var(--space-7);
}

/* ---------- SECTIONS ---------- */
main { background: var(--fc-bone); }

.fcv-section {
  padding: var(--space-9) 0;
}

.fcv-section:nth-of-type(even) {
  background: var(--fc-bone-200);
}

#contact {
  background: var(--fc-forest-gradient);
}

.fcv-section .container { max-width: 1080px; }

.fcv-prose {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-loose);
}

.fcv-prose ol li::marker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25em;
  color: var(--fc-ember);
}
.fcv-prose ul li::marker {
  color: var(--fc-ember);
}

/* §4 work-arc figure */
.fcv-work-arc {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.fcv-work-arc__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* warm dark gray hairline — same weight family as §1 */
.fcv-work-arc__trunk,
.fcv-work-arc__tick {
  stroke: rgba(58, 58, 58, 0.72);
  stroke-width: 1;
  fill: none;
}
.fcv-work-arc__trunk--fade {
  stroke: url(#fcv-work-arc-fade);
  stroke-width: 1;
  fill: none;
}

/* labels */
.fcv-work-arc__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  fill: var(--fc-ember);
  letter-spacing: 0.4px;
}
.fcv-work-arc__phase {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  fill: var(--fc-ink);
}
.fcv-work-arc__phase--mute { fill: rgba(26, 31, 30, 0.85); }
.fcv-work-arc__desc {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  fill: var(--fc-stone-500);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.fcv-work-arc__hint {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  fill: rgba(58, 58, 58, 0.4);
  letter-spacing: 2.5px;
}

/* ---------- FOOTER ---------- */
.fcv-footer {
  background: var(--fc-forest);
  padding: var(--space-8) 0 var(--space-6);
}

.fcv-footer .container { max-width: 1080px; }

.fcv-footer-top {
  margin-bottom: var(--space-5);
}

.fcv-footer-address {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-small);
  color: rgba(var(--fc-bone-rgb), 0.72);
  line-height: var(--lh-loose);
  margin: 0 0 var(--space-3);
}

.fcv-footer-prose {
  font-size: var(--fs-small);
  color: rgba(var(--fc-bone-rgb), 0.72);
  line-height: var(--lh-loose);
  margin: 0;
}

.fcv-footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--fs-small);
}
.fcv-footer-contact a {
  color: var(--fc-bone);
  border-bottom: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fcv-footer-contact a:hover { color: var(--fc-ember); }
.fcv-footer-contact a:focus-visible,
.fcv-footer-prose a:focus-visible {
  outline: 2px solid var(--fc-ember);
  outline-offset: 2px;
}

.fcv-footer-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent);
}

.fcv-footer-base {
  border-top: 1px solid var(--fc-forest-rule);
  padding-top: var(--space-5);
}

.fcv-footer-fine {
  font-size: var(--fs-caption);
  color: rgba(var(--fc-bone-rgb), 0.55);
  line-height: var(--lh-loose);
  text-align: center;
  margin: 2.4rem auto var(--space-5);
}

.fcv-footer-signoff {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.fcv-footer-copy {
  font-size: var(--fs-caption);
  color: rgba(var(--fc-bone-rgb), 0.55);
  margin: 0;
}

.fcv-footer-mark {
  width: 150px;
  height: auto;
  display: block;
}

/* ---------- ANIMATIONS ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fcv-hero .fc-display,
  .fcv-hero .fcv-subhead,
  .fcv-hero .fcv-cta {
    opacity: 0;
    transform: translateY(8px);
    animation: fcv-rise 700ms var(--ease-out) forwards;
  }
  .fcv-hero .fc-display  { animation-delay: 80ms; }
  .fcv-hero .fcv-subhead { animation-delay: 200ms; }
  .fcv-hero .fcv-cta     { animation-delay: 320ms; }

  .fc-ember-rule {
    transform-origin: left;
    animation: fcv-grow 600ms var(--ease-out) both;
    animation-delay: 100ms;
  }
}

@keyframes fcv-rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fcv-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Anchor offset for sticky nav */
:target {
  scroll-margin-top: 80px;
}

/* Inline figures for diagrammatic SVGs */
.fcv-figure {
  margin: 0;
}
.fcv-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Small editorial mark (§7) */
.fcv-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: var(--space-6) 0 var(--space-2);
}
.fcv-mark::before,
.fcv-mark::after {
  content: "";
  display: block;
  height: 4px;
  background: var(--fc-ember);
}
.fcv-mark::before { width: 48px; }
.fcv-mark::after  { width: 20px; opacity: 0.5; }

/* ---------- CONTACT FORM (§7) ---------- */
.fcv-form-wrap {
  margin-top: var(--space-7);
}

.fcv-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-7);
  max-width: 900px;
}
@media (min-width: 640px) {
  .fcv-form { grid-template-columns: 1fr 1fr; }
}

/* Fields, status, and submit that span both columns of the grid. */
.fcv-field--full,
.fcv-form-status,
.fcv-form-submit { grid-column: 1 / -1; }

.fcv-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fcv-field label {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.fcv-field label .req {
  color: var(--accent);
  margin-left: 4px;
}

.fcv-field :is(input, select, textarea) {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--fc-bone);
  background: rgba(var(--fc-bone-rgb), 0.06);
  border: 1px solid rgba(var(--fc-bone-rgb), 0.22);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.fcv-field :is(input, select, textarea):hover {
  border-color: rgba(var(--fc-bone-rgb), 0.42);
}
.fcv-field :is(input, select, textarea):focus-visible {
  outline: none;
  border-color: var(--fc-ember);
  background: rgba(var(--fc-bone-rgb), 0.10);
  box-shadow: 0 0 0 2px rgba(181, 82, 25, 0.35);
}
.fcv-field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: var(--lh-normal);
}
.fcv-field select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fcf2ed' d='M8 11.5 2.5 6h11z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}
.fcv-field select option {
  background: var(--fc-forest);
  color: var(--fc-bone);
}

.fcv-field.is-error :is(input, select, textarea) {
  border-color: var(--fc-ember);
  box-shadow: 0 0 0 2px rgba(181, 82, 25, 0.18);
}
.fcv-field-error {
  font-size: var(--fs-small);
  color: var(--fc-ember);
  font-weight: 500;
}
.fcv-field-error[hidden] { display: none; }

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

.fcv-form-status {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  font-size: var(--fs-body);
  color: var(--fc-bone);
}
.fcv-form-status[hidden] { display: none; }
.fcv-form-status.is-success {
  border-color: rgba(var(--fc-bone-rgb), 0.32);
  background: rgba(var(--fc-bone-rgb), 0.06);
}
.fcv-form-status.is-error {
  border-color: var(--fc-ember);
  background: rgba(181, 82, 25, 0.10);
}

.fcv-form-submit { margin-top: var(--space-2); }

@media (prefers-reduced-motion: reduce) {
  .fcv-field :is(input, select, textarea) {
    transition: none;
  }
}

/* ---------- CONSENT BANNER ---------- */
.fcv-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: var(--fc-forest);
  border-top: 2px solid var(--fc-ember);
  color: var(--fc-bone);
  padding: var(--space-5) 0;
  transform: translateY(100%);
  transition: transform var(--dur-base) var(--ease-out);
}

.fcv-consent.is-visible {
  transform: translateY(0);
}

.fcv-consent__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .fcv-consent__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
  }
}

.fcv-consent__text {
  flex: 1;
}

.fcv-consent__text .fc-eyebrow {
  margin-bottom: var(--space-2);
}

.fcv-consent__text p {
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  color: rgba(var(--fc-bone-rgb), 0.85);
  margin: 0;
}

.fcv-consent__text a {
  color: var(--fc-bone);
  border-bottom: 1px solid var(--fc-ember);
}
.fcv-consent__text a:hover,
.fcv-consent__text a:focus-visible {
  color: var(--fc-ember);
}

.fcv-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .fcv-consent__actions {
    width: 100%;
  }
  .fcv-consent__actions .btn-ember,
  .fcv-consent__actions .btn-ember-outline {
    flex: 1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fcv-consent {
    transition: none;
  }
}

/* ---------- ABOUT — partner cards ---------- */
.fcv-partner-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.fcv-partner-card__photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 700px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-sm);
}

.fcv-partner-card__name {
  margin: var(--space-4) 0 0;
}

.fcv-partner-card__title {
  margin: 0 0 var(--space-2);
  color: var(--fc-ember);
}
