/* =========================================================
   FOUNDATION FIDUCIARY SERVICES — STYLE SHEET
   The design values below intentionally stay close to the
   supplied 7-page PDF: white space, charcoal typography,
   rounded image corners and restrained pink accents.
   ========================================================= */

:root {
  --ink: #3d3d3f;
  --muted: #68686b;
  --pink: #c87596;
  --pink-soft: rgba(200, 117, 150, .78);
  --white: #fff;
  --black: #050505;
  --line: #1c1c1c;
  --max: 1200px;
  --radius: 18px;
}

header.site-header.container {
  justify-content: space-between;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-stretch: condensed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(calc(100% - 120px), var(--max));
  margin-inline: auto;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  scroll-margin-top: 20px;
}
.page-inner { padding: 76px 0 105px; }
.page--light { background: #fff; }

/* Small uppercase labels used throughout the design. */
.eyebrow {
  margin: 0 0 14px;
  color: #4a4a4c;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.section-heading h2 {
  margin: 0;
  max-width: 1000px;
  display: inline-block;
  color: var(--ink);
  font-size: clamp(42px, 4.15vw, 66px);
  line-height: 1.25;
  letter-spacing: -.035em;
  font-weight: 700;
  --x: -999px;
  --y: -999px;
  transition: color 0.15s ease;
}
.section-heading h2:hover {
  background: radial-gradient(
    circle 100px at var(--x) var(--y),
    var(--pink) 0%,
    var(--ink) 70%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro,
.copy-column p,
.vision-copy p,
.why-copy > p {
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.34;
  color: var(--muted);
}

/* =========================================================
   HERO
   ========================================================= */
.page--hero {
  min-height: 100svh;
  color: white;
  background: #090909;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/ArtboardHero_1.jpg") center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.12);
}
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 120px), var(--max));
  margin: 0 auto;
  padding-top: 24px;
  background: rgba(9, 9, 9, 0.05);
}
.ffs-hero-logo {
  display: inline-flex;
  text-decoration: none;
  z-index: 2;
}
.ffs-hero-logo img { width: 215px; height: auto; }
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  transition: transform .22s ease, opacity .22s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible { transform: scale(1.06); opacity: .88; }

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 50px;
}
.hero-content .eyebrow { display: none; }
.hero-content h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 75px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 700;
}
.hero-tagline {
  margin: 28px 0 14px;
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 700;
}
.hero-copy {
  width: min(850px, 100%);
  margin: 0;
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.35;
}
.hero-actions { display: flex; gap: 28px; margin-top: 70px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms cubic-bezier(0.22, 1, 0.36, 1), background 150ms cubic-bezier(0.22, 1, 0.36, 1), border-color 150ms cubic-bezier(0.22, 1, 0.36, 1), color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}
.button:hover,
.button:active,
.button:focus-visible {
  transform: scale(1.055);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.92);
  color: #fff;
}
.button--primary { background: rgba(200,117,150,.68); border-color: rgba(255,255,255,.72); }
.button--primary:hover,
.button--primary:active,
.button--primary:focus-visible { background: rgba(200,117,150,.88); color: #fff; }
.button--form { min-height: 25px; justify-self: start; padding: 4px 16px; border: 0; background: #fff; color: var(--pink); font-size: 12px; }
.button--form:hover,
.button--form:active,
.button--form:focus-visible { background: #fff; color: var(--pink); }

/* =========================================================
   SHARED IMAGE / CONTENT LAYOUTS
   ========================================================= */
.about-grid,
.vision-grid,
.why-grid {
  display: grid;
  align-items: center;
  gap: clamp(50px, 7vw, 100px);
}
.about-grid { grid-template-columns: 38% 1fr; margin-top: 52px; }
.vision-grid { grid-template-columns: 42% 1fr; margin-top: 90px; }
.why-grid { grid-template-columns: 40% 1fr; gap: clamp(50px, 6vw, 80px); }
.image-frame { overflow: hidden; border-radius: var(--radius); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-frame--about { aspect-ratio: 1 / 1; }
.image-frame--mission { aspect-ratio: 1.7 / 1; }
.image-frame--why { aspect-ratio: .91 / 1; }
.copy-column p { margin: 0 0 27px; }
.copy-column p:last-child { margin-bottom: 0; }
.text-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   SERVICES
   ========================================================= */
#services .section-heading { max-width: 1050px; }
#services .intro { max-width: 900px; margin: 18px 0 0; }
.services-grid {
  display: flex;
  gap: 18px;
  margin-top: 62px;
  align-items: stretch;
}
.service-card {
  position: relative;
  flex: 1 1 0;
  min-height: 365px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  overflow: hidden;
  padding: 27px 22px;
  border-radius: 18px;
  color: #fff;
  isolation: isolate;
  cursor: pointer;
  transition: flex-basis 500ms cubic-bezier(0.22, 1, 0.36, 1), flex-grow 500ms cubic-bezier(0.22, 1, 0.36, 1), width 500ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: flex-basis, flex-grow, width;
}
.service-card.is-active {
  flex: 1.5 1 0;
  z-index: 5;
}
.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.35));
  z-index: -1;
}
.service-card h3,
.service-card p {
  text-align: left;
  position: relative;
  z-index: 2;
}
.service-card h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.1; font-weight: 500; }
.service-card p { margin: 0; font-size: 15px; line-height: 1.15; opacity: .72; }

/* =========================================================
   VALUES
   ========================================================= */
.page-inner--values { padding-bottom: 43px; }
.section-heading--values { padding-left: 7px; }
.values-image {
  position: relative;
  min-height: 442px;
  background: url("../images/values.jpg") center / cover no-repeat;
}
.values-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.04); }
.values-cards {
  position: relative;
  z-index: 2;
  min-height: 442px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.value-card {
  flex: 1 1 0;
  min-height: 178px;
  padding: 25px 20px;
  border-radius: 18px;
  background: var(--pink-soft);
  color: white;
  transition: flex-basis 500ms cubic-bezier(0.22, 1, 0.36, 1), flex-grow 500ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: flex-basis, flex-grow;
}
.value-card.is-active {
  flex: 1.2 1 0;
}
.value-card h3,
.value-card p { text-align: left; }
.value-card h3 { margin: 0 0 28px; font-size: 19px; }
.value-card p { margin: 0; max-width: 300px; font-size: 15px; line-height: 1.28; }

/* =========================================================
   VISION / WHY US
   ========================================================= */
.vision-copy h3 { margin: 0; font-size: 19px; }
.vision-copy h3:not(:first-child) { margin-top: 38px; }
.vision-copy p { margin-top: 3px; }
.page-inner--vision { padding-bottom: 105px; }
.why-copy .eyebrow { margin-bottom: 23px; }
.why-copy h2 { margin: 0 0 28px; font-size: clamp(42px, 4.1vw, 64px); line-height: .98; letter-spacing: -.04em; }
.why-copy ul { margin: 50px 0 0; padding-left: 44px; }
.why-copy li { margin: 0 0 13px; padding-left: 2px; color: var(--muted); font-size: clamp(16px, 1.25vw, 21px); line-height: 1.15; }

/* =========================================================
   CONTACT
   ========================================================= */
.page-inner--contact { padding-bottom: 85px; }
.page--contact .section-heading h2 { max-width: 850px; }
.contact-panel {
  width: min(900px, 100%);
  min-height: 340px;
  margin: 62px auto 0;
  display: grid;
  grid-template-columns: 39% 61%;
  overflow: hidden;
  border-radius: 20px;
  background: url("../images/service-1.jpg") center / cover no-repeat;
}
.contact-info { padding: 19px 18px 18px; color: #fff; background: linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,.45)), url("../images/tobias-reich--7ZwuyDx2rI-unsplash.jpg") center / cover no-repeat; }
.contact-label { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.contact-info > a,
.contact-info > p:not(.contact-label) { display: block; margin: 0 0 15px; color: #fff; text-decoration: none; font-size: 14px; }
.contact-form { display: grid; gap: 7px; margin-top: 10px; }
.field { display: block; }
.field-error { display: block; min-height: 12px; margin-top: 3px; color: #ffd8dc; font-size: 10px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #333;
  padding: 8px 11px;
  outline: none;
}
.contact-form input { height: 30px; }
.contact-form textarea { min-height: 79px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { box-shadow: 0 0 0 2px var(--pink); }
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { box-shadow: 0 0 0 2px #ff7b7b; }
.map-wrap { overflow: hidden; background: #ddd; }
.map-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-status { min-height: 15px; margin: 0; font-size: 11px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { position: relative; padding: 26px 0 12px; background: #030303; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; align-items: end; gap: 25px; }
.footer-brand img { width: 150px; }
.footer-grid > p,
.footer-company { margin: 0; color: #aaa; font-size: 9px; text-align: center; }
.footer-grid nav { display: flex; justify-content: flex-end; gap: 22px; }
.footer-grid nav a { color: #fff; font-size: 14px; text-decoration: none; transition: transform .2s ease; }
.footer-grid nav a:hover { transform: scale(1.06); }
.footer-company { margin-top: 9px; text-align: right; padding-right: max(30px, calc((100vw - var(--max)) / 2)); }

/* =========================================================
   STRENGTH LINE
   JS changes --line-scale as the section enters/leaves.
   ========================================================= */
.strength-line {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18px;
  width: min(690px, 70%);
  height: 2px;
  background: var(--line);
  transform: translateX(-50%) scaleX(.55);
  transform-origin: center;
  transition: transform .28s ease-out;
  will-change: transform;
}
.page--hero .strength-line { background: #fff; }
.strength-line.is-strong { transform: translateX(-50%) scaleX(1); }

.skip-link { position: fixed; left: 10px; top: -60px; z-index: 100; padding: 10px; background: #fff; color: #000; }
.skip-link:focus { top: 10px; }
.menu-toggle { display: none; }
.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; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .animate-item { transition-duration: 1ms !important; }
  .service-card, .value-card, .button { transition-duration: 1ms !important; }
}

/* =========================================================
   TABLET / MEDIUM SCREENS
   ========================================================= */
@media (max-width: 991px) {
  .services-grid { display: flex; flex-direction: column; gap: 20px; }
  .service-card { width: 100%; max-width: 400px; min-height: auto; }
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 900px) {
  .container { width: min(calc(100% - 48px), var(--max)); }
  .site-header { top: 18px; }
  .main-nav { gap: 17px; }
  .main-nav a { font-size: 15px; }
  .about-grid, .vision-grid, .why-grid { gap: 45px; }
  .contact-panel { grid-template-columns: 1fr 1.3fr; }
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; gap: 15px; }
  .service-card { 
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: flex-start; 
    aspect-ratio: auto; 
    min-height: 180px; 
    padding: 20px; 
    margin-bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .service-card img { position: absolute; flex: none; z-index: -2; }
  .service-card::after { z-index: -1; }
  .service-card > div { flex: none; padding: 0; position: relative; z-index: 2; }
  .service-card.is-active { aspect-ratio: auto; min-height: 180px; }
  .service-card h3 { font-size: 17px; text-align: left; }
  .service-card p { font-size: 13px; text-align: left; }
  .service-card:last-child { grid-column: auto; aspect-ratio: auto; min-height: 180px; }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 640px) {
  .container { width: min(calc(100% - 34px), var(--max)); }
  .page { min-height: auto; }
  .page-inner { padding: 58px 0 80px; }
  .section-heading h2 { font-size: clamp(36px, 11vw, 48px); }
  .eyebrow { font-size: 13px; }

  .site-header { width: calc(100% - 34px); top: 15px; justify-content: center; }
  .ffs-hero-logo img { width: 145px; }
  .menu-toggle { position: absolute; right: 0; }
  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 9px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%;
    background: rgba(0,0,0,.2);
    cursor: pointer;
  }
  .menu-toggle span { width: 100%; height: 1px; background: #fff; }
  .main-nav {
    position: absolute;
    top: 53px;
    right: 0;
    width: 190px;
    padding: 16px;
    display: grid;
    gap: 13px;
    border-radius: 15px;
    background: rgba(0,0,0,.86);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms cubic-bezier(0.22, 1, 0.36, 1), transform 200ms cubic-bezier(0.22, 1, 0.36, 1), visibility 200ms;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { font-size: 16px; }

  .hero-content { min-height: 100svh; padding-top: 60px; }
  .hero-content h1 { font-size: clamp(42px, 12vw, 60px); }
  .hero-tagline { margin-top: 22px; font-size: 23px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { width: 100%; flex-direction: column; gap: 12px; margin-top: 38px; }
  .hero-actions .button { width: 100%; min-height: 48px; }

  .about-grid, .vision-grid, .why-grid { grid-template-columns: 1fr; margin-top: 38px; }
  .about-grid { gap: 32px; }
  .copy-column p, .intro, .vision-copy p, .why-copy > p { font-size: 16px; }
  .image-frame--about { max-width: 430px; }

  .services-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 38px; }
  .service-card { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; aspect-ratio: auto; min-height: 200px; padding: 16px; flex: none; }
  .service-card img { position: absolute; flex: none; z-index: -2; }
  .service-card::after { z-index: -1; }
  .service-card > div { flex: none; padding: 0; position: relative; z-index: 2; }
  .service-card.is-active { flex-direction: column; aspect-ratio: auto; min-height: 200px; }
  .service-card h3 { font-size: 17px; text-align: left; margin: 0 0 8px 0; line-height: 1.2; }
  .service-card p { font-size: 13px; text-align: left; line-height: 1.3; }
  .service-card:last-child { grid-column: auto; flex-direction: column; aspect-ratio: auto; min-height: 200px; }

  .page-inner--values { padding-bottom: 30px; }
  .values-image { min-height: 300px; }
  .values-cards { min-height: 300px; flex-direction: column; align-content: flex-start; gap: 14px; padding: 20px; }
  .value-card { aspect-ratio: 2 / 1; min-height: auto; padding: 18px 15px; flex-basis: auto !important; justify-content: center; align-items: flex-start; }
  .value-card h3 { text-align: left; margin-bottom: 12px; font-size: 18px; }
  .value-card p { text-align: left; font-size: 14px; margin: 0; }
  .value-card.is-active { flex: 1 1 auto; aspect-ratio: 2 / 1; }
  .value-card h3 { margin-bottom: 14px; }

  .vision-grid { margin-top: 50px; }
  .why-grid { margin-top: 10px; }
  .why-copy h2 { font-size: clamp(39px, 11vw, 52px); }
  .why-copy ul { margin-top: 30px; padding-left: 27px; }
  .why-copy li { font-size: 16px; }

  .contact-panel { grid-template-columns: 1fr; margin-top: 38px; }
  .contact-info { padding: 20px 18px 25px; }
  .map-wrap { min-height: 260px; }
  .page-inner--contact { padding-bottom: 72px; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .footer-brand img { margin: auto; width: 135px; }
  .footer-grid nav { justify-content: center; flex-wrap: wrap; gap: 14px; }
  .footer-company { padding: 0; text-align: center; }
  .strength-line { bottom: 14px; width: 72%; }
}

/* =========================================================
   STAGGERED SLIDE-IN ANIMATIONS
   ========================================================= */
.animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 550ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.animate-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   PERSISTENT CARD REFLOW & COUNTER-SCALING
   ========================================================= */
.service-card > div,
.value-card > div {
  transition: flex-basis 500ms cubic-bezier(0.22, 1, 0.36, 1), transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Hover styles only for devices that support hover */
@media (hover: hover) {
  .service-card:hover,
  .value-card:hover {
    opacity: 0.95;
  }
}

.service-card.is-active > div,
.value-card.is-active > div {
  text-align: left;
}

.services-grid .service-card,
.values-cards .value-card {
  min-width: 0;
}
