/*
Theme Name: Bright Deal Guide
Theme URI: https://brightdealguide.com
Author: Bright Deal Guide
Author URI: https://brightdealguide.com
Description: WordPress theme for Bright Deal Guide — smart shopping journal with Fashion, Lifestyle, Travel, and Beauty coverage.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brightdealguide
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --color-brand-primary: #8B7D72;
  --color-brand-accent: #BD9A5F;
  --color-brand-dark: #292725;
  --color-brand-light: #FFFFFF;
  --color-brand-cream: #F7F5F2;
  --color-brand-sand: #E5DFD7;
  --color-brand-muted: #5A635E;
  --color-footer-bg: #FAF8F5;
  --color-success-bg: #ecfdf5;
  --color-success-text: #065f46;
  --color-success-border: #a7f3d0;
  --color-error: #b91c1c;
  --color-error-border: #fca5a5;

  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  --container: 80rem;
  --space-section: 4rem;
  --shadow-xs: 0 1px 2px rgba(41, 39, 37, 0.04);
  --shadow-sm: 0 2px 8px rgba(41, 39, 37, 0.06);
  --transition: 0.25s ease;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-brand-dark);
  background: var(--color-brand-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip avoids horizontal scroll without breaking position:sticky */
}

.site-wrapper {
  /* Do not use overflow-x:hidden here — it breaks position:sticky on the header */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#page-content {
  /* No overflow here — overflow breaks position:sticky on single sidebar */
  flex: 1 1 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 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;
}

.screen-reader-text:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  clip: auto;
  white-space: normal;
  background: var(--color-brand-dark);
  color: #fff;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Header / Navbar — match React: sticky top-0 z-40, inner h-20
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  flex-shrink: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95); /* bg-white/95 */
  -webkit-backdrop-filter: blur(12px); /* backdrop-blur-md */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-brand-sand);
  transition: box-shadow var(--transition), background var(--transition);
  overflow: visible;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem; /* h-20 */
  min-height: 5rem;
  padding-top: 0;
  padding-bottom: 0;
  gap: 0.75rem;
  overflow: visible;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
}

.site-logo__mark {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--color-brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.site-logo:hover .site-logo__mark {
  transform: scale(1.05);
}

.site-logo__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--color-brand-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  transition: color var(--transition);
}

@media (min-width: 480px) {
  .site-logo__name {
    font-size: 1.25rem; /* text-xl */
  }
}

.site-logo:hover .site-logo__name {
  color: var(--color-brand-accent);
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 0.25rem; /* space-x-1 */
}

@media (min-width: 1024px) {
  .primary-nav {
    gap: 0.5rem; /* lg:space-x-2 */
  }
}

.primary-nav a {
  position: relative;
  z-index: 10;
  padding: 0.5rem 0.75rem; /* px-3 py-2 */
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-muted); /* #5A635E */
  transition: color var(--transition);
}

.primary-nav a:hover,
.primary-nav a.current-menu-item,
.primary-nav a[aria-current="page"] {
  color: var(--color-brand-primary);
  font-weight: 700;
}

/* React: divider after Home — h-4 w-px bg-brand-sand mx-2 */
.nav-divider {
  display: inline-block;
  flex-shrink: 0;
  width: 1px;
  height: 1rem; /* h-4 */
  background: var(--color-brand-sand);
  margin: 0 0.5rem; /* mx-2 */
  align-self: center;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
  flex: 0 0 auto;
  overflow: visible;
}

.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-brand-sand);
  border-radius: var(--radius-md);
  background: var(--color-brand-cream);
  color: var(--color-brand-dark);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}

.lang-switcher__btn:hover,
.lang-switcher__btn:focus-visible,
.lang-switcher__btn[aria-expanded="true"] {
  border-color: var(--color-brand-primary);
  color: var(--color-brand-primary);
  background: #fff;
  outline: none;
}

.lang-switcher__current {
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-switcher__chevron {
  display: inline-flex;
  color: var(--color-brand-muted);
  transition: transform var(--transition), color var(--transition);
}

.lang-switcher__btn:hover .lang-switcher__chevron,
.lang-switcher__btn[aria-expanded="true"] .lang-switcher__chevron {
  color: var(--color-brand-primary);
}

.lang-switcher__btn[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 80;
  min-width: 11rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid var(--color-brand-sand);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.lang-switcher__menu[hidden],
.lang-switcher:not(.is-open) .lang-switcher__menu {
  display: none !important;
}

.lang-switcher.is-open .lang-switcher__menu {
  display: block !important;
}

.lang-switcher__menu li {
  margin: 0;
}

.lang-switcher__option {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius-md) - 0.15rem);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand-muted);
  transition: background-color var(--transition), color var(--transition);
}

.lang-switcher__option:hover,
.lang-switcher__option:focus-visible {
  background: var(--color-brand-cream);
  color: var(--color-brand-dark);
  outline: none;
}

.lang-switcher__option.is-current {
  background: rgba(139, 125, 114, 0.12);
  color: var(--color-brand-primary);
}

.lang-switcher--mobile {
  display: block;
  width: 100%;
  margin: 0.85rem 0 0.35rem;
}

.lang-switcher--mobile .lang-switcher__btn {
  width: 100%;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
}

.lang-switcher--mobile .lang-switcher__menu {
  position: static;
  margin-top: 0.35rem;
  box-shadow: none;
}

/* Tablet: search icon toggle; desktop xl+: inline input */
.header-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--color-brand-sand);
  border-radius: var(--radius-full);
  background: var(--color-brand-cream);
  color: var(--color-brand-dark);
  cursor: pointer;
  flex-shrink: 0;
}

.header-search-toggle:hover,
.header-search-toggle[aria-expanded="true"] {
  color: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
}

.header-search-toggle .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.header-search-panel {
  display: none;
  width: 100%;
  padding: 0 0 0.875rem;
  border-bottom: 1px solid var(--color-brand-sand);
  background: rgba(255, 255, 255, 0.98);
}

.header-search-panel.is-open {
  display: block;
}

.header-search-panel .header-search {
  width: 100%;
}

.header-search-panel .header-search input[type="search"] {
  width: 100%;
}

/* Search — React: relative group; input py-2 pl-8 pr-4; icon absolute left-3 centered */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search--inline {
  display: none;
}

.header-search input[type="search"] {
  width: 100%;
  height: 2.25rem;
  margin: 0;
  background: var(--color-brand-cream);
  color: var(--color-brand-dark);
  font-size: 0.75rem; /* text-xs */
  line-height: 1.25;
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem 0.5rem 2rem; /* py-2 pl-8 pr-4 */
  border: 1px solid var(--color-brand-sand);
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: width var(--transition), border-color var(--transition);
}

.header-search input[type="search"]::-webkit-search-decoration,
.header-search input[type="search"]::-webkit-search-cancel-button,
.header-search input[type="search"]::-webkit-search-results-button,
.header-search input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.header-search input[type="search"]:focus {
  border-color: var(--color-brand-primary);
}

.header-search:focus-within .header-search__icon {
  color: var(--color-brand-primary);
}

.header-search__icon {
  position: absolute;
  left: 0.75rem; /* left-3 */
  top: 0;
  bottom: 0;
  width: 0.875rem; /* w-3.5 */
  height: auto;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(41, 39, 37, 0.4);
  pointer-events: none;
  z-index: 1;
  line-height: 0;
  transform: none;
}

.header-search__icon .icon {
  width: 0.875rem;
  height: 0.875rem;
  display: block;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem; /* gap-1.5 */
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-subscribe {
  padding: 0.5rem 1.5rem; /* px-6 py-2 */
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background: var(--color-brand-primary);
  color: #fff;
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.btn-subscribe:hover {
  background: var(--color-brand-accent);
}

.btn-subscribe .icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.btn-dark {
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  background: var(--color-brand-dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--color-brand-accent);
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  padding: 0.5rem;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(247, 245, 242, 0.5);
  color: var(--color-brand-dark);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--color-brand-primary);
}

.mobile-menu {
  display: none;
  position: absolute;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--color-brand-sand);
  box-shadow: var(--shadow-sm);
  z-index: 50;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__inner {
  padding: 0.5rem 1rem 1.5rem;
}

.mobile-menu__label {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
  color: rgba(139, 125, 114, 0.7);
  text-transform: uppercase;
  padding: 0.5rem 0.75rem 0.25rem;
}

.mobile-menu__inner > a,
.mobile-menu button.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-brand-dark);
  cursor: pointer;
}

.mobile-menu__inner > a:hover,
.mobile-menu button.mobile-nav-link:hover {
  background: var(--color-brand-cream);
}

/* React mobile menu subscribe: filled primary, rounded-lg, full width */
.mobile-menu__subscribe {
  padding: 1rem 0.75rem 0;
}

.mobile-menu .btn-subscribe--mobile,
.mobile-menu a.btn-subscribe--mobile {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem; /* py-2.5 */
  font-size: 0.875rem; /* text-sm */
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0.5rem; /* rounded-lg */
  background: var(--color-brand-primary);
  color: #fff;
  border: none;
  box-shadow: none;
  white-space: nowrap;
}

.mobile-menu .btn-subscribe--mobile:hover,
.mobile-menu a.btn-subscribe--mobile:hover {
  background: var(--color-brand-accent);
  color: #fff;
}

/* Mobile header through 1020px; desktop nav from 1021px (avoids header overlap) */
@media (min-width: 1021px) {
  .primary-nav,
  .header-actions {
    display: flex;
  }

  .mobile-actions {
    display: none;
  }

  .mobile-menu,
  .mobile-menu.is-open {
    display: none !important;
  }

  /* Mid desktop: icon search only until xl */
  .header-search-toggle {
    display: inline-flex;
  }

  .header-search--inline {
    display: none;
  }

  .primary-nav {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .primary-nav a {
    padding: 0.5rem 0.5rem;
    white-space: nowrap;
  }
}

@media (min-width: 1100px) {
  .primary-nav a {
    padding: 0.5rem 0.75rem;
  }
}

/* Wide desktop: inline search field (React xl:w-48) */
@media (min-width: 1280px) {
  .header-search-toggle {
    display: none;
  }

  .header-search--inline {
    display: flex;
  }

  .header-search--inline input[type="search"] {
    width: 12rem;
  }

  .header-search--inline input[type="search"]:focus {
    width: 14rem;
  }

  .header-search-panel,
  .header-search-panel.is-open {
    display: none !important;
  }
}

/* ==========================================================================
   Homepage stack — React: space-y-16 py-8
   ========================================================================== */
.home-page {
  padding: 2rem 0 0; /* py-8 top; bottom handled by newsletter */
  display: flex;
  flex-direction: column;
  gap: 4rem; /* space-y-16 between hero / marquee / categories / newsletter */
}

/* ==========================================================================
   Hero spotlight
   ========================================================================== */
.iv-hero {
  padding: 0;
}

.iv-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .iv-hero__grid {
    grid-template-columns: 7fr 5fr;
  }
}

.hero-feature {
  background: var(--color-brand-cream);
  border-radius: var(--radius-3xl);
  padding: 1.5rem;
  border: 1px solid var(--color-brand-sand);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
  transition: border-color var(--transition);
}

.hero-feature:hover {
  border-color: rgba(139, 125, 114, 0.4);
}

@media (min-width: 768px) {
  .hero-feature {
    padding: 2rem;
  }
}

.page-eyebrow,
.hero-feature__badge {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fff;
  color: var(--color-brand-primary);
  border: 1px solid var(--color-brand-sand);
}

.hero-feature__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 1rem 0 0.75rem;
}

.hero-feature__title a:hover {
  color: var(--color-brand-accent);
}

.hero-feature__excerpt {
  color: var(--color-brand-muted);
  font-size: 0.875rem;
  margin: 0;
}

.iv-hero__grid--single {
  grid-template-columns: 1fr;
}

.hero-feature__image {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: var(--shadow-xs);
  background: var(--color-brand-sand);
  position: relative;
}

.hero-feature__image.is-placeholder {
  background: linear-gradient(135deg, var(--color-brand-sand), var(--color-brand-cream));
}

.hero-feature__image a {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.hero-feature:hover .hero-feature__image img {
  transform: scale(1.05);
}

.hero-feature__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.hero-feature__cat {
  background: var(--color-brand-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.5625rem;
  text-transform: uppercase;
}

.hero-feature__cta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-side-card {
  background: #fff;
  border-radius: var(--radius-3xl);
  padding: 1.5rem;
  border: 1px solid var(--color-brand-sand);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  transition: border-color var(--transition);
}

.hero-side-card:hover {
  border-color: rgba(139, 125, 114, 0.4);
}

.hero-side-card__label {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-side-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0.5rem 0;
}

.hero-side-card__title a:hover {
  color: var(--color-brand-accent);
}

.hero-side-card__excerpt {
  color: var(--color-brand-muted);
  font-size: 0.75rem;
  margin: 0;
}

.hero-side-card__foot {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-side-card__thumb {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--color-brand-sand);
  background: var(--color-brand-sand);
}

.hero-side-card__thumb.is-placeholder {
  background: linear-gradient(135deg, var(--color-brand-sand), var(--color-brand-cream));
}

.hero-side-card__thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-side-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-side-card__cta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Logo marquee
   ========================================================================== */
.logo-marquee {
  background: var(--color-brand-cream);
  padding: 2rem 0;
  border-top: 1px solid var(--color-brand-sand);
  border-bottom: 1px solid var(--color-brand-sand);
  overflow: hidden;
  margin: 0; /* spacing via .home-page gap */
}

.logo-marquee__label {
  text-align: center;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
  color: rgba(41, 39, 37, 0.5);
  margin: 0 0 1.5rem;
  font-weight: 700;
}

.logo-marquee__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.logo-marquee__fade-left,
.logo-marquee__fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4rem;
  z-index: 10;
  pointer-events: none;
}

.logo-marquee__fade-left {
  left: 0;
  background: linear-gradient(to right, var(--color-brand-cream), transparent);
}

.logo-marquee__fade-right {
  right: 0;
  background: linear-gradient(to left, var(--color-brand-cream), transparent);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 3rem;
  padding: 0.5rem 0;
  animation: marquee 35s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

.logo-marquee__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.logo-marquee__item:hover {
  opacity: 1;
}

.logo-marquee__dot {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: var(--radius-full);
  background: var(--color-brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.6875rem;
  flex-shrink: 0;
}

.logo-marquee__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ==========================================================================
   Category sections — match React (NO slider)
   Wrapper: space-y-20 | Section: space-y-8 | Grid: gap-8 | Secondary: space-y-6
   ========================================================================== */
/* Category sections — match HomepageView.tsx (featured card + horizontal side rows) */
.category-sections {
  padding: 0;
}

.category-sections > .container {
  display: flex;
  flex-direction: column;
  gap: 5rem; /* space-y-20 */
}

.category-section {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* space-y-8 */
  scroll-margin-top: 6rem;
}

.category-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-brand-sand);
  padding-bottom: 1rem;
  margin: 0;
}

.category-section__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.25rem 0 0;
  color: var(--color-brand-dark);
}

@media (min-width: 768px) {
  .category-section__title {
    font-size: 1.875rem;
  }
}

.category-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .category-section__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  /* Inverted block: secondary (3) left, featured right */
  .category-section__grid--invert {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* On small screens, always show featured above the secondary list */
@media (max-width: 1023px) {
  .category-section__grid--invert .category-featured {
    order: -1;
  }

  .category-section__grid--invert {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

/* Featured: white bordered card, image + text inside (p-5 rounded-3xl) */
.category-featured {
  background: #fff;
  padding: 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid var(--color-brand-sand);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
  width: 100%;
}

.category-featured:hover {
  border-color: rgba(139, 125, 114, 0.4);
}

.category-featured__image {
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--color-brand-cream);
  position: relative;
  margin: 0;
  width: 100%;
}

.category-featured__image.is-placeholder {
  background: linear-gradient(135deg, var(--color-brand-sand), var(--color-brand-cream));
}

.category-featured__image a {
  position: absolute;
  inset: 0;
  display: block;
}

.category-featured__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.category-featured:hover .category-featured__image img {
  transform: scale(1.02);
}

.category-featured__badge {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  background: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-primary);
  border: 1px solid var(--color-brand-sand);
  box-shadow: var(--shadow-xs);
  pointer-events: none;
}

.category-featured__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-featured__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--color-brand-dark);
}

@media (min-width: 768px) {
  .category-featured__title {
    font-size: 1.5rem;
  }
}

.category-featured:hover .category-featured__title,
.category-featured:hover .category-featured__title a {
  color: var(--color-brand-accent);
}

.category-featured__excerpt {
  color: var(--color-brand-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.category-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Secondary: stacked horizontal rows — thumb LEFT + copy RIGHT */
.category-secondary {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  align-self: start;
}

/* Stick the 3-card column beside the large article (homepage + category) */
@media (min-width: 1024px) {
  .category-section__grid .category-secondary {
    position: sticky;
    top: 6rem; /* below sticky header */
  }

  .admin-bar .category-section__grid .category-secondary {
    top: calc(6rem + 32px);
  }
}

.category-secondary__card {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--color-brand-sand);
  transition: border-color var(--transition), background var(--transition);
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  width: 100%;
}

.category-secondary__card:hover {
  border-color: rgba(139, 125, 114, 0.4);
  background: rgba(247, 245, 242, 0.2);
}

.category-secondary__thumb {
  position: relative;
  width: 6rem;
  height: 6rem;
  min-width: 6rem;
  min-height: 6rem;
  border-radius: 0.75rem;
  overflow: hidden;
  flex: 0 0 6rem;
  background: var(--color-brand-cream);
  border: 1px solid var(--color-brand-sand);
}

.category-secondary__thumb.is-placeholder {
  background: linear-gradient(135deg, var(--color-brand-sand), var(--color-brand-cream));
}

@media (min-width: 640px) {
  .category-secondary__thumb {
    width: 7rem;
    height: 7rem;
    min-width: 7rem;
    min-height: 7rem;
    flex-basis: 7rem;
  }
}

.category-secondary__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.category-secondary__card:hover .category-secondary__thumb img {
  transform: scale(1.05);
}

.category-secondary__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 auto;
}

.category-secondary__cat {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-brand-primary);
}

.category-secondary__title {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  color: var(--color-brand-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .category-secondary__title {
    font-size: 1rem;
  }
}

.category-secondary__card:hover .category-secondary__title {
  color: var(--color-brand-accent);
}

.category-secondary__excerpt {
  font-size: 0.75rem;
  color: var(--color-brand-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-secondary__cta {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(139, 125, 114, 0.8);
  padding-top: 0.25rem;
}

.category-secondary__card:hover .category-secondary__cta {
  color: var(--color-brand-primary);
}

/* ==========================================================================
   Post cards
   ========================================================================== */
.post-card {
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--color-brand-sand);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}

.post-card:hover {
  border-color: rgba(139, 125, 114, 0.4);
}

.post-card__image-wrap {
  border-radius: 0;
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-brand-cream);
}

.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: 0.75rem;
  left: 0.75rem;
  background: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand-primary);
  border: 1px solid var(--color-brand-sand);
}

.post-card__body {
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.post-card__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.post-card__title a:hover {
  color: var(--color-brand-accent);
}

.post-card__excerpt {
  color: var(--color-brand-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* Compact horizontal card (category secondary / recent) */
.post-card--horizontal {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.post-card--horizontal .post-card__image-wrap {
  width: 6rem;
  height: 6rem;
  aspect-ratio: auto;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-brand-sand);
}

.post-card--horizontal .post-card__body {
  padding: 0;
  justify-content: center;
}

.post-card--horizontal .post-card__title {
  font-size: 0.9375rem;
}

.post-card--horizontal .post-card__badge {
  position: static;
  display: inline-block;
  width: fit-content;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Newsletter section — match React HomepageView
   Content: max-w-2xl + space-y-6
   Text block: space-y-2; description + form: max-w-md
   Card padding: p-8 / md:p-12 / lg:p-16
   ========================================================================== */
.newsletter-section {
  padding: 0 0 2rem; /* bottom breathing room; vertical gap via .home-page */
}

.home-page .newsletter-section {
  padding-bottom: 2rem;
}

.newsletter-section__inner {
  background: var(--color-brand-cream);
  border-radius: 1.5rem; /* rounded-3xl */
  padding: 2rem; /* p-8 */
  border: 1px solid var(--color-brand-sand);
  position: relative;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .newsletter-section__inner {
    padding: 3rem; /* md:p-12 */
  }
}

@media (min-width: 1024px) {
  .newsletter-section__inner {
    padding: 4rem; /* lg:p-16 */
  }
}

.newsletter-section__glow {
  position: absolute;
  width: 12rem; /* w-48 */
  height: 12rem;
  border-radius: var(--radius-full);
  filter: blur(40px);
  pointer-events: none;
}

.newsletter-section__glow--bl {
  bottom: -4rem; /* -bottom-16 */
  left: -4rem;
  background: rgba(189, 154, 95, 0.05); /* brand-accent/5 */
}

.newsletter-section__glow--tr {
  top: -4rem;
  right: -4rem;
  background: rgba(139, 125, 114, 0.05); /* brand-primary/5 */
}

/* max-w-2xl mx-auto text-center space-y-6 */
.newsletter-section__content {
  position: relative;
  z-index: 1;
  max-width: 42rem; /* max-w-2xl */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* space-y-6 */
  text-align: center;
}

.newsletter-section__icon {
  width: 3rem;  /* w-12 */
  height: 3rem; /* h-12 */
  border-radius: var(--radius-full);
  background: rgba(139, 125, 114, 0.1);
  color: var(--color-brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex-shrink: 0;
}

.newsletter-section__icon .icon {
  width: 1.5rem;  /* w-6 */
  height: 1.5rem; /* h-6 */
}

/* space-y-2 text group */
.newsletter-section__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem; /* space-y-2 */
  width: 100%;
}

.newsletter-section__eyebrow {
  display: block;
  width: fit-content;
  font-size: 0.75rem; /* text-xs */
  text-transform: uppercase;
  letter-spacing: 0.1em; /* tracking-widest */
  font-family: var(--font-mono);
  color: var(--color-brand-primary);
  font-weight: 700;
  margin: 0;
}

.newsletter-section__title {
  font-family: var(--font-serif);
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-brand-dark);
  margin: 0;
  max-width: 100%; /* full width of max-w-2xl content */
}

@media (min-width: 768px) {
  .newsletter-section__title {
    font-size: 2.25rem; /* md:text-4xl */
  }
}

/* text-sm md:text-base max-w-md mx-auto */
.newsletter-section__desc {
  color: var(--color-brand-muted); /* #5A635E */
  font-size: 0.875rem; /* text-sm */
  line-height: 1.6;
  margin: 0;
  max-width: 28rem; /* max-w-md */
}

@media (min-width: 768px) {
  .newsletter-section__desc {
    font-size: 1rem; /* md:text-base */
  }
}

/* flex gap-3 max-w-md mx-auto pt-2 */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* gap-3 */
  width: 100%;
  max-width: 28rem; /* max-w-md */
  margin: 0 auto;
  padding-top: 0.5rem; /* pt-2 */
  box-sizing: border-box;
}

.newsletter-form[hidden] {
  display: none !important;
}

@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 1 auto;
  min-width: 0;
  padding: 0.75rem 1.25rem; /* px-5 py-3 */
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--color-brand-sand);
  font-size: 0.875rem;
  color: var(--color-brand-dark);
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 1px var(--color-brand-primary);
}

.newsletter-section .newsletter-form .btn-dark {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem; /* px-6 py-3 */
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em; /* tracking-widest */
  white-space: nowrap;
}

.newsletter-form input.is-invalid,
.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: var(--color-error-border);
}

.field-error {
  display: block;
  color: var(--color-error);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  text-align: left;
  width: 100%;
}

/* Homepage success — React HomepageView (inline-block, content width) */
.newsletter-notice {
  display: none;
  font-family: var(--font-sans);
  line-height: 1.5;
  box-sizing: border-box;
  animation: iv-fade-in 0.35s ease;
}

.newsletter-notice[hidden] {
  display: none !important;
}

/* React: inline-block only (no fixed max-width) — sizes to available content column */
.newsletter-section__content > .newsletter-notice--homepage.is-success:not([hidden]) {
  display: inline-block;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  padding: 1rem; /* p-4 */
  border-radius: 1rem; /* rounded-2xl */
  font-size: 0.875rem; /* text-sm */
  margin: 0;
  text-align: center;
  background: #ecfdf5; /* emerald-50 */
  color: #065f46; /* emerald-800 */
  border: 1px solid #a7f3d0; /* emerald-200 */
}

.newsletter-notice--homepage.is-success strong {
  font-weight: 700;
  color: #065f46;
}

/* Sidebar success — React PostPageView (check + short line, full width) */
.newsletter-notice--sidebar.is-success:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  margin: 0;
  width: 100%;
  max-width: none;
  text-align: left;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #d1fae5; /* emerald-100 */
}

.newsletter-notice__icon {
  display: flex;
  flex-shrink: 0;
  color: #059669; /* emerald-600 */
}

.newsletter-notice__icon .icon.newsletter-notice__check {
  width: 1rem;
  height: 1rem;
}

.newsletter-notice__text {
  flex: 1 1 auto;
  min-width: 0;
}

/* Global toast — React App.tsx */
.iv-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 0.75rem;
  max-width: 24rem;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  background: var(--color-brand-dark);
  color: #fff;
  border: 1px solid rgba(139, 125, 114, 0.2);
  box-shadow: 0 20px 40px rgba(41, 39, 37, 0.2);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.5;
  animation: iv-fade-in 0.35s ease;
}

.iv-toast[hidden] {
  display: none !important;
}

.iv-toast.is-visible:not([hidden]) {
  display: flex;
}

.iv-toast__icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2); /* emerald-500/20 */
  color: #34d399; /* emerald-400 */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iv-toast__icon .icon.iv-toast__check {
  width: 1rem;
  height: 1rem;
}

.iv-toast__text {
  margin: 0;
}

@keyframes iv-fade-in {
  from {
    opacity: 0;
    transform: translateY(0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.newsletter-section__disclaimer {
  font-size: 0.625rem; /* text-[10px] */
  color: rgba(41, 39, 37, 0.4); /* brand-dark/40 */
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Front page editorial content
   ========================================================================== */
.front-editorial {
  padding: 2rem 0 0;
}

.front-editorial .entry-content > *:first-child {
  margin-top: 0;
}

/* ==========================================================================
   Category archive hero
   ========================================================================== */
.cat-hero {
  position: relative;
  background: var(--color-brand-cream);
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-brand-sand);
  background-size: cover;
  background-position: center;
}

.cat-hero.has-bg-image {
  color: #fff;
  min-height: 14rem;
  display: flex;
  align-items: center;
}

.cat-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(41, 39, 37, 0.55);
}

.cat-hero__inner {
  position: relative;
  z-index: 1;
}

.cat-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0;
}

.cat-hero__desc-band {
  background: #fff;
  border-bottom: 1px solid var(--color-brand-sand);
  padding: 1.5rem 0;
}

.cat-hero__desc {
  color: var(--color-brand-muted);
  font-size: 0.9375rem;
  max-width: 48rem;
}

/* Category archive — 2 blocks / page (8 posts), alternating layout + pagination */
.category-archive {
  padding: 2rem 0 4rem;
}

.category-archive .category-section__title {
  margin: 0.25rem 0 0;
}

.category-archive__intro {
  margin-bottom: 0;
}

.category-archive__intro .category-section__header {
  margin-bottom: 0;
}

.category-archive__blocks {
  display: flex;
  flex-direction: column;
  gap: 3.5rem; /* space between normal + inverted sections */
  margin-top: 2rem;
}

.category-archive__block {
  gap: 0;
}

.category-archive .pagination {
  margin-top: 3rem;
  padding-top: 0;
}

.category-archive__newsletter {
  margin-top: 4rem;
}

.category-archive__newsletter .newsletter-section {
  padding-bottom: 0;
}

.category-secondary__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--color-brand-sand);
  border-radius: 1rem;
  background: rgba(247, 245, 242, 0.5);
  min-height: 12rem;
  height: 100%;
}

.category-secondary__empty-icon {
  color: rgba(139, 125, 114, 0.4);
  margin-bottom: 0.5rem;
}

.category-secondary__empty-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(41, 39, 37, 0.7);
  margin: 0;
}

.category-secondary__empty-text {
  font-size: 0.75rem;
  color: var(--color-brand-muted);
  margin: 0.25rem 0 0;
  max-width: 16rem;
}

.archive-posts {
  padding: 3rem 0 4rem;
}

/* ==========================================================================
   Single post
   ========================================================================== */
/* Do NOT use .single-post — WP adds that class to <body> */
.iv-single {
  padding: 2rem 0 3rem;
  overflow: visible;
}

.iv-single__breadcrumb {
  border-bottom: 1px solid var(--color-brand-sand);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.iv-single__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-primary);
}

.iv-single__back:hover {
  color: var(--color-brand-dark);
}

.single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  overflow: visible;
}

@media (min-width: 1024px) {
  .single-layout {
    grid-template-columns: 8fr 4fr;
  }
}

.single-article__cat {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--color-brand-primary);
  color: #fff;
  text-transform: uppercase;
}

.single-article__title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 1rem 0;
}

.single-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: rgba(41, 39, 37, 0.5);
  border-top: 1px solid var(--color-brand-sand);
  border-bottom: 1px solid var(--color-brand-sand);
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
}

.single-article__author {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem; /* gap-1 */
}

.single-article__author-icon {
  width: 0.875rem; /* w-3.5 */
  height: 0.875rem;
  color: var(--color-brand-primary);
  flex-shrink: 0;
}

.single-article__featured {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-brand-cream);
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.single-article__featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-content {
  color: rgba(41, 39, 37, 0.8);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--font-serif);
  color: var(--color-brand-dark);
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }

.entry-content p { margin: 0 0 1.25rem; }

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.entry-content li { margin-bottom: 0.5rem; }

.entry-content a {
  color: var(--color-brand-primary);
  text-decoration: underline;
}

.entry-content strong {
  color: var(--color-brand-dark);
}

/* React: flex-col items-center; text text-center sm:text-left */
.author-box {
  background: var(--color-brand-cream);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--color-brand-sand);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 2.5rem;
  text-align: center;
}

.author-box > div {
  width: 100%;
}

@media (min-width: 640px) {
  .author-box {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
}

.author-box__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.author-box__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.author-box__bio {
  font-size: 0.75rem;
  color: var(--color-brand-muted);
  margin: 0;
  line-height: 1.6;
}

/* React: lg:sticky lg:top-24 — no max-height/overflow (those inflate page height past the footer) */
.single-sidebar {
  align-self: start;
}

@media (min-width: 1024px) {
  .single-sidebar {
    position: sticky;
    top: 6rem; /* below sticky header (h-20) */
  }

  .admin-bar .single-sidebar {
    top: calc(6rem + 32px);
  }
}

.sidebar-widget {
  margin-bottom: 2rem;
}

.single-sidebar .sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-widget-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
  color: var(--color-brand-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--color-brand-sand);
  padding-bottom: 0.5rem;
  margin: 0 0 1rem;
}

.iv-newsletter-widget {
  background: var(--color-brand-cream);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--color-brand-sand);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.iv-newsletter-widget__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.iv-newsletter-widget__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--color-brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex-shrink: 0;
}

.iv-newsletter-widget__eyebrow {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.iv-newsletter-widget__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.iv-newsletter-widget__desc {
  font-size: 0.75rem;
  color: var(--color-brand-muted);
  margin: 0;
  line-height: 1.5;
}

.iv-newsletter-widget .newsletter-form {
  flex-direction: column;
  max-width: none;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.iv-newsletter-widget .newsletter-form input[type="email"] {
  width: 100%;
}

.iv-newsletter-widget .btn-dark {
  width: 100%;
}

/* Recent articles — match React PostPageView (thumb + category + title, no excerpt) */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post-card {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--color-brand-sand);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), background var(--transition);
}

.recent-post-card:hover {
  border-color: rgba(139, 125, 114, 0.4);
  background: rgba(247, 245, 242, 0.3);
}

.recent-post-card__thumb {
  position: relative;
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  flex: 0 0 4rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--color-brand-cream);
  border: 1px solid var(--color-brand-sand);
}

.recent-post-card__thumb.is-placeholder {
  background: linear-gradient(135deg, var(--color-brand-sand), var(--color-brand-cream));
}

.recent-post-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.recent-post-card:hover .recent-post-card__thumb img {
  transform: scale(1.05);
}

.recent-post-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.125rem;
  min-width: 0;
}

.recent-post-card__cat {
  font-size: 0.5625rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand-primary);
}

.recent-post-card__title {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-brand-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post-card:hover .recent-post-card__title {
  color: var(--color-brand-accent);
}

/* ==========================================================================
   Pages — About / Contact / Legal
   ========================================================================== */
.page-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.page-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0.75rem 0;
}

.page-header__subtitle {
  color: rgba(41, 39, 37, 0.7);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.7;
}

.page-shell {
  padding: 3rem 0 4rem;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .about-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-gallery__item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(139, 125, 114, 0.1);
  background: var(--color-brand-cream);
  box-shadow: var(--shadow-xs);
}

.about-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}

.about-gallery__item:hover img {
  transform: scale(1.05);
}

.about-gallery__caption {
  font-size: 0.75rem;
  color: var(--color-brand-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.about-body {
  max-width: 48rem;
  margin: 0 auto;
  color: rgba(41, 39, 37, 0.8);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.about-body p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  float: left;
  margin-right: 0.75rem;
  line-height: 1;
}

.about-body strong {
  color: var(--color-brand-primary);
  font-weight: 600;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 5fr 7fr;
  }

  /* Form sticks while scrolling through the taller left column */
  .contact-layout__form {
    position: sticky;
    top: 6rem; /* below sticky header (h-20) + small gap */
    align-self: start;
    z-index: 1;
  }

  .admin-bar .contact-layout__form {
    top: calc(6rem + 32px);
  }
}

.contact-visual {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--color-brand-cream);
  border: 1px solid rgba(139, 125, 114, 0.15);
  margin-bottom: 2rem;
}

.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-visual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(41, 39, 37, 0.65), transparent);
}

.contact-visual__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: #fff;
}

.contact-visual__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
  color: var(--color-brand-accent);
  margin: 0 0 0.25rem;
}

.contact-visual__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(247, 245, 242, 0.5);
  border: 1px solid rgba(139, 125, 114, 0.1);
  margin-bottom: 1rem;
}

.contact-info-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: rgba(139, 125, 114, 0.15);
  color: var(--color-brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.contact-info-card__text {
  font-size: 0.75rem;
  color: rgba(41, 39, 37, 0.75);
  margin: 0;
  line-height: 1.5;
}

.contact-form-wrap {
  background: var(--color-brand-cream);
  border-radius: var(--radius-3xl);
  padding: 2rem;
  border: 1px solid rgba(139, 125, 114, 0.15);
}

.contact-form__heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.contact-form__intro {
  font-size: 0.75rem;
  color: rgba(41, 39, 37, 0.6);
  margin: 0 0 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form[hidden] {
  display: none !important;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(41, 39, 37, 0.7);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(139, 125, 114, 0.1);
  font-size: 0.875rem;
  color: var(--color-brand-dark);
  outline: none;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-brand-primary);
}

.contact-disclaimer {
  font-size: 0.75rem;
  color: var(--color-brand-muted);
  margin-top: 1rem;
}

/* Contact success — matches React ContactView submitted state */
.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 0; /* py-12 */
}

.contact-success.is-visible,
.contact-success:not([hidden]) {
  display: flex;
}

.contact-success[hidden] {
  display: none !important;
}

.contact-success__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: #d1fae5; /* emerald-100 */
  color: #059669; /* emerald-600 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Beat global .icon { width: 1em } — React: CheckCircle2 w-10 h-10 inside w-16 circle */
.contact-success__icon .icon.contact-success__check {
  width: 2.5rem;
  height: 2.5rem;
  stroke-width: 2;
  vertical-align: middle;
}

.contact-success__text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-success__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand-dark);
  margin: 0;
}

.contact-success__body {
  font-size: 0.875rem;
  color: rgba(41, 39, 37, 0.7);
  max-width: 24rem;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-success__body strong {
  font-weight: 700;
  color: var(--color-brand-dark);
}

.contact-success__status {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-brand-primary);
  margin: 0;
  animation: iv-pulse 2s ease-in-out infinite;
}

@keyframes iv-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* Legal */
.legal-card {
  max-width: 56rem;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-3xl);
  padding: 2rem;
  border: 1px solid rgba(139, 125, 114, 0.1);
  box-shadow: var(--shadow-xs);
}

@media (min-width: 768px) {
  .legal-card {
    padding: 3rem;
  }
}

.legal-card__header {
  border-bottom: 1px solid rgba(139, 125, 114, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.legal-card__icon {
  width: 2.5rem;  /* w-10 */
  height: 2.5rem; /* h-10 */
  border-radius: var(--radius-full);
  background: rgba(139, 125, 114, 0.1);
  color: var(--color-brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.legal-card__icon .icon {
  width: 1.25rem;  /* w-5 — Lucide Scale size in LegalView */
  height: 1.25rem; /* h-5 */
  stroke-width: 2;
}

.legal-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.legal-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: rgba(41, 39, 37, 0.5);
  margin: 0;
}

.legal-card__meta-icon {
  color: var(--color-brand-primary);
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.legal-card__meta-sep {
  opacity: 0.7;
}

.legal-notice {
  font-style: italic;
  font-size: 0.8125rem;
  color: rgba(41, 39, 37, 0.6);
  background: rgba(247, 245, 242, 0.4);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 125, 114, 0.05);
  margin-bottom: 2rem;
}

.legal-card .entry-content h2 {
  font-size: 1.25rem;
}

.legal-card__footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(139, 125, 114, 0.1);
  font-size: 0.75rem;
  color: rgba(41, 39, 37, 0.4);
  font-family: var(--font-mono);
  text-align: center;
}

/* ==========================================================================
   Search / 404 / pagination
   ========================================================================== */
.search-header,
.error-404 {
  padding: 4rem 0;
  text-align: center;
}

.search-header__title,
.error-404__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

.error-404__text {
  color: var(--color-brand-muted);
  margin: 0 0 2rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0 0;
  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-full);
  border: 1px solid var(--color-brand-sand);
  font-size: 0.8125rem;
  font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-brand-primary);
  color: #fff;
  border-color: var(--color-brand-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-brand-dark);
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--color-brand-sand);
  margin-top: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-brand-sand);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

a.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  text-decoration: none;
  color: inherit;
  width: fit-content;
  max-width: 100%;
}

.site-footer__brand-mark {
  width: 2.5rem; /* match header mark */
  height: 2.5rem;
  min-width: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--color-brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem; /* match header */
  flex-shrink: 0;
  transition: transform var(--transition);
}

/* Match header .site-logo__name — Playfair, title case, tracking-tight */
.site-footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem; /* text-xl */
  font-weight: 700;
  letter-spacing: -0.02em; /* tracking-tight */
  text-transform: none;
  color: var(--color-brand-dark);
  line-height: 1.2;
  white-space: nowrap;
  transition: color var(--transition);
}

a.site-footer__brand:hover .site-footer__brand-mark {
  transform: scale(1.05);
}

a.site-footer__brand:hover .site-footer__brand-name {
  color: var(--color-brand-accent);
}

.site-footer__desc {
  color: var(--color-brand-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 24rem;
  margin: 0;
}

.site-footer__col-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
  color: var(--color-brand-muted);
  font-weight: 700;
  margin: 0 0 1rem;
}

/* Important Pages — match React: space-y-2.5, gap-2, icons w-4 h-4 */
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.625rem; /* space-y-2.5 */
}

.footer-menu a,
.footer-menu__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* gap-2 — icon to text */
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  color: var(--color-brand-muted); /* #5A635E */
  transition: color var(--transition);
  width: fit-content;
}

.footer-menu a:hover,
.footer-menu__link:hover {
  color: var(--color-brand-accent);
}

.footer-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--color-brand-primary); /* stays primary, even on link hover */
}

.footer-menu__svg.icon,
.footer-menu__icon .icon {
  width: 1rem;  /* w-4 */
  height: 1rem; /* h-4 */
  stroke-width: 2;
}

.footer-menu__label {
  display: inline-block;
}

/* Keep icon brand-primary when parent link is hovered */
.footer-menu__link:hover .footer-menu__icon {
  color: var(--color-brand-primary);
}

/* Trustpilot card — matches React: white card, gold filled stars, text stack */
.footer-trustpilot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  max-width: 20rem;
  margin: 0;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--color-brand-sand);
  border-radius: 0.75rem; /* rounded-xl */
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: border-color var(--transition);
}

a.footer-trustpilot:hover {
  border-color: rgba(139, 125, 114, 0.45);
}

.footer-trustpilot__stars {
  display: flex;
  align-items: center;
  gap: 0.125rem; /* gap-0.5 */
  flex-shrink: 0;
  line-height: 0;
  height: 1rem;
  max-height: 1rem;
  overflow: hidden; /* clip if SVG ever paints oversized before CSS */
}

/* Intrinsic width/height on the SVG + these rules prevent FOUC giant stars */
.footer-trustpilot__stars svg.footer-trustpilot__star,
.footer-trustpilot__star {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  display: block;
  overflow: visible;
  fill: #BD9A5F;
  stroke: none;
  color: #BD9A5F;
}

.footer-trustpilot__star polygon {
  fill: #BD9A5F;
  stroke: none;
}

.footer-trustpilot__text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  font-size: 0.75rem; /* text-xs */
  line-height: 1.35;
}

.footer-trustpilot__name {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-dark);
  line-height: 1.3;
}

.footer-trustpilot__meta {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(41, 39, 37, 0.6); /* text-brand-dark/60 */
  line-height: 1.35;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: rgba(189, 154, 95, 0.1);
  border: 1px solid rgba(189, 154, 95, 0.3);
  color: var(--color-brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-brand-accent);
  color: #fff;
  border-color: var(--color-brand-accent);
  transform: scale(1.05);
}

.footer-social__note {
  font-size: 0.75rem;
  color: rgba(41, 39, 37, 0.6);
  line-height: 1.6;
  margin: 0;
}

.site-footer__bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(41, 39, 37, 0.5);
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Cookie popup
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  max-width: 28rem;
  background: #fff;
  border: 1px solid var(--color-brand-sand);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(41, 39, 37, 0.12);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.cookie-banner__body {
  font-size: 0.8125rem;
  color: var(--color-brand-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-banner__accept {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--color-brand-dark);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-banner__dismiss {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-brand-muted);
  border: 1px solid var(--color-brand-sand);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   SVG icons (inline helper)
   ========================================================================== */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Brand marks like X (Twitter) use a filled path */
.icon.icon--filled {
  fill: currentColor;
  stroke: none;
}

.icon.icon--filled path {
  fill: currentColor;
  stroke: none;
}

.icon--sm { width: 0.875rem; height: 0.875rem; }
.icon--md { width: 1.125rem; height: 1.125rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }

/* Align with WP admin bar */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
