/*
Theme Name: ModernDealSpot
Theme URI: https://moderndealspot.com
Author: ModernDealSpot
Author URI: https://moderndealspot.com
Description: Lifestyle editorial theme for moderndealspot.com — fashion, travel, beauty, tech, and mindful living.
Version: 1.0.39
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: moderndealspot
Tags: blog, custom-menu, featured-images, translation-ready
*/

/* Fonts are enqueued in functions.php (iv-fonts) — do not @import here */

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --color-coral-rose: #C58B58;
  --color-coral-rose-light: #F7EFE5;
  --color-slate-spruce: #1E2022;
  --color-slate-spruce-light: #F1F3F5;
  --color-bg: #FAFAFA;
  --color-text: #334155;
  --color-text-muted: #64748b;
  --color-text-soft: #94a3b8;
  --color-border: #f1f5f9;
  --color-white: #ffffff;
  --color-trustpilot: #00b67a;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Quicksand", "Inter", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-script: "Alex Brush", cursive;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 1.75rem;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --container: 80rem;
  --space-section: 4rem;
  --transition: 0.25s ease;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  /* clip avoids breaking position:sticky (unlike overflow-x: hidden) */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.site-wrapper {
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#page-content {
  /* no overflow here — sticky sidebar needs an unclipped ancestor chain */
  flex: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--color-slate-spruce);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background: var(--color-coral-rose);
  color: var(--color-white);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ==========================================================================
   Header — desktop bar + mobile (logo | lang, search, burger)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.site-header > .container {
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 768px) {
  .site-header > .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1201px) {
  .site-header > .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.site-header__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 0;
}

.site-logo {
  font-family: var(--font-script);
  font-size: 1.75rem;
  color: var(--color-slate-spruce);
  line-height: 1;
  transition: color 0.3s ease;
  padding: 0.25rem 0;
  user-select: none;
  flex-shrink: 0;
}

.site-logo span {
  color: var(--color-coral-rose);
}

.site-logo:hover {
  color: var(--color-coral-rose);
}

@media (min-width: 768px) {
  .site-logo {
    font-size: 2.25rem;
  }
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

@media (min-width: 768px) {
  .primary-nav {
    gap: 1.75rem;
  }
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding-bottom: 0.125rem;
  border-bottom: 2px solid transparent;
  color: #475569;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  line-height: 1.25;
}

.primary-nav a.nav-link--home {
  gap: 0.375rem;
}

.primary-nav a .nav-home-icon {
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  display: block;
  color: inherit;
  stroke: currentColor;
  fill: none !important;
}

.primary-nav a .nav-home-icon path,
.primary-nav a .nav-home-icon polyline {
  fill: none !important;
  stroke: currentColor;
}

.primary-nav a:hover,
.primary-nav a.current-menu-item,
.primary-nav a[aria-current="page"] {
  color: var(--color-coral-rose);
  border-bottom-color: var(--color-coral-rose);
}

.primary-nav a:hover .nav-home-icon,
.primary-nav a.current-menu-item .nav-home-icon {
  color: var(--color-coral-rose);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

@media (min-width: 1201px) {
  .header-actions {
    gap: 0.875rem;
  }
}

.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  padding-right: 0.5rem;
  border-right: 1px solid var(--color-border);
}

@media (min-width: 1201px) {
  .lang-switcher {
    padding-right: 0.875rem;
  }
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem 0.1rem;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  cursor: pointer;
  line-height: 1.2;
  transition: color var(--transition);
}

@media (min-width: 1201px) {
  .lang-switcher__btn {
    font-size: 0.6875rem;
    gap: 0.4rem;
    padding: 0.35rem 0.15rem;
  }
}

.lang-switcher__btn:hover,
.lang-switcher__btn:focus-visible,
.lang-switcher.is-open .lang-switcher__btn {
  color: var(--color-coral-rose);
  outline: none;
}

.lang-switcher__chevron {
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lang-switcher.is-open .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  min-width: 9.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.lang-switcher__menu[hidden] {
  display: none;
}

.lang-switcher__option {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.lang-switcher__option:hover,
.lang-switcher__option:focus-visible {
  color: var(--color-coral-rose);
  background: var(--color-coral-rose-light);
  outline: none;
}

.lang-switcher__option.is-active {
  color: var(--color-coral-rose);
  background: var(--color-coral-rose-light);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.header-social--desktop {
  padding-right: 0.875rem;
  border-right: 1px solid var(--color-border);
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  color: #94a3b8;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}

.header-social a:hover {
  color: var(--color-coral-rose);
  background: #f8fafc;
}

.header-social svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  display: block;
}

.header-social svg.icon-x {
  width: 0.875rem;
  height: 0.875rem;
}

.header-search {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-search__panel {
  display: flex;
  align-items: center;
  max-width: 0;
  width: auto;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 0.25rem 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-width 0.3s ease, opacity 0.3s ease, padding 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.header-search.is-open .header-search__panel {
  max-width: 13rem;
  padding: 0.25rem 0.625rem;
  border-color: #f1f5f9;
  background: #f8fafc;
  opacity: 1;
  pointer-events: auto;
}

.header-search__input {
  border: 0;
  background: transparent;
  width: 9.5rem;
  font-size: 0.75rem;
  color: #1e293b;
  outline: none;
  padding: 0;
  min-width: 0;
  font-family: var(--font-sans);
}

@media (min-width: 640px) {
  .header-search__input {
    width: 11.5rem;
  }
}

.header-search__input::placeholder {
  color: #94a3b8;
}

.header-search__input::-webkit-search-decoration,
.header-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.header-search__clear {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.header-search__clear:hover {
  color: #475569;
}

.header-search__clear[hidden] {
  display: none !important;
}

.header-search__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  border-radius: var(--radius-full);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.header-search__toggle:hover {
  color: var(--color-coral-rose);
  background: #f8fafc;
}

.header-search.is-open .header-search__toggle {
  color: var(--color-coral-rose);
  background: #f8fafc;
}

.header-search__toggle svg {
  display: block;
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #475569;
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  color: var(--color-coral-rose);
  background: #f8fafc;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 1.1rem;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.header-drawer {
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.98);
}

.header-drawer[hidden] {
  display: none !important;
}

.header-drawer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.primary-nav--drawer {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
}

.primary-nav--drawer a {
  width: 100%;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
  white-space: normal;
}

.primary-nav--drawer a:hover,
.primary-nav--drawer a.current-menu-item,
.primary-nav--drawer a[aria-current="page"] {
  border-bottom-color: #f1f5f9;
}

.header-social--drawer {
  justify-content: flex-start;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.header-social--drawer a {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

/* Mobile / tablet header layout through 1200px */
@media (max-width: 1200px) {
  .primary-nav--desktop,
  .header-social--desktop {
    display: none !important;
  }

  .header-search {
    position: static;
  }

  .header-search__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 45;
    max-width: none !important;
    width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: #fff;
    padding: 0.75rem 1.25rem !important;
    margin: 0;
    box-shadow: var(--shadow-xs);
  }

  .header-search:not(.is-open) .header-search__panel {
    max-width: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .header-search.is-open .header-search__panel {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .header-search__input {
    width: 100%;
    font-size: 0.875rem;
  }

  /* Extra breathing room above the hero while the search bar overlay is open */
  .site-header.is-search-open ~ #page-content .iv-hero {
    padding: 5rem 0;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* Desktop header layout from 1201px */
@media (min-width: 1201px) {
  .nav-toggle,
  .header-drawer,
  .primary-nav--drawer,
  .header-social--drawer {
    display: none !important;
  }

  .primary-nav--desktop {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  .header-social--desktop {
    display: flex;
  }

  .header-search__panel {
    position: static;
  }
}

/* ==========================================================================
   Post cards
   ========================================================================== */
.post-card {
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-xl);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  border-color: rgba(197, 139, 88, 0.25);
  box-shadow: var(--shadow-sm);
}

.post-card__image-wrap {
  position: relative;
  border-radius: 0;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-slate-spruce-light);
}

.post-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card__image-wrap img {
  transform: scale(1.03);
}

.post-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-coral-rose);
  color: var(--color-white);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.post-card__body {
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.post-card__title a {
  transition: color var(--transition);
}

.post-card__title a:hover {
  color: var(--color-coral-rose);
}

.post-card__excerpt {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 300;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.posts-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .posts-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Author line (matches React)
   ========================================================================== */
.card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f8fafc;
}

.card-author img,
.card-author__img,
.card-author .avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.card-author--sm {
  font-size: 0.625rem;
  color: #94a3b8;
}

.card-author--sm img,
.card-author--sm .avatar {
  width: 1rem !important;
  height: 1rem !important;
}

.card-author--md {
  font-size: 0.6875rem;
}

.card-author--md img,
.card-author--md .avatar {
  width: 1.25rem !important;
  height: 1.25rem !important;
}

.card-author--lg {
  font-size: 0.75rem;
  color: #cbd5e1;
  border-top-color: rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.card-author--lg img,
.card-author--lg .avatar {
  width: 1.5rem !important;
  height: 1.5rem !important;
}

.card-author--lg span {
  color: #cbd5e1;
}

/* ==========================================================================
   Homepage hero (matches React)
   ========================================================================== */
.iv-hero {
  background: var(--color-white);
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding 0.2s ease;
}

.iv-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .iv-hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: 2rem;
  }
}

.iv-hero__featured {
  position: relative;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  min-height: 500px;
  display: block;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  background: var(--color-slate-spruce-light);
}

@media (min-width: 1024px) {
  .iv-hero__featured {
    min-height: 580px;
  }
}

/* Cover photo only — never style author imgs as the cover */
.iv-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  z-index: 0;
  pointer-events: none;
}

.iv-hero__featured:hover .iv-hero__bg {
  transform: scale(1.02);
}

/* Safety: any other img inside featured must NOT become the cover */
.iv-hero__featured img:not(.iv-hero__bg) {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  max-width: none;
  transform: none;
}

/* React: absolute inset-0 gradient + content at bottom */
.iv-hero__featured-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--color-white);
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.35), transparent);
}

.iv-hero__featured-content h2 {
  color: var(--color-white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.iv-hero__featured:hover .iv-hero__featured-content h2 {
  color: var(--color-coral-rose-light);
}

.iv-hero__featured-content p {
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 300;
  max-width: 36rem;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* React: flex row, w-6 h-6 rounded-full + "By Author" */
.iv-hero__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 0.5rem;
  color: #cbd5e1;
  font-size: 0.75rem;
  position: relative;
  z-index: 3;
}

.iv-hero__avatar {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  max-width: 1.5rem !important;
  max-height: 1.5rem !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0;
  display: block;
  transform: none !important;
}

.iv-hero__author span {
  color: #cbd5e1;
}

.iv-hero__side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .iv-hero__side {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.hero-side-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  height: 100%;
}

.hero-side-card:hover {
  border-color: rgba(197, 139, 88, 0.25);
  box-shadow: var(--shadow-sm);
}

.hero-side-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-side-card__image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-slate-spruce-light);
  margin-bottom: 0.75rem;
}

.hero-side-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-side-card:hover .hero-side-card__image img {
  transform: scale(1.03);
}

.hero-side-card__title {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.hero-side-card:hover .hero-side-card__title {
  color: var(--color-coral-rose);
}

/* ==========================================================================
   Category sections (matches React layouts)
   ========================================================================== */
.cat-section {
  padding: var(--space-section) 0;
  border-bottom: 1px solid #f8fafc;
  background: var(--color-white);
}

.cat-section--alt {
  background: rgba(241, 243, 245, 0.45);
  border-bottom-color: var(--color-border);
}

.cat-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.cat-section__header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
}

.cat-section__see-all {
  color: var(--color-coral-rose);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.cat-section__see-all:hover {
  text-decoration: underline;
}

/* Fashion / Beauty — 3-col padded cards */
.home-grid3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.home-grid-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 1rem;
  height: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.home-grid-card:hover {
  border-color: rgba(197, 139, 88, 0.25);
  box-shadow: var(--shadow-sm);
}

.home-grid-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-grid-card__image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-slate-spruce-light);
  margin-bottom: 1rem;
  position: relative;
}

.home-grid-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-grid-card:hover .home-grid-card__image img {
  transform: scale(1.02);
}

.home-grid-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.home-grid-card:hover .home-grid-card__title {
  color: var(--color-coral-rose);
}

.home-grid-card__excerpt {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 300;
  margin: 0 0 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lifestyle — horizontal pair + spotlight */
.lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .lifestyle-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.lifestyle-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3xl);
  padding: 1.25rem;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

@media (min-width: 640px) {
  .lifestyle-card {
    flex-direction: row;
  }
}

.lifestyle-card:hover {
  border-color: rgba(197, 139, 88, 0.25);
  box-shadow: var(--shadow-sm);
}

.lifestyle-card__image {
  width: 100%;
  height: 11rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-slate-spruce-light);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .lifestyle-card__image {
    width: 11rem;
    height: 11rem;
  }
}

.lifestyle-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lifestyle-card:hover .lifestyle-card__image img {
  transform: scale(1.02);
}

.lifestyle-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.lifestyle-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.lifestyle-card:hover .lifestyle-card__title {
  color: var(--color-coral-rose);
}

.lifestyle-card__excerpt {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 300;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lifestyle-spotlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3xl);
  padding: 1.5rem;
  margin-top: 2rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

@media (min-width: 1024px) {
  .lifestyle-spotlight {
    flex-direction: row;
  }
}

.lifestyle-spotlight:hover {
  border-color: rgba(197, 139, 88, 0.25);
}

.lifestyle-spotlight__body {
  flex: 1;
  min-width: 0;
}

.lifestyle-spotlight__title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
  transition: color var(--transition);
}

.lifestyle-spotlight:hover .lifestyle-spotlight__title {
  color: var(--color-coral-rose);
}

.lifestyle-spotlight__excerpt {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 300;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.lifestyle-spotlight__image {
  width: 100%;
  height: 11rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-slate-spruce-light);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .lifestyle-spotlight__image {
    width: 20rem;
  }
}

.lifestyle-spotlight__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lifestyle-spotlight:hover .lifestyle-spotlight__image img {
  transform: scale(1.02);
}

/* Travel — 2-col wide cards */
.travel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .travel-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.travel-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: border-color var(--transition);
  box-shadow: var(--shadow-xs);
}

.travel-card:hover {
  border-color: rgba(197, 139, 88, 0.25);
}

.travel-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-slate-spruce-light);
}

.travel-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.travel-card:hover .travel-card__image img {
  transform: scale(1.01);
}

.travel-card__body {
  padding: 1.5rem;
}

.travel-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  transition: color var(--transition);
}

.travel-card:hover .travel-card__title {
  color: var(--color-coral-rose);
}

.travel-card__excerpt {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 300;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tech — horizontal scroll slider (autoplay + drag, no arrows) */
.tech-slider {
  position: relative;
  width: 100%;
}

.tech-slider__viewport {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0 1.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}

.tech-slider__viewport::-webkit-scrollbar {
  display: none;
}

.tech-slider__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.tech-slider__viewport.is-dragging a {
  pointer-events: none;
}

.tech-slide-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

@media (min-width: 640px) {
  .tech-slide-card {
    flex-basis: 320px;
  }
}

@media (min-width: 768px) {
  .tech-slide-card {
    flex-basis: 350px;
  }
}

.tech-slide-card:hover {
  border-color: rgba(197, 139, 88, 0.3);
  box-shadow: var(--shadow-md);
}

.tech-slide-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tech-slide-card__image {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-slate-spruce-light);
  margin-bottom: 1rem;
  position: relative;
}

.tech-slide-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tech-slide-card:hover .tech-slide-card__image img {
  transform: scale(1.03);
}

.tech-slide-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(30, 32, 34, 0.8);
  backdrop-filter: blur(4px);
  color: var(--color-white);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.tech-slide-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  min-height: 3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.tech-slide-card:hover .tech-slide-card__title {
  color: var(--color-coral-rose);
}

.tech-slide-card__excerpt {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-slide-view-all {
  flex: 0 0 240px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(247, 239, 229, 0.4);
  border: 1px dashed rgba(197, 139, 88, 0.3);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  transition: transform var(--transition);
}

.tech-slide-view-all__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-coral-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.tech-slide-view-all:hover .tech-slide-view-all__icon {
  transform: scale(1.1);
}

.tech-slide-view-all h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.tech-slide-view-all p {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 300;
  margin: 0 0 1rem;
}

.tech-slide-view-all__btn {
  color: var(--color-coral-rose);
  font-weight: 600;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--color-coral-rose);
  padding-bottom: 0.125rem;
  transition: color var(--transition), border-color var(--transition);
}

.tech-slide-view-all:hover .tech-slide-view-all__btn {
  color: var(--color-slate-spruce);
  border-bottom-color: var(--color-slate-spruce);
}

/* Legacy transform slider (archives / other) */
.cat-slider {
  position: relative;
  overflow: hidden;
}

.cat-slider__viewport {
  overflow: hidden;
  width: 100%;
}

.cat-slider__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.cat-slider__slide {
  flex-shrink: 0;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.cat-slider__nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  justify-content: flex-end;
}

.cat-slider__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-slate-spruce);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.cat-slider__btn:hover:not(:disabled) {
  background: var(--color-coral-rose);
  color: var(--color-white);
  border-color: var(--color-coral-rose);
}

.cat-slider__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   Homepage newsletter band
   ========================================================================== */
.newsletter-section {
  padding: 5rem 0;
  background: var(--color-coral-rose-light);
  text-align: center;
}

.newsletter-section__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.newsletter-section .page-eyebrow {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-xs);
}

.newsletter-section h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  margin: 1.5rem 0 1rem;
}

.newsletter-section__desc {
  color: #475569;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .newsletter-section__desc {
    font-size: 1rem;
  }
}

.newsletter-block {
  max-width: 28rem;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
    align-items: stretch;
  }
}

.newsletter-form[hidden] {
  display: none !important;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(197, 139, 88, 0.1);
  background: var(--color-white);
  font-size: 0.75rem;
  color: #1e293b;
  outline: none;
  box-shadow: var(--shadow-xs);
}

.newsletter-form input[type="email"]:focus {
  box-shadow: 0 0 0 2px var(--color-coral-rose);
}

.newsletter-form input.is-error {
  border-color: #ef4444;
}

/* React: flex items-center gap-2 + Send icon */
.newsletter-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-coral-rose);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.875rem 2rem;
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: opacity var(--transition);
}

.newsletter-form button[type="submit"]:hover {
  opacity: 0.95;
}

.newsletter-form__icon {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.field-error {
  display: block;
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.35rem;
  text-align: left;
}

/* React success card: white, emerald border, check icon, reset link */
.newsletter-notice {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  border: 1px solid #d1fae5;
  box-shadow: var(--shadow-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.newsletter-notice[hidden] {
  display: none !important;
}

.newsletter-notice.is-visible {
  animation: iv-fade-in 0.35s ease;
}

.newsletter-notice__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.newsletter-notice__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #10b981;
  stroke: #10b981;
}

.newsletter-notice__text {
  color: #1e293b;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.4;
}

.newsletter-notice__reset {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--color-coral-rose);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.newsletter-notice__reset:hover {
  text-decoration: underline;
}

@keyframes iv-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Page eyebrow
   ========================================================================== */
.page-eyebrow {
  display: inline-block;
  width: fit-content;
  color: var(--color-coral-rose);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: transparent;
}

/* ==========================================================================
   Category page — matches React App.tsx category-* view
   ========================================================================== */
.category-page {
  padding: 3rem 0; /* py-12 */
  background: var(--color-bg);
}

.category-page__inner {
  max-width: var(--container);
}

/* React code-export header: Category Spot + title + description */
.category-page__header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.category-page__header .page-eyebrow {
  padding: 0;
  background: transparent;
  border-radius: 0;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.category-page__header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  color: #1e293b;
  margin: 0.5rem 0 0;
  line-height: 1.15;
}

.category-page__desc {
  margin-top: 0.75rem;
  max-width: 42rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
}

.category-page__desc p {
  margin: 0;
}

.category-page__featured {
  margin-bottom: 4rem; /* mb-16 */
}

/* React featured: white rounded-3xl border p-6 flex lg:row gap-8 */
.cat-featured {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background: var(--color-white);
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-3xl);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cat-featured:hover {
  border-color: rgba(197, 139, 88, 0.15);
  box-shadow: var(--shadow-md);
}

@media (min-width: 1024px) {
  .cat-featured {
    flex-direction: row;
  }
}

.cat-featured__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: #f8fafc;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .cat-featured__media {
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 1024px) {
  .cat-featured__media {
    width: 50%;
  }
}

.cat-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.cat-featured:hover .cat-featured__media img {
  transform: scale(1.01);
}

.cat-featured__body {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.cat-featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-slate-spruce);
  margin: 0.5rem 0 1rem;
  line-height: 1.25;
  transition: color var(--transition);
}

.cat-featured:hover .cat-featured__title {
  color: var(--color-coral-rose);
}

.cat-featured__excerpt {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.625;
  margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
  .cat-featured__excerpt {
    font-size: 0.875rem;
  }
}

/* React: gap-3 pt-6 border-t + w-6 avatar */
.cat-featured .card-author {
  gap: 0.75rem;
  padding-top: 1.5rem;
  margin-top: 0;
  border-top: 1px solid #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
}

.cat-featured .card-author span {
  color: #64748b;
}

.cat-featured .card-author img,
.cat-featured .card-author .avatar {
  width: 1.5rem !important;
  height: 1.5rem !important;
}

.category-page__grid-section {
  margin-bottom: 4rem;
}

/* React: text-xs uppercase tracking-wider font-bold text-slate-400 font-mono */
.category-page__grid-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin: 0 0 2rem;
}

.category-page__empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-3xl);
  border: 1px solid #f1f5f9;
}

.category-page__empty p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 300;
}

/* React: grid md:2 lg:3 gap-8 */
.category-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .category-page__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .category-page__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cat-grid-card {
  background: var(--color-white);
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-2xl);
  padding: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  height: 100%;
}

.cat-grid-card:hover {
  border-color: rgba(197, 139, 88, 0.2);
  box-shadow: var(--shadow-sm);
}

.cat-grid-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cat-grid-card__image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f8fafc;
  margin-bottom: 1rem;
}

.cat-grid-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cat-grid-card:hover .cat-grid-card__image img {
  transform: scale(1.02);
}

.cat-grid-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-slate-spruce);
  margin: 0 0 0.5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.cat-grid-card:hover .cat-grid-card__title {
  color: var(--color-coral-rose);
}

.cat-grid-card__excerpt {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* After featured + 2×3 grid — pagination, then repeat on next page */
.category-page__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding-top: 0.5rem;
}

.category-page__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  background: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-spruce);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.category-page__pagination .page-numbers:hover {
  border-color: var(--color-coral-rose);
  color: var(--color-coral-rose);
}

.category-page__pagination .page-numbers.current {
  background: var(--color-coral-rose);
  border-color: var(--color-coral-rose);
  color: var(--color-white);
}

.category-page__pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  min-width: 1.5rem;
}

/* Legacy / non-category archives */
.cat-hero {
  position: relative;
  background: var(--color-slate-spruce);
  color: var(--color-white);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  padding: 4rem 0 2.5rem;
}

.cat-hero.has-bg-image {
  min-height: 280px;
}

.cat-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 32, 34, 0.85), rgba(30, 32, 34, 0.35));
}

.cat-hero__inner {
  position: relative;
  z-index: 1;
}

.cat-hero__title {
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}

.cat-hero__desc-band {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.cat-hero__desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  max-width: 40rem;
}

.archive-posts {
  padding: var(--space-section) 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-coral-rose);
  color: var(--color-white);
  border-color: var(--color-coral-rose);
}

/* ==========================================================================
   Single post — matches React App.tsx postPage
   lg: 2/3 article + 1/3 sticky sidebar, gap-12
   ========================================================================== */
.single-layout {
  padding: 3rem 0; /* py-12 */
  background: var(--color-bg);
}

.single-layout__grid {
  display: flex;
  flex-direction: column;
  gap: 3rem; /* gap-12 */
}

@media (min-width: 1024px) {
  .single-layout__grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .single-layout__grid.sidebar-left {
    flex-direction: row-reverse;
  }
}

/* React: w-full lg:w-2/3 */
.single-main {
  width: 100%;
  min-width: 0;
}

@media (min-width: 1024px) {
  .single-main {
    width: 66.666%;
  }
}

.single-badge-wrap {
  margin-bottom: 1rem;
}

.single-badge {
  display: inline-block;
  width: fit-content;
  background: var(--color-coral-rose);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
}

/* React: text-3xl md:text-5xl font-display font-bold mb-6 leading-tight */
.single-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
  line-height: 1.25;
  color: var(--color-slate-spruce);
}

/* React: border-y border-slate-100 py-4 mb-8 + w-8 avatar */
.single-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 1rem 0;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  color: #64748b;
}

.single-meta__avatar,
.single-meta img.avatar,
.single-meta .avatar {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.single-meta__name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.875rem;
}

/* React: aspect-[16/9] rounded-2xl mb-8 */
.single-thumb {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  box-shadow: var(--shadow-xs);
}

.single-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-featured-thumb {
  max-width: 48rem;
  margin: 0 auto 2rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-slate-spruce-light);
}

.page-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Avatars from get_avatar() — always circular */
.card-author img,
.card-author__img,
.card-author .avatar,
img.avatar {
  border-radius: 50%;
  object-fit: cover;
}

/* React prose: text-slate-600 text-sm md:text-base leading-relaxed space-y-6 */
.entry-content,
.single-content {
  color: #475569;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .entry-content,
  .single-content {
    font-size: 1rem;
  }
}

.single-content > * + * {
  margin-top: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.single-content h2,
.single-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-slate-spruce);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content a,
.single-content a {
  color: var(--color-coral-rose);
  text-decoration: underline;
}

.entry-content blockquote,
.single-content blockquote {
  border-left: 4px solid var(--color-coral-rose);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #64748b;
}

.entry-content ul,
.entry-content ol,
.single-content ul,
.single-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1em;
}

/* React author bio: mt-12 pt-8 border-t bg-slate-50 p-6 rounded-2xl flex */
.author-bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: var(--radius-2xl);
  text-align: center;
}

@media (min-width: 640px) {
  .author-bio {
    flex-direction: row;
    text-align: left;
  }
}

.author-bio__avatar,
.author-bio img.avatar,
.author-bio .avatar {
  width: 4rem !important; /* w-16 */
  height: 4rem !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.author-bio__body {
  min-width: 0;
}

.author-bio__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.author-bio__desc {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

/* React: lg:w-1/3 lg:sticky lg:top-8 h-fit — sticks while article scrolls */
.single-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .single-sidebar {
    width: 33.333%;
    flex-shrink: 0;
    position: sticky;
    top: 6.5rem; /* below sticky site header */
    align-self: flex-start;
    height: fit-content;
    overflow: visible;
  }

  /* WP admin bar is 32px when viewport ≥ 783px */
  .admin-bar .single-sidebar {
    top: calc(6.5rem + 32px);
  }
}

/* React newsletter widget: coral-rose-light p-8 rounded-3xl text-center */
.sidebar-newsletter {
  background: var(--color-coral-rose-light);
  padding: 2rem;
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(197, 139, 88, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-newsletter .page-eyebrow {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1rem;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}

.sidebar-newsletter__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-slate-spruce);
  margin: 0 0 0.75rem;
}

.sidebar-newsletter__desc {
  font-size: 0.75rem;
  font-weight: 300;
  color: #475569;
  line-height: 1.625;
  max-width: 20rem;
  margin: 0 0 1.5rem;
}

.sidebar-newsletter .newsletter-block {
  width: 100%;
  max-width: none;
  margin: 0;
}

.sidebar-newsletter .newsletter-form {
  flex-direction: column;
  max-width: none;
  width: 100%;
}

.sidebar-newsletter .newsletter-form[hidden] {
  display: none !important;
}

.sidebar-newsletter .newsletter-form button[type="submit"] {
  width: 100%;
}

.sidebar-newsletter .newsletter-notice {
  width: 100%;
  max-width: none;
}

.sidebar-widget {
  background: var(--color-coral-rose-light);
  padding: 2rem;
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(197, 139, 88, 0.1);
  margin-bottom: 0;
}

.sidebar-widget-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-slate-spruce);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-widget p {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 1.25rem;
}

.sidebar-widget .newsletter-form {
  flex-direction: column;
  max-width: none;
}

.sidebar-widget .newsletter-form button {
  width: 100%;
}

/* React recent: bg-white p-6 rounded-3xl border */
.recent-posts-widget {
  background: var(--color-white);
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-3xl);
  padding: 1.5rem;
}

.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.recent-post {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f8fafc;
  text-decoration: none;
}

.recent-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

/* React: w-16 h-16 rounded-xl */
.recent-post__thumb {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
}

.recent-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.recent-post:hover .recent-post__thumb img {
  transform: scale(1.02);
}

.recent-post__body {
  flex: 1;
  min-width: 0;
}

.recent-post__cat {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-coral-rose);
}

.recent-post__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
  line-height: 1.35;
  color: var(--color-slate-spruce);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.recent-post:hover .recent-post__title {
  color: var(--color-coral-rose);
}

/* ==========================================================================
   About page — matches React App.tsx aboutUs view
   max-w-5xl / header max-w-2xl / images h-80 / content max-w-3xl
   ========================================================================== */
.page-about {
  padding: 4rem 0; /* py-16 */
  background: transparent;
}

/* React: max-w-5xl mx-auto px-4 md:px-8 */
.page-about__inner {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .page-about__inner {
    padding: 0 2rem;
  }
}

/* React: text-center max-w-2xl mx-auto mb-16 */
.page-about__header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

/* React: text-coral-rose font-bold text-xs uppercase tracking-widest (no pill) */
.page-about__header .page-eyebrow {
  padding: 0;
  background: transparent;
  border-radius: 0;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

/* React: text-3xl md:text-5xl font-display font-bold text-slate-spruce mt-2 mb-4 leading-tight */
.page-about__header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-slate-spruce);
  margin: 0.5rem 0 1rem;
  line-height: 1.25;
}

/* React: text-slate-500 text-sm md:text-base font-light */
.page-about__header .page-subtitle {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 300;
  margin: 0;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .page-about__header .page-subtitle {
    font-size: 1rem;
  }
}

/* React: grid grid-cols-1 md:grid-cols-3 gap-6 mb-16 */
.about-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .about-images {
    grid-template-columns: repeat(3, 1fr);
  }

  /* React: md:translate-y-4 on middle image */
  .about-images__item:nth-child(2) {
    transform: translateY(1rem);
  }

  .about-images__item:nth-child(2):hover {
    transform: translateY(0);
  }
}

/* React: h-80 rounded-2xl overflow-hidden shadow-sm */
.about-images__item {
  height: 20rem; /* h-80 */
  margin: 0;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

/* React: hover:translate-y-[-4px] on side images */
.about-images__item:hover {
  transform: translateY(-4px);
}

.about-images__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* React: max-w-3xl mx-auto text-slate-600 leading-relaxed text-sm md:text-base font-light space-y-8 */
.about-content {
  max-width: 48rem;
  margin: 0 auto;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .about-content {
    font-size: 1rem;
  }
}

.about-content > * {
  margin-top: 0;
  margin-bottom: 1rem;
}

.about-content > *:last-child {
  margin-bottom: 0;
}

/* React lead: text-lg md:text-xl text-slate-800 font-normal */
.about-content .lead,
.about-content > p:first-of-type {
  font-size: 1.125rem;
  color: #1e293b;
  font-weight: 400;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .about-content .lead,
  .about-content > p:first-of-type {
    font-size: 1.25rem;
  }
}

.about-content strong {
  font-weight: 700;
  color: #1e293b;
}

/* React section h2: border-t + pt-8 + text-xl md:text-2xl font-display font-bold */
.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-slate-spruce);
  line-height: 1.3;
  margin: 2rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
}

.about-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.about-content h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-slate-spruce);
  margin: 1.5rem 0 0.75rem;
}

.about-content a {
  color: var(--color-coral-rose);
  text-decoration: underline;
}

/* React checklist: coral circle + ✓ */
.about-content ul {
  list-style: none;
  padding: 0 0 0 0.25rem;
  margin: 0 0 1rem;
}

.about-content ul li {
  position: relative;
  padding-left: 2rem;
  margin: 0 0 0.75rem;
  color: #475569;
}

.about-content ul li:last-child {
  margin-bottom: 0;
}

.about-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-coral-rose-light);
  color: var(--color-coral-rose);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

.about-content ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

/* React affiliate note: bg-slate-50 p-6 rounded-2xl border italic */
.about-content p:has(> em:only-child),
.about-content p.affiliate-note {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  border: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 400;
  font-style: normal;
  line-height: 1.625;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .about-content p:has(> em:only-child),
  .about-content p.affiliate-note {
    font-size: 0.875rem;
  }
}

.about-content p:has(> em:only-child) em,
.about-content p.affiliate-note em {
  font-style: italic;
  font-weight: 400;
  color: inherit;
}

/* ==========================================================================
   Contact page — matches React App.tsx contactUs
   ========================================================================== */
.page-contact {
  padding: 4rem 0; /* py-16 */
  background: var(--color-white);
}

/* React: max-w-7xl grid lg:grid-cols-2 gap-12 items-center */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* React: bg-slate-spruce-light/40 p-8 md:p-12 rounded-3xl border */
.contact-panel {
  background: rgba(241, 243, 245, 0.4);
  padding: 2rem;
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(30, 32, 34, 0.05);
}

@media (min-width: 768px) {
  .contact-panel {
    padding: 3rem;
  }
}

/* React: text-coral-rose font-bold text-xs uppercase tracking-widest (no pill) */
.contact-panel .page-eyebrow {
  padding: 0;
  background: transparent;
  border-radius: 0;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

/* React: text-3xl md:text-5xl font-display font-bold mt-2 mb-4 leading-tight */
.contact-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-slate-spruce);
  margin: 0.5rem 0 1rem;
  line-height: 1.25;
}

.contact-form[hidden] {
  display: none !important;
}

.contact-form .form-row {
  margin-bottom: 1rem; /* space-y-4 */
}

.contact-form .form-row--2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .contact-form .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* React: text-[10px] uppercase tracking-wider font-bold text-slate-500 mb-2 */
.contact-form label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

/* React: px-4 py-3 rounded-xl border text-xs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem; /* rounded-xl */
  border: 1px solid rgba(30, 32, 34, 0.1);
  background: var(--color-white);
  font-size: 0.75rem; /* text-xs */
  outline: none;
  color: #1e293b;
  box-shadow: var(--shadow-xs);
  font-family: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px var(--color-coral-rose);
}

.contact-form input.is-error,
.contact-form textarea.is-error {
  border-color: #ef4444;
}

/* React: w-full bg-coral-rose text-xs py-3.5 rounded-xl flex gap-2 + Send */
.contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  background: var(--color-coral-rose);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.875rem 1rem;
  border: 0;
  border-radius: 0.75rem; /* rounded-xl */
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: opacity var(--transition);
}

.contact-form button[type="submit"]:hover {
  opacity: 0.95;
}

.contact-form button[type="submit"] .newsletter-form__icon,
.contact-form button[type="submit"] svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

/*
 * React success card:
 * bg-white p-6 rounded-2xl … border-emerald-100
 * CheckCircle2 w-8 h-8 + title + muted body
 */
.contact-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  border: 1px solid #d1fae5;
  box-shadow: var(--shadow-sm);
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 600;
  min-height: 10rem;
}

.contact-notice[hidden] {
  display: none !important;
}

.contact-notice.is-visible {
  animation: iv-fade-in 0.35s ease;
}

.contact-notice__icon {
  width: 2rem; /* w-8 */
  height: 2rem;
  color: #10b981;
  stroke: #10b981;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.contact-notice__title {
  font-weight: 600;
  font-size: 0.75rem;
  color: #1e293b;
}

.contact-notice__body {
  font-size: 0.6875rem; /* text-[11px] */
  font-weight: 400;
  color: #94a3b8; /* text-slate-400 */
  line-height: 1.5;
  max-width: 22rem;
}

.contact-form .field-error {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

/* React: relative h-[550px] rounded-3xl overflow-hidden shadow-lg — no overlay */
.contact-aside {
  position: relative;
  height: 550px;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-aside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.contact-aside:hover img {
  transform: scale(1.01);
}

/* ==========================================================================
   Legal pages — Privacy / Terms / Cookie (matches React legal* views)
   article: py-16 bg-slate-50 | inner: max-w-3xl | card: white rounded-3xl
   ========================================================================== */
.page-legal {
  padding: 4rem 0; /* py-16 */
  background: #f8fafc; /* bg-slate-50 */
}

/* React: max-w-3xl mx-auto px-4 md:px-8 */
.page-legal__inner {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .page-legal__inner {
    padding: 0 2rem;
  }
}

/* React: mb-8 text-center */
.page-legal__header {
  text-align: center;
  margin: 0 0 2rem;
}

/* React: text-coral-rose text-xs font-bold uppercase tracking-wider font-mono */
.page-legal__eyebrow,
.page-legal__header .page-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-coral-rose);
  text-transform: uppercase;
  letter-spacing: 0.05em; /* tracking-wider */
  padding: 0;
  background: transparent;
  border-radius: 0;
}

/* React: text-3xl md:text-4xl font-display font-bold mt-2 mb-3 */
.page-legal__header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3vw, 2.25rem); /* text-3xl → text-4xl */
  font-weight: 700;
  color: var(--color-slate-spruce);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.25;
}

/*
 * React card:
 * bg-white p-8 md:p-12 rounded-3xl border border-slate-100 shadow-xs
 * text-slate-600 space-y-6 text-xs md:text-sm leading-relaxed font-light
 */
.legal-card {
  background: var(--color-white);
  padding: 2rem; /* p-8 */
  border-radius: var(--radius-3xl);
  border: 1px solid #f1f5f9; /* border-slate-100 */
  box-shadow: var(--shadow-xs);
  color: #475569; /* text-slate-600 */
  font-size: 0.75rem; /* text-xs */
  font-weight: 300;
  line-height: 1.625; /* leading-relaxed */
}

@media (min-width: 768px) {
  .legal-card {
    padding: 3rem; /* md:p-12 */
    font-size: 0.875rem; /* md:text-sm */
  }
}

.legal-card > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* space-y-6 between top-level blocks */
.legal-card > * + * {
  margin-top: 1.5rem;
}

.legal-card p {
  margin: 0;
  color: #475569;
  font-weight: 300;
}

.legal-card strong {
  font-weight: 700;
  color: var(--color-slate-spruce);
}

/* React h3: text-sm font-bold font-display text-slate-spruce mt-6 uppercase tracking-wider */
.legal-card h2,
.legal-card h3 {
  font-family: var(--font-display);
  font-size: 0.875rem; /* text-sm */
  font-weight: 700;
  color: var(--color-slate-spruce);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 0;
  line-height: 1.4;
}

.legal-card h2:first-child,
.legal-card h3:first-child {
  margin-top: 0;
}

/* React: list-disc pl-5 space-y-2 text-slate-500 */
.legal-card ul,
.legal-card ol {
  list-style: disc;
  padding-left: 1.25rem; /* pl-5 */
  margin: 0;
  color: #64748b; /* text-slate-500 */
}

.legal-card ol {
  list-style: decimal;
}

.legal-card ul li,
.legal-card ol li {
  margin: 0 0 0.5rem; /* space-y-2 */
  padding: 0;
  color: #64748b;
}

.legal-card ul li:last-child,
.legal-card ol li:last-child {
  margin-bottom: 0;
}

.legal-card ul li::before {
  content: none;
}

.legal-card a {
  color: var(--color-coral-rose);
  text-decoration: underline;
}

.legal-card a:hover {
  color: var(--color-slate-spruce);
}

/* ==========================================================================
   Search results — matches React search-results-section
   ========================================================================== */
/* Use main.search-results — WP also puts .search-results on <body> */
main.search-results {
  padding: 3rem 0; /* py-12 */
  background: var(--color-white);
}

.search-results__inner {
  max-width: var(--container);
}

/* React: flex justify-between border-b pb-4 mb-8 */
.search-results__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.search-results__title {
  font-family: var(--font-display);
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
  color: var(--color-slate-spruce);
  margin: 0;
  line-height: 1.25;
}

.search-results__count {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8; /* text-slate-400 */
}

/* React: Clear Search pill */
.search-results__clear {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-coral-rose);
  background: var(--color-white);
  border: 1px solid rgba(197, 139, 88, 0.25);
  border-radius: var(--radius-full);
  padding: 0.375rem 0.75rem;
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.search-results__clear:hover {
  background: var(--color-coral-rose);
  color: var(--color-white);
  border-color: var(--color-coral-rose);
}

/* React: grid md:grid-cols-3 gap-8 */
.search-results__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .search-results__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* React empty: py-12 rounded-3xl border */
.search-results__empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-3xl);
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-xs);
}

.search-results__empty p {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 300;
}

.search-results__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
}

.search-results__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  background: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-spruce);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.search-results__pagination .page-numbers:hover {
  border-color: var(--color-coral-rose);
  color: var(--color-coral-rose);
}

.search-results__pagination .page-numbers.current {
  background: var(--color-coral-rose);
  border-color: var(--color-coral-rose);
  color: var(--color-white);
}

/* ==========================================================================
   404
   ========================================================================== */
.error-404 {
  padding: 4rem 0;
  text-align: center;
}

.error-404 h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.error-404 p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ==========================================================================
   Footer
   Stacked mobile layout through 970px | 4 columns from 971px
   ========================================================================== */
.site-footer {
  background: var(--color-slate-spruce);
  color: var(--color-white);
  padding: 3rem 0 0;
  margin-top: auto;
}

.site-footer > .container {
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 768px) {
  .site-footer {
    padding-top: 4rem;
  }

  .site-footer > .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 4 columns in a single row from 971px (avoids overlap on mid widths) */
@media (min-width: 971px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.15fr);
    column-gap: 1.25rem;
    row-gap: 2rem;
    padding-bottom: 3rem;
  }

  .site-footer__brand,
  .site-footer__col--pages,
  .site-footer__col--legal,
  .site-footer__col--trust {
    grid-column: auto;
    min-width: 0;
  }
}

@media (min-width: 1100px) {
  .site-footer__grid {
    column-gap: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .site-footer__grid {
    column-gap: 3rem;
  }
}

.site-footer .site-logo {
  color: var(--color-white);
  font-family: var(--font-script);
  font-size: 1.875rem;
  line-height: 1;
  display: inline-block;
}

@media (min-width: 768px) {
  .site-footer .site-logo {
    font-size: 2.25rem;
  }
}

.site-footer__desc {
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
  max-width: 24rem;
  margin: 1rem 0 0;
}

.site-footer h4,
.site-footer__col h4,
.site-footer__col--pages h4,
.site-footer__col--legal h4,
.site-footer__col--trust h4 {
  font-family: "Quicksand", "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 1.25rem;
  line-height: 1.25;
  letter-spacing: normal;
}

@media (min-width: 971px) and (max-width: 1199px) {
  .site-footer h4,
  .site-footer__col h4,
  .site-footer__col--pages h4,
  .site-footer__col--legal h4,
  .site-footer__col--trust h4 {
    font-size: 0.875rem;
    margin-bottom: 0.9rem;
  }

  .site-footer__desc {
    font-size: 0.8rem;
    margin-top: 0.75rem;
  }

  .footer-nav {
    gap: 0.65rem;
  }

  .footer-nav a {
    font-size: 0.8rem;
  }

  /* Compact Trustpilot so 4-col row fits cleanly */
  .trust-badge {
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    max-width: 100%;
  }

  .trust-badge__brand {
    gap: 0.35rem;
    margin-bottom: 0.7rem;
  }

  .trust-badge__logo-star {
    font-size: 1.1rem;
  }

  .trust-badge__logo-text {
    font-size: 0.95rem;
  }

  .trust-badge__stars {
    max-width: 7.75rem;
    gap: 0.18rem;
    margin-bottom: 0.7rem;
  }

  .trust-badge__star {
    max-width: 1.25rem;
  }

  .trust-badge__star span {
    font-size: 0.55rem;
  }

  .trust-badge p {
    font-size: 0.65rem;
    line-height: 1.35;
  }
}

@media (min-width: 1024px) {
  .site-footer h4,
  .site-footer__col h4,
  .site-footer__col--pages h4,
  .site-footer__col--legal h4,
  .site-footer__col--trust h4 {
    margin-bottom: 1.5rem;
  }
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-nav a {
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.trust-badge {
  background: rgba(24, 26, 28, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: clamp(1.15rem, 3vw, 2rem);
  border-radius: var(--radius-2xl);
  max-width: 24rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.trust-badge__brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.trust-badge__logo-star {
  color: var(--color-trustpilot);
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 3.2vw, 1.875rem);
  font-weight: 900;
  line-height: 1;
}

.trust-badge__logo-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  letter-spacing: -0.025em;
  color: var(--color-white);
  line-height: 1;
}

.trust-badge__stars {
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 1.2vw, 0.5rem);
  width: 100%;
  max-width: 14rem;
  margin-bottom: 1rem;
}

.trust-badge__star {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: 2.25rem;
  aspect-ratio: 1;
  height: auto;
  background: var(--color-trustpilot);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
}

.trust-badge__star span {
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 2.2vw, 1rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
}

@media (max-width: 479px) {
  .trust-badge__stars {
    max-width: 9.5rem;
    gap: 0.2rem;
  }

  .trust-badge__star {
    max-width: 1.5rem;
  }

  .trust-badge__star span {
    font-size: 0.65rem;
  }
}

.trust-badge p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.75rem;
  padding-bottom: 2rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2.25rem;
  }
}

.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.55;
  color: rgba(148, 163, 184, 0.9);
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

@media (max-width: 639px) {
  .site-footer__bottom .scroll-top {
    align-self: flex-start;
  }
}

.scroll-top {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.scroll-top:hover {
  background: var(--color-coral-rose);
  color: var(--color-white);
}

/* ==========================================================================
   Cookie popup
   ========================================================================== */
.cookie-popup {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  max-width: 28rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.cookie-popup[hidden] {
  display: none !important;
}

.cookie-popup h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.cookie-popup p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.cookie-popup__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-popup__actions button {
  border: 0;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-accept {
  background: var(--color-coral-rose);
  color: var(--color-white);
}

.cookie-dismiss {
  background: var(--color-slate-spruce-light);
  color: var(--color-slate-spruce);
}

/* ==========================================================================
   Gutenberg / buttons
   ========================================================================== */
.wp-block-button__link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-coral-rose);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  border: 0;
  text-decoration: none !important;
  transition: opacity var(--transition);
}

.wp-block-button__link:hover,
.btn:hover {
  opacity: 0.95;
}

.alignwide {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
