:root {
  --ferfi-bg: #FAFAF9;
  --ferfi-surface: #FFFFFF;
  --ferfi-accent-mint: #0D9488;
  --ferfi-accent-dark-green: #115E59;
  --ferfi-ink-deep: #1F2937;
  --ferfi-ink-soft: #4B5563;
  --ferfi-border-color: #E5E7EB;
  --ferfi-gradient-hero: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--ferfi-bg);
  color: var(--ferfi-ink-deep);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Custom Scroll Progress Animation */
@keyframes progress-grow {
  to { width: 100%; }
}

.ferfi-scroll-indicator {
  height: 3px;
  width: 0;
  animation: progress-grow linear;
  animation-timeline: scroll();
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 50;
}

/* Scroll-driven Reveal Animation on Sections */
@keyframes slide-up {
  from { 
    opacity: 0; 
    transform: translateY(40px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.ferfi-section-reveal {
  animation: slide-up linear both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

/* Header Option 2: Nav Left + Logo Right */
.ferfi-main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ferfi-header-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ferfi-header-logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.ferfi-nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.ferfi-nav-list a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.ferfi-nav-list a:hover {
  color: var(--ferfi-accent-mint) !important;
}

/* Hamburger menu for mobile (CSS only) */
.ferfi-burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.ferfi-burger-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--ferfi-ink-deep);
  transition: 0.3s ease;
}

/* Hero Section (Preset G: Minimalist Typographic) */
.ferfi-hero-section {
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
  position: relative;
  background: var(--ferfi-gradient-hero);
  overflow: hidden;
}

.ferfi-hero-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  z-index: 10;
}

.ferfi-heading-main {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.ferfi-hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.ferfi-hero-action {
  display: inline-block;
}

.ferfi-btn-ghost {
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  border-radius: 16px; /* soft style */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* raised depth */
}

.ferfi-btn-ghost:hover {
  background-color: var(--ferfi-accent-dark-green);
  color: #FFFFFF !important;
  border-color: var(--ferfi-accent-dark-green);
  transform: translateY(-2px);
}

/* Content Section 1 */
.ferfi-content-one {
  background-color: var(--ferfi-bg);
  padding: 10dvh 0;
}

.ferfi-image-strip {
  width: 100%;
  height: 40vh;
  overflow: hidden;
  margin-bottom: 3rem;
}

.ferfi-img-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ferfi-content-one-text {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.ferfi-content-h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.ferfi-paragraph-lead {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.ferfi-paragraph {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Features (Manifesto Vertical List) */
.ferfi-manifesto-section {
  padding: 10dvh 1.5rem;
  background-color: var(--ferfi-surface);
}

.ferfi-manifesto-container {
  max-width: 900px;
  margin: 0 auto;
}

.ferfi-section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.ferfi-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--ferfi-accent-mint);
  margin: 1rem auto 0;
}

.ferfi-manifesto-list {
  display: flex;
  flex-direction: column;
}

.ferfi-manifesto-item {
  display: flex;
  align-items: flex-start;
  padding: 2.5rem 0;
  gap: 2.5rem;
  transition: transform 0.3s ease;
}

.ferfi-manifesto-item:hover {
  transform: translateX(10px);
}

.ferfi-manifesto-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.15;
  min-width: 90px;
}

.ferfi-manifesto-text-wrap {
  flex-grow: 1;
}

.ferfi-manifesto-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.ferfi-manifesto-desc {
  font-size: 1rem;
}

/* CTA Strip */
.ferfi-cta-strip {
  padding: 8dvh 1.5rem;
  color: #FFFFFF;
}

.ferfi-cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.ferfi-cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.ferfi-cta-text {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.ferfi-btn-outline-white {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: 16px; /* soft */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ferfi-btn-outline-white:hover {
  background-color: #FFFFFF;
  color: var(--ferfi-accent-dark-green);
  transform: translateY(-2px);
}

/* Content Section 2 (Cards Grid) */
.ferfi-cards-section {
  padding: 10dvh 1.5rem;
  background-color: var(--ferfi-bg);
}

.ferfi-cards-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.ferfi-pillar-card {
  padding: 2.5rem 2rem;
  border-radius: 16px; /* soft style */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05); /* raised shadow */
  transition: all 0.3s ease;
}

.ferfi-pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.ferfi-card-icon {
  margin-bottom: 1.5rem;
}

.ferfi-card-icon svg {
  width: 3rem;
  height: 3rem;
}

.ferfi-card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.ferfi-card-desc {
  font-size: 0.95rem;
}

/* Testimonials Section */
.ferfi-testimonials-section {
  padding: 10dvh 1.5rem;
  background-color: var(--ferfi-surface);
}

.ferfi-testimonials-container {
  max-width: 900px;
  margin: 0 auto;
}

.ferfi-featured-quote {
  padding: 3.5rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
  margin-bottom: 3rem;
  position: relative;
  text-align: center;
}

.ferfi-quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  position: absolute;
  top: -1rem;
  left: 2rem;
  opacity: 0.2;
}

.ferfi-quote-main-text {
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.ferfi-quote-author {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}

.ferfi-quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.ferfi-small-quote-card {
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.ferfi-quote-sub-text {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.ferfi-quote-sub-author {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* FAQ Section */
.ferfi-faq-section {
  padding: 10dvh 1.5rem;
  background-color: var(--ferfi-bg);
}

.ferfi-faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.ferfi-faq-list {
  display: flex;
  flex-direction: column;
}

.ferfi-faq-item {
  padding: 2rem 0;
}

.ferfi-faq-question {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ferfi-faq-question span {
  font-weight: 300;
}

.ferfi-faq-answer {
  font-size: 1rem;
  padding-left: 2.25rem;
}

/* Form Section */
.ferfi-form-section {
  padding: 10dvh 1.5rem;
  background-color: var(--ferfi-surface);
}

.ferfi-form-container {
  max-width: 1100px;
  margin: 0 auto;
}

.ferfi-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ferfi-form-heading {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.ferfi-form-subtext {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.ferfi-trust-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.ferfi-trust-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.ferfi-trust-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.ferfi-address-block {
  font-style: normal;
  font-size: 0.9rem;
  border-top: 1px solid var(--ferfi-border-color);
  padding-top: 1.5rem;
}

.ferfi-address-block p {
  margin-bottom: 0.5rem;
}

.ferfi-form-wrapper {
  padding: 3rem;
  border-radius: 16px; /* soft code */
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* raised elevation */
}

.ferfi-underline-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1rem 0;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.ferfi-underline-input:focus {
  border-color: var(--ferfi-accent-mint) !important;
}

.ferfi-input-group {
  margin-bottom: 2rem;
}

.ferfi-btn-solid {
  width: 100%;
  padding: 1.25rem;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 16px; /* soft code */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(17, 94, 89, 0.2);
}

.ferfi-btn-solid:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(17, 94, 89, 0.3);
}

/* Footer Style */
.ferfi-main-footer {
  padding: 4rem 1.5rem;
}

.ferfi-footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ferfi-footer-logo img {
  height: 40px;
  width: auto;
}

.ferfi-footer-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.ferfi-footer-list a {
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.ferfi-footer-list a:hover {
  opacity: 1;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .ferfi-form-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Dynamic Header Burger for Mobile */
  .ferfi-burger-btn {
    display: flex;
    order: 1;
  }

  .ferfi-nav-menu {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    background-color: var(--ferfi-surface);
    transition: 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .ferfi-nav-list {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  /* Checked toggle state for CSS menu */
  .ferfi-nav-cb:checked ~ .ferfi-nav-menu {
    left: 0;
  }

  .ferfi-nav-cb:checked ~ .ferfi-burger-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .ferfi-nav-cb:checked ~ .ferfi-burger-btn span:nth-child(2) {
    opacity: 0;
  }

  .ferfi-nav-cb:checked ~ .ferfi-burger-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .ferfi-header-logo {
    order: 2;
  }

  /* Grid Layout collapse */
  .ferfi-cards-grid,
  .ferfi-quotes-grid,
  .ferfi-form-grid {
    grid-template-columns: 1fr;
  }

  .ferfi-manifesto-item {
    flex-direction: column;
    gap: 1rem;
  }

  .ferfi-manifesto-num {
    font-size: 3.5rem;
  }

  .ferfi-featured-quote {
    padding: 2.5rem 1.5rem;
  }

  .ferfi-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .ferfi-footer-wrap {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .ferfi-footer-list {
    flex-direction: column;
    gap: 1rem;
  }
}