/* Grace & Harvests Estate homepage components. */

/* Hero slider */
.gh-hero-slider{position:relative;margin:0!important;padding:0!important;overflow:hidden;background:var(--gh-forest)}
.gh-hero-slider>.wp-block-group__inner-container{display:grid;max-width:none!important;margin:0!important}
.gh-hero-slider:not(:has(>.wp-block-group__inner-container)){display:grid}
.gh-hero-slider .gh-slide{grid-area:1/1;margin:0!important;min-height:min(100svh,900px)!important;padding-top:140px!important;padding-bottom:112px!important}
.gh-hero-slider .gh-slide h1,.gh-hero-slider .gh-slide .gh-h1{font-size:clamp(2.5rem,5.4vw,4.6rem)!important;margin-bottom:.3em!important}
.gh-hero-slider .gh-slide .wp-block-buttons{margin-top:22px}
.gh-hero-slider:not(.gh-slider-ready) .gh-slide+.gh-slide{display:none}
.gh-slider-ready .gh-slide{opacity:0;visibility:hidden;transition:opacity 1.2s ease,visibility 0s linear 1.2s}
.gh-slider-ready .gh-slide.is-active{opacity:1;visibility:visible;z-index:1;transition:opacity 1.2s ease}
.gh-slider-ready .gh-slide img.wp-block-cover__image-background{transform:scale(1.14);transition:transform 9s cubic-bezier(.2,.6,.2,1)}
.gh-slider-ready .gh-slide.is-active img.wp-block-cover__image-background{transform:scale(1)}
.gh-slider-nav{position:absolute;z-index:3;left:max(20px,calc((100% - 1200px)/2));bottom:32px;display:flex;align-items:center;gap:12px}
.gh-slider-nav button{width:54px;height:54px;border-radius:50%;border:2px solid rgba(255,255,255,.75);background:transparent;color:#fff;font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:background .25s,color .25s,border-color .25s}
.gh-slider-nav button:hover,.gh-slider-nav button:focus-visible{background:#fff;color:var(--gh-forest);border-color:#fff}
.gh-slide-count{color:rgba(255,255,255,.85);font-weight:700;font-size:.85rem;letter-spacing:.12em;margin-left:8px}
.gh-hero-slider>.gh-down{bottom:28px}
@media (prefers-reduced-motion: reduce){
  .gh-slider-ready .gh-slide,
  .gh-slider-ready .gh-slide.is-active{transition:none}
  .gh-slider-ready .gh-slide img.wp-block-cover__image-background,
  .gh-slider-ready .gh-slide.is-active img.wp-block-cover__image-background{transform:none;transition:none}
}

/* Dark sections */
.gh-section.gh-dark{background:var(--gh-forest)}
.gh-dark h1,.gh-dark h2,.gh-dark h3,.gh-dark p,.gh-dark li{color:#fff}
.gh-dark .wp-block-buttons{margin-top:34px}
.gh-dark .gh-eyebrow{color:var(--gh-gold)!important}
.gh-dark .gh-link a{color:#fff}
.gh-section.gh-dark+.gh-strip-sec{padding-top:0!important;position:relative;z-index:2}
.gh-section.gh-dark+.gh-strip-sec .gh-strip{margin-top:-110px!important;box-shadow:0 34px 60px -30px rgba(8,30,17,.55)}
.gh-section.gh-dark:has(+.gh-strip-sec){padding-bottom:calc(var(--gh-pad) + 110px)!important}

/* Crop and livestock photo cards */
.gh-photo-card .gh-eyebrow{color:#fff!important;font-size:.86rem!important;font-weight:800;letter-spacing:.16em;text-shadow:0 1px 2px rgba(0,0,0,.55),0 0 14px rgba(0,0,0,.35)}
.gh-photo-card .gh-eyebrow:before{width:28px;height:3px;background:var(--gh-gold);box-shadow:0 1px 3px rgba(0,0,0,.35)}
.gh-photo-card .gh-link a{color:#fff}
.gh-photo-card{border-radius:var(--gh-radius)!important;overflow:hidden;min-height:520px!important;padding:clamp(28px,4vw,48px)!important;align-items:flex-end!important;margin:0 0 22px!important;box-shadow:var(--gh-shadow)}
.gh-photo-card .wp-block-cover__background{background:linear-gradient(180deg,rgba(8,30,17,.05) 25%,rgba(8,30,17,.85) 100%)!important;opacity:1!important}
.gh-photo-card img.wp-block-cover__image-background{transition:transform 1.4s cubic-bezier(.2,.7,.2,1)}
.gh-photo-card:hover img.wp-block-cover__image-background{transform:scale(1.05)}
.gh-photo-card h2,.gh-photo-card h3{color:#fff!important;font-size:clamp(1.9rem,3.6vw,2.9rem)!important}
.gh-photo-card p{color:rgba(255,255,255,.92)!important;max-width:620px}
.gh-photo-card .gh-badge{width:58px;height:58px;border-radius:50%;background:var(--gh-gold);display:flex;align-items:center;justify-content:center}
/* Side by side, wider than the text column (about 3:2) */
.gh-pcards{width:min(1400px,calc(100vw - 64px))!important;max-width:none!important;margin-left:calc(50% - min(700px,calc(50vw - 32px)))!important;margin-right:0!important;gap:24px!important}
.gh-pcards .gh-photo-card{margin:0!important;height:100%;min-height:440px!important;padding:clamp(28px,3.2vw,44px)!important}
.gh-pcards .gh-photo-card .wp-block-cover__inner-container{max-width:540px}
.gh-pcards .gh-photo-card h2{font-size:clamp(1.7rem,2.6vw,2.4rem)!important}
.gh-pcards .gh-photo-card p:not(.gh-eyebrow):not(.gh-link){font-size:1rem!important;line-height:1.6!important}

/* Farm statistics */
.gh-stats{position:relative;overflow:hidden;background:var(--gh-cream)}
.gh-stats:before{content:"";position:absolute;inset:-90px 0;pointer-events:none;background:url(/wp-content/uploads/2026/11/contour-lines-pattern.webp) center/cover no-repeat;opacity:.5;filter:saturate(.3) brightness(1.05);
  -webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.06) 0%,rgba(0,0,0,.1) 42%,#000 66%);mask-image:linear-gradient(90deg,rgba(0,0,0,.06) 0%,rgba(0,0,0,.1) 42%,#000 66%)}
.gh-stats>*{position:relative}
.gh-stats h2{color:var(--gh-forest)!important}
.gh-stats p:not(.gh-eyebrow):not(.gh-stat-num):not(.gh-stat-label):not(.gh-link){color:#22332A!important;font-size:1.1rem!important;line-height:1.72!important}
.gh-stat{border-top:2px solid var(--gh-gold);padding-top:20px!important}
.gh-stat-num{font-size:clamp(3rem,6vw,4.8rem)!important;font-weight:800!important;color:var(--gh-forest)!important;line-height:1!important;margin:0!important;letter-spacing:-.04em}
.gh-stat-label{font-size:.9rem!important;font-weight:800!important;letter-spacing:.1em!important;text-transform:uppercase;color:var(--gh-forest)!important;margin-top:.5em!important}
.gh-visual{position:relative;max-width:440px;margin:0 auto;aspect-ratio:1}
.gh-visual .gh-disc{position:absolute;inset:6%;border-radius:50%;background-size:cover;background-position:center;box-shadow:var(--gh-shadow)}
.gh-visual .gh-pie{position:absolute;right:-2%;top:-2%;width:44%;aspect-ratio:1;border-radius:50%;background:conic-gradient(var(--gh-gold) 0 var(--gh-pie,45%),var(--gh-green) var(--gh-pie,45%) 100%);box-shadow:0 14px 30px -14px rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center}
.gh-visual .gh-pie span{width:58%;aspect-ratio:1;border-radius:50%;background:var(--gh-cream);display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800;color:var(--gh-forest);font-size:clamp(1rem,2.2vw,1.4rem);line-height:1}
.gh-visual .gh-pie small{font-size:.55em;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-top:4px;color:var(--gh-text)}
.gh-visual .gh-bars{position:absolute;left:-2%;bottom:2%;display:flex;gap:8px;align-items:flex-end;height:38%}
.gh-visual .gh-bars i{display:block;width:26px;border-radius:14px 14px 6px 6px;background:var(--gh-green)}
.gh-visual .gh-bars i:nth-child(2){background:var(--gh-leaf)}
.gh-visual .gh-bars i:nth-child(3){background:#7DB36B}
.gh-visual .gh-bars i:nth-child(4){background:var(--gh-gold)}
.gh-visual .gh-bars i:nth-child(1){height:78%}
.gh-visual .gh-bars i:nth-child(2){height:60%}
.gh-visual .gh-bars i:nth-child(3){height:44%}
.gh-visual .gh-bars i:nth-child(4){height:100%}
.gh-visual .gh-leafbadge{position:absolute;right:8%;bottom:14%;width:64px;height:64px;border-radius:50%;background:var(--gh-forest);display:flex;align-items:center;justify-content:center;box-shadow:var(--gh-shadow)}
@media (prefers-reduced-motion:no-preference){
  .gh-stats:before{transform:translateY(var(--gh-drift,0px))}
  .gh-visual .gh-pie{transform:rotate(var(--gh-chart-angle,0deg))}
  .gh-visual .gh-pie span{transform:rotate(calc(-1 * var(--gh-chart-angle,0deg)))}
  .gh-visual .gh-disc{transform:rotate(calc(-0.4 * var(--gh-chart-angle,0deg)))}
}

/* Buying steps */
.gh-timeline{position:relative;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px;margin-top:64px!important}
.gh-tl-track{position:absolute;left:0;right:0;top:46px;height:2px;background:rgba(255,255,255,.14);pointer-events:none}
.gh-tl-track i{position:absolute;inset:0;background:var(--gh-gold)}
.gh-tl-step{position:relative;margin:0!important}
.gh-tl-step .gh-tl-num{font-size:clamp(4.5rem,8vw,6.6rem)!important;font-weight:800!important;line-height:.8!important;letter-spacing:-.04em;color:var(--gh-gold)!important;display:inline-block;padding-right:18px;margin:0 0 26px!important;background:var(--gh-forest);position:relative;z-index:1}
@supports (-webkit-text-stroke:1px #000){.gh-tl-step .gh-tl-num{color:transparent!important;-webkit-text-stroke:1.6px var(--gh-gold)}}
.gh-tl-step h3{color:#fff!important;font-size:1.3rem!important;margin:0 0 10px!important}
.gh-tl-step p:not(.gh-tl-num){color:rgba(255,255,255,.82)!important;font-size:1.02rem!important;margin:0!important}
.gh-timeline>.wp-block-group__inner-container{display:contents}

/* Buying benefits */
.gh-why .gh-usp{gap:26px 30px!important}
.gh-why .gh-usp+.wp-block-buttons{margin-top:34px}
.gh-usp-item{position:relative;padding-left:48px!important;margin:0!important}
.gh-usp-item:before{content:"";position:absolute;left:0;top:2px;width:34px;height:34px;border-radius:50%;background:var(--gh-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312241A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat}
.gh-usp-item h3{font-size:1.12rem!important;margin:0 0 .35em!important}
.gh-usp-item p{font-size:.98rem!important;margin:0!important}

/* Farm photo ribbon */
.gh-section.gh-ribbon-sec{position:relative;padding:0 0 var(--gh-pad)!important;overflow:hidden}
.gh-ribbon{
  --gh-ribbon-gap:18px;
  --gh-ribbon-offset:22px;
  --gh-ribbon-duration:80s;
  width:100vw;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  overflow-x:auto;
}
.gh-ribbon-track{
  display:flex;
  gap:var(--gh-ribbon-gap);
  width:max-content;
}
.gh-ribbon-item{
  flex:none;
  width:380px;
  height:260px;
  margin:0!important;
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--gh-shadow);
}
.gh-ribbon-item:nth-child(even){margin-top:var(--gh-ribbon-offset)!important}
.gh-ribbon-item img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.gh-ribbon-moving{
  overflow:hidden;
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.gh-ribbon-moving .gh-ribbon-track{
  padding-inline-end:var(--gh-ribbon-gap);
  animation:gh-ribbon-loop var(--gh-ribbon-duration) linear infinite;
}
.gh-ribbon-moving.is-paused .gh-ribbon-track{animation-play-state:paused}
@keyframes gh-ribbon-loop{to{transform:translateX(-50%)}}
.gh-ribbon-toggle{
  position:absolute;
  right:max(20px,calc((100% - 1200px)/2));
  bottom:12px;
  min-height:44px;
  padding:6px 14px;
  border:1px solid var(--gh-forest);
  border-radius:999px;
  background:var(--gh-cream);
  color:var(--gh-forest);
  font-size:.86rem;
}
.gh-ribbon-toggle:hover,.gh-ribbon-toggle:focus-visible{background:var(--gh-forest);color:#fff}
@media (hover:hover){
  .gh-ribbon-moving:hover .gh-ribbon-track{animation-play-state:paused}
  .gh-ribbon-item img{transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
  .gh-ribbon-item:hover img{transform:scale(1.06)}
}

/* Responsive layout */
@media (min-width:1025px){
  .gh-why .gh-arch img{aspect-ratio:3/4;border-radius:50% 50% var(--gh-radius) var(--gh-radius)/37.5% 37.5% var(--gh-radius) var(--gh-radius)!important}
}
@media (max-width:900px){
  .gh-photo-card{min-height:440px!important}
  .gh-pcards{width:calc(100vw - 40px)!important;margin-left:calc(50% - 50vw + 20px)!important}
  .gh-pcards .gh-photo-card{min-height:380px!important}
  .gh-visual{max-width:340px;margin-top:30px}
  .gh-stats:before{-webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.06) 0%,rgba(0,0,0,.1) 52%,#000 74%);mask-image:linear-gradient(180deg,rgba(0,0,0,.06) 0%,rgba(0,0,0,.1) 52%,#000 74%)}
}
@media (max-width:820px){
  .gh-timeline{grid-template-columns:1fr;gap:36px;padding-left:34px!important}
  .gh-tl-track{left:6px;right:auto;top:8px;bottom:8px;width:2px;height:auto}
  .gh-tl-step .gh-tl-num{background:transparent;padding:0;margin-bottom:14px!important;font-size:3.6rem!important}
  .gh-tl-step:before{content:"";position:absolute;left:-34px;top:14px;width:12px;height:12px;border-radius:50%;background:var(--gh-gold);box-shadow:0 0 0 6px rgba(233,184,36,.18)}
  .gh-section.gh-dark+.gh-strip-sec{padding-top:0!important}
  .gh-section.gh-dark+.gh-strip-sec .gh-strip{margin-top:-60px!important}
  .gh-section.gh-dark:has(+.gh-strip-sec){padding-bottom:calc(var(--gh-pad) + 60px)!important}
}
@media (max-width:600px){
  .gh-stats-grid.gh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gh-hero-slider .gh-slide{min-height:640px!important;padding-bottom:100px!important}
  .gh-slider-nav button{width:46px;height:46px}
  .gh-photo-card{min-height:420px!important}
  .gh-ribbon{--gh-ribbon-gap:12px;--gh-ribbon-offset:14px;--gh-ribbon-duration:60s}
  .gh-ribbon-item{width:260px;height:180px;border-radius:18px}
}
