/* ═══════════════════════════════════════════════
   Ferroleaf — Premium Holding One-Pager
   Pure HTML + CSS. No frameworks.
   ═══════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --c-bg:         #f5f3ef;
  --c-bg-alt:     #edeae4;
  --c-bg-dark:    #2f3e2f;
  --c-bg-dark-2:  #253125;
  --c-white:      #ffffff;

  --c-text:       #3a3935;
  --c-text-muted: #6e6b65;
  --c-text-light: rgba(255,255,255,0.85);
  --c-text-dim:   rgba(255,255,255,0.5);

  --c-accent:     #2f3e2f;
  --c-accent-h:   #1b271b;
  --c-taupe:      #9e9486;
  --c-border:     #ddd9d2;

  --ff-serif:     'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-xs:   0.8rem;
  --fs-sm:   0.9rem;
  --fs-base: 1.05rem;
  --fs-md:   1.25rem;
  --fs-lg:   1.5rem;
  --fs-xl:   2.25rem;
  --fs-2xl:  3rem;
  --fs-hero: 4.5rem;

  --lh:      1.7;
  --lh-tight: 1.1;

  --s-4:   0.25rem;
  --s-8:   0.5rem;
  --s-12:  0.75rem;
  --s-16:  1rem;
  --s-24:  1.5rem;
  --s-32:  2rem;
  --s-48:  3rem;
  --s-64:  4rem;
  --s-80:  5rem;
  --s-96:  6rem;
  --s-128: 8rem;

  --max-w:       1120px;
  --max-w-narrow: 680px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 768px) {
  :root {
    --fs-hero: 7rem;
    --fs-2xl:  3.5rem;
    --fs-xl:   2.75rem;
  }
}
@media (min-width: 1200px) {
  :root {
    --fs-hero: 8.5rem;
  }
}


/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
hr { border: none; height: 1px; background: var(--c-border); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }


/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-24);
}
.container--narrow { max-width: var(--max-w-narrow); }


/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }


/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--s-24) 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.header.is-scrolled {
  background: rgba(245, 243, 239, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--c-border);
  padding: var(--s-16) 0;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__logo {
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  text-transform: uppercase;
}
.header__nav a {
  margin-left: var(--s-32);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--c-text-muted);
  position: relative;
  transition: color 0.25s ease;
}
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width 0.3s var(--ease);
}
.header__nav a:hover { color: var(--c-accent); }
.header__nav a:hover::after { width: 100%; }


/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-128) var(--s-24) var(--s-64);
  background-color: #f5f3ef;
  background-image: linear-gradient(rgba(245, 243, 239, 0.85), rgba(245, 243, 239, 0.95)), url('hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.hero__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-hero);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  color: var(--c-accent);
  margin-bottom: var(--s-32);
}
.hero__tagline {
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--c-taupe);
  margin-bottom: var(--s-48);
}
.hero__divider {
  width: 48px;
  height: 1px;
  background: var(--c-taupe);
  margin: 0 auto var(--s-48);
}
.hero__intro {
  font-family: var(--ff-sans);
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.7;
  color: var(--c-text-muted);
  max-width: 460px;
  margin: 0 auto;
}

.hero__scroll {
  position: absolute;
  bottom: var(--s-48);
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--c-taupe), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%      { opacity: 1;   transform: scaleY(1); }
}


/* ══════════════════════════════════════
   SECTIONS (shared)
   ══════════════════════════════════════ */
.section {
  padding: var(--s-128) 0;
}
.section__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-2xl);
  font-weight: 300;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: var(--s-48);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__body {
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--c-text-muted);
  max-width: var(--max-w-narrow);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__label {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-taupe);
  margin-bottom: var(--s-24);
  text-align: center;
  display: block;
}
.section__body p { margin-bottom: var(--s-24); }
.section__body p:last-child { margin-bottom: 0; }
.section__body--large {
  font-size: var(--fs-lg);
  line-height: 1.6;
  font-weight: 300;
}

.divider { padding: 0; }
.divider .container { padding: 0 var(--s-24); }


/* ── Pillars (Over section) ── */
.pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-12) var(--s-16);
  margin-top: var(--s-48);
}
.pillars li {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--c-text-muted);
  padding: var(--s-8) var(--s-16);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.pillars li:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}


/* ══════════════════════════════════════
   INITIATIVE CARDS
   ══════════════════════════════════════ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-24);
  margin-top: var(--s-16);
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

.card {
  border: 1px solid var(--c-border);
  border-radius: 2px;
  padding: var(--s-32);
  background: var(--c-white);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(47, 62, 47, 0.06);
  border-color: rgba(47, 62, 47, 0.2);
}
.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--s-16);
  gap: var(--s-12);
}
.card__name {
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-text);
}
.card__status {
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-taupe);
  border: 1px solid var(--c-border);
  padding: var(--s-4) var(--s-12);
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.card__status--live {
  color: var(--c-accent);
  border-color: rgba(47, 62, 47, 0.3);
}
.card__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
  flex-grow: 1;
}


/* ══════════════════════════════════════
   VALUES
   ══════════════════════════════════════ */
.section--values {
  background: var(--c-bg-alt);
}
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-48);
}
@media (min-width: 640px) {
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .values { grid-template-columns: repeat(4, 1fr); }
}

.value { }
.value__number {
  font-family: var(--ff-serif);
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--c-border);
  display: block;
  margin-bottom: var(--s-16);
  line-height: 1;
}
.value__name {
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--c-text);
  margin-bottom: var(--s-8);
}
.value__text {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
}


/* ══════════════════════════════════════
   VISIE (dark section)
   ══════════════════════════════════════ */
.section--dark {
  background: var(--c-bg-dark);
  color: var(--c-text-light);
}
.section--dark .section__label { color: rgba(255,255,255,0.4); }
.section--dark .section__title { color: var(--c-white); }
.section--dark .section__body  { color: var(--c-text-light); }


/* ══════════════════════════════════════
   CONTACT
   ══════════════════════════════════════ */
.section--contact {
  border-top: 1px solid var(--c-border);
}
.section--contact .section__title {
  max-width: none;
}
.contact-actions { margin-top: var(--s-16); }

.btn {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: var(--s-16) var(--s-48);
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover {
  background: var(--c-accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 62, 47, 0.15);
}
.btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }

.contact-links {
  margin-top: var(--s-32);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.contact-links p { margin-bottom: var(--s-8); }
.contact-links a {
  color: var(--c-accent);
  border-bottom: 1px solid var(--c-border);
  transition: border-color 0.25s ease;
}
.contact-links a:hover { border-color: var(--c-accent); }


/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding: var(--s-80) 0 var(--s-48);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-48);
}
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-64); }
}
.footer__logo {
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--s-12);
}
.footer__tagline {
  font-size: var(--fs-xs);
  color: var(--c-taupe);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer__heading {
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text);
  margin-bottom: var(--s-16);
}
.footer__link {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--s-8);
  transition: color 0.2s ease;
}
.footer__link:hover { color: var(--c-accent); }

.footer__bottom {
  margin-top: var(--s-64);
  padding-top: var(--s-32);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-xs);
  color: var(--c-taupe);
}


/* ══════════════════════════════════════
   PRIVACY PAGE
   ══════════════════════════════════════ */
.page-title {
  font-family: var(--ff-serif);
  font-size: var(--fs-2xl);
  font-weight: 300;
  margin: 0 0 var(--s-48);
  padding-top: var(--s-128);
  color: var(--c-text);
}
.privacy h2 {
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  font-weight: 400;
  margin: var(--s-64) 0 var(--s-16);
  color: var(--c-text);
}
.privacy h2:first-of-type { margin-top: var(--s-32); }
.privacy p, .privacy ul {
  margin: 0 0 var(--s-16);
  color: var(--c-text-muted);
  font-size: var(--fs-base);
  line-height: var(--lh);
  max-width: var(--max-w-narrow);
}
.privacy ul { padding-left: var(--s-24); list-style: disc; }
.privacy a { color: var(--c-accent); border-bottom: 1px solid var(--c-border); }
.privacy a:hover { border-color: var(--c-accent); }


/* ══════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════ */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-64);
}
.error-page__code {
  font-family: var(--ff-serif);
  font-size: 8rem;
  font-weight: 300;
  color: var(--c-border);
  line-height: 1;
  margin-bottom: var(--s-16);
}
.error-page__text {
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--c-text);
  margin-bottom: var(--s-48);
}
.error-page a {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: var(--s-16) var(--s-48);
  background: var(--c-accent);
  color: var(--c-white) !important;
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.error-page a:hover {
  background: var(--c-accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 62, 47, 0.15);
  text-decoration: none;
}
