/*
Theme Name: Amberlight Guidance
Theme URI: https://powerfullovepsychic.com/
Author: Amberlight Guidance
Description: Own block theme for powerfullovepsychic.com — "Linen & Olive" design system: dusty rose-mauve and deep olive on a warm linen ground, Gelasio/Figtree type pairing, 6px-radius cards, dashed hairline dividers instead of drop shadows or gradients.
Requires at least: 6.5
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: amberlight-guidance
*/

/* Fallback rules for browsers/contexts that don't read theme.json-generated CSS
   (defensive only — WordPress generates the real presets from theme.json). */
body {
  background-color: #F4EEE4;
  color: #38322C;
}
a { text-decoration: none; }
.legal-links-row a { text-decoration: underline; }
.wp-block-button__link { border-radius: 6px !important; }
.wp-block-group.alg-footer a { color: inherit; }
.wp-block-separator { border-style: dashed !important; }
.alg-note {
  border: 1px dashed var(--wp--preset--color--tertiary);
  border-radius: 6px;
}

.alg-main {
  background:
    linear-gradient(180deg, rgba(244,238,228,1) 0%, rgba(255,255,255,1) 45%, rgba(244,238,228,1) 100%);
  overflow: clip;
}

.alg-main * {
  box-sizing: border-box;
}

.alg-main img {
  display: block;
  max-width: 100%;
  height: auto;
}

.alg-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) 0;
}

.alg-section + .alg-section {
  border-top: 1px dashed var(--wp--preset--color--mono-3);
}

.alg-section h1,
.alg-section h2,
.alg-section h3 {
  margin-top: 0;
  color: var(--wp--preset--color--mono-1);
  font-family: var(--wp--preset--font-family--fontprimary);
  line-height: 1.14;
}

.alg-section h1 {
  max-width: 860px;
  margin-right: auto;
  margin-bottom: 20px;
  margin-left: auto;
  font-size: clamp(44px, 7vw, 72px);
  letter-spacing: 0;
}

.alg-section h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0;
}

.alg-section h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: 0;
}

.alg-section p,
.alg-section li {
  color: var(--wp--preset--color--mono-2);
  font-family: var(--wp--preset--font-family--fontsecondary);
  font-size: 16px;
  line-height: 1.75;
}

.alg-section p {
  margin-top: 0;
}

.alg-lede {
  max-width: 720px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  font-size: clamp(18px, 2vw, 21px) !important;
}

.alg-eyebrow {
  margin-bottom: 10px !important;
  color: var(--wp--preset--color--tertiary) !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.alg-section__head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.alg-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.alg-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 6px;
  font-family: var(--wp--preset--font-family--fontsecondary);
  font-weight: 800;
  text-decoration: none;
}

.alg-button--primary {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--contrast-light);
}

.alg-button--ghost {
  border: 1px dashed var(--wp--preset--color--mono-3);
  background: rgba(255,255,255,0.7);
  color: var(--wp--preset--color--primary);
}

.alg-button--light {
  background: var(--wp--preset--color--contrast-light);
  color: var(--wp--preset--color--primary);
}

.alg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 auto 18px;
  padding: 7px 12px;
  border: 1px dashed var(--wp--preset--color--mono-3);
  border-radius: 999px;
  color: var(--wp--preset--color--tertiary);
  background: rgba(255, 255, 255, 0.58);
  font-family: var(--wp--preset--font-family--fontsecondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.alg-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--wp--preset--color--primary);
}

.alg-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  padding-top: clamp(54px, 8vw, 92px);
  padding-right: 24px;
  padding-bottom: clamp(54px, 8vw, 92px);
  padding-left: 24px;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(244,238,228,0.96) 0%, rgba(244,238,228,0.86) 42%, rgba(244,238,228,0.54) 100%),
    url("/wp-content/uploads/2026/08/alg-hero-editorial.webp") center / cover no-repeat;
}

.alg-hero::before {
  content: "";
  position: absolute;
  inset: clamp(18px, 4vw, 48px);
  height: auto;
  z-index: -1;
  border: 1px dashed rgba(124, 77, 86, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
}

.alg-hero__copy {
  max-width: 860px;
  margin: 0 auto;
}

.alg-hero__image {
  margin: 0 auto;
  border: 1px solid rgba(72, 81, 47, 0.2);
  box-shadow: 0 22px 70px rgba(42, 37, 32, 0.13);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.alg-hero__media {
  max-width: 920px;
  margin: 0 auto;
  display: none;
}

.alg-hero__note {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 18px 22px;
  border-left: 3px solid var(--wp--preset--color--tertiary);
  background: rgba(255, 255, 255, 0.56);
  text-align: left;
}

.alg-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -12px auto 28px;
  color: var(--wp--preset--color--mono-2);
  font-family: var(--wp--preset--font-family--fontsecondary);
  font-size: 14px;
  font-weight: 700;
}

.alg-trust-strip span {
  padding: 8px 11px;
  border: 1px dashed var(--wp--preset--color--mono-3);
  border-radius: 6px;
  background: var(--wp--preset--color--base);
}

.alg-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
}

.alg-split--reverse {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
}

.alg-callout,
.alg-card,
.alg-step,
.alg-faq article {
  border: 1px dashed var(--wp--preset--color--mono-3);
  border-radius: 6px;
  background: rgba(255,255,255,0.76);
}

.alg-callout {
  padding: clamp(22px, 4vw, 34px);
}

.alg-callout ul,
.alg-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.alg-card-grid {
  display: grid;
  gap: 18px;
}

.alg-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.alg-card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alg-card {
  padding: 24px;
}

.alg-card img {
  margin-bottom: 16px;
}

.alg-process {
  width: min(1120px, calc(100% - 48px));
  padding-right: clamp(18px, 4vw, 36px);
  padding-left: clamp(18px, 4vw, 36px);
  border-radius: 6px;
  background: var(--wp--preset--color--mono-4);
}

.alg-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.alg-step {
  padding: 24px;
  text-align: center;
}

.alg-step img {
  margin: 0 auto 14px;
}

.alg-illustration {
  display: grid;
  min-height: 300px;
  place-items: center;
  margin: 0;
  border: 1px dashed var(--wp--preset--color--mono-3);
  border-radius: 6px;
  background: rgba(233,223,206,0.65);
}

.alg-illustration img {
  width: min(72%, 320px);
}

.alg-dark {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  padding-left: max(24px, calc((100vw - 1120px) / 2));
  background: var(--wp--preset--color--featured);
}

.alg-dark .alg-section__head h2,
.alg-dark .alg-section__head p,
.alg-dark .alg-eyebrow,
.alg-card--dark h3,
.alg-card--dark li {
  color: var(--wp--preset--color--contrast-light) !important;
}

.alg-card--dark {
  border-color: rgba(244,238,228,0.32);
  background: rgba(244,238,228,0.08);
}

.alg-faq {
  display: grid;
  gap: 14px;
}

.alg-faq article {
  padding: 20px 24px;
}

.alg-faq article p {
  margin-bottom: 0;
}

.alg-centered-link {
  margin-top: 24px;
  text-align: center;
  font-weight: 800;
}

.alg-final-cta {
  width: 100%;
  max-width: none;
  padding-right: 24px;
  padding-left: 24px;
  background: var(--wp--preset--color--primary);
  text-align: center;
}

.alg-final-cta h2,
.alg-final-cta p {
  color: var(--wp--preset--color--contrast-light);
}

.alg-final-cta p {
  max-width: 620px;
  margin-right: auto;
  margin-bottom: 24px;
  margin-left: auto;
}

.alg-main a {
  text-underline-offset: 0.18em;
}

.alg-main a:focus-visible,
.alg-footer a:focus-visible,
header a:focus-visible {
  outline: 2px solid var(--wp--preset--color--tertiary);
  outline-offset: 3px;
}

.alg-main .wp-block-group[style*="grid-template-columns"] > div,
.alg-main div[style*="border:1px dashed"],
.alg-main div[style*="background:var(--wp--preset--color--base);border"] {
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.alg-main .wp-block-group[style*="grid-template-columns"] > div:hover,
.alg-main div[style*="border:1px dashed"]:hover {
  border-color: rgba(124, 77, 86, 0.65) !important;
  transform: translateY(-2px);
}

.wp-block-navigation a,
.legal-links-row a,
.alg-footer-links a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.wp-block-navigation a:hover,
.legal-links-row a:hover,
.alg-footer-links a:hover {
  text-decoration: underline;
}

.wp-block-button__link,
.alg-main a[style*="display:inline-block"] {
  min-height: 44px;
  box-shadow: 0 10px 26px rgba(54, 61, 34, 0.16);
}

.wp-block-button__link:hover,
.alg-main a[style*="display:inline-block"]:hover {
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .wp-block-columns.is-not-stacked-on-mobile {
    flex-wrap: wrap !important;
    gap: 14px;
  }

  .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
    flex-basis: auto !important;
    flex-grow: 1;
  }

  .wp-block-navigation__container {
    gap: 14px !important;
  }

  .alg-main div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  .alg-main div[style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  .alg-main div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .alg-main div[style*="display:flex;gap:16px"] {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .alg-hero {
    padding-top: 42px !important;
  }

  .alg-hero::before {
    inset: 14px;
    height: auto;
  }

  .alg-hero h1 {
    font-size: clamp(38px, 11vw, 46px) !important;
  }

  .alg-kicker {
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  .alg-hero__image {
    aspect-ratio: 4 / 3;
    width: min(100%, 520px) !important;
  }

  .alg-hero__note {
    padding: 16px;
  }

  .alg-trust-strip {
    justify-content: flex-start;
  }

  .wp-block-navigation__responsive-container-open {
    margin-left: auto;
  }

  .alg-footer .wp-block-columns,
  .alg-footer .wp-block-column {
    text-align: left;
  }

  .alg-footer-links,
  .legal-links-row {
    text-align: left !important;
  }
}

@media (max-width: 520px) {
  .alg-main > .wp-block-group,
  .alg-main .wp-block-group.alignwide,
  .alg-main .wp-block-group.alignfull {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .alg-main ul {
    padding-left: 1.1rem;
  }

  .alg-main a[style*="display:inline-block"] {
    width: 100%;
    text-align: center;
  }
}
