/*
Theme Name: Unique Gift Ideas
Theme URI: https://uniquegiftideas.uk
Author: Consilium Design Ltd
Author URI: https://consiliumdesign.co.uk
Description: A premium curated gifting discovery platform for independent British brands. Custom-built theme — no frameworks, no page builders, no bloat.
Version: 4.1.0
License: Proprietary
License URI: https://uniquegiftideas.uk/terms
Text Domain: ugift
Tags: gifting, editorial, curated, premium, custom

Pantone Palette: 2612 (Deep Purple) / 485 (Vivid Red) / 158 (Amber Orange)
Built by Consilium Design Ltd — March 2026
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — CSS Custom Properties
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Agreed Palette — 6 April 2026 */
  --color-brown:        #A0856E;
  --color-brown-dark:   #8A7059;
  --color-brown-light:  #B9A48E;
  --color-purple:       #6D2077;
  --color-purple-dark:  #4E1658;
  --color-purple-light: #8A3C96;
  --color-orange:       #F47920;
  --color-orange-dark:  #D4661A;
  --color-orange-light: #F79948;

  /* Legacy aliases — red mapped to brown for existing references */
  --color-red:          #A0856E;
  --color-red-dark:     #8A7059;
  --color-red-light:    #B9A48E;

  /* Neutrals */
  --color-cream:        #EDE3D5;
  --color-cream-dark:   #DED3C3;
  --color-white:        #FFFFFF;
  --color-dark:         #3A2C22;
  --color-dark-muted:   #5A4A3E;
  --color-grey:         #8A7E74;
  --color-grey-light:   #C8BFB5;
  --color-pale-purple:  #F0E6F2;
  --color-divider:      #D4C8BB;
  --color-bg-warm:      #F5EDE3;

  /* Semantic */
  --color-primary:      var(--color-brown);
  --color-accent:       var(--color-purple);
  --color-highlight:    var(--color-orange);
  --color-bg:           var(--color-cream);
  --color-text:         var(--color-dark);
  --color-text-muted:   var(--color-grey);

  /* Typography — Single font family, weight contrast for hierarchy */
  --font-display:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent:   'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type Scale (fluid) */
  --text-xs:    clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm:    clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-base:  clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-lg:    clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --text-xl:    clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  --text-2xl:   clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
  --text-3xl:   clamp(2rem, 1.5rem + 2.5vw, 3.2rem);
  --text-hero:  clamp(2.5rem, 1.5rem + 5vw, 5.5rem);

  /* Spacing Scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  10rem;

  /* Layout */
  --max-width:       1280px;
  --max-width-narrow: 800px;
  --max-width-wide:  1440px;
  --gutter:          clamp(1rem, 2vw, 2rem);
  --border-radius:   4px;
  --border-radius-lg: 8px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration:    0.3s;
  --duration-slow: 0.6s;
}


/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */

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

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: var(--color-red-dark);
}

::selection {
  background-color: var(--color-purple);
  color: var(--color-white);
}


/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
}

h1, .h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

h2, .h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

h3, .h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

h4, .h4 {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-dark);
}

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

.text-accent {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--text-xs);
  font-weight: 500;
}

.text-muted {
  color: var(--color-text-muted);
}

blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-purple);
  border-left: 4px solid var(--color-orange);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
}


/* ═══════════════════════════════════════════════════════════
   LAYOUT CONTAINERS
   ═══════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

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

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section--alt {
  background-color: var(--color-pale-purple);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-cream);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-cream);
}


/* ═══════════════════════════════════════════════════════════
   SITE HEADER
   ═══════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-cream);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--duration) var(--ease-out);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(26, 26, 46, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Logo — Concept 2: Weight + Colour Contrast */
.site-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  line-height: 1;
  position: relative;
}

.site-logo__line {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-purple), var(--color-red), var(--color-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  margin-bottom: 5px;
}

.site-logo:hover .site-logo__line {
  transform: scaleX(1);
}

.site-logo__text {
  display: block;
}

.site-logo__unique,
.site-logo__ideas {
  font-weight: 300;
  color: var(--color-purple);
}

.site-logo__gift {
  font-weight: 800;
  color: var(--color-red);
}

/* Primary Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.primary-nav a {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-dark);
  text-decoration: none;
  position: relative;
  padding: var(--space-xs) 0;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: width var(--duration) var(--ease-out);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  width: 100%;
}

.primary-nav a:hover {
  color: var(--color-purple);
}

/* For Brands link in nav — matches other nav links with red underline grow */
.nav-cta {
  color: var(--color-purple);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

.nav-cta:hover {
  color: var(--color-purple);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  position: absolute;
  left: 0;
  transition: all var(--duration) var(--ease-out);
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

.nav-toggle.active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}


/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-orange);
  margin-bottom: var(--space-sm);
  display: block;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  color: var(--color-purple);
  line-height: 1.05;
  margin-bottom: var(--space-md);
}

.hero__title .underline {
  position: relative;
  display: inline-block;
}

.hero__title .underline::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 0;
  height: 0.08em;
  background-color: var(--color-red);
  animation: drawUnderline 1.2s var(--ease-out) 0.5s forwards;
}

@keyframes drawUnderline {
  to { width: 100%; }
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-dark-muted);
  max-width: 540px;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Overlay for readability */
.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-cream) 5%, transparent 50%);
}

.hero__image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero__image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-cream) 0%, transparent 40%);
  z-index: 2;
}

.hero__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  padding: 0.85em 2em;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
}

.btn--primary {
  background-color: var(--color-red);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-red-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(218, 41, 28, 0.3);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-purple);
  border: 2px solid var(--color-purple);
}

.btn--secondary:hover {
  background-color: var(--color-purple);
  color: var(--color-white);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-dark);
  padding: 0.5em 0;
  border-bottom: 2px solid var(--color-red);
}

.btn--ghost:hover {
  color: var(--color-red);
}

.btn--ghost::after {
  content: '\2192';
  transition: transform var(--duration) var(--ease-out);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}


/* ═══════════════════════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════════════════════ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(109, 32, 119, 0.1);
}

.product-card__image {
  aspect-ratio: 1;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.product-card__body {
  padding: var(--space-md);
}

.product-card__brand {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-purple);
  margin-bottom: 0.3em;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-dark);
  margin-bottom: 0.3em;
  position: relative;
  display: inline-block;
}

.product-card__name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: width var(--duration) var(--ease-out);
}

.product-card:hover .product-card__name::after {
  width: 100%;
}

.product-card__price {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.product-card__cta {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--duration) var(--ease-out);
}

.product-card:hover .product-card__cta {
  opacity: 1;
  transform: translateY(0);
}

.product-card__cta::after {
  content: '\2192';
  transition: transform var(--duration) var(--ease-out);
}

.product-card__cta:hover::after {
  transform: translateX(4px);
}


/* ═══════════════════════════════════════════════════════════
   BRAND CARDS (Directory Grid)
   ═══════════════════════════════════════════════════════════ */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* Staggered masonry effect */
.brand-card:nth-child(3n+2) {
  margin-top: var(--space-lg);
}

.brand-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(109, 32, 119, 0.1);
}

.brand-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.brand-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.brand-card__body {
  padding: var(--space-md);
}

.brand-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-dark);
  margin-bottom: 0.3em;
}

.brand-card__tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.brand-card__values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.value-badge {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3em 0.7em;
  border-radius: 2px;
  background-color: var(--color-pale-purple);
  color: var(--color-purple);
}

.value-badge--featured {
  background-color: var(--color-orange);
  color: var(--color-white);
}


/* ═══════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════ */

.section-header {
  position: relative;
  margin-bottom: var(--space-xl);
}

.section-header__number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 10vw, 12rem);
  color: var(--color-pale-purple);
  position: absolute;
  top: -0.3em;
  left: -0.05em;
  line-height: 1;
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

.section-header__title {
  position: relative;
  z-index: 1;
}

.section-header__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 540px;
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════════════════════════
   GIFT GUIDE SECTION
   ═══════════════════════════════════════════════════════════ */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.guide-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
}

.guide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.guide-card:hover img {
  transform: scale(1.05);
}

.guide-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.75) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}

.guide-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 0.3em;
}

.guide-card__count {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-orange);
}


/* ═══════════════════════════════════════════════════════════
   BRAND SPOTLIGHT (Homepage)
   ═══════════════════════════════════════════════════════════ */

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.spotlight__image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.spotlight__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight__content {
  max-width: 480px;
}

.spotlight__label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-orange);
  margin-bottom: var(--space-xs);
}

.spotlight__name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-purple);
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.spotlight__excerpt {
  font-size: var(--text-base);
  color: var(--color-dark-muted);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════
   SINGLE BRAND PAGE
   ═══════════════════════════════════════════════════════════ */

.brand-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.brand-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.brand-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.7) 0%, transparent 60%);
}

.brand-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) 0;
}

.brand-hero__name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.brand-hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-cream);
  opacity: 0.85;
}

.brand-story {
  padding: var(--space-2xl) 0;
}

.brand-story__text {
  max-width: var(--max-width-narrow);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.brand-values {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-lg) 0;
}


/* ═══════════════════════════════════════════════════════════
   GIFT FINDER QUIZ
   ═══════════════════════════════════════════════════════════ */

.gift-finder {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-purple);
  color: var(--color-white);
}

.gift-finder__step {
  text-align: center;
  max-width: 600px;
  padding: var(--space-lg);
  display: none;
}

.gift-finder__step.active {
  display: block;
  animation: fadeUp 0.5s var(--ease-out);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gift-finder__question {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
}

.gift-finder__options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.gift-finder__option {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.8em 1.8em;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.gift-finder__option:hover,
.gift-finder__option.selected {
  border-color: var(--color-orange);
  background-color: rgba(244, 121, 32, 0.15);
  color: var(--color-orange);
}

.gift-finder__progress {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.gift-finder__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.gift-finder__dot.active {
  background: var(--color-orange);
}


/* ═══════════════════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════════════════ */

.site-footer {
  background-color: var(--color-dark);
  color: var(--color-cream);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.footer-brand__logo .site-logo__unique,
.footer-brand__logo .site-logo__ideas {
  font-weight: 300;
  color: var(--color-white);
}

.footer-brand__logo .site-logo__gift {
  font-weight: 800;
  color: var(--color-red);
}

.footer-brand__desc {
  font-size: var(--text-sm);
  color: var(--color-grey);
  line-height: 1.6;
}

.footer-col__title {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5em;
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-grey);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

.footer-col a:hover {
  color: var(--color-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom__copy {
  font-size: var(--text-xs);
  color: var(--color-grey);
}

.footer-bottom__legal a {
  font-size: var(--text-xs);
  color: var(--color-grey);
  margin-left: var(--space-md);
}


/* ═══════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ═══════════════════════════════════════════════════════════ */

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-divider);
  padding: 0.5em 0 calc(0.5em + env(safe-area-inset-bottom));
}

.mobile-nav__list {
  display: flex;
  justify-content: space-around;
  list-style: none;
}

.mobile-nav__item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  text-decoration: none;
  color: var(--color-grey);
  font-family: var(--font-accent);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--duration) var(--ease-out);
}

.mobile-nav__item a.active,
.mobile-nav__item a:hover {
  color: var(--color-purple);
}

.mobile-nav__icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}


/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .spotlight {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero__image-wrapper {
    width: 45%;
    opacity: 0.6;
  }
}

@media (max-width: 768px) {
  .primary-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    z-index: 99;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    font-size: var(--text-lg);
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta--desktop {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .brand-card:nth-child(3n+2) {
    margin-top: 0;
  }

  .hero {
    min-height: 70vh;
  }

  .hero__image-wrapper {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .mobile-nav {
    display: block;
  }

  /* Push body up so content isn't hidden behind mobile nav */
  body {
    padding-bottom: 70px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}


/* ═══════════════════════════════════════════════════════════
   WORDPRESS SPECIFIC — Admin Bar, Alignments, etc.
   ═══════════════════════════════════════════════════════════ */

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

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

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

/* Gutenberg block styles */
.wp-block-image {
  margin-bottom: var(--space-md);
}

.wp-block-image img {
  border-radius: var(--border-radius-lg);
}


/* ═══════════════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════════════ */

.breadcrumbs {
  padding: var(--space-sm) 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-divider);
}

.breadcrumbs a {
  color: var(--color-purple);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs__sep {
  margin: 0 0.4em;
  color: var(--color-grey-mid);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-dark);
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════
   SHOP HERO (products archive + homepage)
   ═══════════════════════════════════════════════════════════ */

.shop-hero {
  background: var(--color-dark);
}

.shop-cta__images > div {
  min-height: 200px;
}

@media (max-width: 768px) {
  .shop-cta__images {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr !important;
    max-height: 200px;
  }

  .section > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   SPLIT HERO — Image left, text right (v3.1)
   ═══════════════════════════════════════════════════════════ */

.hero-split {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 92vh;
  min-height: 92dvh;
}

.hero-split__media {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-split__media img,
.hero-split__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-split__gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-dark) 100%);
}

.hero-split__content {
  display: flex;
  align-items: center;
  background: var(--color-dark);
  padding: var(--space-2xl) var(--space-xl);
}

.hero-split__inner {
  max-width: 480px;
}

.hero-split__label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-orange);
  margin-bottom: var(--space-lg);
  font-weight: 500;
  position: relative;
  padding-left: 3rem;
}

.hero-split__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--color-orange);
}

.hero-split__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 2rem + 4vw, 4.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
}

.hero-split__accent {
  color: var(--color-orange);
  font-style: italic;
  position: relative;
}

.hero-split__accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.02em;
  width: 100%;
  height: 3px;
  background: var(--color-red);
  border-radius: 2px;
  animation: drawLine 1.2s var(--ease-out) 0.5s forwards;
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes drawLine {
  to { transform: scaleX(1); }
}

.hero-split__subtitle {
  font-size: var(--text-base);
  color: var(--color-grey-light);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.hero-split__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero-split__tagline {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-split__tagline span {
  width: 2rem;
  height: 1px;
  background: var(--color-grey);
}

.hero-split__tagline p {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-grey);
  margin: 0;
}

/* Outline button variant */
.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85em 2em;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  background: transparent;
  border: 1px solid var(--color-grey);
  border-radius: var(--border-radius);
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
  cursor: pointer;
}

.btn--outline:hover {
  border-color: var(--color-white);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
}

/* Large button variant */
.btn--lg {
  padding: 1em 2.5em;
  font-size: var(--text-base);
}


/* ═══════════════════════════════════════════════════════════
   OCCASION STRIP
   ═══════════════════════════════════════════════════════════ */

.occasion-strip {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: var(--space-sm) 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

.occasion-strip::-webkit-scrollbar {
  display: none;
}

.occasion-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-sm) var(--space-md);
  min-width: 100px;
  background: var(--color-white);
  border: 1px solid var(--color-divider);
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  color: var(--color-dark);
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
}

.occasion-tile:hover {
  border-color: var(--color-purple);
  background: var(--color-pale-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(109, 32, 119, 0.1);
  color: var(--color-purple);
}

.occasion-tile__icon {
  font-size: 1.8rem;
  line-height: 1;
}

.occasion-tile__name {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════
   LIFESTYLE BANNER (full-width image break)
   ═══════════════════════════════════════════════════════════ */

.lifestyle-banner {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.lifestyle-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.7) 0%,
    rgba(109, 32, 119, 0.5) 100%
  );
}

.lifestyle-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: var(--space-xl) var(--gutter);
}

.lifestyle-banner__content h2 {
  font-size: var(--text-3xl);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.lifestyle-banner__content p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}


/* ═══════════════════════════════════════════════════════════
   FEATURED PRODUCT GRID (larger cards on homepage)
   ═══════════════════════════════════════════════════════════ */

.product-grid--featured .product-card__image {
  height: 320px;
}

.product-grid--featured .product-card__image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}


/* ═══════════════════════════════════════════════════════════
   PRODUCT CARD IMAGE FIX — Constrain heights
   ═══════════════════════════════════════════════════════════ */

.product-card__image {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__image > div {
  width: 100%;
  height: 100%;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — NEW ELEMENTS
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-split__media {
    height: 50vh;
    height: 50dvh;
  }

  .hero-split__content {
    padding: var(--space-xl) var(--gutter);
  }

  .hero-split__title {
    font-size: clamp(2.2rem, 1.5rem + 4vw, 3rem);
  }

  .occasion-strip {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .occasion-tile {
    min-width: 85px;
    padding: var(--space-xs) var(--space-sm);
  }

  .occasion-tile__icon {
    font-size: 1.5rem;
  }

  .lifestyle-banner {
    min-height: 350px;
    background-attachment: scroll;
  }

  .product-grid--featured .product-card__image {
    height: 220px;
  }

  .product-card__image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-split__ctas {
    flex-direction: column;
  }

  .hero-split__ctas .btn {
    width: 100%;
    text-align: center;
  }
}
