/*
 * Akokowaa homepage styling for the Nature21-based theme.
 *
 * Ports mockups/akokowaa-home-light.html (Variant B) into the site's actual
 * patterns -- see includes/patterns/akokowaa-*.php. Kept separate from
 * style.css (Nature21's own base) the same way woocommerce.css is kept
 * separate: this file owns everything new, style.css stays untouched.
 *
 * Colours reference the theme.json palette CSS custom properties WordPress
 * generates from the palette slugs (--wp--preset--color--{slug}), so a
 * future palette edit in theme.json updates this file automatically without
 * needing hex values duplicated here.
 */

:root {
  --akw-brown-300: #BC9483; /* not in theme.json -- only needed for text on
                                dark panels (the philosophy section), where
                                the brand brown itself fails contrast. See
                                DESIGN-SYSTEM.md for the 2.22:1 measurement. */
  --akw-radius: 16px;
  --akw-radius-pill: 999px;
  --akw-shadow-sm: 0 1px 2px rgba(26,26,26,.04), 0 2px 8px rgba(26,26,26,.05);
  --akw-shadow: 0 2px 4px rgba(26,26,26,.04), 0 12px 28px -8px rgba(26,26,26,.12);
  --akw-shadow-lg: 0 4px 8px rgba(26,26,26,.05), 0 32px 64px -20px rgba(26,26,26,.22);
  --akw-ease: cubic-bezier(.2,0,.2,1);
}

/* ---------- shared section rhythm ---------- */
.akw-section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.akw-section-head { max-width: 58ch; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }

.akw-eyebrow {
  font-family: var(--wp--preset--font-family--playfair-display);
  font-size: .6875rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--wp--preset--color--tertiarygb);
  margin: 0 0 .75rem;
}
.akw-eyebrow-dark { color: var(--akw-brown-300); }

.akw-lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); line-height: 1.7;
  color: var(--wp--preset--color--secondary); max-width: 62ch;
}

/* ---------- buttons ---------- */
.akw-btn a,
.wp-block-button.akw-btn > .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 52px;
  padding: 0 1.85rem; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; transition: background-color .2s var(--akw-ease),
    color .2s var(--akw-ease), border-color .2s var(--akw-ease);
}
.akw-btn-solid-link {
  background: var(--wp--preset--color--tertiarygb) !important;
  color: var(--wp--preset--color--tertiary) !important;
}
.akw-btn-solid-link:hover { background: #76371D !important; }
.akw-btn-white-link {
  background: #fff !important; color: var(--wp--preset--color--primary) !important;
  box-shadow: var(--akw-shadow-sm);
}
.akw-btn-white-link:hover { box-shadow: var(--akw-shadow); }
.akw-btn-ghost-link {
  background: transparent !important;
  color: var(--wp--preset--color--primary) !important;
  border: 1px solid #D9D2CD !important;
}
.akw-btn-ghost-link:hover { border-color: var(--wp--preset--color--primary) !important; background: #fff !important; }

/* ---------- hero ---------- */
.akw-hero-card {
  border-radius: var(--akw-radius) !important;
  overflow: hidden; box-shadow: var(--akw-shadow-lg);
}
.akw-hero-body { max-width: 700px; }
.akw-hero-body .akw-eyebrow { color: #D6BCB0; }
.akw-hero-body h1 { margin: 1.1rem 0 1.3rem; }
.akw-hero-body h1 em { font-style: normal; font-weight: 300; }
.akw-hero-lede { color: #DED8D4 !important; max-width: 46ch; }

/* ---------- delivery strip ---------- */
.akw-strip { margin-top: -34px; position: relative; z-index: 2; gap: 1rem; }
.akw-strip-msg {
  display: inline-flex; align-items: center; gap: 1.25rem;
  background: var(--wp--preset--color--tertiarygb); color: #fff;
  border-radius: var(--akw-radius-pill); padding: .8rem .9rem .8rem 1.75rem;
  box-shadow: var(--akw-shadow); text-decoration: none;
}
.akw-strip-msg b { font-weight: 500; }
.akw-strip-go {
  width: 42px; height: 42px; border-radius: 999px; background: #fff;
  color: var(--wp--preset--color--tertiarygb);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s var(--akw-ease);
}
.akw-strip-msg:hover .akw-strip-go { transform: translateX(3px); }
.akw-strip-creds { display: flex; flex-wrap: wrap; gap: .5rem; }
.akw-chip {
  display: inline-block; background: #fff; border-radius: var(--akw-radius-pill);
  padding: .65rem 1.1rem; box-shadow: var(--akw-shadow-sm);
  font-family: var(--wp--preset--font-family--playfair-display);
  font-size: .75rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--wp--preset--color--secondary);
}
.akw-chip b { color: var(--wp--preset--color--primary); font-weight: 600; }

/* ---------- collection grid (WooCommerce Product Collection block) ---------- */
.akw-collection-grid.wp-block-woocommerce-product-collection { margin-top: 1rem; }
.akw-collection-grid ul.wc-block-product-template {
  display: grid !important; grid-template-columns: repeat(3, 1fr) !important;
  gap: clamp(1rem, 2vw, 1.75rem) !important; list-style: none; padding: 0; margin: 0;
}
.akw-collection-grid li.wc-block-product-template__item {
  background: #fff; border-radius: var(--akw-radius); overflow: hidden;
  box-shadow: var(--akw-shadow-sm); transition: box-shadow .28s var(--akw-ease),
    transform .28s var(--akw-ease); padding-bottom: 1.5rem;
}
.akw-collection-grid li.wc-block-product-template__item:hover {
  box-shadow: var(--akw-shadow-lg); transform: translateY(-6px);
}
.akw-collection-grid .wc-block-components-product-image,
.akw-collection-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.akw-collection-grid h3.wp-block-post-title {
  font-size: 1.375rem !important; font-weight: 500 !important;
  padding: 1.25rem 1.5rem 0; margin: 0;
}
.akw-collection-grid h3.wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--primary); }
.akw-collection-grid .akw-card-price {
  padding: .35rem 1.5rem 0; font-size: 1.0625rem; font-weight: 500;
  color: var(--wp--preset--color--primary);
}
.akw-collection-grid .akw-card-btn { padding: 1rem 1.5rem 0; }
.akw-collection-grid .akw-card-btn a.wp-block-button__link,
.akw-collection-grid .akw-card-btn .wp-block-button__link {
  width: 100%; justify-content: center; border-radius: var(--akw-radius-pill) !important;
  background: var(--wp--preset--color--tertiarygb) !important; color: #fff !important;
  min-height: 46px; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- philosophy panel ---------- */
.akw-philosophy {
  background: var(--wp--preset--color--primary); color: #DED8D4;
  border-radius: 24px; padding: clamp(2rem, 4.5vw, 3.5rem);
  display: grid !important; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem);
}
.akw-phil-item + .akw-phil-item { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.akw-phil-num {
  font-family: var(--wp--preset--font-family--playfair-display);
  font-size: .6875rem; letter-spacing: .22em; color: #D6BCB0; margin: 0 0 .6rem;
}
.akw-phil-body { margin: .6rem 0 0; max-width: 46ch; color: #DED8D4; }
.akw-phil-quote { align-self: center; }
.akw-quote-block {
  background: rgba(255,255,255,.06); border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem); border-left: 0; margin: 0;
}
.akw-quote-block p {
  font-family: var(--wp--preset--font-family--playfair-display);
  font-weight: 300; font-size: clamp(1.25rem, 2.1vw, 1.625rem); line-height: 1.4;
  color: #fff; margin: 0;
}
.akw-quote-block cite {
  display: block; margin-top: 1rem; font-style: normal;
  font-family: var(--wp--preset--font-family--playfair-display);
  font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase;
  color: #B0A8A2;
}

/* ---------- craft ---------- */
.akw-craft-img img { box-shadow: var(--akw-shadow); }
.akw-speclist { list-style: none; margin: 1.5rem 0 0; padding: 0; background: #fff; border-radius: var(--akw-radius); box-shadow: var(--akw-shadow-sm); overflow: hidden; }
.akw-speclist li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .9rem 1.3rem; border-bottom: 1px solid #F2EDE9; }
.akw-speclist li:last-child { border-bottom: 0; }
.akw-k { font-family: var(--wp--preset--font-family--playfair-display); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--secondary); }
.akw-v { font-size: .9375rem; color: var(--wp--preset--color--primary); text-align: right; }

/* ---------- contact ---------- */
#contact { scroll-margin-top: 100px; }
#contact .akw-speclist { margin-top: 0; }

/* ---------- footer ---------- */
.akw-footer { padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; border-top: 1px solid #EDE7E2; }
.akw-footer-grid { margin-bottom: 2.25rem; }
.akw-ftr-head {
  font-family: var(--wp--preset--font-family--playfair-display);
  font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--wp--preset--color--secondary); margin: 0 0 1.1rem;
}
.akw-ftr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.akw-ftr-list a { color: var(--wp--preset--color--primary); text-decoration: none; font-size: .9375rem; }
.akw-ftr-list a:hover { color: var(--wp--preset--color--tertiarygb); }
.akw-social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.akw-social a {
  width: 38px; height: 38px; border-radius: 999px; background: #fff;
  box-shadow: var(--akw-shadow-sm); display: inline-flex; align-items: center;
  justify-content: center; color: var(--wp--preset--color--primary);
  opacity: .45; cursor: default; pointer-events: none;
}
.akw-footer-bar { border-top: 1px solid #EDE7E2; padding-top: 1.25rem; }
.akw-pay { display: flex; flex-wrap: wrap; gap: .45rem; }
.akw-pay span {
  font-family: var(--wp--preset--font-family--playfair-display);
  font-size: .625rem; letter-spacing: .1em; background: #fff;
  border-radius: 999px; padding: .35rem .7rem; color: var(--wp--preset--color--secondary);
  box-shadow: var(--akw-shadow-sm);
}

/* ---------- focus & motion ---------- */
.akw-hero, .akw-footer, .akw-collection-grid, .akw-speclist { }
:where(.akw-btn a, .akw-strip-msg, .akw-ftr-list a, .akw-collection-grid a):focus-visible {
  outline: 2px solid var(--wp--preset--color--tertiarygb); outline-offset: 3px;
}

/* ---------- kill Nature21's hardcoded green ----------
 * style.css (Nature21's own base CSS) hardcodes its accent green as literal
 * hex values in several places, rather than through theme.json's palette --
 * recolouring the palette in theme.json cannot reach these. Found by
 * grepping style.css for #599e03 / #9cc893 / #144120 after the live site
 * kept showing a green header band post-launch. Matches every selector that
 * used the old colour, at the same !important weight where the original
 * rule had it (needed to actually win the cascade against !important). */
.nature21-header-area { background-color: transparent !important; }
a:hover { color: var(--wp--preset--color--tertiarygb); }
.nature21-btn-more a:hover,
.nature21-discover-button a:hover {
  background-color: var(--wp--preset--color--tertiarygb) !important;
  color: #fff !important;
}
.nature21-footer-news li time,
.nature21-post-list li a:hover.wp-block-latest-posts__post-title {
  color: var(--wp--preset--color--tertiarygb);
}
.nature21-post-list li a.wp-block-latest-posts__read-more {
  background-color: var(--wp--preset--color--tertiarygb);
}
.nature21-footer-menu .wp-block-navigation ul li:hover:before,
.nature21-footer-column .wp-block-navigation ul li:hover:before {
  color: var(--wp--preset--color--tertiarygb) !important;
}
.nature21-menu .wp-block-navigation ul li a:hover,
.nature21-menu .wp-block-navigation ul li.current-menu-item a,
.nature21-menu .wp-block-navigation ul ul li a:hover,
.nature21-menu .wp-block-navigation ul ul li.current-menu-item a,
body.home .nature21-menu li .wp-block-navigation__submenu-container li span:hover {
  color: var(--wp--preset--color--tertiarygb) !important;
}
.nature21-volunteers-title { text-shadow: 7px 7px 0px var(--wp--preset--color--primary); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .akw-philosophy { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  .akw-collection-grid ul.wc-block-product-template { grid-template-columns: 1fr !important; }
  .akw-strip { margin-top: -20px; }
  .akw-strip-msg { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .akw-strip-go, .akw-collection-grid li.wc-block-product-template__item, .akw-btn a {
    transition-duration: .01ms !important;
  }
}
