/* =========================================================
   Noble Finances — design tokens taken from the Figma site
   ========================================================= */
:root{
  /* palette */
  --green-900:#2E4F21;   /* primary text / dark surfaces */
  --green-700:#506349;   /* muted label text */
  --green-300:#A0F1BD;   /* nav + hero band */
  --green-200:#D2F8DC;   /* service card surface */
  --green-100:#D5E4D0;   /* text on dark surfaces */
  --grey-50:#F9F9F9;     /* section surface */
  --white:#FFF;

  /* type */
  --font-body:"Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label:"DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* fluid type scale — 40 → 80, 32 → 60, 28 → 40, 22 → 30 */
  --fs-h1:clamp(40px, 6.25vw, 80px);
  --fs-h2:clamp(32px, 4.7vw, 60px);
  --fs-h3:clamp(28px, 3.15vw, 40px);
  --fs-h4:clamp(22px, 2.35vw, 30px);
  --fs-quote:clamp(18px, 2.35vw, 30px);
  --fs-body:16px;
  --fs-small:12px;

  /* layout */
  --shell:1500px;
  --gutter:40px;
  --radius:20px;
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--white);
  color:var(--green-900);
  font-family:var(--font-body);
  font-size:var(--fs-body);
  font-weight:400;
  line-height:1.1;
  letter-spacing:-0.0072em;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{display:block;max-width:100%}
h1,h2,h3,p,figure,blockquote{margin:0}
ul{margin:0;padding:0;list-style:none}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--green-900);color:var(--white);
  padding:12px 20px;border-radius:0 0 8px 0;
}
.skip-link:focus{left:0}

:where(a,button,[tabindex]):focus-visible{
  outline:2px solid var(--green-900);
  outline-offset:3px;
  border-radius:4px;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:12px 20px;
  border-radius:999px;
  font-family:var(--font-body);
  font-weight:500;
  font-size:var(--fs-small);
  letter-spacing:-0.0054em;
  line-height:1.1;
  white-space:nowrap;
  cursor:pointer;
  transition:background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn--solid{background:var(--green-900);color:var(--white)}
.btn--solid:hover{background:#24401a;transform:translateY(-1px)}
.btn--light{background:var(--white);color:var(--green-900)}
.btn--light:hover{background:var(--green-200);transform:translateY(-1px)}
.btn--lg{
  padding:24px 30px;
  font-family:var(--font-label);
  font-size:15px;
  letter-spacing:-0.3px;
}

/* ---------------------------------------------------------
   Nav
   --------------------------------------------------------- */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--green-300);
}
.nav__inner{
  max-width:var(--shell);
  margin-inline:auto;
  min-height:101px;
  padding:32px var(--gutter);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.nav__logo img{width:133px;height:auto}
.nav__menu{display:flex;align-items:center;gap:20px}
.nav__link{
  font-weight:500;
  font-size:var(--fs-small);
  letter-spacing:-0.0054em;
  padding:12px 0;
}
.nav__link:hover{opacity:.7}

.nav__toggle{
  display:none;
  width:40px;height:40px;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  cursor:pointer;
}
.nav__toggle span{
  display:block;width:22px;height:2px;
  background:var(--green-900);
  border-radius:2px;
  transition:transform .25s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav__toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav__toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero{
  background:var(--green-300);
  border-radius:0 0 16px 16px;
}
.hero__inner{
  max-width:var(--shell);
  margin-inline:auto;
  padding:100px var(--gutter);
  display:flex;
  align-items:center;
  gap:80px;
}
.hero__copy{
  flex:1 1 0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:50px;
}
.hero__text{display:flex;flex-direction:column;gap:24px}
.hero h1{
  font-size:var(--fs-h1);
  font-weight:400;
  line-height:1;
  letter-spacing:-0.064em;
}
.hero__text p{max-width:46ch}
.hero__art{
  flex:0 0 auto;
  width:429px;
  max-width:45%;
}
.hero__art img{width:100%;height:auto;animation:float 7s ease-in-out infinite}

@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-14px)}
}

/* ---------------------------------------------------------
   Services
   --------------------------------------------------------- */
.services{
  background:var(--grey-50);
  padding:120px 0 100px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.services__head{
  max-width:var(--shell);
  width:100%;
  padding:0 var(--gutter);
  margin-bottom:106px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:28px;
  text-align:center;
}
.eyebrow{
  font-family:var(--font-label);
  font-weight:500;
  font-size:15px;
  letter-spacing:-0.3px;
  line-height:1;
}
.services__title{
  max-width:858px;
  font-size:var(--fs-h2);
  font-weight:400;
  line-height:1.05;
  letter-spacing:-0.042em;
}
.services__sub{max-width:60ch}

.service-row{
  max-width:var(--shell);
  width:100%;
  padding:20px var(--gutter);
  display:flex;
}
.service-row--left{justify-content:flex-start}
.service-row--right{justify-content:flex-end}

.card{
  width:min(var(--card-w, 1036px), 100%);
  background:var(--green-200);
  border-radius:var(--radius);
  padding:80px;
  display:flex;
  align-items:center;
  gap:70px;
}
.card--media-first{padding-right:100px}

.card__media{flex:1 1 0;min-width:1px}
.card__media img{
  width:100%;
  aspect-ratio:var(--ratio, 460/334);
  object-fit:cover;
  border-radius:8px;
}
.card__body{
  flex:1 1 0;
  min-width:1px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:70px;
}
.card__text{display:flex;flex-direction:column;gap:40px}
.card h3{
  font-size:var(--fs-h3);
  font-weight:400;
  line-height:1.05;
  letter-spacing:-0.018em;
}

.tags{display:flex;flex-wrap:wrap;gap:10px}
.tags li{
  padding:12px 18px;
  border-radius:999px;
  background:rgba(255,255,255,.75);
  color:var(--green-700);
  font-weight:500;
  font-size:var(--fs-small);
  letter-spacing:-0.0054em;
  line-height:1.1;
  white-space:nowrap;
}

/* ---------------------------------------------------------
   Testimonials
   --------------------------------------------------------- */
.testimonials{
  background:var(--grey-50);
  padding:100px var(--gutter);
  display:flex;
  justify-content:center;
}
.testimonials__inner{
  max-width:1200px;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:120px;
}
.testimonials__title{
  font-size:var(--fs-h2);
  font-weight:400;
  line-height:1.05;
  letter-spacing:-0.042em;
  text-align:center;
}
.testimonials__body{
  width:100%;
  display:flex;
  align-items:flex-start;
  gap:100px;
}

.tabs{
  flex:0 0 310px;
  width:310px;
  display:flex;
  flex-direction:column;
}
.tab{
  width:100%;
  min-height:128px;
  padding:40px 30px;
  border-radius:var(--radius);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:16px;
  text-align:left;
  cursor:pointer;
  color:var(--green-700);
  transition:background-color .25s ease, color .25s ease;
}
.tab:hover{background:rgba(46,79,33,.06)}
.tab.is-active{background:var(--green-900);color:var(--white)}
.tab__role{
  font-size:18px;
  line-height:1.05;
  letter-spacing:-0.0081em;
}
.tab__place{
  font-weight:500;
  font-size:var(--fs-small);
  letter-spacing:-0.0054em;
  line-height:1.1;
  color:inherit;
  opacity:1;
}
.tab.is-active .tab__place{color:var(--green-100)}

.quote{
  flex:1 1 0;
  min-width:1px;
  align-self:stretch;
  padding:0 30px 0 40px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:50px;
}
.quote__text{
  font-size:var(--fs-quote);
  line-height:1.1;
  letter-spacing:-0.0135em;
  text-indent:-0.45em;
  transition:opacity .25s ease;
}
.quote.is-fading .quote__text,
.quote.is-fading .quote__author{opacity:0}
.quote__author{
  display:flex;
  align-items:center;
  gap:28px;
  transition:opacity .25s ease;
}
.quote__avatar{
  width:46px;height:48px;
  border-radius:999px;
  object-fit:cover;
}

/* ---------------------------------------------------------
   Wide banner
   --------------------------------------------------------- */
.banner img{
  width:100%;
  aspect-ratio:1280/600;
  object-fit:cover;
}

/* ---------------------------------------------------------
   Audience pillars
   --------------------------------------------------------- */
.audience{
  background:var(--white);
  display:flex;
  justify-content:center;
}
.audience__inner{
  max-width:1600px;
  width:100%;
  padding:80px var(--gutter) 120px;
  display:flex;
  flex-direction:column;
  gap:160px;
}
.audience__head{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:50px;
}
.audience__head h2{
  flex:1 1 0;
  font-size:var(--fs-h2);
  font-weight:400;
  line-height:1.05;
  letter-spacing:-0.042em;
}
.audience__head p{flex:1 1 0}

.audience__grid{display:flex;align-items:stretch;gap:20px}
.pillar{
  flex:1 1 0;
  min-width:1px;
  border-left:1px solid var(--green-900);
  padding:20px 80px 20px 50px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:30px;
}
.pillar__icon{width:30px;height:30px;object-fit:contain}
.pillar h3{
  font-size:var(--fs-h4);
  font-weight:400;
  line-height:1.05;
  letter-spacing:-0.0135em;
}
.pillar__lead{font-weight:500}

/* ---------------------------------------------------------
   Plan
   --------------------------------------------------------- */
.plan{
  background:var(--white);
  display:flex;
  justify-content:center;
}
.plan__inner{
  max-width:var(--shell);
  width:100%;
  padding:50px var(--gutter);
  display:flex;
  align-items:stretch;
  gap:20px;
}
.plan__panel{
  flex:1 1 0;
  min-width:1px;
  background:var(--green-900);
  border-radius:var(--radius);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px;
}
.plan__text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:40px;
  color:var(--white);
}
.plan__title{
  font-size:var(--fs-h3);
  line-height:1.05;
  letter-spacing:-0.018em;
}
.plan__media{
  flex:1 1 0;
  min-width:1px;
}
.plan__media img{
  width:100%;
  height:100%;
  min-height:375px;
  object-fit:cover;
  border-radius:var(--radius);
}

/* ---------------------------------------------------------
   Closing CTA
   --------------------------------------------------------- */
.cta{
  background:var(--grey-50);
  padding:160px 120px;
  display:flex;
  justify-content:center;
}
.cta__inner{
  max-width:var(--shell);
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:60px;
  text-align:center;
}
.cta__title{
  font-size:var(--fs-h2);
  line-height:1.05;
  letter-spacing:-0.042em;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer{background:var(--green-900);color:var(--green-100)}
.footer__inner{
  max-width:var(--shell);
  margin-inline:auto;
  min-height:346px;
  padding:32px var(--gutter);
  display:flex;
  justify-content:space-between;
  align-items:stretch;
  gap:40px;
}
.footer__col{
  flex:1 1 0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:60px;
}
.footer__col--end{align-items:flex-end;text-align:right}
.footer__logo img{width:175px;height:auto}
.footer__tagline{display:flex;flex-direction:column;gap:8px;max-width:44ch}
.footer__strong{color:var(--white);font-weight:500;font-size:var(--fs-small);letter-spacing:-0.0054em}
.footer__tagline p:last-child{font-size:var(--fs-small)}
.footer__actions{display:flex;align-items:center;gap:35px}
.footer__link{font-weight:500;font-size:var(--fs-small);letter-spacing:-0.0054em}
.footer__link:hover{color:var(--white)}
.footer__copy{font-weight:500;font-size:var(--fs-small);letter-spacing:-0.0054em}

/* ---------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------- */
/* scoped to .js so content is never stuck hidden when JS is off */
.js .reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible{opacity:1;transform:none}

/* ---------------------------------------------------------
   Tablet — matches the 800px Figma breakpoint
   --------------------------------------------------------- */
@media (max-width:1100px){
  :root{--gutter:32px}

  .hero__inner{gap:48px}
  .hero__copy{gap:40px}

  .card{padding:56px;gap:48px}
  .card--media-first{padding-right:56px}
  .card__body{gap:48px}
  .card__text{gap:28px}

  .testimonials__inner{gap:72px}
  .testimonials__body{gap:48px}
  .tabs{flex-basis:260px;width:260px}
  .tab{padding:28px 24px;min-height:auto}
  .quote{padding:0}

  .audience__inner{gap:100px}
  .pillar{padding:20px 32px 20px 32px}

  .plan__inner{flex-direction:column}
  .plan__panel{padding:48px}
  .plan__media img{min-height:300px;max-height:420px}

  .cta{padding:120px 40px}

  .footer__inner{gap:32px}
  .footer__col{gap:48px}
}

/* ---------------------------------------------------------
   Mobile — matches the 375px Figma breakpoint
   --------------------------------------------------------- */
@media (max-width:799px){
  :root{--gutter:20px}

  .nav__inner{min-height:72px;padding:16px var(--gutter);flex-wrap:wrap}
  .nav__toggle{display:flex}
  .nav__menu{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    padding:8px 0 16px;
  }
  .nav__menu.is-open{display:flex}
  .nav__link{padding:8px 0}

  .hero__inner{
    flex-direction:column;
    align-items:flex-start;
    padding:56px var(--gutter) 64px;
    gap:40px;
  }
  .hero__copy{gap:32px;width:100%}
  .hero__art{width:100%;max-width:320px;align-self:center}

  .services{padding:72px 0 64px}
  .services__head{margin-bottom:56px;gap:20px}

  .service-row{padding:12px var(--gutter)}
  .card,
  .card--media-first,
  .card--media-last{
    flex-direction:column;
    align-items:stretch;
    padding:28px;
    gap:32px;
  }
  .card--media-last{flex-direction:column-reverse}
  .card__body{gap:32px}
  .card__text{gap:20px}
  .tags li{padding:10px 14px}

  .testimonials{padding:72px var(--gutter)}
  .testimonials__inner{gap:48px}
  .testimonials__body{flex-direction:column;gap:32px}
  .tabs{
    flex:0 0 auto;
    width:100%;
    flex-direction:row;
    gap:8px;
    overflow-x:auto;
    scrollbar-width:none;
    padding-bottom:4px;
  }
  .tabs::-webkit-scrollbar{display:none}
  .tab{
    flex:0 0 auto;
    min-width:200px;
    padding:20px;
    gap:8px;
  }
  .quote{gap:32px;align-self:auto}
  .quote__text{text-indent:0}
  .quote__author{gap:16px}

  .audience__inner{padding:56px var(--gutter) 72px;gap:56px}
  .audience__head{flex-direction:column;gap:20px}
  .audience__grid{flex-direction:column;gap:28px}
  .pillar{padding:0 0 0 20px;gap:16px}

  .plan__inner{padding:24px var(--gutter);gap:16px}
  .plan__panel{padding:32px}
  .plan__text{gap:28px}
  .plan__media img{min-height:220px;max-height:300px}

  .cta{padding:80px var(--gutter)}
  .cta__inner{gap:36px}
  .btn--lg{padding:18px 24px}

  .footer__inner{flex-direction:column;min-height:0;padding:40px var(--gutter)}
  .footer__col{gap:28px}
  .footer__col--end{align-items:flex-start;text-align:left}
  .footer__actions{gap:20px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .js .reveal{opacity:1;transform:none}
}
