/* AgriHire Australia — Landing Page Enhancements
   Adds: hamburger nav, scroll-reveal, page transitions,
   How It Works, Testimonials, CTA Banner sections */

/* ─── MOBILE HAMBURGER BUTTON ─── */
.ham-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
  flex-shrink: 0;
}
.ham-line {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1),
              opacity 0.2s ease;
}
.ham-btn.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham-btn.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ham-btn.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE FULLSCREEN MENU ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 997;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mm-link {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  padding: 8px 0;
  display: block;
  transition: color 0.2s;
  text-align: center;
}
.mm-link:hover { color: var(--gold); }
.mm-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 12px 0;
}
.mm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin-top: 8px;
}
.mm-btn-green {
  padding: 15px;
  background: var(--agri);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.mm-btn-green:hover { background: var(--agri2); }
.mm-btn-ghost {
  padding: 15px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.mm-btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ─── PAGE TRANSITION OVERLAY ─── */
.page-fade {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.38s ease;
}
.page-fade.leaving { opacity: 1; pointer-events: all; }

/* ─── HERO BUTTON OVERRIDES ─── */
.btn-hero-primary {
  background: var(--agri) !important;
}
.btn-hero-primary:hover {
  background: var(--agri2) !important;
  box-shadow: 0 8px 28px rgba(74,155,63,0.35) !important;
}
nav .btn-primary {
  background: var(--agri) !important;
}
nav .btn-primary:hover {
  background: var(--agri2) !important;
}

/* ─── HOW IT WORKS SECTION ─── */
.how-section {
  padding: 100px 80px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.how-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.how-header {
  text-align: center;
  margin-bottom: 76px;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
  align-items: start;
}
.how-connector {
  position: absolute;
  top: 34px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--agri), var(--gold));
  opacity: 0.3;
  z-index: 0;
}
.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.how-num {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  position: relative;
  flex-shrink: 0;
}
.how-num::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px dashed currentColor;
  opacity: 0.2;
}
.step-1 .how-num { background: var(--navy); color: var(--gold); }
.step-2 .how-num { background: var(--agri); color: white; }
.step-3 .how-num { background: var(--gold); color: var(--navy); }
.how-step-icon {
  font-size: 38px;
  margin-bottom: 16px;
  line-height: 1;
}
.how-step-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--earth);
  margin-bottom: 12px;
}
.how-step-desc {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.75;
  max-width: 240px;
  margin: 0 auto;
}
.how-bottom-cta {
  text-align: center;
  margin-top: 60px;
}
.how-bottom-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--agri);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.2s;
}
.how-bottom-cta a:hover { gap: 12px; }

/* ─── TESTIMONIALS SECTION ─── */
.testimonials-section {
  padding: 100px 80px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,155,63,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.testimonials-section::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,168,83,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.testimonials-header {
  margin-bottom: 56px;
  position: relative; z-index: 1;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.tcard {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  flex-direction: column;
}
.tcard:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.14);
}
.tcard-stars {
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 18px;
  color: var(--gold);
}
.tcard-quote {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
  font-style: italic;
  flex: 1;
}
.tcard-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.tcard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.tcard-av-green { background: rgba(74,155,63,0.25); }
.tcard-av-gold  { background: rgba(212,168,83,0.2); }
.tcard-av-blue  { background: rgba(41,128,185,0.2); }
.tcard-name {
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.tcard-role {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* ─── CTA BANNER SECTION ─── */
.cta-banner-section {
  padding: 100px 80px;
  background: linear-gradient(135deg, #2E6B24 0%, var(--agri) 35%, #1A3B6E 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-banner-section::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.cta-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  color: white;
  margin-bottom: 20px;
}
.cta-heading em {
  color: var(--gold2);
  font-style: italic;
}
.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: 44px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-cta-white {
  padding: 17px 38px;
  background: white;
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}
.btn-cta-white:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
}
.btn-cta-outline {
  padding: 17px 38px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-cta-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}
.cta-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

/* ─── RESPONSIVE OVERRIDES FOR NEW SECTIONS ─── */
@media (max-width: 900px) {
  /* Show hamburger, hide desktop links */
  .ham-btn { display: flex; }
  nav .nav-links { display: none !important; }
  nav .nav-actions { display: none !important; }

  /* How It Works */
  .how-section { padding: 64px 24px; }
  .how-steps { grid-template-columns: 1fr; gap: 40px; }
  .how-connector { display: none; }

  /* Testimonials */
  .testimonials-section { padding: 64px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }

  /* CTA Banner */
  .cta-banner-section { padding: 64px 24px; }
  .cta-btn-group { flex-direction: column; align-items: center; }
  .btn-cta-white, .btn-cta-outline { width: 100%; max-width: 300px; justify-content: center; }
  .cta-trust { gap: 16px; }
}

@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .how-step-desc { max-width: 100%; }
}
