/* ==========================================================================
   GAK HOMEPAGE — EXTRA SECTIONS  (Midnight Ocean & Rustic Ivory)
   File: public/css/home-sections.css

   Covers: stats band · land promotion · reviews carousel · local SEO block.
   Drop-in replacement — every original class name is preserved.

   PALETTE
   Midnight Navy #071A3A · Ocean Blue #234B78 · Steel Blue #669BC5
   Ice Blue #B7D9EF · Denim #6593BC · Ivory #E5E0D7 · Sand #CFC7B8
   Stone #8C8A80 · Ink #0A1526

   SECTIONS
   01. Tokens
   02. Stats band
   03. Land promotion
   04. Reviews carousel
   05. Local SEO block
   06. Motion & reveal
   07. Responsive
   08. Accessibility & print
   ========================================================================== */


/* ==========================================================================
   01. TOKENS
   ========================================================================== */
:root {
  --hs-navy:     #071A3A;
  --hs-navy-2:   #04101F;
  --hs-navy-3:   #102E5C;
  --hs-ocean:    #234B78;
  --hs-steel:    #669BC5;
  --hs-denim:    #6593BC;
  --hs-ice:      #B7D9EF;
  --hs-ice-50:   #DCEBF7;
  --hs-ivory:    #E5E0D7;
  --hs-ivory-50: #F5F2EB;
  --hs-sand:     #CFC7B8;
  --hs-stone:    #8C8A80;
  --hs-muted:    #5C6A7A;
  --hs-line:     rgba(35, 75, 120, .14);
  --hs-line-2:   rgba(35, 75, 120, .26);

  --hs-grad-navy: linear-gradient(150deg, #04101F 0%, #071A3A 34%, #234B78 82%, #2F5C8A 100%);
  --hs-grad-ice:  linear-gradient(180deg, #E4F1FA 0%, #B7D9EF 50%, #669BC5 100%);
  --hs-grad-sheen:linear-gradient(115deg, transparent 26%, rgba(255,255,255,.6) 46%, transparent 64%);

  --hs-e1: 0 1px 2px rgba(7,26,58,.06), 0 2px 6px rgba(7,26,58,.05);
  --hs-e2: 0 4px 10px -2px rgba(7,26,58,.10), 0 12px 24px -12px rgba(7,26,58,.16);
  --hs-e3: 0 10px 24px -8px rgba(7,26,58,.18), 0 30px 60px -30px rgba(7,26,58,.30);
  --hs-e4: 0 18px 40px -12px rgba(7,26,58,.26), 0 50px 90px -40px rgba(7,26,58,.40);
  --hs-bevel: inset 0 1px 0 rgba(255,255,255,.9);

  --hs-ease: cubic-bezier(.16, 1, .3, 1);
  --hs-t: .4s var(--hs-ease);

  --hs-tex-plaster: url("../img/textures/plaster.jpg");
  --hs-tex-denim:   url("../img/textures/denim.jpg");

  --hs-grain: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='.55'/%3E%3C/svg%3E");

  --hs-grid: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0v64' fill='none' stroke='%23B7D9EF' stroke-opacity='.12' stroke-width='1'/%3E%3C/svg%3E");

  --hs-twill: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M-2 6 6-2M2 10 10 2' stroke='%23669BC5' stroke-opacity='.4' stroke-width='1'/%3E%3C/svg%3E");
}


/* ==========================================================================
   02. STATS BAND
   ========================================================================== */
.gak-stats-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(34px, 4.4vw, 56px) 0 clamp(28px, 3.6vw, 44px);
  color: #fff;
  background: var(--hs-grad-navy);
}

/* denim twill + grain */
.gak-stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hs-tex-denim) center/cover no-repeat;
  opacity: .22;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.gak-stats-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--hs-grain), var(--hs-grid);
  background-size: 180px 180px, 64px 64px;
  opacity: .12;
  mix-blend-mode: overlay;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.gak-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 24px);
}

.gak-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px clamp(8px, 1.6vw, 20px);
  border-right: 1px solid rgba(183, 217, 239, .2);
}

.gak-stat:last-child { border-right: 0; }

/* value — ice gradient numerals, not gold */
.gak-stat strong {
  color: var(--hs-ice);
  background: linear-gradient(165deg, #FFFFFF 0%, var(--hs-ice) 55%, var(--hs-steel) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}

.gak-stat span {
  color: rgba(228, 239, 248, .82);
  font-size: clamp(.68rem, .95vw, .8rem);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.5;
}

/* small ice rule under each stat — reads as a progress tick */
.gak-stat::after {
  content: "";
  position: absolute;
  left: clamp(8px, 1.6vw, 20px);
  bottom: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--hs-ice), rgba(183, 217, 239, 0));
  opacity: .55;
  transition: width .5s var(--hs-ease), opacity .5s var(--hs-ease);
}
.gak-stat:hover::after { width: 54px; opacity: 1; }

.gak-stat-note {
  margin: clamp(16px, 2vw, 22px) auto 0;
  max-width: 720px;
  color: rgba(183, 217, 239, .55);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
}


/* ==========================================================================
   03. LAND PROMOTION
   ========================================================================== */
.gak-land-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0;
  background: linear-gradient(180deg, #F8F6F0 0%, var(--hs-ivory-50) 48%, #EFEAE1 100%);
}

/* ivory plaster texture */
.gak-land-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hs-tex-plaster) center/cover no-repeat;
  opacity: .38;
  mix-blend-mode: multiply;
  filter: contrast(.92) brightness(1.07);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 86%, transparent);
}

/* drifting navy aura */
.gak-land-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -12%;
  left: -10%;
  width: 42vw;
  height: 42vw;
  max-width: 660px;
  max-height: 660px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 155, 197, .2), transparent 66%);
  filter: blur(50px);
  pointer-events: none;
  animation: hsDrift 26s var(--hs-ease) infinite alternate;
}

.gak-land-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
}

.gak-land-content h2,
.gak-local-seo h2 {
  margin: 14px 0 20px;
  color: var(--hs-navy);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  text-wrap: balance;
}

.gak-land-content > p,
.gak-local-seo p {
  color: var(--hs-muted);
  font-size: clamp(.96rem, 1.1vw, 1.02rem);
  line-height: 1.85;
}

/* checklist */
.gak-land-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.gak-land-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #2B3A48;
  font-size: .96rem;
  line-height: 1.6;
}

/* Masked SVG icons (.icon) are drawn by a mask, so a tile fill would be
   clipped to the glyph — keep them as clean bare ticks. */
.gak-land-list i.icon,
.gak-land-list i[class*="icon-"] {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 5px;
  background-color: var(--hs-steel);
}

/* Classic icon-font <i> (Font Awesome etc.) gets the ice tile instead */
.gak-land-list i:not(.icon) {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 2px;
  border-radius: 7px;
  background: linear-gradient(160deg, #EAF2F9, #D2E3F1);
  box-shadow: var(--hs-bevel);
  color: var(--hs-ocean);
  font-size: 10px;
}
/* inline SVG ticks work too */
.gak-land-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
  stroke: var(--hs-steel);
}

/* 3D visual card */
.gak-land-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 400px;
  padding: clamp(22px, 2.6vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(183, 217, 239, .3);
  border-radius: 20px;
  background:
    linear-gradient(0deg, rgba(4, 16, 31, .94) 0%, rgba(7, 26, 58, .55) 46%, rgba(7, 26, 58, .08) 100%),
    var(--hs-land-image, url("../img/land.jpg")) center / cover no-repeat;
  box-shadow: var(--hs-e4);
  transform: perspective(1400px) rotateY(2deg);
  transition: transform .85s var(--hs-ease), box-shadow .85s var(--hs-ease);
}
.gak-land-visual:hover {
  transform: perspective(1400px) rotateY(0deg) translateY(-4px);
  box-shadow: 0 34px 74px -28px rgba(7, 26, 58, .55);
}

/* grain + a hairline of ice light along the top */
.gak-land-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--hs-grain);
  background-size: 180px 180px;
  opacity: .14;
  mix-blend-mode: overlay;
}
.gak-land-visual::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 217, 239, .8), transparent);
}

.gak-land-visual-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  color: #fff;
}

.gak-land-visual-inner > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(183, 217, 239, .34);
  border-radius: 999px;
  background: rgba(183, 217, 239, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  color: #EAF4FC;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.gak-land-visual-inner > span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hs-ice);
}

.gak-land-visual-inner strong {
  display: block;
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 840;
  letter-spacing: -.04em;
  line-height: 1.06;
  text-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}

.gak-land-visual-inner p {
  margin: 0;
  max-width: 34ch;
  color: rgba(228, 239, 248, .84);
  font-size: .82rem;
  line-height: 1.7;
}


/* ==========================================================================
   04. REVIEWS CAROUSEL
   ========================================================================== */
.gak-reviews-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(22px, 2.6vw, 30px);
}

.gak-reviews-heading .section-head { margin-bottom: 0; text-align: left; }

.gak-carousel-controls {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

/* 3D round controls */
.gak-carousel-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--hs-line-2);
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #F3F1EB);
  box-shadow: var(--hs-e1), var(--hs-bevel);
  color: var(--hs-navy);
  font-size: 18px;
  cursor: pointer;
  transition: transform .25s var(--hs-ease), background .25s var(--hs-ease),
              color .25s var(--hs-ease), border-color .25s var(--hs-ease),
              box-shadow .25s var(--hs-ease), opacity .25s var(--hs-ease);
}
.gak-carousel-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hs-grad-sheen);
  transform: translateX(-130%);
  transition: transform .8s var(--hs-ease);
}

.gak-carousel-btn:hover,
.gak-carousel-btn:focus-visible {
  border-color: transparent;
  background: var(--hs-grad-navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -14px rgba(7, 26, 58, .85);
}
.gak-carousel-btn:hover::after,
.gak-carousel-btn:focus-visible::after { transform: translateX(130%); }
.gak-carousel-btn:active { transform: translateY(1px) scale(.98); }

.gak-carousel-btn:disabled {
  opacity: .38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.gak-carousel-btn:disabled::after { display: none; }

.gak-reviews-viewport {
  overflow: hidden;
  width: 100%;
  outline-offset: 4px;
}

.gak-reviews-track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  transition: transform .6s var(--hs-ease);
  will-change: transform;
}

.gak-review-slide {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  margin: 0;
}

/* give the shared review card the new surface treatment */
.gak-review-slide .review-card {
  height: 100%;
  border-radius: 18px;
  border: 1px solid var(--hs-line);
  background: linear-gradient(180deg, #FFFFFF, #FBFAF6);
  box-shadow: var(--hs-e2), var(--hs-bevel);
  transition: transform .5s var(--hs-ease), box-shadow .5s var(--hs-ease),
              border-color .5s var(--hs-ease);
}
.gak-review-slide .review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(102, 155, 197, .5);
  box-shadow: var(--hs-e4), var(--hs-bevel);
}

.gak-review-slide .review-stars { color: var(--hs-steel); }
.gak-review-slide .review-quote {
  color: #41505E;
  font-size: .96rem;
  line-height: 1.8;
}

/* status row */
.gak-carousel-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: clamp(18px, 2.2vw, 24px);
  padding-top: 16px;
  border-top: 1px solid var(--hs-line);
  color: var(--hs-muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.gak-carousel-hint { color: var(--hs-stone); font-weight: 600; }

/* optional progress bar (add .gak-carousel-progress in markup) */
.gak-carousel-progress {
  position: relative;
  flex: 1;
  height: 3px;
  max-width: 260px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(35, 75, 120, .12);
}
.gak-carousel-progress > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 33%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--hs-steel), var(--hs-ice));
  transition: width .5s var(--hs-ease);
}


/* ==========================================================================
   05. LOCAL SEO BLOCK
   ========================================================================== */
.gak-local-seo { max-width: 900px; }
.gak-local-seo p { margin-bottom: 15px; }
.gak-local-seo p:last-child { margin-bottom: 0; }


/* ==========================================================================
   06. MOTION & REVEAL
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .gak-stat,
  .gak-land-content,
  .gak-land-visual,
  .gak-reviews-heading,
  .gak-review-slide,
  .gak-local-seo {
    animation: hsRise .85s var(--hs-ease) both;
    animation-delay: calc(var(--i, 0) * 90ms);
  }

  /* stats cascade left → right */
  .gak-stats-grid .gak-stat:nth-child(1) { --i: 0; }
  .gak-stats-grid .gak-stat:nth-child(2) { --i: 1; }
  .gak-stats-grid .gak-stat:nth-child(3) { --i: 2; }
  .gak-stats-grid .gak-stat:nth-child(4) { --i: 3; }

  /* slides cascade inside the carousel */
  .gak-reviews-track .gak-review-slide:nth-child(1) { --i: 0; }
  .gak-reviews-track .gak-review-slide:nth-child(2) { --i: 1; }
  .gak-reviews-track .gak-review-slide:nth-child(3) { --i: 2; }
  .gak-reviews-track .gak-review-slide:nth-child(4) { --i: 3; }
  .gak-reviews-track .gak-review-slide:nth-child(5) { --i: 4; }
  .gak-reviews-track .gak-review-slide:nth-child(6) { --i: 5; }

  /* the stat value pops a touch later */
  .gak-stat strong {
    animation: hsPop .9s var(--hs-ease) both;
    animation-delay: calc(var(--i, 0) * 90ms + 120ms);
  }
}

@keyframes hsRise {
  from { opacity: 0; transform: translateY(24px); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes hsPop {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes hsDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3vw, 2vw, 0) scale(1.1); }
}

/* scroll-driven reveal for the two big blocks (Chrome/Edge 115+) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .gak-land-content,
    .gak-land-visual,
    .gak-local-seo {
      animation: hsRise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
      animation-delay: 0ms;
    }
  }
}


/* ==========================================================================
   07. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .gak-land-visual { transform: none; }
}

@media (max-width: 900px) {
  .gak-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 0;
  }

  .gak-stat:nth-child(odd) { border-right: 1px solid rgba(183, 217, 239, .18); }
  .gak-stat:nth-child(2) { border-right: 0; }
  .gak-stat:nth-child(n+3) { padding-top: 18px; }

  .gak-land-grid {
    grid-template-columns: 1fr;
    gap: clamp(26px, 4vw, 38px);
  }

  .gak-land-visual { min-height: 340px; }

  .gak-review-slide { flex: 0 0 calc((100% - 22px) / 2); }
}

@media (max-width: 640px) {
  .gak-stats-section { padding: 26px 0 22px; }

  .gak-stat { gap: 4px; padding: 10px 8px; }
  .gak-stat span { font-size: .66rem; line-height: 1.45; }
  .gak-stat::after { left: 8px; width: 18px; }
  .gak-stat-note { font-size: .6rem; letter-spacing: .06em; }

  .gak-land-section { padding: clamp(44px, 9vw, 64px) 0; }

  .gak-land-list { gap: 11px; margin: 20px 0 26px; }
  .gak-land-list li { font-size: .92rem; }

  .gak-land-visual {
    min-height: 300px;
    padding: 20px;
    border-radius: 16px;
  }

  .gak-reviews-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .gak-reviews-heading .section-head { text-align: left; }

  .gak-carousel-btn { width: 42px; height: 42px; font-size: 16px; }

  .gak-review-slide { flex: 0 0 100%; }

  .gak-carousel-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    font-size: .72rem;
  }
  .gak-carousel-progress { max-width: 100%; width: 100%; }
}

@media (max-width: 420px) {
  .gak-stat strong { font-size: 22px; }
  .gak-land-visual-inner strong { font-size: 24px; }
  .gak-carousel-btn { width: 38px; height: 38px; }
}


/* ==========================================================================
   08. ACCESSIBILITY & PRINT
   ========================================================================== */
.gak-carousel-btn:focus-visible {
  outline: 2px solid var(--hs-steel);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .gak-land-section::after { animation: none; }

  .gak-stat,
  .gak-stat strong,
  .gak-land-content,
  .gak-land-visual,
  .gak-reviews-heading,
  .gak-review-slide,
  .gak-local-seo {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
  }

  .gak-reviews-track,
  .gak-carousel-btn,
  .gak-carousel-btn::after,
  .gak-land-visual { transition: none !important; }
  .gak-reviews-track { scroll-behavior: auto; }
}

@media (prefers-contrast: more) {
  .gak-stat span { color: #fff; }
  .gak-stat-note { color: rgba(255, 255, 255, .9); }
  .gak-review-slide .review-card { border-width: 2px; }
  .gak-land-list li { color: #1B2833; }
}

@media print {
  .gak-stats-section {
    padding: 6mm 0;
    color: #000;
    background: #fff !important;
  }
  .gak-stats-section::before,
  .gak-stats-section::after,
  .gak-land-section::before,
  .gak-land-section::after,
  .gak-land-visual::before,
  .gak-land-visual::after { display: none !important; }

  .gak-stat { border-right: 1px solid #ccc; }
  .gak-stat strong {
    color: #000;
    -webkit-text-fill-color: #000;
  }
  .gak-stat span { color: #333; }

  .gak-land-section { background: #fff; padding: 8mm 0; }
  .gak-land-visual { box-shadow: none; border: 1px solid #ccc; transform: none; }
  .gak-review-slide .review-card { box-shadow: none; border: 1px solid #ccc; }
  .gak-carousel-controls { display: none !important; }
  .gak-reviews-viewport { overflow: visible; }
  .gak-reviews-track { display: block; }
  .gak-review-slide { width: 100% !important; flex-basis: 100% !important; margin-bottom: 6mm; }
}
