/* =====================================================================
   FIG BRANCH LLC — styles.css
   ===================================================================== */


/* =====================================================================
   1. RESET & VARIABLES
   ===================================================================== */

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

:root {
  /* Brand palette */
  --charcoal:   #1f1f1d;
  --ink:        #141412;
  --fig-green:  #68745a;
  --deep-green: #2f3f2f;
  --off-white:  #faf9f5;
  --cream:      #f4f1ea;
  --warm-gray:  #e7e1d8;
  --muted-text: #6d6a63;
  --border:     #d8d1c5;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container-max: 1120px;
  --container-pad: clamp(1.5rem, 5vw, 3rem);
  --section-pad:   clamp(5rem, 9vw, 8.5rem);
  --header-h:      5rem;

  /* Motion */
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 220ms var(--ease);

  /* Shadows */
  --shadow-card: 0 2px 20px rgba(31, 31, 29, 0.07), 0 1px 4px rgba(31, 31, 29, 0.04);
  --shadow-lift: 0 8px 36px rgba(31, 31, 29, 0.10);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--off-white);
  color: var(--charcoal);
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}


/* =====================================================================
   2. LAYOUT
   ===================================================================== */

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

.section {
  padding: var(--section-pad) 0;
}

.section--warm {
  background-color: var(--warm-gray);
}

.section--dark {
  background-color: var(--charcoal);
}


/* =====================================================================
   3. SCROLL REVEAL
   ===================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}


/* =====================================================================
   4. SHARED SECTION ELEMENTS
   ===================================================================== */

/* Label with a leading rule: ——— SECTION NAME */
.section__label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fig-green);
  margin-bottom: 1.5rem;
}

.section__label::before {
  content: '';
  display: block;
  width: 1.875rem;
  height: 1px;
  background-color: var(--fig-green);
  flex-shrink: 0;
}

.section__label--light {
  color: rgba(104, 116, 90, 0.7);
}

.section__label--light::before {
  background-color: rgba(104, 116, 90, 0.5);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.015em;
}

.section__title--light {
  color: var(--off-white);
}

/* Short green rule that anchors copy blocks */
.section__divider {
  width: 2.5rem;
  height: 1px;
  background-color: var(--fig-green);
  margin-bottom: 2.25rem;
}

/* Header block above card grids */
.section__header {
  margin-bottom: 3.5rem;
}


/* =====================================================================
   5. BUTTONS
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.825rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition);
}

/* Green fill — primary on light sections */
.btn--primary {
  background-color: var(--fig-green);
  color: #fff;
  border-color: var(--fig-green);
}
.btn--primary:hover {
  background-color: var(--deep-green);
  border-color: var(--deep-green);
}

/* Outlined — secondary on light sections */
.btn--secondary {
  background-color: transparent;
  color: var(--charcoal);
  border-color: var(--border);
}
.btn--secondary:hover {
  border-color: var(--charcoal);
  background-color: var(--charcoal);
  color: var(--off-white);
}

.btn:focus-visible {
  outline: 2px solid var(--fig-green);
  outline-offset: 3px;
}


/* =====================================================================
   6. HEADER
   ===================================================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  background-color: rgba(250, 249, 245, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 1px 16px rgba(31, 31, 29, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  line-height: 0;
  flex-shrink: 0;
}

/* Bigger logo — blend removes white background */
.logo-img {
  height: 2.75rem;
  width: auto;
  mix-blend-mode: multiply;
}

/* Nav */
.nav__list {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-text);
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 1px;
  background-color: var(--fig-green);
  transition: width 280ms var(--ease);
}

.nav__link:hover,
.nav__link.active {
  color: var(--charcoal);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:focus-visible {
  outline: none;
  color: var(--charcoal);
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--charcoal);
  transform-origin: center;
  transition: transform var(--transition), opacity var(--transition);
}


/* =====================================================================
   7. HERO — Split editorial layout
   ===================================================================== */

.hero {
  min-height: 100svh;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + clamp(3rem, 5vw, 5rem));
  padding-bottom: clamp(4rem, 7vw, 6rem);
  display: flex;
  align-items: center;
  /* Very subtle warm tonal shift — depth without noise */
  background: linear-gradient(155deg, var(--off-white) 55%, #eeebe3 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
  width: 100%;
}

/* --- Left: Text --- */

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Eyebrow label with leading rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fig-green);
  margin-bottom: 2rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 1.875rem;
  height: 1px;
  background-color: var(--fig-green);
  flex-shrink: 0;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 5.5vw, 5.25rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.hero__body {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.4vw, 0.975rem);
  font-weight: 300;
  color: var(--muted-text);
  line-height: 1.9;
  max-width: 400px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

/* Credibility line — sits below CTAs with a thin rule above */
.hero__tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-text);
  font-weight: 300;
  opacity: 0.7;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 380px;
}

/* --- Right: Brand card --- */

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Premium letterhead-style panel */
.brand-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  background-color: var(--cream);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Inner inset frame — refined document feel */
.brand-card::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(216, 209, 197, 0.55);
  pointer-events: none;
}

.brand-card__logo {
  position: relative;
  z-index: 1;
  width: 68%;
  height: auto;
  mix-blend-mode: multiply;
}


/* =====================================================================
   8. ABOUT — Asymmetric two-column
   ===================================================================== */

.about {
  background-color: #fff;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

/* Headline column sticks as copy scrolls past it */
.about__left {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.about__right {
  padding-top: 0.25rem;
}

.about__copy {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.6vw, 1.0625rem);
  font-weight: 300;
  color: var(--muted-text);
  line-height: 1.95;
}

.about__copy--secondary {
  margin-top: 1.25rem;
  opacity: 0.8;
}


/* =====================================================================
   9. FOCUS — Three bordered numbered cards
   ===================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background-color: var(--off-white);
  border: 1px solid var(--border);
  padding: 2.75rem 2.25rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

/* Animated green top accent on hover */
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background-color: var(--fig-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}

.card:hover::after {
  transform: scaleX(1);
}

.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.card__num {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--fig-green);
  margin-bottom: 2.25rem;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.card__copy {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted-text);
  line-height: 1.85;
}


/* =====================================================================
   10. PRINCIPLES — Dark charcoal band
   ===================================================================== */

.principles__header {
  margin-bottom: clamp(3rem, 5vw, 5rem);
  max-width: 600px;
}

/* Three columns divided by a thin rule */
.principles__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.principle__num {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(104, 116, 90, 0.6);
  margin-bottom: 1.35rem;
}

.principle__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--off-white);
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

.principle__copy {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(250, 249, 245, 0.48);
  line-height: 1.85;
}


/* =====================================================================
   11. CONTACT — Two-column with bordered contact card
   ===================================================================== */

.contact {
  background-color: var(--off-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

.contact__left {
  padding-top: 0.25rem;
}

.contact__intro {
  margin-top: 2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted-text);
  line-height: 1.9;
  max-width: 340px;
}

/* The contact card: cream panel, bordered rows */
.contact__card {
  background-color: var(--cream);
  border: 1px solid var(--border);
}

.contact__row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.75rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.contact__row-label {
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-text);
}

.contact__row-value {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.contact__row-value:hover {
  color: var(--fig-green);
}

.contact__actions {
  padding: 2rem 2.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}


/* =====================================================================
   12. FOOTER
   ===================================================================== */

.footer {
  background-color: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.75rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__logo {
  line-height: 0;
  opacity: 0.38;
  transition: opacity var(--transition);
}

.footer__logo:hover {
  opacity: 0.6;
}

/* Invert dark logo to appear white on charcoal */
.footer__logo-img {
  height: 1.5rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.footer__url {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(250, 249, 245, 0.2);
  letter-spacing: 0.08em;
}

.footer__copy {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(250, 249, 245, 0.28);
  letter-spacing: 0.04em;
}


/* =====================================================================
   13. RESPONSIVE — 900px tablet
   ===================================================================== */

@media (max-width: 900px) {

  /* Hero stacks — brand card moves below text, left-aligned */
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero__visual {
    justify-content: flex-start;
  }

  .brand-card {
    max-width: 300px;
    aspect-ratio: 1 / 1;
  }

  /* About stacks — sticky heading becomes normal flow */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__left {
    position: static;
  }

  /* Contact stacks */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

}


/* =====================================================================
   14. RESPONSIVE — 768px (mobile nav, card stacking)
   ===================================================================== */

@media (max-width: 768px) {

  /* Slide-down mobile nav drawer */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background-color: rgba(250, 249, 245, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 2rem var(--container-pad) 2.5rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 300ms var(--ease), opacity 300ms var(--ease);
    z-index: 199;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hamburger → × */
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Cards and principles stack to single column */
  .cards {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .principles__list {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 2.5rem;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer__right {
    align-items: flex-start;
  }

}


/* =====================================================================
   15. RESPONSIVE — 560px small mobile
   ===================================================================== */

@media (max-width: 560px) {

  /* Brand card centers on small screens */
  .hero__visual {
    justify-content: center;
  }

  .brand-card {
    max-width: 260px;
    margin-inline: auto;
  }

  /* Buttons go full-width on small screens */
  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__tag {
    max-width: 100%;
  }

  .contact__actions {
    flex-direction: column;
  }

  .contact__actions .btn {
    width: 100%;
  }

}
