/* ==========================================================================
   home.css - homepage blocks: .hero, .cta, .services
   (.features / .card come from components.css)
   ========================================================================== */

/* ---------- shared dark section look ---------- */
.hero {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: var(--section-padding-y) var(--section-padding);
  background: radial-gradient(900px 450px at 90% -10%, rgba(212, 175, 55, 0.12), transparent 60%),
    linear-gradient(180deg, var(--sk-ink-2), var(--sk-slate));
  color: var(--sk-text-invert);
}

/* ---------- shared button recipe (sk-btn) ---------- */
.hero__button--primary,
.hero__button--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: fit-content;
  padding: 24px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1333em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  will-change: transform;
  transition-duration: 0.3s;
}

.hero__button--primary {
  background: linear-gradient(180deg, #e9c85a 0%, #f1cc42 66%, #ffc93e 100%);
  color: #0b0f14;
}

/* sweep: a white layer scales in from the left on hover */
.hero__button--primary::before,
.services__button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition-property: transform;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
}

.hero__button--primary:hover::before,
.services__button:hover::before {
  transform: scaleX(1);
}

.hero__button--ghost {
  background-color: var(--dark);
  border: 1px solid currentcolor;
  color: var(--sk-text-invert);
}

/* ---------- .hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  width: var(--container-width);
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 880px) {
  .hero__container { grid-template-columns: 1fr; }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  row-gap: var(--gap-sm);
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font: 600 12px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sk-text-soft);
}

.hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

.hero__title {
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(28px, 4.5vw, 48px);
  margin: 8px 0 12px;
}

.hero__title-sub {
  display: block;
  color: var(--sk-gold);
  font-size: 30%;
  line-height: 1.2em;
}

.hero__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.4;
  opacity: 0.9;
}

.hero__text {
  width: 100%;
  color: var(--sk-text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.75rem;
  row-gap: 0.75rem;
}

.hero__media {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  width: 100%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  background: radial-gradient(60% 60% at 80% 0%, rgba(212, 175, 55, 0.28), transparent 60%);
}

.hero__image {
  display: block;
  align-self: flex-end;
  width: min(420px, 100%);
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  overflow: hidden;
  background: #0f1423;
  border: 1px solid rgba(255, 255, 255, 0.1);
  filter: saturate(1.05) contrast(1.02);
}

/* ---------- .services - "How Do I Rank Websites…" alternating blocks ---------- */
.services {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  row-gap: clamp(2.5rem, 7.648vw + 0.97rem, 7.5rem);
  padding: 5rem 2.5rem;
}

.services__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: initial;
  width: var(--container-width);
  max-width: 100%;
  margin: 0 auto;
}

.services__block {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  gap: var(--gap-lg);
}

.services__headline,
.services__media {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  row-gap: 0.5rem;
  padding-top: 0;
}

.services__content {
  display: grid;
  gap: 2rem;
  align-items: initial;
  width: 100%;
}

.services__title {
  font-size: clamp(1.375rem, 3.25vw + 0.725rem, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.1em;
  font-weight: 700;
  margin-top: 0;
  padding-left: 0;
}

.services__subtitle {
  font-size: 24px;
  font-weight: 700;
  text-transform: capitalize;
}

.services__heading {
  font-size: clamp(1.5rem, 1.912vw + 1.118rem, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.1em;
  font-weight: 700;
  margin-top: 0;
  padding-left: 0;
}

.services__text {
  padding-top: 0;
}

.services__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  width: auto;
  max-width: 100%;
  padding: 0.5em 1em;
  border-width: 0;
  letter-spacing: 0.5px;
  text-align: center;
  overflow: hidden;
  will-change: transform;
}

.services__image {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 1020px) {
  .services__block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0 2.5rem;
    align-items: flex-start;
  }
  .services__headline,
  .services__media {
    row-gap: 0;
  }
}

@media (max-width: 1020px) {
  .services__headline,
  .services__media { order: 1; }
  .services__content { order: 2; }
}
