/* ============================================================ */
/* Fincastle Holdings — design tokens                             */
/* Cream + deep navy + brass; classical serif typography.         */
/* ============================================================ */

:root {
  --cream: #f5f0e6;
  --cream-2: #ece4d2;
  --navy: #1b2a47;
  --navy-2: #243454;
  --brass: #a88b4a;
  --brass-soft: #c4a566;
  --burgundy: #8b2e2e;
  --forest: #2c4a2c;
  --ink: #1b2a47;
  --ink-soft: #34405e;

  --font-display: "Cormorant Garamond", "EB Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Lora", "Crimson Pro", "EB Garamond", Georgia, serif;

  --measure: 64ch;
  --section-pad-y: clamp(72px, 9vw, 132px);
  --container-max: 1120px;

  --shadow-soft: 0 1px 2px rgba(27, 42, 71, 0.06), 0 6px 18px rgba(27, 42, 71, 0.08);
  --shadow-portrait: 0 4px 14px rgba(27, 42, 71, 0.16), 0 18px 40px rgba(27, 42, 71, 0.10);
}

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

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* Subtle laid-paper / linen texture: SVG fractal noise at low opacity. */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.36 0 0 0 0 0.24 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.10'/></svg>");
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 139, 74, 0.55);
  transition: color 160ms ease, border-color 160ms ease;
}
a:hover, a:focus-visible {
  color: var(--brass);
  border-bottom-color: var(--brass);
}

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

/* Skip-link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--navy);
  color: var(--cream);
  padding: 8px 14px;
  border: none;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================ */
/* Top navigation                                                 */
/* ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(27, 42, 71, 0.12);
}

.site-nav__inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav__brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  border-bottom: none;
  letter-spacing: 0.1em;
}

.site-nav__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.site-nav__menu a {
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav__menu a:hover,
.site-nav__menu a:focus-visible {
  color: var(--navy);
  border-bottom-color: rgba(168, 139, 74, 0.75);
}

/* ============================================================ */
/* Typography                                                     */
/* ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--navy);
  line-height: 1.15;
}

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

.smallcaps {
  font-family: var(--font-display);
  font-variant: small-caps;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: lowercase; /* small-caps + lowercase = true small caps look from this face */
}

/* ============================================================ */
/* Section scaffolding                                            */
/* ============================================================ */

.section {
  padding: var(--section-pad-y) 0;
  position: relative;
}
.section + .section { border-top: 1px solid rgba(27, 42, 71, 0.08); }

.section--navy {
  background-color: var(--navy);
  color: var(--cream);
  border-top: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92 0 0 0 0 0.88 0 0 0 0 0.78 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.18'/></svg>");
}
.section--navy + .section { border-top: none; }

.section__eyebrow {
  font-family: var(--font-display);
  font-variant: small-caps;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--brass);
  font-size: 14px;
  margin: 0 0 14px;
}
.section__eyebrow--cream { color: var(--brass-soft); }

.section__heading {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 18px;
  color: var(--navy);
  font-style: italic;
}
.section__heading--cream { color: var(--cream); }

/* ============================================================ */
/* Brass diamond divider                                          */
/* ============================================================ */

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 8px 0 28px;
}
.divider--hero { max-width: 320px; margin: 22px auto 26px; }
.divider--section { max-width: 220px; margin: 0 0 38px; }

.divider__rule {
  flex: 1;
  height: 1px;
  background-color: var(--brass);
}
.divider__diamond {
  fill: var(--brass);
  flex: 0 0 auto;
}
.divider--cream .divider__rule { background-color: var(--brass-soft); }
.divider--cream .divider__diamond { fill: var(--brass-soft); }

/* ============================================================ */
/* HERO                                                           */
/* ============================================================ */

.hero {
  padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 88px);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__backdrop-photo {
  position: absolute;
  inset: -2%;
  background-image: url("assets/images/hero-bg-brick.jpg");
  background-size: cover;
  background-position: center 45%;
  filter: saturate(0.82) contrast(0.88) brightness(0.94);
}

.hero__backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 42, 71, 0.78) 0%,
    rgba(27, 42, 71, 0.86) 42%,
    rgba(27, 42, 71, 0.9) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__logo {
  width: 168px;
  height: auto;
  margin: 0 auto 18px;
  display: block;
  /* The logo file already sits on a cream background close to the page color;
     a tiny soft drop-shadow lifts it slightly without ringing. */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.2;
  color: var(--cream);
  margin: 6px auto 0;
  max-width: 28ch;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero__lede {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.9);
  max-width: 56ch;
  margin: 0 auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.hero__lede + .hero__lede {
  margin-top: 1.35em;
}

/* ============================================================ */
/* ABOUT                                                          */
/* ============================================================ */

.about__grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
  margin-top: 8px;
}

.about__portrait {
  margin: 0;
  position: relative;
}

.about__portrait img {
  width: 100%;
  height: auto;
  display: block;
  /* Thin brass frame with 8px outset (offset shadow) — references classical portraiture. */
  border: 1px solid var(--brass);
  outline: 8px solid var(--cream);
  outline-offset: -1px; /* keep frame tight */
  box-shadow:
    0 0 0 1px var(--brass),
    0 0 0 9px var(--cream),
    0 0 0 10px var(--brass),
    var(--shadow-portrait);
  /* Subtle warm-tone filter + vignette via filter chain */
  filter: saturate(0.96) sepia(0.06) contrast(1.02);
}

.about__caption {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.about__caption-rule {
  width: 22px;
  height: 1px;
  background-color: var(--brass);
}
.about__caption .smallcaps {
  letter-spacing: 0.08em;
}

.about__caption-role {
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 700;
}

.about__bio {
  max-width: 56ch;
}
.about__bio p {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink);
}

.about__highlights {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.about__highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--navy);
}

.about__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background-color: var(--brass);
}

.about__bio-note {
  margin-top: 0;
  font-size: 15px !important;
  line-height: 1.65;
  color: var(--ink-soft) !important;
  font-style: italic;
}

.about__bio-note + .about__bio-note {
  margin-top: 1.15em;
}

.about__signature {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(168, 139, 74, 0.5);
  font-size: 13px;
  color: var(--navy);
}
.about__signature-divider {
  width: 6px;
  height: 6px;
  background-color: var(--brass);
  transform: rotate(45deg);
}

/* ============================================================ */
/* CRITERIA                                                       */
/* ============================================================ */

.criteria__panel {
  position: relative;
  background-color: var(--cream-2);
  border: 1px solid rgba(168, 139, 74, 0.55);
  border-radius: 2px;
  padding: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px);
  box-shadow: var(--shadow-soft);
  margin-top: 4px;
}

.criteria__column {
  position: absolute;
  top: -28px;
  bottom: -28px;
  width: 28px;
  height: calc(100% + 56px);
  fill: var(--brass);
  opacity: 0.65;
  pointer-events: none;
}
.criteria__column--left { left: -42px; }
.criteria__column--right { right: -42px; }

.criteria__list {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.criteria__row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(27, 42, 71, 0.08);
  align-items: baseline;
}
.criteria__row:last-child { border-bottom: none; }

.criteria__row dt {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
}
.criteria__row dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-family: var(--font-body);
}

/* ============================================================ */
/* APPROACH (navy band)                                           */
/* ============================================================ */

.approach .section__heading { color: var(--cream); }

.pillars {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 64px) clamp(40px, 6vw, 80px);
}

.pillar {
  position: relative;
  padding-left: clamp(64px, 7vw, 96px);
  min-height: 120px;
}

.pillar__numeral {
  position: absolute;
  left: 0;
  top: -10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(58px, 6vw, 80px);
  line-height: 1;
  color: var(--brass-soft);
  letter-spacing: 0.02em;
  font-style: italic;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.pillar__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 26px);
  color: var(--cream);
  margin: 0 0 10px;
  letter-spacing: 0.005em;
}

.pillar__body {
  font-family: var(--font-body);
  color: rgba(245, 240, 230, 0.86);
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 42ch;
}

/* ============================================================ */
/* CONTACT                                                        */
/* ============================================================ */

.contact {
  text-align: center;
}
.contact .container { max-width: 720px; }

.contact__pediment {
  width: 96px;
  height: auto;
  margin: 0 auto 22px;
  display: block;
  opacity: 0.95;
}

.contact .divider { display: none; }

.contact__body {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.65;
  color: var(--ink);
  max-width: 52ch;
  margin: 14px auto 18px;
}

.contact__email {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05em;
  color: var(--navy);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
  white-space: nowrap;
}
.contact__email:hover, .contact__email:focus-visible {
  color: var(--brass);
}

.contact__loc {
  margin-top: 26px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ============================================================ */
/* FOOTER                                                         */
/* ============================================================ */

.footer {
  background-color: var(--navy);
  color: rgba(245, 240, 230, 0.78);
  padding: 36px 0 44px;
  border-top: 4px solid var(--brass);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  font-size: 14px;
  margin: 0;
}
.footer__diamond {
  width: 6px;
  height: 6px;
  background-color: var(--brass);
  transform: rotate(45deg);
  display: inline-block;
}

.footer__copy {
  font-size: 12px;
  margin: 6px 0 0;
  color: rgba(245, 240, 230, 0.7);
}

.footer__disclaimer {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(245, 240, 230, 0.55);
  margin: 4px 0 0;
  font-style: italic;
}

/* ============================================================ */
/* Responsive                                                     */
/* ============================================================ */

@media (max-width: 880px) {
  .site-nav__inner {
    min-height: 58px;
    gap: 10px;
  }

  .site-nav__brand {
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .site-nav__menu {
    gap: 8px 12px;
  }

  .site-nav__menu a {
    font-size: 11px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about__portrait {
    max-width: 320px;
    margin: 0 auto;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .criteria__column { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }

  .hero__logo { width: 140px; }
  .hero__tagline { font-size: 26px; }
  .hero__lede { font-size: 16.5px; }

  .criteria__panel {
    padding: 22px 22px;
  }
  .criteria__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
  .criteria__row dt { font-size: 12px; letter-spacing: 0.32em; }
  .criteria__row dd { font-size: 16px; }

  .pillar { padding-left: 56px; min-height: 0; }
  .pillar__numeral { font-size: 50px; top: -6px; }

  .footer__inner { gap: 6px; }
}

/* ============================================================ */
/* Print                                                          */
/* ============================================================ */

@media print {
  body { background: #fff; color: #000; }
  .hero__backdrop { display: none; }
  .hero .hero__tagline { color: var(--navy); text-shadow: none; }
  .hero .hero__lede { color: var(--ink-soft); text-shadow: none; }
  .section--navy { background: #fff; color: #000; }
  .footer { background: #fff; color: #000; border-top: 1px solid #000; }
  .pillar__numeral { color: #999; text-shadow: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
