/*
Theme Name: Hemp Well Pet Personality
Theme URI: https://hempwell.net/
Author: Hemp Well
Author URI: https://hempwell.com/
Description: A playful, highly shareable pet personality and routine analyzer with direct-link results, downloadable cards, social sharing, and subtle Hemp Well product discovery.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hwpp
Tags: custom-logo, custom-menu, featured-images, accessibility-ready, responsive-layout, entertainment
*/

:root {
  --ink: #18372d;
  --ink-soft: #4d665e;
  --cream: #fffaf0;
  --paper: #ffffff;
  --mint: #dcefe4;
  --mint-2: #edf8f0;
  --green: #1d6c4e;
  --green-dark: #124836;
  --yellow: #f5c84c;
  --orange: #ef9365;
  --pink: #ef9abb;
  --blue: #8dcde4;
  --purple: #9d91dd;
  --line: rgba(24, 55, 45, .13);
  --shadow: 0 18px 55px rgba(29, 77, 58, .13);
  --shadow-small: 0 10px 30px rgba(29, 77, 58, .10);
  --radius: 28px;
  --radius-small: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(245, 200, 76, .18), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(141, 205, 228, .22), transparent 25%),
    var(--cream);
  font-family: ui-rounded, "Avenir Next", Avenir, Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--green); }
button, input { font: inherit; }
button { cursor: pointer; }
.screen-reader-text {
  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:focus {
  position: fixed !important; top: 12px; left: 12px; width: auto; height: auto;
  padding: 10px 14px; margin: 0; clip: auto; z-index: 9999; background: #fff; border-radius: 10px;
}

.site-header {
  position: relative;
  z-index: 20;
  padding: 18px 24px;
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: clamp(1.12rem, 2vw, 1.5rem);
}
.brand-mark {
  width: 46px; height: 46px; border-radius: 16px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(29,108,78,.22);
  font-size: 1.35rem;
  transform: rotate(-3deg);
}
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 54px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 750;
}
.header-nav a:hover, .header-nav a:focus { background: rgba(255,255,255,.8); }
.header-nav .shop-link { border: 1px solid var(--line); background: rgba(255,255,255,.65); }

.site-main { overflow: hidden; }
.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }

.hero {
  padding: 50px 0 80px;
  position: relative;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}
.hero::before { width: 280px; height: 280px; background: rgba(239,154,187,.18); right: -80px; top: 20px; }
.hero::after { width: 220px; height: 220px; background: rgba(157,145,221,.17); left: -80px; bottom: 0; }
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: clamp(35px, 6vw, 88px);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(29,108,78,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  color: var(--green-dark);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 20px 0 18px;
  max-width: 780px;
  font-size: clamp(3rem, 7vw, 6.65rem);
  line-height: .92;
  letter-spacing: -.075em;
}
.hero h1 .highlight {
  position: relative;
  display: inline-block;
  color: var(--green);
  white-space: nowrap;
}
.hero h1 .highlight::after {
  content: "";
  position: absolute;
  left: 1%; right: -1%; bottom: -.05em;
  height: .18em;
  border-radius: 999px;
  background: var(--yellow);
  z-index: -1;
  transform: rotate(-1.5deg);
}
.hero-copy {
  max-width: 660px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 54px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(29,108,78,.19);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover, .button:focus { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(29,108,78,.22); background: var(--green-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.button.secondary:hover, .button.secondary:focus { background: var(--mint-2); color: var(--ink); }
.button.small { min-height: 44px; padding: 10px 16px; font-size: .92rem; }
.hero-note { margin-top: 18px; color: var(--ink-soft); font-size: .87rem; }

.personality-stack {
  min-height: 520px;
  position: relative;
}
.mini-card {
  position: absolute;
  width: min(350px, 82%);
  padding: 24px;
  border-radius: 30px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(24,55,45,.08);
  box-shadow: var(--shadow);
}
.mini-card:nth-child(1) { right: 0; top: 10px; transform: rotate(5deg); background: #dff2e8; }
.mini-card:nth-child(2) { left: 0; top: 150px; transform: rotate(-6deg); background: #fff0cf; z-index: 2; }
.mini-card:nth-child(3) { right: 20px; bottom: 0; transform: rotate(3deg); background: #f7dce8; z-index: 3; }
.mini-icon { font-size: 3.4rem; line-height: 1; }
.mini-card h3 { margin: 18px 0 4px; font-size: 1.5rem; letter-spacing: -.04em; }
.mini-card p { margin: 0; color: var(--ink-soft); font-weight: 700; }
.mini-share { margin-top: 16px; display: flex; gap: 6px; }
.mini-share span { width: 31px; height: 31px; border-radius: 50%; background: rgba(255,255,255,.75); display: grid; place-items: center; font-size: .78rem; font-weight: 900; }

.trust-strip {
  padding: 0 0 62px;
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  overflow: hidden;
}
.trust-item { padding: 18px 22px; text-align: center; font-weight: 850; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item span { display: block; color: var(--green); font-size: 1.25rem; }

.quiz-section { padding: 70px 0 100px; background: var(--mint-2); border-block: 1px solid rgba(29,108,78,.09); }
.section-heading { text-align: center; max-width: 750px; margin: 0 auto 34px; }
.section-heading h2 { margin: 12px 0 10px; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.055em; }
.section-heading p { margin: 0; color: var(--ink-soft); font-size: 1.06rem; }
.quiz-shell {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 34px;
  background: var(--paper);
  border: 1px solid rgba(24,55,45,.09);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quiz-topbar { padding: 20px 24px 0; display: flex; align-items: center; gap: 15px; }
.progress-track { flex: 1; height: 10px; border-radius: 999px; background: #edf1ee; overflow: hidden; }
.progress-fill { width: 10%; height: 100%; background: linear-gradient(90deg, var(--green), #5db985); border-radius: inherit; transition: width .3s ease; }
.progress-text { color: var(--ink-soft); font-size: .84rem; font-weight: 850; min-width: 78px; text-align: right; }
.quiz-panel { padding: clamp(28px, 6vw, 58px); }
.quiz-panel h3 { margin: 0; text-align: center; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.12; letter-spacing: -.04em; }
.answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.answer-button {
  min-height: 92px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 18px;
  border: 1.5px solid rgba(24,55,45,.13);
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 850;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.answer-button:hover, .answer-button:focus { transform: translateY(-2px); border-color: var(--green); background: #f5fbf7; box-shadow: var(--shadow-small); }
.answer-button.selected { border-color: var(--green); background: var(--mint); }
.answer-emoji { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 15px; background: var(--cream); font-size: 1.5rem; }
.quiz-back { margin-top: 22px; border: 0; background: transparent; color: var(--ink-soft); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.name-step { max-width: 560px; margin: 30px auto 0; text-align: center; }
.name-step label { display: block; color: var(--ink-soft); font-weight: 800; margin-bottom: 12px; }
.name-row { display: flex; gap: 10px; }
.name-row input { flex: 1; min-width: 0; min-height: 56px; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 20px; color: var(--ink); background: #fff; outline: 0; }
.name-row input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(29,108,78,.11); }

.result-section { padding: 80px 0 100px; }
.result-section[hidden] { display: none !important; }
.result-card-main {
  --result-accent: var(--green);
  --result-soft: var(--mint);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  max-width: 1040px;
  margin: 0 auto;
  background: #fff;
  border-radius: 36px;
  border: 1px solid rgba(24,55,45,.09);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.result-visual {
  min-height: 590px;
  padding: 44px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--result-soft);
  overflow: hidden;
}
.result-visual::before, .result-visual::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); }
.result-visual::before { width: 260px; height: 260px; right: -70px; top: -80px; }
.result-visual::after { width: 180px; height: 180px; left: -50px; bottom: 80px; }
.result-kicker { position: relative; z-index: 2; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 950; }
.result-emoji { position: relative; z-index: 2; font-size: clamp(6rem, 12vw, 9rem); line-height: 1; filter: drop-shadow(0 14px 18px rgba(24,55,45,.12)); }
.result-stamp { position: relative; z-index: 2; }
.result-stamp h2 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.3rem); line-height: .96; letter-spacing: -.06em; }
.result-stamp p { margin: 12px 0 0; font-size: 1.05rem; font-weight: 850; color: var(--ink-soft); }
.result-content { padding: clamp(34px, 6vw, 62px); }
.result-content > p { color: var(--ink-soft); font-size: 1.1rem; }
.result-name-line { margin: 0 0 8px; color: var(--result-accent); font-size: .9rem; font-weight: 950; text-transform: uppercase; letter-spacing: .1em; }
.result-content h3 { margin: 30px 0 12px; font-size: 1.35rem; letter-spacing: -.025em; }
.routine-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.routine-list li { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; background: #f8faf8; border-radius: 14px; }
.routine-list li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 24px; background: var(--result-soft); color: var(--ink); font-weight: 950; }
.product-discovery { margin-top: 28px; padding: 20px; border-radius: 20px; background: var(--cream); border: 1px solid rgba(24,55,45,.08); }
.product-discovery .label { display: block; color: var(--result-accent); font-size: .77rem; font-weight: 950; text-transform: uppercase; letter-spacing: .1em; }
.product-discovery h3 { margin: 5px 0 7px; }
.product-discovery p { margin: 0 0 15px; color: var(--ink-soft); }
.share-block { max-width: 1040px; margin: 24px auto 0; display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.share-panel, .caption-panel { padding: 25px; border-radius: 24px; background: rgba(255,255,255,.85); border: 1px solid var(--line); }
.share-panel h3, .caption-panel h3 { margin: 0 0 14px; font-size: 1.15rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.share-button { min-height: 43px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 850; }
.share-button:hover, .share-button:focus { border-color: var(--green); background: var(--mint-2); }
.share-button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.caption-box { margin: 0; padding: 15px; min-height: 95px; border-radius: 15px; background: #f7f8f7; color: var(--ink-soft); font-weight: 700; }
.result-actions { max-width: 1040px; margin: 24px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.share-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 850; transition: opacity .2s ease, transform .2s ease; }
.share-toast.show { opacity: 1; transform: translate(-50%, 0); }

.how-it-works, .result-gallery, .faq-section { padding: 92px 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.how-card { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-small); }
.how-number { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: var(--yellow); font-weight: 950; transform: rotate(-4deg); }
.how-card h3 { margin: 22px 0 8px; font-size: 1.35rem; }
.how-card p { margin: 0; color: var(--ink-soft); }

.result-gallery { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 34px; }
.gallery-card { min-height: 215px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 22px; border: 1px solid rgba(24,55,45,.08); background: var(--card-soft, var(--mint)); transform: rotate(var(--tilt, 0deg)); transition: transform .18s ease; }
.gallery-card:hover { transform: translateY(-5px) rotate(0); }
.gallery-card .emoji { font-size: 2.9rem; }
.gallery-card h3 { margin: 0 0 4px; font-size: 1.22rem; letter-spacing: -.03em; }
.gallery-card p { margin: 0; color: var(--ink-soft); font-weight: 750; font-size: .91rem; }

.faq-section { background: var(--cream); }
.faq-list { max-width: 840px; margin: 34px auto 0; display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 0 20px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font-weight: 900; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 1.5rem; color: var(--green); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: -4px 0 20px; color: var(--ink-soft); }
.disclaimer-box { max-width: 840px; margin: 30px auto 0; padding: 18px 20px; border-radius: 18px; background: #fff7d9; border: 1px solid rgba(181,138,67,.22); color: #6d592f; font-size: .92rem; }

.site-footer { padding: 46px 24px; background: var(--ink); color: rgba(255,255,255,.75); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.footer-brand { color: #fff; font-weight: 950; font-size: 1.2rem; }
.footer-copy p { margin: 6px 0 0; max-width: 650px; font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 800; font-size: .9rem; }
.footer-links a:hover { text-decoration: underline; }

.content-shell { width: min(calc(100% - 40px), 880px); margin: 45px auto 90px; padding: clamp(25px, 5vw, 55px); background: #fff; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-small); }
.content-shell h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.055em; line-height: 1; }
.content-shell :where(h2,h3) { letter-spacing: -.025em; }
.content-shell p, .content-shell li { color: var(--ink-soft); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy-wrap { text-align: center; }
  .hero-copy, .hero-actions { margin-inline: auto; justify-content: center; }
  .personality-stack { max-width: 650px; width: 100%; margin: 0 auto; }
  .result-card-main { grid-template-columns: 1fr; }
  .result-visual { min-height: 420px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header { padding-inline: 18px; }
  .header-nav a:not(.shop-link) { display: none; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: clamp(3.05rem, 16vw, 5.25rem); }
  .hero h1 .highlight { white-space: normal; }
  .personality-stack { min-height: 440px; }
  .mini-card { width: 78%; padding: 19px; }
  .mini-card:nth-child(2) { top: 125px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .answer-grid, .share-block, .how-grid { grid-template-columns: 1fr; }
  .answer-button { min-height: 78px; }
  .name-row { flex-direction: column; }
  .result-visual { padding: 32px; min-height: 390px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .wrap { width: min(calc(100% - 24px), var(--wrap)); }
  .brand-text small { display: none; }
  .header-nav .shop-link { padding: 9px 11px; font-size: .82rem; }
  .hero h1 { font-size: 3.3rem; }
  .personality-stack { min-height: 400px; }
  .mini-card { width: 84%; }
  .mini-card:nth-child(3) { right: 0; }
  .quiz-panel { padding: 28px 18px 34px; }
  .quiz-topbar { padding-inline: 18px; }
  .answer-button { padding: 13px; gap: 11px; }
  .answer-emoji { width: 42px; height: 42px; flex-basis: 42px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .result-content { padding: 30px 22px; }
  .share-panel, .caption-panel { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
