/* ============================================================
   4fold.net — Main Stylesheet
   Brand: Navy #21445B · Tan #DBDBBD · Green #0B8A62 · Accent #0FA676
   Fonts: Libre Franklin (sans) · Playfair Display (serif headings)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:         #21445B;
  --tan:          #DBDBBD;
  --green:        #0B8A62;
  --green-accent: #0FA676;
  --green-hover:  #097a57;
  --sage:         #C7DBBD;
  --sky:          #C5E8FF;
  --gray:         #ECECEC;
  --white:        #FFFFFF;
  --text-dark:    #21445B;
  --text-mid:     #4A6070;
  --text-light:   #6A8090;

  --font-sans:  'Libre Franklin', 'Trebuchet MS', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --max-w:   1100px;
  --pad-x:   2rem;
  --radius:  4px;

  /* Globe tuning — adjust --globe-cx to shift center left/right.
     Value is the horizontal center as a % of the hero element width.
     At 58% the center falls near the Testimonials nav item on a 1100px layout. */
  --globe-size: 440px;
  --globe-cx:   32%;
  --globe-top:  40px;
  --globe-opacity: 0.08;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }
blockquote { font-style: normal; }

/* ── Shared container ──────────────────────────────────────── */
.section-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-login {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5625rem 1.25rem;
  background: var(--green);
  color: var(--white) !important;
  text-decoration: none !important;
  border-radius: var(--radius);
  transition: background 0.15s ease;
  white-space: nowrap;
}
.btn-login:hover { background: var(--green-hover); }
.btn-login--hero {
  font-size: 0.9375rem;
  padding: 0.8125rem 1.75rem;
}
.btn-login--sm {
  font-size: 0.8125rem;
  padding: 0.4375rem 0.875rem;
}

/* ── Navigation ────────────────────────────────────────────── */
.site-header {
  background: var(--tan);
  border-bottom: 1px solid #C4C4A4;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.logo-img  { height: 38px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 1; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  position: relative;
  overflow: hidden;
  padding: 5rem var(--pad-x) 4.5rem;
}

/* Globe: absolutely positioned, bleeds off hero edges.
   Left is calculated so the globe CENTER sits at --globe-cx.
   Formula: left = globeCX - (globeSize / 2)               */
.hero-globe {
  position: absolute;
  width:  var(--globe-size);
  height: var(--globe-size);
  left: calc(var(--globe-cx) - (var(--globe-size) / 2));
  top:  var(--globe-top);
  opacity: var(--globe-opacity);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 3.5rem;
  align-items: center;
}
.hero-text    { flex: 1.3; }
.hero-image-wrap { flex: 1; }

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 0.9375rem;
}
.hero-heading {
  font-size: clamp(1.875rem, 3.2vw, 2.625rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.0625rem;
}
.hero-body {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.875rem;
  max-width: 400px;
}
.hero-recover {
  display: block;
  margin-top: 0.9375rem;
  font-size: 0.8125rem;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px solid #BCC8CA;
  width: fit-content;
  transition: color 0.15s, border-color 0.15s;
}
.hero-recover:hover { color: var(--navy); border-color: var(--navy); }

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-photo-credit {
  font-size: 0.625rem;
  color: #9A9A8A;
  text-align: right;
  margin-top: 0.375rem;
}
.hero-photo-credit a { text-decoration: underline; color: inherit; }
.hero-photo-credit a:hover { color: var(--text-mid); }

/* ── Section headings ──────────────────────────────────────── */
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1.75rem;
}

/* ── Benefits ──────────────────────────────────────────────── */
.benefits {
  background: var(--white);
  border-top: 1px solid #EAEAE0;
  padding: 4rem var(--pad-x);
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.benefit-card {
  background: var(--gray);
  padding: 1.375rem 1.5rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--green-accent);
}
.benefit-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4375rem;
}
.benefit-card p {
  font-size: 0.8125rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials {
  background: var(--tan);
  padding: 4rem var(--pad-x);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.testimonial-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-top: 3px solid var(--green-accent);
}
.testimonial-card blockquote {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-style: normal;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 0.875rem;
}
.testimonial-card cite {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green);
}

/* ── About ─────────────────────────────────────────────────── */
.about { background: var(--gray); padding: 4rem var(--pad-x); }
.about-inner {
  display: flex;
  gap: 3rem;
  align-items: center;
}
.about-image-wrap { flex: 1; }
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-photo-credit {
  font-size: 0.625rem;
  color: #9A9A8A;
  margin-top: 0.375rem;
}
.about-photo-credit a { text-decoration: underline; color: inherit; }
.about-text { flex: 1.2; }
.about-text h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.about-text p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--navy); padding: 1.5rem var(--pad-x); }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; align-items: center; gap: 1.25rem; }
.footer-links a:not(.btn-login) {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:not(.btn-login):hover { color: rgba(255,255,255,0.92); }

/* ── Content pages (Privacy, etc.) ─────────────────────────── */
.content-page { padding: 4.5rem var(--pad-x) 5rem; }
.content-page-inner { max-width: 760px; margin: 0 auto; }
.content-page-inner h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.content-page-inner .privacy-note {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}
.content-page-inner h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.25rem 0 0.5rem;
}
.content-page-inner p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero-inner    { flex-direction: column; gap: 2.5rem; }
  .hero-text     { text-align: center; }
  .hero-body     { max-width: 100%; }
  .hero-recover  { margin: 0.75rem auto 0; }
  .hero-globe    {
    --globe-size: 480px;
    --globe-cx:   50%;
    --globe-top:  -80px;
  }
  .benefits-grid      { grid-template-columns: 1fr; }
  .testimonials-grid  { grid-template-columns: 1fr; }
  .about-inner        { flex-direction: column; }
}

@media (max-width: 480px) {
  :root { --pad-x: 1.25rem; }
  .nav-links a:not(.btn-login) { display: none; }
  .hero-globe { display: none; }
}
