/* ==========================================================================
   Decemberday Coffee Catalog - Premium Design System (Forest Green + White)
   ========================================================================== */

:root {
  /* Green & White Premium Palette (HSL-based) */
  --primary-hue: 162;
  --green-950: hsl(var(--primary-hue), 55%, 5%);     /* Deep Forest Black */
  --green-900: hsl(var(--primary-hue), 50%, 8%);     /* Rich Forest Green */
  --green-800: hsl(var(--primary-hue), 48%, 14%);    /* Deep Sage Green */
  --green-700: hsl(var(--primary-hue), 45%, 22%);    /* Forest Accent */
  --green-600: hsl(var(--primary-hue), 42%, 28%);
  --green-500: hsl(var(--primary-hue), 40%, 36%);    /* Mid Forest */
  --green-300: hsl(var(--primary-hue), 30%, 65%);
  --green-100: hsl(var(--primary-hue), 24%, 92%);    /* Soft Sage Tint */
  --green-50:  hsl(var(--primary-hue), 20%, 97%);    /* Off-white Background */

  /* Gold / Brass Accent */
  --gold-hue: 38;
  --gold-600: hsl(var(--gold-hue), 70%, 42%);        /* Deep Amber */
  --gold-500: hsl(var(--gold-hue), 65%, 52%);        /* Brand Gold */
  --gold-400: hsl(var(--gold-hue), 70%, 65%);        /* Light Amber Accent */
  --gold-100: hsl(var(--gold-hue), 40%, 94%);        /* Delicate Gold Backing */

  /* Neutrals */
  --bg-white: #ffffff;
  --text-dark: hsl(var(--primary-hue), 40%, 10%);
  --text-muted: hsl(var(--primary-hue), 15%, 45%);
  --text-light: #ffffff;

  /* Transparent Tokens */
  --line-color: rgba(11, 41, 30, 0.08);
  --line-color-light: rgba(11, 41, 30, 0.04);
  --shadow-color: rgba(11, 41, 30, 0.06);

  /* Borders & Shadows */
  --border-thin: 1px solid var(--line-color);
  --border-light: 1px solid rgba(11, 41, 30, 0.05);
  --border-accent: 1px solid rgba(217, 119, 6, 0.2);
  --shadow-sm: 0 2px 8px var(--shadow-color);
  --shadow-md: 0 10px 30px rgba(11, 41, 30, 0.06);
  --shadow-lg: 0 20px 48px rgba(11, 41, 30, 0.1);
  --shadow-xl: 0 30px 70px rgba(11, 41, 30, 0.16);

  /* Radius & Transitions */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  color-scheme: light;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

section[id] {
  scroll-margin-top: 100px;
}

body {
  background: var(--green-50);
  color: var(--text-dark);
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Thai", "Noto Sans Thai", "Sarabun", sans-serif;
  line-height: 1.62;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   Typography & Kickers
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand-line,
.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold-600);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-heading {
  margin-bottom: 36px;
  max-width: 800px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--green-950);
  margin-bottom: 12px;
}

.section-heading p:not(.section-kicker) {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--text-muted);
  font-weight: 400;
}

/* ==========================================================================
   UI Components (Buttons & Inputs)
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.96rem;
  transition: var(--transition-smooth);
}

.button.primary {
  color: var(--text-light);
  background: var(--green-900);
  box-shadow: 0 8px 24px rgba(11, 41, 30, 0.18);
}

.button.primary:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(11, 41, 30, 0.25);
}

.button.light {
  color: var(--green-900);
  background: var(--bg-white);
  border: 1px solid var(--line-color);
  box-shadow: var(--shadow-sm);
}

.button.light:hover {
  background: var(--green-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button.ghost {
  color: var(--green-900);
  background: transparent;
  border: 1px solid rgba(11, 41, 30, 0.14);
}

.button.ghost:hover {
  background: rgba(11, 41, 30, 0.04);
}

.button.secondary {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.button:disabled,
.card-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Header Component
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 80px;
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: var(--border-thin);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-xs);
  background: var(--green-950);
  box-shadow: 0 4px 12px rgba(11, 41, 30, 0.2);
  transition: var(--transition-smooth);
}

.brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(11, 41, 30, 0.3);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.brand::after {
  content: "Decemberday Coffee";
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 36px);
  color: var(--green-950);
  font-size: 0.94rem;
  font-weight: 600;
}

.header-nav a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  opacity: 0.85;
}

.header-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--green-900);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.header-nav a:hover {
  opacity: 1;
  color: var(--green-900);
}

.header-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-light);
  background: var(--green-900);
  box-shadow: 0 4px 14px rgba(11, 41, 30, 0.15);
  transition: var(--transition-smooth);
}

.header-cta:hover {
  background: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11, 41, 30, 0.25);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: clamp(48px, 6vw, 96px) clamp(20px, 5vw, 72px) clamp(40px, 5vw, 80px);
  background: linear-gradient(135deg, hsl(162, 60%, 4%) 0%, hsl(162, 50%, 9%) 50%, hsl(162, 45%, 15%) 100%);
  color: var(--text-light);
}

.hero-copy {
  max-width: 780px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(120deg, #ffffff 40%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-actions .button.primary {
  background: var(--gold-500);
  color: var(--green-950);
}

.hero-actions .button.primary:hover {
  background: var(--gold-400);
  box-shadow: 0 10px 24px rgba(217, 163, 92, 0.35);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero-stats div {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.hero-stats div:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-stats dt {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.hero-stats dd {
  color: var(--text-light);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
}

.hero-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
  transition: var(--transition-smooth);
}

.hero-media:hover {
  transform: scale(1.01);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hero-media img {
  width: 100%;
  height: min(65vh, 600px);
  object-fit: cover;
}

/* ==========================================================================
   Common Section Band
   ========================================================================== */

.summary-band,
.advisor-band,
.packages-band,
.catalog-shell,
.contact-strip {
  padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 72px);
}

/* ==========================================================================
   Summary Band (Category Grid)
   ========================================================================== */

.summary-band {
  background: var(--bg-white);
  position: relative;
}

.category-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 30px;
  border-radius: var(--radius-md);
  border: var(--border-thin);
  background: var(--green-50);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.summary-card:hover {
  transform: translateY(-4px);
  background: var(--bg-white);
  border-color: var(--green-700);
  box-shadow: var(--shadow-lg);
}

.summary-card strong {
  color: var(--green-950);
  font-size: 1.35rem;
  font-weight: 700;
}

.summary-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.summary-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-900);
  font-weight: 700;
  font-size: 0.94rem;
  margin-top: 8px;
}

.summary-card a::after {
  content: "→";
  transition: var(--transition-fast);
}

.summary-card a:hover::after {
  transform: translateX(4px);
}

/* ==========================================================================
   Advisor Band (Coffee Shop Configurator)
   ========================================================================== */

.advisor-band {
  background: linear-gradient(180deg, var(--green-50) 0%, #ffffff 100%);
}

.advisor-shell {
  display: grid;
  gap: 32px;
}

.advisor-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.advisor-steps {
  display: grid;
  gap: 16px;
}

.advisor-step {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: var(--border-thin);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.advisor-step:hover {
  border-color: rgba(11, 41, 30, 0.16);
  box-shadow: var(--shadow-md);
}

.advisor-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.advisor-step-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  color: var(--text-light);
  background: var(--green-900);
  font-size: 0.88rem;
  font-weight: 700;
}

.advisor-step h3 {
  font-size: 1.16rem;
  color: var(--green-950);
}

.advisor-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.advisor-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  text-align: left;
  border-radius: var(--radius-sm);
  border: var(--border-thin);
  background: var(--green-50);
  transition: var(--transition-smooth);
}

.advisor-option strong {
  font-size: 0.98rem;
  color: var(--green-950);
}

.advisor-option span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.advisor-option:hover {
  border-color: var(--green-600);
  background: var(--bg-white);
}

.advisor-option[aria-pressed="true"] {
  background: var(--green-900);
  border-color: var(--green-900);
  box-shadow: 0 8px 18px rgba(11, 41, 30, 0.15);
}

.advisor-option[aria-pressed="true"] strong {
  color: var(--text-light);
}

.advisor-option[aria-pressed="true"] span {
  color: rgba(255, 255, 255, 0.75);
}

/* Checkmark indicator for selected */
.advisor-option[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gold-500);
  color: var(--green-950);
  font-size: 0.72rem;
  font-weight: 900;
}

/* Advisor Results Side Panel */
.advisor-result {
  position: sticky;
  top: 100px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--green-950);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl);
}

.advisor-result-head {
  margin-bottom: 20px;
}

.advisor-result-head h3 {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.advisor-result-head p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.advisor-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.advisor-selected span {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(217, 163, 92, 0.12);
  border: 1px solid rgba(217, 163, 92, 0.25);
  color: var(--gold-400);
  font-size: 0.76rem;
  font-weight: 700;
}

.advisor-set-list {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.advisor-set-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.advisor-set-card.is-primary {
  background: rgba(217, 163, 92, 0.06);
  border-color: rgba(217, 163, 92, 0.28);
}

.advisor-set-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.advisor-set-badge {
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--gold-500);
  color: var(--green-950);
  font-size: 0.76rem;
  font-weight: 800;
}

.advisor-score {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-400);
}

.advisor-set-card h4 {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.advisor-set-card > p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 16px;
}

.advisor-items {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.advisor-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.advisor-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.advisor-item p {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.advisor-item h4 {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advisor-item strong {
  font-size: 0.88rem;
  color: var(--gold-400);
}

.advisor-item .card-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.76rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

.advisor-item .card-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.advisor-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  background: rgba(217, 163, 92, 0.08);
  border: 1px solid rgba(217, 163, 92, 0.2);
  margin-bottom: 16px;
}

.advisor-total span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
}

.advisor-total strong {
  font-size: 1.15rem;
  color: var(--gold-400);
  font-weight: 800;
}

.advisor-reasons {
  list-style: none;
  display: grid;
  gap: 6px;
}

.advisor-reasons li {
  position: relative;
  padding-left: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.advisor-reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--gold-500);
}

.advisor-result-actions {
  margin-top: 16px;
}

.advisor-result-actions .button {
  width: 100%;
}

.advisor-copy-actions {
  margin-top: 12px;
}

.advisor-copy-actions .button {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

.advisor-copy-actions .button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.advisor-alert {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-xs);
  background: rgba(217, 163, 92, 0.9);
  color: var(--green-950);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

/* ==========================================================================
   Starter Packages Section
   ========================================================================== */

.packages-band {
  background: var(--green-950);
  color: var(--text-light);
  position: relative;
}

.packages-band .section-heading h2 {
  color: var(--text-light);
}

.packages-band .section-heading p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.7);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.package-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.package-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.package-card.featured {
  border-color: var(--gold-500);
  background: rgba(217, 163, 92, 0.04);
}

.package-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--gold-500);
  color: var(--green-950);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.package-card h3 {
  font-size: 1.45rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.package-card p:not(.package-label) {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.package-items {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.package-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.package-items span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.package-items strong {
  font-size: 0.9rem;
  color: var(--gold-400);
}

.package-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.package-footer span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.package-footer strong {
  font-size: 1.25rem;
  color: var(--gold-400);
  font-weight: 800;
}

.package-actions {
  display: grid;
  gap: 10px;
}

.package-actions .card-button {
  min-height: 44px;
}

.package-actions .card-button.primary {
  background: var(--gold-500);
  color: var(--green-950);
  border-color: var(--gold-500);
}

.package-actions .card-button.primary:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
}

.package-actions .card-button:not(.primary) {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.15);
}

.package-actions .card-button:not(.primary):hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Catalog Section & Controls
   ========================================================================== */

.catalog-shell {
  background: var(--green-50);
  position: relative;
}

.catalog-toolbar {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.controls {
  display: grid;
  gap: 16px;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-field span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-950);
}

.search-field input {
  height: 52px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: var(--border-thin);
  box-shadow: var(--shadow-sm);
  outline: none;
  font-size: 0.98rem;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.search-field input:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(11, 41, 30, 0.06);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-filter,
.budget-filter {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  border: var(--border-thin);
}

.brand-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.brand-filter-head span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-950);
}

.brand-reset {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-700);
  text-decoration: underline;
}

.brand-reset:hover {
  color: var(--green-900);
}

.brand-tabs,
.budget-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-button,
.brand-button,
.budget-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-xs);
  background: var(--bg-white);
  border: var(--border-thin);
  color: var(--green-950);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.tab-button:hover,
.brand-button:hover,
.budget-button:hover {
  background: var(--green-50);
  border-color: var(--green-600);
}

.tab-button[aria-selected="true"],
.brand-button[aria-pressed="true"],
.budget-button[aria-pressed="true"] {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(11, 41, 30, 0.15);
}

.tab-button {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.94rem;
}

.catalog-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 16px;
}

/* ==========================================================================
   Quote & Compare Panels
   ========================================================================== */

.quote-panel,
.compare-panel {
  margin-top: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: var(--border-thin);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.quote-panel-main,
.compare-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid rgba(11, 41, 30, 0.06);
}

.quote-panel h3,
.compare-panel h3 {
  font-size: 1.25rem;
  color: var(--green-950);
  margin-bottom: 4px;
}

.quote-panel p,
.compare-panel p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-actions .button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.quote-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px;
  background: var(--green-50);
}

.quote-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px 0 14px;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  border: 1px solid rgba(11, 41, 30, 0.08);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green-950);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.quote-chip:hover {
  border-color: rgba(217, 119, 6, 0.3);
  background: var(--gold-100);
}

.quote-chip span {
  color: var(--text-muted);
  font-size: 1.15rem;
  font-weight: 400;
}

.panel-notice {
  padding: 12px 24px;
  background: var(--gold-100);
  border-top: 1px solid rgba(217, 119, 6, 0.15);
  color: var(--gold-600);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Compare Matrix Grid */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(var(--compare-count, 3), 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--green-50);
}

.compare-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: var(--border-thin);
  box-shadow: var(--shadow-sm);
}

.compare-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: var(--green-100);
  margin-bottom: 12px;
}

.compare-card h4 {
  font-size: 0.94rem;
  color: var(--green-950);
  margin-bottom: 4px;
}

.compare-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--green-900);
  margin-bottom: 8px;
}

.compare-card ul {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border-top: 1px dashed rgba(11, 41, 30, 0.08);
  padding-top: 12px;
}

.compare-card li {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.compare-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(11, 41, 30, 0.8);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.compare-remove:hover {
  background: var(--green-950);
  transform: scale(1.05);
}

/* ==========================================================================
   Catalog Results (Grid, Category & Brand Sections)
   ========================================================================== */

.catalog-results {
  display: grid;
  gap: 48px;
  margin-top: 32px;
}

.category-section {
  display: grid;
  gap: 24px;
}

.category-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--green-900);
}

.category-section-header h3 {
  font-size: 1.65rem;
  color: var(--green-950);
}

.category-section-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.category-section-header > p {
  font-weight: 700;
  color: var(--green-900);
}

.brand-section {
  display: grid;
  gap: 16px;
}

.brand-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.65);
  border: var(--border-thin);
}

.brand-section-header h4 {
  font-size: 1.1rem;
  color: var(--green-950);
}

.brand-section-header p {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

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

/* ==========================================================================
   Product Card
   ========================================================================== */

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: var(--border-thin);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 41, 30, 0.16);
  box-shadow: var(--shadow-lg);
}

.product-card.is-quoted {
  border-color: var(--gold-500);
  box-shadow: 0 8px 24px rgba(217, 163, 92, 0.12);
}

.product-card.is-compared {
  outline: 2px solid var(--green-900);
  outline-offset: -2px;
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--green-100);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

.category-label,
.spec-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(11, 41, 30, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-light);
  font-size: 0.74rem;
  font-weight: 700;
}

.spec-label {
  left: auto;
  right: 12px;
  background: var(--gold-500);
  color: var(--green-950);
  font-weight: 800;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  flex-grow: 1;
}

.product-brand {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-title {
  font-size: 1.1rem;
  color: var(--green-950);
  font-weight: 700;
  line-height: 1.3;
  min-height: 2.6em; /* Align cards */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--green-900);
}

.recommend-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recommend-badges span {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(217, 163, 92, 0.08);
  border: 1px solid rgba(217, 163, 92, 0.16);
  color: var(--gold-600);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-description {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto; /* Push features to bottom */
}

.feature-list li {
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: var(--green-50);
  border: 1px solid rgba(11, 41, 30, 0.05);
  color: var(--green-700);
  font-size: 0.74rem;
  font-weight: 600;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(11, 41, 30, 0.05);
  padding-top: 16px;
}

.card-actions button {
  width: 100%;
}

.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  font-size: 0.84rem;
  font-weight: 700;
  transition: var(--transition-fast);
  border: 1px solid rgba(11, 41, 30, 0.12);
  background: var(--bg-white);
  color: var(--green-950);
}

.card-button:hover {
  background: var(--green-50);
  border-color: var(--green-700);
}

.card-button.primary {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--text-light);
}

.card-button.primary:hover {
  background: var(--green-800);
  border-color: var(--green-800);
}

.card-button.active {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--green-950);
}

/* Span action grids */
.card-actions button[data-open-product] {
  grid-column: 1 / -1;
  min-height: 40px;
}

.card-actions button[data-share-product] {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  min-height: 32px;
  border-color: transparent;
  color: var(--text-muted);
}

.card-actions button[data-share-product]:hover {
  background: transparent;
  color: var(--green-900);
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  padding: 48px;
  border: 2px dashed rgba(11, 41, 30, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Contact Strip
   ========================================================================== */

.contact-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background: var(--green-950);
  color: var(--text-light);
}

.contact-strip h2 {
  color: var(--text-light);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 8px;
}

.contact-strip p:not(.section-kicker) {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact-strip .button {
  background: var(--gold-500);
  color: var(--green-950);
}

.contact-strip .button:hover {
  background: var(--gold-400);
}

/* ==========================================================================
   Floating Dock Component
   ========================================================================== */

.floating-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateY(120px) translateX(-50%); /* Start hidden/slid down */
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: rgba(11, 41, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 32px rgba(11, 41, 30, 0.35);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-dock.show {
  transform: translateY(0) translateX(-50%);
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.dock-btn.quote {
  background: var(--gold-500);
  color: var(--green-950);
}

.dock-btn.quote:hover {
  background: var(--gold-400);
}

.dock-btn.compare {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-btn.compare:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dock-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
}

.dock-btn.quote span {
  background: var(--green-950);
  color: var(--text-light);
}

.dock-btn.compare span {
  background: var(--gold-500);
  color: var(--green-950);
}

/* ==========================================================================
   Modal Dialog Layout
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 21, 15, 0.82);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  box-shadow: var(--shadow-xl);
  border: var(--border-thin);
  animation: modalEnter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 12;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--green-950);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.modal-close:hover {
  transform: rotate(90deg);
  background: var(--green-900);
}

.modal-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  padding: 40px;
}

.modal-gallery {
  display: grid;
  gap: 16px;
}

.modal-gallery figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: var(--border-thin);
  background: var(--green-50);
  box-shadow: var(--shadow-sm);
}

.modal-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.modal-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-copy .brand-line {
  margin-bottom: 0;
}

.modal-copy h2 {
  font-size: 2rem;
  color: var(--green-950);
}

.modal-copy .product-brand {
  margin-bottom: 4px;
}

.modal-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-900);
}

.modal-copy p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.modal-actions .button {
  width: 100%;
}

.modal-actions .button.primary {
  background: var(--green-900);
}

.modal-actions .button.primary:hover {
  background: var(--green-800);
}

.spec-gallery {
  margin-top: 12px;
  border-top: 1px dashed var(--line-color);
  padding-top: 24px;
  display: grid;
  gap: 12px;
}

.spec-gallery figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: var(--border-thin);
}

.modal-box {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  border: var(--border-thin);
}

.modal-box h3 {
  font-size: 1.05rem;
  color: var(--green-950);
  margin-bottom: 8px;
}

.modal-box p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.modal-box .button {
  width: 100%;
  min-height: 40px;
}

body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1100px) {
  .hero,
  .advisor-board,
  .modal-layout {
    grid-template-columns: 1fr;
  }

  .advisor-result {
    position: static;
    margin-top: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 60px;
  }

  .hero-media img {
    height: auto;
    max-height: 480px;
  }

  .product-grid,
  .package-grid,
  .compare-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: auto;
    padding: 12px 20px;
  }

  .header-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 20px;
    /* Hide scrollbar for nav */
    scrollbar-width: none; /* Firefox */
  }

  .header-nav::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }

  section[id] {
    scroll-margin-top: 130px;
  }

  .brand::after {
    content: "Decemberday";
    font-size: 0.86rem;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.15;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .category-summary,
  .package-grid,
  .advisor-options,
  .product-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .package-card,
  .advisor-step {
    padding: 24px;
  }

  .advisor-item {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 16px;
  }

  .advisor-item img {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    aspect-ratio: 1/1;
  }

  .advisor-item h4 {
    white-space: normal;
  }

  .advisor-item .card-button {
    width: 100%;
    margin-top: 8px;
  }

  .quote-panel-main,
  .compare-head {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .quote-actions {
    justify-content: flex-start;
  }

  .quote-actions .button,
  .compare-head .button {
    flex: 1 1 calc(50% - 8px);
  }

  .catalog-results {
    gap: 36px;
  }

  .category-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .modal-layout {
    padding: 24px;
    gap: 20px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .floating-dock {
    width: calc(100% - 32px);
    border-radius: var(--radius-md);
  }

  .dock-btn {
    flex: 1 1 50%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
