/*
Theme Name: Halacards Child
Theme URI: https://halacards.com
Description: Astra child theme for Halacards, spiritual greeting cards.
Author: Halacards
Template: astra
Version: 1.1.0
Text Domain: halacards-child
*/

/* ==========================================================================
   1. Brand tokens (PRD 3.1) + dark mode (PRD 3.2)
   ========================================================================== */
:root {
  --hc-bg:        #FDFAF6;   /* warm off-white */
  --hc-ink:       #1A1A2E;   /* deep navy */
  --hc-gold:      #C9A84C;   /* spiritual gold */
  --hc-sage:      #6B9E78;   /* SDG green */
  --hc-blush:     #E8A598;   /* warm accent */
  --hc-muted:     #686878;   /* secondary text (PRD #7A7A8C darkened to hold 4.5:1 on --hc-bg) */
  --hc-border:    #E5E0D8;   /* card borders */
  --hc-radius:    12px;
  --hc-radius-lg: 24px;
  --hc-shadow:    0 4px 24px rgba(26,26,46,0.08);
  --hc-shadow-hover: 0 12px 32px rgba(26,26,46,0.16);
  --hc-font-head: 'Playfair Display', Georgia, serif;
  --hc-font-body: 'Inter', system-ui, sans-serif;
  --hc-transition: 220ms ease;

  /* extras */
  --hc-surface:   #FFFFFF;
  --hc-pop:       #C2410C;   /* accent for the one highlighted headline phrase */
  --hc-gold-text: #7D6318;   /* gold used as text on light backgrounds (>= 4.5:1) */
  --hc-hero-bg:   linear-gradient(135deg, #FFF1D2 0%, #FFE3D8 55%, #FFF8E8 100%);
  --hc-s-about:   #E6F3EA;   /* soft sage */
  --hc-s-how:     #FFF0CF;   /* warm sunshine */
  --hc-s-featured:#FFE6E0;   /* blush */
  --hc-s-shop:    #E8ECFA;   /* soft periwinkle */
  --hc-s-faq:     #FFF8EA;   /* cream */
  --hc-s-cta:     #F6D98A;   /* gold */
  --hc-max:       1180px;
  --hc-header-h:  72px;

  /* type scale (PRD 3.3) */
  --hc-h1:    2.5rem;
  --hc-h2:    1.75rem;
  --hc-h3:    1.25rem;
  --hc-body:  1rem;
  --hc-small: 0.875rem;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --hc-h1: 3rem; --hc-h2: 2rem; } }
@media (max-width: 600px) { :root { --hc-header-h: 64px; } }

:root[data-theme="dark"] {
  --hc-bg:    #12111A;
  --hc-ink:   #F0EDE8;
  --hc-border:#2E2D3A;
  --hc-muted: #A9A7BA;
  --hc-surface: #1B1A26;
  --hc-pop:   #FFD25E;
  --hc-gold-text: #E3C46E;
  --hc-shadow: 0 4px 24px rgba(0,0,0,0.4);
  --hc-shadow-hover: 0 12px 32px rgba(0,0,0,0.55);
  --hc-hero-bg: linear-gradient(135deg, #211c2e 0%, #1b1726 55%, #14222a 100%);
  --hc-s-about:#18261f; --hc-s-how:#2a2418; --hc-s-featured:#2a1d22; --hc-s-shop:#1c2034; --hc-s-faq:#1b1a26; --hc-s-cta:#3a3118;
  color-scheme: dark;
}

/* ==========================================================================
   2. Base + Astra overrides
   ========================================================================== */
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body { overflow-x: clip; }
/* Phones: the sideways-scrolling card strip must never widen the page (it made the Home page sway). */
html { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html body,
html body.ast-separate-container,
html body .site-content,
html body #content {
  background-color: var(--hc-bg) !important;
  color: var(--hc-ink);
  font-family: var(--hc-font-body);
  font-size: var(--hc-body);
  line-height: 1.6;
}
body h1, body h2, body h3, body h4 {
  font-family: var(--hc-font-head);
  color: var(--hc-ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
body h1 { font-size: var(--hc-h1); }
body h2 { font-size: var(--hc-h2); }
body h3 { font-size: var(--hc-h3); }
body a { color: inherit; }
body p { margin-bottom: 1em; }
img { max-width: 100%; height: auto; }

/* Full-bleed pages: neutralise Astra's container/title chrome. */
body.hc-full .ast-container { max-width: none; padding: 0; display: block; }
body.hc-full #primary { width: 100%; margin: 0; padding: 0; }
body.hc-full .site-content .ast-container { display: block; }
body.hc-full .entry-header,
body.hc-full .ast-archive-description { display: none; }
#ast-scroll-top { display: none !important; }

/* Astra blog/pages keep a readable measure and brand colours. */
body:not(.hc-full) .ast-container { max-width: 1100px; }
body:not(.hc-full) .entry-title a { color: var(--hc-ink); }
body:not(.hc-full) .ast-article-post,
body:not(.hc-full) .ast-article-single { background: var(--hc-surface) !important; border-radius: var(--hc-radius); }

/* Focus (PRD 8): visible 2px gold ring on every interactive element. */
:focus-visible {
  outline: 2px solid var(--hc-gold) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--hc-bg) 85%, transparent);
}

.hc-sr, .skip-link.screen-reader-text:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link.screen-reader-text:focus {
  background: var(--hc-gold); color: #1A1A2E; padding: .75rem 1.25rem; z-index: 100000;
  top: 8px; left: 8px; font-weight: 600; border-radius: 8px; clip: auto; width: auto; height: auto;
}

.hc-container { width: min(100% - 2rem, var(--hc-max)); margin-inline: auto; }
.hc-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.hc-section--alt { background: color-mix(in srgb, var(--hc-border) 30%, var(--hc-bg)); }
.hc-eyebrow { font-size: var(--hc-small); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hc-gold-text); margin: 0 0 .75rem; }
.hc-lead { font-size: 1.125rem; color: var(--hc-muted); max-width: 52ch; }
.hc-section-head { max-width: 640px; margin-bottom: 2.5rem; }
.hc-section-head--center { margin-inline: auto; text-align: center; }
.hc-section-head--center .hc-lead { margin-inline: auto; }
.hc-muted { color: var(--hc-muted); }

/* ==========================================================================
   3. Buttons + form controls
   ========================================================================== */
.hc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.5rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--hc-font-body); text-decoration: none !important;
  border: 2px solid transparent; cursor: pointer; transition: transform var(--hc-transition), box-shadow var(--hc-transition), background var(--hc-transition);
}
.hc-btn--gold { background: var(--hc-gold); color: #1A1A2E !important; }
.hc-btn--gold:hover { box-shadow: 0 6px 18px rgba(201,168,76,.45); background: #d4b45a; }
.hc-btn--ghost { background: transparent; border-color: var(--hc-border); color: var(--hc-ink) !important; }
.hc-btn--ghost:hover { border-color: var(--hc-gold); }
.hc-btn--block { width: 100%; }
.hc-btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: var(--hc-small); }
.hc-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { .hc-btn:not([aria-disabled="true"]):hover { transform: translateY(-1px); } }
.hc-icon { flex: none; }

.hc-field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.hc-field label, .hc-label { font-weight: 600; font-size: var(--hc-small); color: var(--hc-ink); }
.hc-field .hc-opt { font-weight: 400; color: var(--hc-muted); }
.hc-input {
  width: 100%; min-height: 46px; padding: .65rem .9rem; border-radius: var(--hc-radius);
  border: 1.5px solid var(--hc-border); background: var(--hc-surface); color: var(--hc-ink);
  font: 400 1rem/1.4 var(--hc-font-body); transition: border-color var(--hc-transition);
}
textarea.hc-input { min-height: 120px; resize: vertical; }
.hc-input:hover { border-color: color-mix(in srgb, var(--hc-gold) 60%, var(--hc-border)); }
.hc-input[aria-invalid="true"] { border-color: #C0392B; }
.hc-hint { font-size: var(--hc-small); color: var(--hc-muted); margin: 0; }
.hc-error { font-size: var(--hc-small); color: #B3261E; margin: 0; min-height: 0; }
:root[data-theme="dark"] .hc-error { color: #FF8A80; }

/* ==========================================================================
   4. Header + mobile nav (PRD 6)
   ========================================================================== */
.hc-header {
  position: sticky; top: 0; z-index: 900; height: var(--hc-header-h);
  background: color-mix(in srgb, var(--hc-bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hc-border);
}
.admin-bar .hc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hc-header { top: 46px; } }
.hc-header__inner { height: 100%; width: min(100% - 2rem, var(--hc-max)); margin-inline: auto; display: flex; align-items: center; gap: 2rem; }
.hc-logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none !important; color: var(--hc-ink) !important; }
.hc-logo__word { font: 700 1.35rem/1 var(--hc-font-head); letter-spacing: -.01em; }
.hc-nav { flex: 1; }
.hc-menu { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.hc-menu a { display: block; padding: .5rem .9rem; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--hc-ink); transition: background var(--hc-transition); }
.hc-menu a:hover { background: color-mix(in srgb, var(--hc-gold) 18%, transparent); }
.hc-menu a[aria-current="page"], .hc-menu .current-menu-item > a { background: color-mix(in srgb, var(--hc-gold) 26%, transparent); }
.hc-header__actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.hc-iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--hc-border); background: transparent; color: var(--hc-ink); cursor: pointer; padding: 0;
  transition: border-color var(--hc-transition), background var(--hc-transition);
}
.hc-iconbtn:hover { border-color: var(--hc-gold); background: color-mix(in srgb, var(--hc-gold) 14%, transparent); }
/* Theme icon: show moon in light, sun in dark. */
.hc-theme-icon--sun { display: none; }
:root[data-theme="dark"] .hc-theme-icon--moon { display: none; }
:root[data-theme="dark"] .hc-theme-icon--sun { display: inline-flex; }
.hc-burger { display: none; }
.hc-burger__close { display: none; }
.hc-nav-open .hc-burger__open { display: none; }
.hc-nav-open .hc-burger__close { display: inline-flex; }
.hc-mobile-nav { display: none; }

@media (max-width: 900px) {
  .hc-nav, .hc-header__cta { display: none; }
  .hc-burger { display: inline-grid; }
  .hc-header__actions { margin-left: auto; }
  .hc-mobile-nav {
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    position: fixed; z-index: 890; inset: var(--hc-header-h) 0 0 0; padding: 1.5rem 1.25rem 2rem;
    background: var(--hc-bg); transform: translateX(100%); visibility: hidden; transition: transform 260ms ease, visibility 0s linear 260ms; overflow-y: auto;
  }
  .admin-bar .hc-mobile-nav { inset-block-start: calc(var(--hc-header-h) + 46px); }
  .hc-mobile-nav[hidden] { display: none; }
  .hc-mobile-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .hc-menu--mobile { flex-direction: column; gap: .25rem; }
  .hc-menu--mobile a { font: 600 1.6rem/1.3 var(--hc-font-head); padding: .9rem .5rem; border-radius: 12px; }
  .hc-nav-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .hc-mobile-nav { transition: none; } }

/* ==========================================================================
   5. Footer (PRD 6.3)
   ========================================================================== */
.hc-footer { margin-top: 0; border-top: 1px solid var(--hc-border); background: var(--hc-surface); }
.hc-footer__grid { display: grid; gap: 2.5rem; padding-block: 3.5rem 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .hc-footer__grid { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.5rem 1.5rem; } }
.hc-footer__brand p { color: var(--hc-muted); max-width: 44ch; margin: 1rem 0 0; }
.hc-footer__h { font: 600 var(--hc-small)/1 var(--hc-font-body) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--hc-muted) !important; margin: 0 0 1rem; }
.hc-footer__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; }
.hc-footer__links a { text-decoration: none; display: inline-block; padding: .15rem 0; }
.hc-footer__links a:hover { color: var(--hc-gold-text); }
.hc-social { list-style: none; display: flex; gap: .6rem; margin: 0; padding: 0; }
.hc-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--hc-border); color: var(--hc-ink); transition: border-color var(--hc-transition), color var(--hc-transition); }
.hc-social a:hover { border-color: var(--hc-gold); color: var(--hc-gold-text); }
.hc-footer__bar { border-top: 1px solid var(--hc-border); padding-block: 1.25rem; font-size: var(--hc-small); color: var(--hc-muted); }

/* ==========================================================================
   6. Home page
   ========================================================================== */
.hc-hero { background: var(--hc-hero-bg); overflow: hidden; }
.hc-hero__grid { display: grid; gap: 3rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); grid-template-columns: 1.1fr 1fr; }
@media (max-width: 860px) { .hc-hero__grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.hc-hero h1 { margin: 0 0 1rem; font-size: clamp(2.5rem, 6vw, 3.75rem); }
.hc-hero h1 em { font-style: italic; color: var(--hc-gold-text); }
.hc-hero .hc-lead { color: var(--hc-ink); opacity: .82; margin-bottom: 1.75rem; }
.hc-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hc-hero__note { font-size: var(--hc-small); color: var(--hc-muted); margin-top: 1.25rem; }

.hc-hero__stack { position: relative; min-height: 340px; }
.hc-hero__stack .hc-art { position: absolute; width: min(72%, 340px); box-shadow: var(--hc-shadow-hover); border-radius: var(--hc-radius-lg); }
.hc-hero__stack .hc-art:nth-child(1) { top: 0; left: 4%; transform: rotate(-7deg); }
.hc-hero__stack .hc-art:nth-child(2) { top: 26%; right: 0; transform: rotate(5deg); z-index: 2; }
.hc-hero__stack .hc-art:nth-child(3) { bottom: 0; left: 14%; transform: rotate(-2deg); z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .hc-hero__stack .hc-art { animation: hc-float 7s ease-in-out infinite; }
  .hc-hero__stack .hc-art:nth-child(2) { animation-delay: -2.3s; }
  .hc-hero__stack .hc-art:nth-child(3) { animation-delay: -4.6s; }
}
@keyframes hc-float { 50% { translate: 0 -10px; } }
@media (max-width: 860px) { .hc-hero__stack { min-height: 300px; } }

/* What is Halacards */
.hc-what { display: grid; gap: 2rem; grid-template-columns: 1fr 1.4fr; align-items: start; }
@media (max-width: 760px) { .hc-what { grid-template-columns: 1fr; gap: 1rem; } }
.hc-what dl { margin: 0; display: grid; gap: 1rem; }
.hc-what dt { font-weight: 600; }
.hc-what dd { margin: .15rem 0 0; color: var(--hc-muted); }

/* How it works */
.hc-steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (max-width: 860px) { .hc-steps { grid-template-columns: 1fr; } }
.hc-step { background: var(--hc-surface); border: 1px solid var(--hc-border); border-radius: var(--hc-radius-lg); padding: 1.75rem; position: relative; }
.hc-step__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--hc-gold) 24%, transparent); color: var(--hc-ink); margin-bottom: 1.1rem; }
.hc-step__n { position: absolute; top: 1.25rem; right: 1.5rem; font: 700 2.5rem/1 var(--hc-font-head); color: color-mix(in srgb, var(--hc-border) 80%, transparent); }
.hc-step h3 { margin: 0 0 .4rem; }
.hc-step p { color: var(--hc-muted); margin: 0 0 1rem; }

/* Featured strip */
.hc-strip { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.5rem; margin-inline: -.25rem; scrollbar-width: thin; }
.hc-strip { contain: paint; }
.hc-strip > * { flex: 0 0 min(78%, 290px); scroll-snap-align: start; }
.hc-strip-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.hc-strip-head .hc-section-head { margin-bottom: 0; }
.hc-link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; color: var(--hc-ink); }
.hc-link-arrow:hover { color: var(--hc-gold-text); }

/* SDG band */
.hc-sdgband { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; justify-content: center; }
@media (max-width: 700px) { .hc-sdgband { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: .75rem; scroll-snap-type: x proximity; } .hc-sdgband li { scroll-snap-align: start; } }
.hc-sdgband a {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; text-decoration: none;
  padding: .4rem .9rem .4rem .4rem; border-radius: 999px; border: 1.5px solid var(--hc-border);
  background: var(--hc-surface); font-size: var(--hc-small); font-weight: 500; transition: border-color var(--hc-transition), transform var(--hc-transition);
}
.hc-sdgband a:hover { border-color: var(--sdg); }
.hc-sdgband i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sdg); color: var(--sdg-ink); font: 700 .8rem/1 var(--hc-font-body); font-style: normal; }

/* Mission */
.hc-mission { display: grid; gap: 2rem; grid-template-columns: 1.6fr 1fr; align-items: center; }
@media (max-width: 760px) { .hc-mission { grid-template-columns: 1fr; } }
.hc-mission blockquote { margin: 0; font: 600 clamp(1.4rem, 3vw, 2rem)/1.35 var(--hc-font-head); }
.hc-mission blockquote span { color: var(--hc-gold-text); }
.hc-stat { text-align: center; padding: 2rem; border-radius: var(--hc-radius-lg); background: var(--hc-surface); border: 1px solid var(--hc-border); }
.hc-stat strong { display: block; font: 700 4rem/1 var(--hc-font-head); color: var(--hc-gold-text); }
.hc-stat span { color: var(--hc-muted); }

/* Shop teaser */
.hc-shop { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
@media (max-width: 560px) { .hc-shop { grid-template-columns: 1fr; } }
.hc-product { background: var(--hc-surface); border: 1px solid var(--hc-border); border-radius: var(--hc-radius-lg); overflow: hidden; text-decoration: none; display: block; transition: transform var(--hc-transition), box-shadow var(--hc-transition); }
@media (prefers-reduced-motion: no-preference) { .hc-product:hover { transform: translateY(-4px); box-shadow: var(--hc-shadow-hover); } }
.hc-product__art { aspect-ratio: 4/3; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; }
.hc-product__art svg { width: 38%; opacity: .92; }
.hc-product__body { padding: 1.1rem 1.25rem 1.3rem; }
.hc-product__body h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.hc-product__body p { margin: 0; color: var(--hc-muted); font-size: var(--hc-small); }

/* FAQ */
.hc-faq { max-width: 760px; margin-inline: auto; display: grid; gap: .75rem; }
.hc-faq details { background: var(--hc-surface); border: 1px solid var(--hc-border); border-radius: var(--hc-radius); padding: 0 1.25rem; }
.hc-faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.hc-faq summary::-webkit-details-marker { display: none; }
.hc-faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--hc-gold-text); transition: transform var(--hc-transition); }
.hc-faq details[open] summary::after { transform: rotate(45deg); }
.hc-faq details p { margin: 0 0 1.1rem; color: var(--hc-muted); }

/* CTA band */
.hc-cta { background: var(--hc-surface); color: var(--hc-ink); box-shadow: var(--hc-shadow); text-align: center; border-radius: var(--hc-radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; position: relative; overflow: hidden; }
.hc-cta h2 { color: inherit !important; margin: 0 0 .5rem; }
.hc-cta p { opacity: .8; margin: 0 0 1.5rem; }

/* ==========================================================================
   7. Do Some Good
   ========================================================================== */
.hc-page-hero { background: var(--hc-hero-bg); padding-block: clamp(3rem, 8vw, 5.5rem); }
.hc-page-hero h1 { max-width: 20ch; margin: 0 0 1rem; }
.hc-sdg-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); list-style: none; margin: 0; padding: 0; }
.hc-sdg-tile { display: flex; flex-direction: column; height: 100%; background: var(--hc-surface); border: 1px solid var(--hc-border); border-top: 6px solid var(--sdg); border-radius: var(--hc-radius); padding: 1.1rem 1.25rem 1.25rem; }
.hc-sdg-tile__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sdg); color: var(--sdg-ink); font: 700 1rem/1 var(--hc-font-body); margin-bottom: .8rem; }
.hc-sdg-tile h3 { font: 600 1.05rem/1.3 var(--hc-font-body) !important; margin: 0 0 .35rem; }
.hc-sdg-tile p { color: var(--hc-muted); font-size: var(--hc-small); margin: 0 0 1rem; flex: 1; }
.hc-sdg-tile a { font-size: var(--hc-small); font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; text-decoration: none; }
.hc-sdg-tile a:hover { color: var(--hc-gold-text); }
.hc-give { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hc-give__card { background: var(--hc-surface); border: 1px solid var(--hc-border); border-radius: var(--hc-radius-lg); padding: 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.hc-give__card h3 { margin: 0; }
.hc-give__card p { color: var(--hc-muted); margin: 0 0 .75rem; flex: 1; }
.hc-prose { max-width: 680px; }
.hc-prose p { color: var(--hc-ink); opacity: .86; }

/* ==========================================================================
   8. Contact, 404, plain pages
   ========================================================================== */
.hc-narrow { width: min(100% - 2rem, 680px); margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hc-notice { padding: 1rem 1.25rem; border-radius: var(--hc-radius); border: 1px solid var(--hc-border); background: var(--hc-surface); margin-bottom: 1.5rem; }
.hc-notice--ok { border-color: var(--hc-sage); }
.hc-notice--err { border-color: #C0392B; }
.hc-hp { position: absolute; left: -9999px; }
.hc-404 { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 4rem 1.5rem; gap: 1rem; justify-items: center; }
.hc-404__code { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--hc-font-head); color: var(--hc-gold); margin: 0; }
.hc-404 h1 { margin: 0; font-size: var(--hc-h2); }
.hc-404__actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }


/* ==========================================================================
   Home redesign: light, warm, alternating section colours + gentle reveal
   ========================================================================== */
.hc-home .hc-section { padding-block: clamp(3.25rem, 8vw, 6rem); }
.hc-sec--about    { background: var(--hc-s-about); }
.hc-sec--how      { background: var(--hc-s-how); }
.hc-sec--featured { background: var(--hc-s-featured); }
.hc-sec--shop     { background: var(--hc-s-shop); }
.hc-sec--faq      { background: var(--hc-s-faq); }
.hc-sec--cta      { background: var(--hc-s-cta); }
.hc-home { scroll-behavior: smooth; }
html { scroll-padding-top: calc(var(--hc-header-h, 72px) + 12px); }

/* Hero */
.hc-hero h1 { font-size: clamp(2.1rem, 6.2vw, 3.6rem); line-height: 1.12; }
.hc-hero .hc-lead { max-width: 38rem; font-size: clamp(1rem, 2.4vw, 1.15rem); opacity: 1; }
.hc-hero__cta .hc-btn { min-height: 48px; }
@media (max-width: 520px) { .hc-hero__cta { flex-direction: column; align-items: stretch; } .hc-hero__cta .hc-btn { justify-content: center; } }

/* About */
.hc-about { display: grid; gap: clamp(1.75rem, 5vw, 3.5rem); grid-template-columns: 1.3fr 1fr; align-items: center; }
@media (max-width: 860px) { .hc-about { grid-template-columns: 1fr; } }
.hc-about h2 { margin: 0 0 1rem; }
.hc-about .hc-lead { margin: 0; max-width: 40rem; }
.hc-impact { background: var(--hc-surface); border: 1px solid color-mix(in srgb, var(--hc-sage) 45%, transparent); border-left: 6px solid var(--hc-sage); border-radius: var(--hc-radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--hc-shadow); }
.hc-impact p { margin: .75rem 0 0; font-size: 1.02rem; line-height: 1.6; }
.hc-impact__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--hc-sage) 22%, transparent); color: #2f6b45; }
/* Contrast card (home About, right column): dark navy in both themes so it stands out from the soft section colour */
.hc-impact--contrast { background: #1A1A2E; color: #F3EEE4; border: 1px solid #1A1A2E; border-left: 6px solid var(--hc-gold); }
:root[data-theme="dark"] .hc-impact--contrast { border-color: rgba(201,168,76,.45); border-left-color: var(--hc-gold); }
.hc-impact--contrast h3 { color: #FFFFFF !important; margin: 0 0 .5rem; }
.hc-impact--contrast p { color: #E6E0D4; }
.hc-impact--contrast .hc-checks { list-style: none; margin: 1.1rem 0 1.4rem; padding: 0; display: grid; gap: .5rem; }
.hc-impact--contrast .hc-checks li { position: relative; padding-left: 1.9rem; color: #FFFFFF; font-weight: 500; }
.hc-impact--contrast .hc-checks li::before { content: "\2713"; position: absolute; left: 0; top: .1em; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--hc-gold); color: #1A1A2E; font-size: .8rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.hc-impact--contrast .hc-btn-wrap { margin-top: .25rem; }
/* Word highlight: gold marker stroke behind the word, text colour unchanged */
.hc-hl { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--hc-gold) 60%, transparent) 60%); color: inherit; padding: 0 .08em; border-radius: 2px; }
.hc-about .hc-lead + .hc-lead { margin-top: 1rem; }

/* How it works */
.hc-sec--how .hc-section-head .hc-lead { margin-bottom: 0; }
.hc-sec--how .hc-step { box-shadow: var(--hc-shadow); border-color: transparent; }
@media (min-width: 861px) and (max-width: 1040px) { .hc-steps { gap: 1rem; } .hc-step { padding: 1.4rem; } }

/* Scroll reveal: only when JS is on and motion is OK */
@media (prefers-reduced-motion: no-preference) {
  .hc-js .hc-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--hc-delay, 0ms); }
  .hc-js .hc-reveal.is-in { opacity: 1; transform: none; }
}
.hc-home .hc-section { overflow-x: clip; } .hc-strip { max-width: 100%; }

/* ==========================================================================
   Block editor (Gutenberg) compatibility
   Pages are built from core blocks; these rules make blocks look like the design.
   ========================================================================== */
.hc-page .wp-block-buttons { gap: .75rem; align-items: center; margin: 0; }
.hc-page .wp-block-button.hc-btn-wrap { margin: 0; }
.hc-btn-wrap .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.5rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--hc-font-body); text-decoration: none !important;
  border: 2px solid transparent; cursor: pointer; box-shadow: none;
  transition: transform var(--hc-transition), box-shadow var(--hc-transition), background var(--hc-transition);
}
.hc-btn-wrap--gold .wp-block-button__link { background: var(--hc-gold); color: #1A1A2E !important; }
.hc-btn-wrap--gold .wp-block-button__link:hover { box-shadow: 0 6px 18px rgba(201,168,76,.45); background: #d4b45a; }
.hc-btn-wrap--ghost .wp-block-button__link { background: transparent; border-color: var(--hc-border); color: var(--hc-ink) !important; }
.hc-btn-wrap--ghost .wp-block-button__link:hover { border-color: var(--hc-gold); background: transparent; }
.hc-btn-wrap--sm .wp-block-button__link { min-height: 40px; padding: .5rem 1.1rem; font-size: var(--hc-small); }
.hc-btn-wrap--arrow .wp-block-button__link::after,
.hc-link-arrow a::after {
  content: ""; width: 1.1em; height: 1.1em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) { .hc-btn-wrap .wp-block-button__link:hover { transform: translateY(-1px); } }
.hc-hero__cta .wp-block-button__link { min-height: 48px; }
.hc-cta .wp-block-buttons { justify-content: center; }
@media (max-width: 520px) {
  .hc-hero__cta { flex-direction: column; align-items: stretch; }
  .hc-hero__cta .wp-block-button, .hc-hero__cta .wp-block-button__link { width: 100%; }
}

/* Links styled as "Browse all cards ->" */
.hc-link-arrow { margin: 0; }
.hc-link-arrow a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; color: var(--hc-ink); }
.hc-link-arrow a:hover { color: var(--hc-gold-text); }

/* Steps, impact box and other paragraphs that must not inherit paragraph spacing */
.hc-step .hc-step__n { margin: 0; color: color-mix(in srgb, var(--hc-gold) 55%, transparent); }
.hc-step .hc-step__icon { margin: 0 0 1.1rem; color: var(--hc-ink); }
.hc-step:nth-child(2) { --hc-delay: 90ms; }
.hc-step:nth-child(3) { --hc-delay: 180ms; }
.hc-impact .hc-impact__icon { margin: 0; }
.hc-narrow .hc-lead { margin-bottom: 2rem; }
.hc-faq .wp-block-details { margin: 0; }
.hc-faq .wp-block-details summary { margin: 0; }
.hc-page .wp-block-group { box-sizing: border-box; }

/* Neutralise WordPress block-gap and root padding inside Halacards pages */
.hc-page.wp-block-group { --wp--style--block-gap: 0px; padding: 0 !important; margin-inline: 0 !important; max-width: none !important; }
.hc-page .wp-block-group { --wp--style--block-gap: 0px; }
.hc-page .is-layout-flow > *, .hc-page.is-layout-flow > * { margin-block-start: 0; }

/* Band colours: pick from the block's "Advanced -> Additional CSS class(es)", or use the Background colour picker */
.hc-bg-sage  { background: var(--hc-s-about); }
.hc-bg-sun   { background: var(--hc-s-how); }
.hc-bg-blush { background: var(--hc-s-featured); }
.hc-bg-sky   { background: var(--hc-s-shop); }
.hc-bg-cream { background: var(--hc-s-faq); }
.hc-bg-gold  { background: var(--hc-s-cta); }

/* Headline accent + readable headings in both themes (19 Nov 2026) */
/* Astra sets heading colour with a more specific rule; this keeps headings on the theme ink colour (light in dark mode) */
.hc-page h1, .hc-page h2, .hc-page h3, .hc-page h4 { color: var(--hc-ink); }
.hc-page .hc-pop { color: var(--hc-pop); }
/* Spacing inside the contrast card: paragraph, ticks, button */
.hc-page .hc-impact--contrast .hc-checks { margin: 1.5rem 0 1.75rem; }
.hc-page .hc-impact--contrast h3 { margin-bottom: 1rem; }
.hc-page .hc-impact--contrast .wp-block-buttons { margin-top: 0; }
