/*
Theme Name: Hawaiian Christmas Shirts
Theme URI: https://hawaiianchristmasshirts.com
Author: Hawaiian Christmas Shirts
Description: Mele Kalikimaka editorial landing theme for hawaiianchristmasshirts.com — embroidered, made-in-Hawaii cotton, and made-in-Hawaii rayon Christmas shirts with a countdown to Christmas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hawaiianchristmasshirts
Tags: e-commerce, one-column, custom-colors
*/

/* ==========================================================
   Mele Kalikimaka Editorial — design tokens
   ========================================================== */
:root {
  --palm: #0e3b2e;
  --palm-deep: #092a20;
  --palm-soft: #1a4f3e;
  --hibiscus: #c8402f;
  --hibiscus-dark: #a72f21;
  --gold: #d9a441;
  --sand: #f7f1e5;
  --sand-deep: #efe5d2;
  --leaf: #dfe8d9;
  --ink: #17251f;
  --paper: #fffdf7;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", sans-serif;

  --radius: 14px;
  --shadow-card: 0 10px 30px -12px rgba(14, 59, 46, 0.25);
  --shadow-lift: 0 24px 50px -20px rgba(14, 59, 46, 0.4);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--palm); }

/* Grain overlay for atmosphere */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 44px); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 241, 229, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14, 59, 46, 0.12);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--palm);
  text-decoration: none;
  line-height: 1.1;
}
.brand em {
  font-style: italic;
  color: var(--hibiscus);
}
.main-nav { display: flex; gap: clamp(14px, 2.5vw, 30px); align-items: center; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--hibiscus);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.main-nav a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--hibiscus);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(200, 64, 47, 0.55);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(200, 64, 47, 0.65); }
@media (max-width: 760px) {
  .main-nav a:not(.nav-cta) { display: none; }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 clamp(120px, 14vw, 180px);
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(217, 164, 65, 0.22), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(200, 64, 47, 0.12), transparent 60%),
    var(--sand);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--palm);
  margin-bottom: 22px;
}
.hero-kicker::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--hibiscus);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  color: var(--palm);
}
.hero h1 .script {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--hibiscus);
}
.hero-lede {
  max-width: 34em;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: rgba(23, 37, 31, 0.82);
  margin-bottom: 34px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
}
.btn-primary {
  background: var(--palm);
  color: var(--sand);
  box-shadow: 0 12px 26px -10px rgba(14, 59, 46, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); background: var(--palm-soft); }
.btn-ghost {
  color: var(--palm);
  border: 2px solid rgba(14, 59, 46, 0.3);
}
.btn-ghost:hover { border-color: var(--palm); transform: translateY(-3px); }

/* Hero countdown — ticket-stub chip */
.hero-count {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 20px);
  margin-top: 34px;
  padding: 14px 22px 12px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  position: relative;
  transform: rotate(-1deg);
  transition: transform 0.35s var(--ease-out);
}
.hero-count:hover { transform: rotate(0deg); }
.hero-count::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(14, 59, 46, 0.3);
  border-radius: 9px;
  pointer-events: none;
}
.hero-count-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--hibiscus);
  padding-right: 16px;
  border-right: 1px solid rgba(14, 59, 46, 0.15);
}
.hc-unit { display: inline-flex; flex-direction: column; align-items: center; min-width: 44px; }
.hc-unit b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1;
  color: var(--palm);
  font-variant-numeric: tabular-nums;
}
.hc-unit i {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(23, 37, 31, 0.55);
  margin-top: 4px;
}
.hc-sec b { color: var(--hibiscus); }
.hc-sep { color: var(--gold); font-size: 1.2rem; align-self: flex-start; margin-top: 4px; }
@media (max-width: 480px) {
  .hero-count { gap: 10px; padding: 12px 16px 10px; }
  .hero-count-label { font-size: 0.8rem; padding-right: 10px; }
  .hc-unit { min-width: 36px; }
}

/* Hero collage */
.hero-collage { position: relative; min-height: 420px; }
.polaroid {
  position: absolute;
  background: var(--paper);
  padding: 10px 10px 40px;
  border-radius: 6px;
  box-shadow: var(--shadow-lift);
  width: clamp(160px, 17vw, 240px);
  transition: transform 0.4s var(--ease-out);
}
.polaroid img { border-radius: 3px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.polaroid figcaption {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(23, 37, 31, 0.7);
}
.polaroid-1 { top: 0; left: 4%; transform: rotate(-6deg); z-index: 3; }
.polaroid-2 { top: 12%; right: 2%; transform: rotate(4deg); z-index: 2; }
.polaroid-3 { bottom: 0; left: 26%; transform: rotate(-2deg); z-index: 4; }
.polaroid:hover { transform: rotate(0deg) scale(1.04); z-index: 9; }
.hero-stamp {
  position: absolute;
  top: -8px; right: 18%;
  z-index: 5;
  width: 124px; height: 124px;
}
.stamp-ring {
  width: 100%; height: 100%;
  display: block;
  animation: spin 30s linear infinite;
  filter: drop-shadow(0 6px 14px rgba(14, 59, 46, 0.25));
}
.stamp-tree {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px; height: 70px;
  transform-origin: 52% 94%;
  animation: sway 4.5s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { min-height: 380px; margin-top: 10px; }
}

/* Wave divider */
.wave { display: block; width: 100%; height: clamp(50px, 8vw, 110px); position: absolute; bottom: -1px; left: 0; }
.wave svg { width: 100%; height: 100%; display: block; }

/* ==========================================================
   Marquee
   ========================================================== */
.marquee {
  background: var(--palm);
  color: var(--sand);
  overflow: hidden;
  padding: 14px 0;
  border-block: 3px solid var(--gold);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .dot { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   Sections
   ========================================================== */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-alt { background: var(--paper); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 50px);
}
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hibiscus);
  margin: 0 0 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--palm);
  margin: 0;
}
.section-title em { font-style: italic; color: var(--hibiscus); }
.section-intro {
  max-width: 60ch;
  color: rgba(23, 37, 31, 0.8);
  margin-top: 18px;
}
.section-link {
  white-space: nowrap;
  font-weight: 700;
  text-decoration: none;
  color: var(--palm);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.2s;
}
.section-link:hover { color: var(--hibiscus); }
@media (max-width: 700px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

/* ==========================================================
   Product cards — postage stamp style
   ========================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
@media (max-width: 1020px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 12px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  /* stamp perforation edge */
  background-image: radial-gradient(circle at 8px 8px, transparent 0, transparent 100%);
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(14, 59, 46, 0.25);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}
.product-card:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: var(--shadow-lift); }
.product-media {
  position: relative;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--leaf);
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.product-card:hover .product-media img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--gold);
  color: var(--palm-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.product-badge.badge-low { background: var(--hibiscus); color: #fff; }
.product-info { padding: 14px 6px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: var(--palm);
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.92rem;
}
.product-price { font-weight: 800; color: var(--hibiscus-dark); }
.product-go {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(23, 37, 31, 0.55);
  transition: color 0.2s, transform 0.3s var(--ease-out);
}
.product-card:hover .product-go { color: var(--hibiscus); transform: translateX(3px); }

/* ==========================================================
   Editorial / education blocks
   ========================================================== */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
  margin-top: clamp(30px, 4vw, 46px);
}
@media (max-width: 860px) { .editorial-grid { grid-template-columns: 1fr; } }
.editorial-card {
  background: var(--sand-deep);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  border-top: 4px solid var(--gold);
}
.editorial-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--palm);
}
.editorial-card p { margin: 0; color: rgba(23, 37, 31, 0.8); font-size: 0.98rem; }
.editorial-card .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--hibiscus);
  display: block;
  margin-bottom: 8px;
}

/* ==========================================================
   Limited batch — dark section + countdown
   ========================================================== */
.limited {
  background:
    radial-gradient(900px 500px at 110% 0%, rgba(217, 164, 65, 0.15), transparent 55%),
    radial-gradient(700px 500px at -10% 100%, rgba(200, 64, 47, 0.2), transparent 55%),
    var(--palm-deep);
  color: var(--sand);
}
.limited .section-title { color: var(--sand); }
.limited .section-eyebrow { color: var(--gold); }
.limited .section-intro { color: rgba(247, 241, 229, 0.75); }
.limited .product-card { background: rgba(255, 253, 247, 0.06); box-shadow: none; border: 1px solid rgba(247, 241, 229, 0.15); }
.limited .product-card::before { border-color: rgba(247, 241, 229, 0.18); }
.limited .product-name { color: var(--sand); }
.limited .product-price { color: var(--gold); }
.limited .product-go { color: rgba(247, 241, 229, 0.6); }
.limited .product-card:hover { box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); }

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.6vw, 18px);
  margin: clamp(26px, 4vw, 44px) 0 clamp(36px, 5vw, 56px);
}
.count-cell {
  min-width: clamp(76px, 9vw, 120px);
  background: rgba(247, 241, 229, 0.07);
  border: 1px solid rgba(217, 164, 65, 0.4);
  border-radius: var(--radius);
  padding: clamp(14px, 2vw, 22px) clamp(10px, 1.5vw, 18px);
  text-align: center;
  backdrop-filter: blur(4px);
}
.count-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  display: block;
}
.count-label {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 241, 229, 0.65);
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq-list { max-width: 820px; margin-top: 10px; }
.faq-item {
  border-bottom: 1px solid rgba(14, 59, 46, 0.15);
  padding: 6px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--palm);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--hibiscus);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: rgba(23, 37, 31, 0.8); max-width: 65ch; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  background: var(--palm);
  color: rgba(247, 241, 229, 0.8);
  padding: clamp(44px, 6vw, 70px) 0 30px;
  border-top: 4px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--font-display);
  color: var(--sand);
  font-size: 1.05rem;
  margin: 0 0 14px;
}
.site-footer a { color: rgba(247, 241, 229, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--sand);
  margin-bottom: 10px;
}
.footer-brand em { font-style: italic; color: var(--gold); }
.footer-note { font-size: 0.9rem; max-width: 40ch; }
.footer-bottom {
  border-top: 1px solid rgba(247, 241, 229, 0.15);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(247, 241, 229, 0.55);
}

/* ==========================================================
   Scroll reveal
   ========================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.54s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track, .stamp-ring, .stamp-tree { animation: none; }
}

/* Generic WordPress content fallback */
.entry-content { max-width: 760px; margin: 60px auto; padding-inline: 20px; }
.entry-content h1, .entry-content h2 { font-family: var(--font-display); color: var(--palm); }
