/*
 * Home page styles
 * Depends on: base.css
 */

:root {
  --ct-primary: var(--color-primary);
  --ct-primary-dark: var(--color-primary-dark);
  --ct-primary-container: var(--color-primary-light);
  --ct-on-primary: #ffffff;
  --ct-on-primary-container: #7c2d12;
  --ct-tertiary: var(--color-accent-red);
  --ct-surface: var(--color-primary-bg);
  --ct-on-surface: var(--color-text);
  --ct-secondary: var(--color-text-muted);
  --ct-outline-variant: #fdba74;
  --ct-surface-container-lowest: #ffffff;
  --ct-surface-container-low: #fff7ed;
  --ct-surface-container-high: #ffedd5;

  /* Shared header / bottom chrome */
  --home-chrome-bg: rgba(255, 255, 255, 0.96);
  --home-chrome-border: #e7e5e4;
  --home-chrome-active-bg: rgba(249, 115, 22, 0.1);

  /* Home layout inset from viewport edges */
  --home-inset-x: 1.75rem;
  --home-inset-top: 1.5rem;
  --home-inset-bottom: 1.75rem;
}

body.page-home {
  background-color: var(--ct-surface);
  color: var(--ct-on-surface);
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  padding-bottom: 9.5rem;
}

.page-home .home-container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--home-inset-x);
  padding-right: var(--home-inset-x);
}

.page-home .home-main {
  padding-top: 1rem;
  padding-bottom: 8rem;
}

.page-home .brand-title {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-3xl));
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
}

.page-home .home-tagline {
  display: block;
  font-size: var(--font-size-md);
  color: var(--ct-secondary);
  margin-top: 0.25rem;
}

.page-home .home-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: max(var(--home-inset-top), env(safe-area-inset-top, 0px));
  padding-bottom: 0.75rem;
}

.page-home .home-header__inner {
  background: var(--home-chrome-bg, rgba(255, 255, 255, 0.96));
  backdrop-filter: blur(10px);
  border: 1px solid var(--home-chrome-border, var(--color-border));
  border-radius: var(--radius-md, 0.5rem);
  padding: 0.5rem 1rem;
}

.page-home .home-header__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 0;
}

.page-home .home-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 0;
}

.page-home .home-header__brand-text {
  min-width: 0;
}

@media (max-width: 575px) {
  .page-home .home-tagline {
    display: none;
  }
}

/* Mobile-only header tweaks — desktop layout stays row + compact search */
@media (max-width: 767.98px) {
  :root {
    --home-inset-x: 0.75rem;
    --home-inset-top: 0.25rem;
  }

  .page-home .home-header {
    padding-top: max(0.25rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.4rem;
  }

  .page-home .home-header__inner {
    padding: 0.3rem 0.45rem;
  }

  .page-home .home-header__top {
    gap: 0.35rem;
  }

  .page-home .home-header__brand {
    flex: 0 1 auto;
    gap: 0.1rem;
    max-width: 40%;
  }

  .page-home .home-header__brand-text {
    overflow: hidden;
  }

  .page-home .brand-title,
  .page-home .brand-title .brand-logo {
    font-size: 0.92rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
    white-space: nowrap;
  }

  .page-home .icon-btn {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
  }

  .page-home .icon-btn .material-symbols-outlined {
    font-size: 1.2rem;
  }

  .page-home .home-search--header {
    flex: 1 1 0;
    max-width: none;
    margin-left: 0;
    padding: 0.32rem 0.5rem;
    gap: 0.3rem;
  }

  .page-home .home-search .material-symbols-outlined {
    font-size: 1.05rem;
  }

  .page-home .home-search input {
    font-size: 0.8rem;
    min-width: 0;
  }

  .page-home .home-main {
    padding-top: 0.55rem;
  }
}

.page-home .demo-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: #fff7ed;
  border: 1px solid var(--color-border);
  color: #9a3412;
  font-size: var(--font-size-md);
}

.page-home .demo-banner p {
  margin: 0;
  line-height: var(--line-height-base);
}

.page-home .demo-banner code {
  font-size: var(--font-size-sm);
  color: #c2410c;
}

.page-home .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-home .section-sub {
  margin: 0.25rem 0 0;
  font-size: var(--font-size-md);
  color: var(--ct-secondary);
}

.page-home .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ct-primary);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-home .icon-btn:hover {
  background: var(--ct-surface-container-high);
  color: var(--ct-primary-dark);
}

.page-home .icon-btn .material-symbols-outlined {
  font-size: var(--font-size-xl);
}

.page-home .material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.page-home .home-search-wrap {
  padding-bottom: 1.5rem !important;
}

.page-home .home-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--home-chrome-border, var(--ct-outline-variant));
  border-radius: var(--radius-md, 0.5rem);
  background: var(--ct-surface-container-lowest);
}

.page-home .home-search--header {
  flex: 1;
  min-width: 0;
  max-width: 22rem;
  margin-left: auto;
  padding: 0.5rem 0.75rem;
}

.page-home .home-search .material-symbols-outlined {
  font-size: var(--font-size-lg);
  color: var(--ct-secondary);
  flex-shrink: 0;
}

.page-home .home-search input {
  border: none;
  outline: none;
  width: 100%;
  min-width: 0;
  background: transparent;
  font-size: var(--font-size-md);
  color: var(--ct-on-surface);
}

.page-home .home-search input::placeholder {
  color: var(--ct-secondary);
}

.page-home .home-search:focus-within {
  border-color: var(--ct-primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.page-home .home-search:focus-within .material-symbols-outlined {
  color: var(--ct-primary);
}

.page-home .hero-card {
  position: relative;
  height: 420px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.2);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home .hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.26);
  color: inherit;
}

.page-home .hero-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.page-home .hero-card:hover .hero-card__image {
  transform: scale(1.05);
}

.page-home .hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%);
}

.page-home .hero-card__content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 2rem;
}

.page-home .badge-featured {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--ct-primary);
  color: var(--ct-on-primary);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.page-home .hero-title {
  font-family: var(--font-family-display);
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
  font-weight: 700;
  color: #fff;
  line-height: var(--line-height-tight);
  margin: 0.75rem 0;
}

.page-home .hero-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  max-width: 36rem;
  margin-bottom: 0;
  line-height: var(--line-height-base);
}

.page-home .btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 0.625rem;
  background: var(--ct-primary);
  color: var(--ct-on-primary);
  font-size: var(--font-size-md);
  font-weight: 700;
  text-decoration: none;
}

.page-home .btn-hero:hover {
  background: var(--ct-primary-dark);
  color: var(--ct-on-primary);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.page-home .section-heading {
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--ct-on-surface);
  margin-bottom: 0;
}

.page-home .section-link {
  color: var(--ct-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--font-size-md);
}

.page-home .section-link:hover {
  text-decoration: underline;
  color: var(--ct-primary);
}

.page-home .color-scroll {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 0;
  scrollbar-width: none;
}

.page-home .color-scroll::-webkit-scrollbar {
  display: none;
}

.page-home a.color-item,
.page-home .color-item {
  display: block;
  flex: 0 0 auto;
  min-width: 3.15rem;
  width: auto;
  /* Same inset on every swatch so active ring never clips, spacing stays even */
  padding: 4px;
  box-sizing: content-box;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  scroll-snap-align: start;
  user-select: none;
}

.page-home a.color-item:hover {
  color: inherit;
}

.page-home .color-ring {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  margin: 0 auto 0.3rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.page-home .color-ring--all {
  background: #fff7ed;
}

.page-home .color-dot {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}

.page-home .color-dot--all {
  background: conic-gradient(
    #c62828 0deg 45deg,
    #f97316 45deg 90deg,
    #ca8a04 90deg 135deg,
    #15803d 135deg 180deg,
    #2563eb 180deg 225deg,
    #7c3aed 225deg 270deg,
    #171717 270deg 315deg,
    #e5e5e5 315deg 360deg
  );
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.page-home .color-item.is-active .color-ring {
  border-color: #171717;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.28);
  transform: scale(1.04);
}

.page-home .color-item[data-color='white'] .color-dot {
  border: 1px solid #e5e5e5;
}

.page-home .color-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--ct-secondary);
}

.page-home .color-item.is-active .color-label {
  color: #171717;
}

.page-home .color-count {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.2;
}

.page-home .color-item.is-active .color-count {
  color: var(--ct-primary);
}

@media (min-width: 768px) {
  .page-home .color-scroll {
    justify-content: space-between;
    gap: 0;
    overflow: visible;
    touch-action: auto;
    scroll-snap-type: none;
    padding: 0;
  }

  .page-home a.color-item,
  .page-home .color-item {
    min-width: 0;
    scroll-snap-align: none;
    padding: 4px;
  }

  .page-home .color-ring {
    width: 3.25rem;
    height: 3.25rem;
  }

  .page-home .color-dot {
    width: 2.2rem;
    height: 2.2rem;
  }

  .page-home .color-item.is-active .color-ring {
    transform: none;
  }
}

/* New recipes bento */
.page-home .new-recipes-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .page-home .new-recipes-bento {
    grid-template-columns: 1.4fr 1fr;
    gap: 0.75rem;
    min-height: 22rem;
  }
}

.page-home .new-recipes-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .page-home .new-recipes-side {
    grid-template-rows: 1fr 1fr;
  }
}

.page-home .new-recipe-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md, 0.5rem);
  min-height: 11rem;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 2px 10px rgba(22, 29, 31, 0.08);
}

.page-home .new-recipe-card--main {
  min-height: 16rem;
}

@media (min-width: 768px) {
  .page-home .new-recipe-card--main {
    min-height: 100%;
  }

  .page-home .new-recipe-card--sub {
    min-height: 0;
    height: 100%;
  }
}

.page-home .new-recipe-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.page-home .new-recipe-card__image--empty {
  background: #ece7df;
}

.page-home .new-recipe-card:hover .new-recipe-card__image {
  transform: scale(1.04);
}

.page-home .new-recipe-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.08) 65%);
}

.page-home .new-recipe-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.875rem 1rem;
}

.page-home .new-recipe-card__badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--ct-primary);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-home .new-recipe-card__title {
  margin: 0.4rem 0 0.2rem;
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.page-home .new-recipe-card__summary {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .new-recipe-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.45rem;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.92);
}

.page-home .new-recipe-card__meta .material-symbols-outlined {
  font-size: 1rem;
}

/* Color recipes panel */
.page-home .color-recipes-panel {
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-home .color-recipes-panel.is-visible {
  opacity: 1;
  transform: none;
}

.page-home .color-recipes-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.page-home .color-recipes-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.page-home .color-recipes-empty {
  grid-column: 1 / -1;
  padding: 1.25rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md, 0.5rem);
  color: var(--ct-secondary);
  text-align: center;
}

.page-home .color-recipes-empty p {
  margin: 0;
}

.page-home .recipe-card__image--empty {
  background: #ece7df;
}

/* Concept cards — must be position:relative cards so images stay contained */
.page-home .concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .page-home .concept-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .hero-card {
    height: 520px;
  }
}

.page-home .concept-card {
  position: relative;
  display: block;
  height: 11.5rem;
  overflow: hidden;
  border-radius: var(--radius-md, 0.5rem);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 2px 10px rgba(22, 29, 31, 0.08);
}

.page-home .concept-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.45s ease;
}

.page-home .concept-card:hover .concept-image {
  transform: scale(1.05);
}

.page-home .concept-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease;
}

.page-home .concept-card:hover .concept-overlay {
  background: rgba(0, 0, 0, 0.25);
}

.page-home .concept-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 0.9rem;
  z-index: 1;
}

.page-home .concept-text h4 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin: 0 0 0.15rem;
  color: #fff;
}

.page-home .concept-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .concept-text p {
  margin: 0;
  opacity: 0.92;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #fff;
}

.page-home .recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .page-home .recipe-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.page-home .recipe-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(22, 29, 31, 0.05);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .recipe-card:hover {
  border-color: rgba(249, 115, 22, 0.25);
  transform: translateY(-2px);
  color: inherit;
}

.page-home .recipe-card__image {
  height: 11rem;
  background-size: cover;
  background-position: center;
}

.page-home .recipe-card__body {
  padding: 0.875rem;
}

.page-home .recipe-card__summary {
  margin: 0.375rem 0 0;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  color: var(--ct-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem;
}

.page-home .recipe-card__tag {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ct-primary);
}

.page-home .recipe-card__title {
  font-size: var(--font-size-md);
  font-weight: 600;
  margin: 0.25rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .recipe-card__meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  color: var(--ct-secondary);
  font-size: var(--font-size-sm);
}

.page-home .home-bottom-nav-shell {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  /* Horizontal inset comes from .home-container — same as header */
  padding: 0.75rem 0 max(var(--home-inset-bottom), env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.page-home .home-bottom-nav-shell .home-container {
  pointer-events: none;
}

.page-home .home-bottom-nav {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--home-chrome-bg, var(--ct-surface-container-lowest));
  backdrop-filter: blur(10px);
  border: 1px solid var(--home-chrome-border, var(--ct-surface-container-high));
  border-radius: var(--radius-md, 0.75rem);
  box-shadow: none !important;
  filter: none;
  pointer-events: auto;
}

.page-home .home-bottom-nav__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0.75rem 0.55rem;
  gap: 0.25rem;
}

.page-home .bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  min-width: 4.25rem;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: var(--radius-md, 0.5rem);
  background: transparent;
  color: var(--ct-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-home .bottom-nav-item .material-symbols-outlined {
  font-size: 1.5rem;
  line-height: 1;
}

.page-home .bottom-nav-item:hover {
  background: var(--ct-surface-container-high);
  color: var(--ct-primary);
}

.page-home .bottom-nav-item.is-active {
  background: var(--home-chrome-active-bg, rgba(249, 115, 22, 0.1));
  color: var(--ct-primary);
  border-radius: var(--radius-md, 0.5rem);
}

.page-home .bottom-nav-item.is-active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Mobile-only bottom nav: equal flex, no stretch across huge gaps */
@media (max-width: 767.98px) {
  .page-home .home-bottom-nav-shell {
    padding: 0.5rem 0 max(0.5rem, env(safe-area-inset-bottom, 0px));
  }

  .page-home .home-bottom-nav__inner {
    justify-content: space-between;
    padding: 0.3rem;
    gap: 0.15rem;
  }

  .page-home .bottom-nav-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.4rem 0.2rem;
    font-size: 0.7rem;
    gap: 0.1rem;
  }

  .page-home .bottom-nav-item .material-symbols-outlined {
    font-size: 1.35rem;
  }
}

.page-home .home-fab-shell {
  position: fixed;
  bottom: calc(6.25rem + max(var(--home-inset-bottom), env(safe-area-inset-bottom, 0px)));
  left: 0;
  right: 0;
  z-index: 1035;
  pointer-events: none;
}

.page-home .home-fab-row {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 0.75rem;
}

.page-home .home-fab {
  width: 4rem;
  height: 4rem;
  margin-right: 0.5rem;
  border: none;
  border-radius: 1rem;
  background: var(--ct-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  pointer-events: auto;
}

.page-home .home-fab:hover {
  background: var(--ct-primary-dark);
  color: #fff;
  transform: scale(0.95);
}

.page-home .home-fab .material-symbols-outlined {
  font-size: var(--font-size-2xl);
}

@media (min-width: 768px) {
  :root {
    --home-inset-x: 1.5rem;
    --home-inset-top: 1.5rem;
    --home-inset-bottom: 1.5rem;
  }

  .page-home .hero-card {
    height: 560px;
  }

  /* Desktop header: logo left, search right (do not stack) */
  .page-home .home-header {
    padding-top: max(1.5rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.75rem;
  }

  .page-home .home-header__inner {
    padding: 0.5rem 1rem;
  }

  .page-home .home-header__top {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
  }

  .page-home .home-header__brand {
    flex: 0 0 auto;
    max-width: none;
  }

  .page-home .brand-title,
  .page-home .brand-title .brand-logo {
    font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-3xl));
    letter-spacing: -0.02em;
    line-height: var(--line-height-tight);
    white-space: normal;
  }

  .page-home .home-tagline {
    display: block;
  }

  .page-home .icon-btn {
    width: 3rem;
    height: 3rem;
  }

  .page-home .icon-btn .material-symbols-outlined {
    font-size: var(--font-size-xl);
  }

  .page-home .home-search--header {
    flex: 0 1 22rem;
    max-width: 22rem;
    margin-left: auto;
    padding: 0.5rem 0.75rem;
  }

  .page-home .home-search .material-symbols-outlined {
    font-size: var(--font-size-lg);
  }

  .page-home .home-search input {
    font-size: var(--font-size-md);
  }

  .page-home .home-main {
    padding-top: 1rem;
  }

  /* Desktop bottom nav: centered bar, not full-bleed stretch */
  .page-home .home-bottom-nav-shell {
    padding: 0.75rem 0 max(var(--home-inset-bottom), env(safe-area-inset-bottom, 0px));
  }

  .page-home .home-bottom-nav {
    max-width: none;
    margin: 0;
  }

  .page-home .home-bottom-nav__inner {
    justify-content: space-around;
    padding: 0.5rem 0.75rem 0.55rem;
    gap: 0.25rem;
  }

  .page-home .bottom-nav-item {
    flex: 0 0 auto;
    min-width: 4.25rem;
    padding: 0.45rem 0.85rem;
    font-size: var(--font-size-sm);
  }

  .page-home .bottom-nav-item .material-symbols-outlined {
    font-size: 1.5rem;
  }
}

/* bottom-nav shadow off */
.page-home .home-bottom-nav,
.page-home .home-bottom-nav-shell {
  box-shadow: none !important;
  filter: none;
}
