/* ═══════════════════════════════════════════════════════════════════════════
   G-FUNK HOME — Custom Stylesheet
   Theme  : Modern Botanical · Eucalyptus · Sunlit & Airy
   Fonts  : Montserrat (headings) · Inter (body)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────────────
   0.  DESIGN TOKENS  —  Botanical Emerald Theme
─────────────────────────────────────────────────────────────────────────── */
:root {
  /* Base surfaces */
  --clr-bg:            #f7faf8;          /* Morning-dew off-white           */
  --clr-surface:       #ffffff;          /* Cards, navbar                   */
  --clr-surface-alt:   #f0f5f2;          /* Surface Background (#F0F5F2)    */
  --clr-border:        #dceae3;          /* Soft sage-green divider         */

  /* Botanical Emerald green accent hierarchy */
  --clr-green-deep:    #2f7a59;          /* Primary Green: #2F7A59          */
  --clr-green-mid:     #3d9470;          /* Hover — one step lighter        */
  --clr-green-sage:    #6ea389;          /* Secondary Sage: #6EA389         */
  --clr-green-pale:    #e6f3ed;          /* Card icon backdrop              */

  /* Dark Text / Contrast */
  --clr-green-ink:     #163826;          /* Dark Text/Contrast: #163826     */

  /* Type */
  --clr-text-primary:  #163826;          /* Dark Text/Contrast: #163826     */
  --clr-text-body:     #3d5247;          /* Warm green-inflected body text  */
  --clr-text-muted:    #6ea389;          /* Secondary Sage labels           */
  --clr-text-inverse:  #ffffff;

  /* Typography scale */
  --ff-heading: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --ff-body:    'Inter',      'Segoe UI', Arial, sans-serif;

  /* Spacing rhythm */
  --section-pad-y:    clamp(5rem, 10vw, 9rem);
  --section-pad-y-sm: clamp(3.5rem, 7vw, 6rem);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-gentle:   cubic-bezier(0.4, 0, 0.2, 1);

  /* Soft Shadows — Botanical Emerald tinted */
  --shadow-soft:       0 10px 30px rgba(47, 122, 89, 0.08);
  --shadow-card:       0 10px 30px rgba(47, 122, 89, 0.08);
  --shadow-card-hover: 0 18px 42px rgba(47, 122, 89, 0.14);
  --shadow-btn:        0 6px 20px rgba(47, 122, 89, 0.25);
  --shadow-navbar:     0 1px 0 rgba(47, 122, 89, 0.12);
}

/* ───────────────────────────────────────────────────────────────────────────
   1.  GLOBAL RESET & BASE
─────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text-body);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  color: var(--clr-text-primary);
  line-height: 1.2;
  font-weight: 700;
}

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

a {
  color: var(--clr-green-deep);
  text-decoration: none;
  transition: color 0.2s var(--ease-gentle);
}
a:hover {
  color: var(--clr-green-mid);
}

/* ───────────────────────────────────────────────────────────────────────────
   2.  SCROLL-REVEAL ANIMATIONS
─────────────────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--ease-out-expo),
    transform 0.75s var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.10s; }
.reveal--delay-2 { transition-delay: 0.20s; }
.reveal--delay-3 { transition-delay: 0.30s; }

/* ───────────────────────────────────────────────────────────────────────────
   3.  TYPOGRAPHY UTILITIES
─────────────────────────────────────────────────────────────────────────── */
.gfh-section-eyebrow {
  font-family: var(--ff-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-green-sage);
  margin-bottom: 1rem;
}

.gfh-section-title {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--clr-text-primary);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* ───────────────────────────────────────────────────────────────────────────
   4.  BUTTON
─────────────────────────────────────────────────────────────────────────── */
.gfh-btn-primary {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-green-deep);
  background: transparent;
  border: 1.5px solid var(--clr-green-deep);
  border-radius: 2px;
  padding: 0.9rem 2.25rem;
  transition:
    background-color 0.25s var(--ease-gentle),
    color            0.25s var(--ease-gentle),
    box-shadow       0.25s var(--ease-gentle),
    transform        0.2s  var(--ease-gentle);
}

.gfh-btn-primary:hover,
.gfh-btn-primary:focus-visible {
  background-color: var(--clr-green-deep);
  color: var(--clr-text-inverse);
  box-shadow: var(--shadow-btn);
  transform: translateY(-2px);
}

.gfh-btn-primary:focus-visible {
  outline: 3px solid var(--clr-green-sage);
  outline-offset: 3px;
}

/* Hero variant — lighter outline for dark backgrounds */
.gfh-btn-hero {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gfh-btn-hero:hover,
.gfh-btn-hero:focus-visible {
  background-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

/* ───────────────────────────────────────────────────────────────────────────
   5.  NAVBAR
─────────────────────────────────────────────────────────────────────────── */
.gfh-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  background: transparent;
  transition:
    background-color 0.4s var(--ease-gentle),
    box-shadow       0.4s var(--ease-gentle),
    padding          0.3s var(--ease-gentle);
}

.gfh-navbar--scrolled {
  background-color: rgba(247, 250, 248, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-navbar);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.gfh-brand {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--clr-text-primary) !important;
  text-decoration: none;
  transition: opacity 0.2s;
}
.gfh-brand:hover { opacity: 0.75; }

/* Navbar initially on hero (light text) */
.gfh-navbar:not(.gfh-navbar--scrolled) .gfh-brand {
  color: rgba(255,255,255,0.95) !important;
}
.gfh-navbar:not(.gfh-navbar--scrolled) .nav-link {
  color: rgba(255,255,255,0.80) !important;
}
.gfh-navbar:not(.gfh-navbar--scrolled) .gfh-nav-cta {
  color: rgba(255,255,255,0.95) !important;
  border-color: rgba(255,255,255,0.5) !important;
}
.gfh-navbar:not(.gfh-navbar--scrolled) .navbar-toggler {
  border-color: rgba(255,255,255,0.5);
  filter: invert(1);
}

.gfh-nav-links .nav-link {
  font-family: var(--ff-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-body);
  padding: 0.45rem 0.85rem !important;
  transition: color 0.2s var(--ease-gentle);
  position: relative;
}

.gfh-nav-links .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 1.5px;
  background-color: var(--clr-green-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}

.gfh-nav-links .nav-link:hover::after,
.gfh-nav-links .nav-link:focus-visible::after {
  transform: scaleX(1);
}

.gfh-nav-links .nav-link:hover,
.gfh-nav-links .nav-link:focus-visible {
  color: var(--clr-green-deep) !important;
}

/* CTA nav item */
.gfh-nav-cta {
  border: 1.5px solid var(--clr-green-deep) !important;
  border-radius: 2px;
  padding: 0.4rem 1.1rem !important;
  color: var(--clr-green-deep) !important;
  transition:
    background-color 0.22s var(--ease-gentle),
    color 0.22s var(--ease-gentle);
}
.gfh-nav-cta::after { display: none !important; }
.gfh-nav-cta:hover,
.gfh-nav-cta:focus-visible {
  background-color: var(--clr-green-deep);
  color: #fff !important;
}

/* ───────────────────────────────────────────────────────────────────────────
   6.  HERO SECTION
─────────────────────────────────────────────────────────────────────────── */
.gfh-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(5rem, 10vw, 9rem);
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  /* Fallback colour while image loads — lighter botanical tone */
  background-color: #264d38;
}

.gfh-hero__overlay {
  position: absolute;
  inset: 0;
  /* Lighter, more sunlit gradient — airy at top, readable at bottom */
  background: linear-gradient(
    to bottom,
    rgba(22, 56, 38, 0.08)  0%,
    rgba(22, 56, 38, 0.15)  45%,
    rgba(22, 56, 38, 0.50)  100%
  );
}

.gfh-hero__content {
  position: relative;
  z-index: 1;
}

.gfh-hero__eyebrow {
  font-family: var(--ff-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* Slightly lighter than the sage token for legibility over the image */
  color: rgba(167, 213, 191, 0.95);
  margin-bottom: 1.25rem;
}

.gfh-hero__headline {
  font-family: var(--ff-heading);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.gfh-hero__sub {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.80);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

/* Hero reveal: start from slightly further for impact */
.gfh-hero .reveal {
  transform: translateY(36px);
}

/* ───────────────────────────────────────────────────────────────────────────
   7.  CORE APPROACH SECTION
─────────────────────────────────────────────────────────────────────────── */
.gfh-approach {
  padding: var(--section-pad-y) 0;
  background-color: var(--clr-surface);
}

.gfh-approach__body {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--clr-text-body);
  line-height: 1.8;
  max-width: 68ch;
  margin: 0 auto;
}

/* Stats strip */
.gfh-stat__number {
  font-family: var(--ff-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--clr-green-deep);
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.gfh-stat__label {
  font-family: var(--ff-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 0;
}

/* Separator line above stats */
.gfh-approach__stats {
  border-top: 1px solid var(--clr-border);
  padding-top: 3rem;
  margin-top: 1rem !important;
}

/* ───────────────────────────────────────────────────────────────────────────
   7b. VISION SECTION
─────────────────────────────────────────────────────────────────────────── */
.gfh-vision {
  padding: clamp(6rem, 11vw, 9.5rem) 0;
  background-color: var(--clr-surface-alt);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}

.gfh-vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.75) 0%, rgba(240, 245, 242, 0) 70%);
  pointer-events: none;
}

.gfh-vision__inner {
  position: relative;
  z-index: 1;
}

.gfh-vision__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.15rem;
  background-color: rgba(47, 122, 89, 0.08);
  border: 1px solid rgba(110, 163, 137, 0.35);
  border-radius: 999px;
  font-family: var(--ff-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-green-deep);
  margin-bottom: 1.75rem;
}

.gfh-vision__title {
  font-family: var(--ff-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--clr-text-primary);
  margin-bottom: 2rem;
  line-height: 1.1;
}

.gfh-vision__text {
  font-family: var(--ff-body);
  font-size: clamp(1.12rem, 1.8vw, 1.38rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--clr-text-primary);
  max-width: 58ch;
  margin: 0 auto;
}

.gfh-vision__divider {
  width: 48px;
  height: 2px;
  background-color: var(--clr-green-sage);
  margin: 2.5rem auto 0;
  opacity: 0.6;
}

/* ───────────────────────────────────────────────────────────────────────────
   8.  SERVICES / ARCHITECTURE CARDS
─────────────────────────────────────────────────────────────────────────── */
.gfh-services {
  padding: var(--section-pad-y) 0;
  background-color: var(--clr-surface);
}

.gfh-card {
  background-color: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    box-shadow 0.35s var(--ease-out-expo),
    transform  0.35s var(--ease-out-expo),
    border-color 0.35s var(--ease-gentle);
  cursor: default;
  display: flex;
  flex-direction: column;
}

.gfh-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
  border-color: rgba(110, 163, 137, 0.40);
}

.gfh-card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 230px;
  background-color: var(--clr-surface-alt);
}

.gfh-card .card-img-top {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.gfh-card:hover .card-img-top {
  transform: scale(1.05);
}

.gfh-card__content {
  padding: 2rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gfh-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  background-color: var(--clr-green-pale);
  color: var(--clr-green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  transition:
    background-color 0.3s var(--ease-gentle),
    color            0.3s var(--ease-gentle);
}

.gfh-card:hover .gfh-card__icon {
  background-color: var(--clr-green-deep);
  color: #fff;
}

.gfh-card__title {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.gfh-card__body {
  font-size: 0.9rem;
  color: var(--clr-text-body);
  line-height: 1.75;
  margin-bottom: 0;
}

/* ───────────────────────────────────────────────────────────────────────────
   9.  PARTNERS SECTION
─────────────────────────────────────────────────────────────────────────── */
.gfh-partners {
  padding: var(--section-pad-y) 0;
  background-color: var(--clr-surface);
}

.gfh-partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gfh-partner-logo {
  display: block;
  width: 100%;
  max-width: 140px;
  height: auto;          /* Let SVG aspect ratio breathe */
  max-height: 52px;
  object-fit: contain;
  /* Monochrome luxury treatment — dark SVG paths → mid grey */
  filter: grayscale(100%) opacity(0.55) contrast(0.9);
  transition:
    filter    0.3s var(--ease-gentle),
    transform 0.3s var(--ease-gentle);
}

.gfh-partner-logo:hover {
  filter: grayscale(100%) opacity(0.85) contrast(1.05);
  transform: scale(1.06);
}

/* ───────────────────────────────────────────────────────────────────────────
   10. CONTACT / CTA SECTION
─────────────────────────────────────────────────────────────────────────── */
.gfh-contact {
  padding: var(--section-pad-y) 0;
  background-color: var(--clr-surface-alt);
  border-top: 1px solid var(--clr-border);
}

.gfh-contact__body {
  font-size: 1.05rem;
  color: var(--clr-text-body);
  line-height: 1.8;
  max-width: 54ch;
  margin: 0 auto 2.5rem;
}

/* ───────────────────────────────────────────────────────────────────────────
   11. FOOTER
─────────────────────────────────────────────────────────────────────────── */
.gfh-footer {
  background-color: var(--clr-text-primary);
  color: rgba(255, 255, 255, 0.88);
  padding: clamp(4rem, 8vw, 7rem) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gfh-footer__brand {
  font-family: var(--ff-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #ffffff;
  margin-bottom: 1rem;
}

.gfh-footer__tagline {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34ch;
  margin-bottom: 0;
}

.gfh-footer__nav-heading {
  font-family: var(--ff-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
}

.gfh-footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gfh-footer__nav-list li + li {
  margin-top: 0.6rem;
}

.gfh-footer__nav-list a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s var(--ease-gentle);
}

.gfh-footer__nav-list a:hover {
  color: #ffffff;
}

/* Footer bottom bar */
.gfh-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(3.5rem, 6vw, 5rem);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gfh-footer__bottom p,
.gfh-footer__copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

.footer-group-link {
  color: #6EA389;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-group-link:hover {
  color: #9AD1B8;
  text-decoration: underline;
}

.gfh-footer__legal {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0;
}

.gfh-footer__legal a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s var(--ease-gentle);
}

.gfh-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* ───────────────────────────────────────────────────────────────────────────
   12. RESPONSIVE OVERRIDES
─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .gfh-navbar .navbar-collapse {
    background-color: rgba(247, 250, 248, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-top: 0.75rem;
    border-radius: 4px;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-card);
  }

  .gfh-navbar:not(.gfh-navbar--scrolled) .nav-link {
    color: var(--clr-text-body) !important;
  }

  .gfh-navbar:not(.gfh-navbar--scrolled) .gfh-nav-cta {
    color: var(--clr-green-deep) !important;
    border-color: var(--clr-green-deep) !important;
  }

  .gfh-nav-links .nav-link {
    padding: 0.6rem 0 !important;
  }

  .gfh-nav-links .nav-link::after {
    left: 0;
    right: 0;
  }

  .gfh-nav-cta {
    display: inline-block;
    margin-top: 0.5rem;
  }

  .gfh-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .gfh-hero {
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 4rem;
    min-height: 100svh;
    background-position: center;
  }

  .gfh-approach__stats .col-6 {
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .gfh-approach__stats .col-6:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .gfh-card {
    padding: 2rem 1.5rem;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   13. REDUCED MOTION
─────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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