/* Greenery homepage gateway to the 12 SEO/AEO service pages. */
.gdc-seo-hub {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(76px, 8vw, 128px) clamp(20px, 5vw, 80px);
  border-top: 1px solid rgba(212, 175, 95, .18);
  border-bottom: 1px solid rgba(212, 175, 95, .18);
  background:
    radial-gradient(circle at 88% 10%, rgba(212, 175, 95, .16), transparent 30%),
    linear-gradient(145deg, #06140e 0%, #0a2118 56%, #071710 100%);
  color: #fff;
}

.gdc-seo-hub::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .52;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 86px 86px;
}

.gdc-seo-inner {
  width: min(1360px, 100%);
  margin-inline: auto;
}

.gdc-seo-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 64px);
}

.gdc-seo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: #d4af5f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.gdc-seo-kicker::after {
  content: "";
  width: 54px;
  height: 1px;
  background: currentColor;
}

.gdc-seo-hub h2 {
  max-width: 880px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.gdc-seo-intro {
  margin: 0;
  color: rgba(255, 255, 255, .66);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
}

.gdc-seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gdc-seo-card {
  position: relative;
  display: flex;
  min-height: 224px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 68px 26px 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .26s ease, border-color .26s ease, background .26s ease, box-shadow .26s ease;
}

.gdc-seo-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(212, 175, 95, .18);
  border-radius: 50%;
}

.gdc-seo-num {
  color: #d4af5f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
}

.gdc-seo-card h3 {
  margin: 34px 0 8px;
  color: #fff;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.28;
}

.gdc-seo-card p {
  margin: 0;
  color: rgba(255, 255, 255, .60);
  font-size: 14px;
  line-height: 1.65;
}

.gdc-seo-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 50%;
  color: #efd888;
  font-size: 18px;
}

.gdc-seo-card:focus-visible {
  outline: 3px solid rgba(239, 216, 136, .75);
  outline-offset: 4px;
}

.gdc-seo-footer-label {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: #d4af5f !important;
}

@media (hover: hover) {
  .gdc-seo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 95, .55);
    background: rgba(212, 175, 95, .10);
    box-shadow: 0 22px 58px rgba(0, 0, 0, .24);
  }
}

@media (max-width: 991px) {
  .gdc-seo-head { grid-template-columns: 1fr; gap: 22px; }
  .gdc-seo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .gdc-seo-hub { padding: 64px 15px 76px; }
  .gdc-seo-hub h2 { font-size: clamp(35px, 10vw, 48px); }
  .gdc-seo-grid { grid-template-columns: 1fr; gap: 10px; }
  .gdc-seo-card { min-height: 178px; padding: 22px 62px 22px 22px; border-radius: 18px; }
  .gdc-seo-card h3 { margin-top: 24px; font-size: 23px; }
  .gdc-seo-arrow { top: 16px; right: 16px; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .gdc-seo-card { transition: none; }
}

/* Final coherence pass: keep the primary conversion path inside short laptop viewports. */
@media (min-width: 901px) and (max-height: 820px) {
  .hero-content {
    padding-top: 142px !important;
    padding-bottom: 72px !important;
  }

  #hero-title {
    max-width: 670px;
    font-size: clamp(76px, 6.3vw, 86px) !important;
    line-height: 1.04 !important;
  }

  .hero-copy {
    margin-top: 22px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .hero-actions { margin-top: 24px !important; }
}

/* Match the established Greenery type system inside the existing consent UI. */
#gdcCk,
#gdcCk button,
#gdcMenu,
#gdcMenu .cta {
  font-family: "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, "Segoe UI", sans-serif !important;
}

/* The consent decision takes priority; do not stack it with mobile conversion bars. */
@media (max-width: 991px) {
  body:has(#gdcCk.show) .mobile-dock,
  body:has(#gdcCk.show) #gdcDock,
  body:has(#gdcCk.show) .gx-cont {
    display: none !important;
  }

  #gdcCk {
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: calc(100% - 20px) !important;
  }
}

@media (max-width: 620px) {
  html body .gx-cont {
    right: auto !important;
    bottom: calc(60px + env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    width: min(250px, calc(100% - 96px)) !important;
  }

  #gdcCk {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  #gdcCk h4 {
    margin: 0 0 4px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  #gdcCk > p {
    display: -webkit-box;
    margin: 4px 0 10px !important;
    overflow: hidden;
    color: rgba(234, 243, 238, .70) !important;
    font-size: 12px !important;
    line-height: 1.48 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #gdcCk .ac { gap: 5px !important; }

  #gdcCk .ac button {
    min-height: 38px !important;
    padding-inline: 7px !important;
    font-size: 12px !important;
  }
}
