/* style.css — Editura Minied Design System & Components */

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Cormorant', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ============================================
   LIGHT MODE (PRIMARY)
   ============================================ */
:root, [data-theme="light"] {
  --color-bg:              #f5f1ea;
  --color-surface:         #faf7f2;
  --color-surface-2:       #ffffff;
  --color-surface-offset:  #ede8df;
  --color-surface-offset-2: #e5e0d6;
  --color-surface-dynamic: #ddd7cc;
  --color-divider:         #d4cec3;
  --color-border:          #c8c1b4;

  --color-text:            #1c1a15;
  --color-text-muted:      #6b6558;
  --color-text-faint:      #a39d90;
  --color-text-inverse:    #faf7f2;

  --color-primary:         #1a4731;
  --color-primary-hover:   #133824;
  --color-primary-active:  #0d2a1a;
  --color-primary-highlight: #d1ddd6;

  --color-gold:            #b8963e;
  --color-gold-hover:      #9a7d30;
  --color-gold-active:     #7c6424;
  --color-gold-highlight:  #e8dfc8;

  --color-error:           #8b2e2e;
  --color-error-highlight: #e5d0d0;
  --color-success:         #2e6b3a;
  --color-success-highlight: #d0e5d4;

  --shadow-sm: 0 1px 2px oklch(0.25 0.02 70 / 0.07);
  --shadow-md: 0 4px 12px oklch(0.25 0.02 70 / 0.09);
  --shadow-lg: 0 12px 32px oklch(0.25 0.02 70 / 0.13);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --color-bg:              #151310;
  --color-surface:         #1c1a16;
  --color-surface-2:       #22201b;
  --color-surface-offset:  #1e1b17;
  --color-surface-offset-2: #252320;
  --color-surface-dynamic: #302d28;
  --color-divider:         #2a2824;
  --color-border:          #3a3732;

  --color-text:            #d8d4cc;
  --color-text-muted:      #8a8578;
  --color-text-faint:      #5e5a52;
  --color-text-inverse:    #1c1a15;

  --color-primary:         #4a8a6a;
  --color-primary-hover:   #3a7558;
  --color-primary-active:  #2c6048;
  --color-primary-highlight: #283530;

  --color-gold:            #d4b058;
  --color-gold-hover:      #c09a3e;
  --color-gold-active:     #a88430;
  --color-gold-highlight:  #3a3425;

  --color-error:           #c45555;
  --color-error-highlight: #3a2525;
  --color-success:         #5aaa65;
  --color-success-highlight: #253a28;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:              #151310;
    --color-surface:         #1c1a16;
    --color-surface-2:       #22201b;
    --color-surface-offset:  #1e1b17;
    --color-surface-offset-2: #252320;
    --color-surface-dynamic: #302d28;
    --color-divider:         #2a2824;
    --color-border:          #3a3732;
    --color-text:            #d8d4cc;
    --color-text-muted:      #8a8578;
    --color-text-faint:      #5e5a52;
    --color-text-inverse:    #1c1a15;
    --color-primary:         #4a8a6a;
    --color-primary-hover:   #3a7558;
    --color-primary-active:  #2c6048;
    --color-primary-highlight: #283530;
    --color-gold:            #d4b058;
    --color-gold-hover:      #c09a3e;
    --color-gold-active:     #a88430;
    --color-gold-highlight:  #3a3425;
    --color-error:           #c45555;
    --color-error-highlight: #3a2525;
    --color-success:         #5aaa65;
    --color-success-highlight: #253a28;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
  }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

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

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

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition-interactive);
}
.skip-link:focus {
  top: var(--space-2);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.site-header__logo img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
}

[data-theme="light"] .site-header__logo img,
:root:not([data-theme]) .site-header__logo img {
  /* Don't use blend mode in header due to backdrop-filter interaction */
}

[data-theme="dark"] .site-header__logo img {
  filter: brightness(1.5) contrast(0.9);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .site-header__logo img {
    filter: brightness(1.5) contrast(0.9);
  }
}

.site-header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 450;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
  min-height: 44px;
}

.site-nav__link:hover {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.site-nav__link:active {
  background: var(--color-surface-offset);
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: background var(--transition-interactive);
}
.mobile-nav-toggle:hover {
  background: var(--color-surface-offset);
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-left: 1px solid var(--color-divider);
    padding: var(--space-16) var(--space-4) var(--space-4);
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    z-index: 200;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__link {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-divider);
    border-radius: 0;
  }

  .site-nav .theme-toggle {
    margin-top: var(--space-4);
    align-self: flex-start;
    margin-left: var(--space-4);
  }

  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: oklch(0 0 0 / 0.4);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--color-text);
    z-index: 201;
  }
  .mobile-nav-close:hover {
    background: var(--color-surface-offset);
  }
}

@media (min-width: 769px) {
  .mobile-nav-close { display: none; }
  .mobile-nav-overlay { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-4);
  text-align: center;
  border-bottom: 1px solid var(--color-divider);
  position: relative;
  overflow: hidden;
}


.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 100%;
  background: radial-gradient(ellipse at center top, oklch(from var(--color-gold) l c h / 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero__logo {
  width: clamp(140px, 20vw, 240px);
  height: auto;
  margin: 0 auto var(--space-6);
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.85);
  padding: var(--space-2);
}

[data-theme="light"] .hero__logo,
:root:not([data-theme]) .hero__logo {
  /* No blend mode — preserve logo appearance over library bg */
}

[data-theme="dark"] .hero__logo {
  mix-blend-mode: screen;
  filter: brightness(1.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero__logo {
    mix-blend-mode: screen;
    filter: brightness(1.3);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero__divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: var(--space-6) auto 0;
  position: relative;
  z-index: 1;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: clamp(var(--space-12), 6vw, var(--space-24)) var(--space-4);
}

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

/* Library background wrapper (Hero + Despre noi) */
.library-bg {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
}

.library-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: url('./images/bg-library.png') left top / cover no-repeat;
  opacity: 0.38;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 85%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 85%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .library-bg::before {
  opacity: 0.15;
  filter: brightness(0.6);
}

.library-bg > * {
  position: relative;
  z-index: 1;
}

/* Botanical section dividers */
.botanical-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4) 0;
  overflow: hidden;
}

.botanical-divider svg {
  width: min(500px, 70vw);
  height: auto;
  opacity: 0.55;
}

[data-theme="dark"] .botanical-divider svg {
  opacity: 0.2;
}

.section__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.section__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 65ch;
}

.section__divider {
  width: 40px;
  height: 2px;
  background: var(--color-gold);
  margin-top: var(--space-6);
}

/* Center variant */
.section--center {
  text-align: center;
}
.section--center .section__text {
  margin-inline: auto;
}

/* ============================================
   BOOK GRID
   ============================================ */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.book-card {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}

.book-card:hover {
  box-shadow: var(--shadow-md);
  border-color: oklch(from var(--color-text) l c h / 0.14);
}

.book-card__cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.book-card:hover .book-card__cover img {
  transform: scale(1.03);
}

.book-card__body {
  padding: var(--space-5);
}

.book-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  line-height: 1.25;
}

.book-card__author {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.book-card__meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

.book-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.book-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card__price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

/* ============================================
   APP GRID (Aplicații section)
   ============================================ */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.app-card {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}

.app-card:hover {
  box-shadow: var(--shadow-md);
  border-color: oklch(from var(--color-text) l c h / 0.14);
}

.app-card__preview {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.app-card:hover .app-card__preview img {
  transform: scale(1.03);
}

.app-card__body {
  padding: var(--space-5) var(--space-6);
}

.app-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
  line-height: 1.25;
}

.app-card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.app-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.app-card__features li {
  font-size: var(--text-sm);
  color: var(--color-text);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.5;
}

.app-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
}

.app-card__stores {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
  min-height: 44px;
  pointer-events: none;
  opacity: 0.55;
}

.store-badge--apple {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.store-badge--google {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.app-card__coming-soon {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-gold);
  font-style: italic;
}

@media (max-width: 600px) {
  .app-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ============================================
   COMING SOON (Drept section)
   ============================================ */
.coming-soon {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  margin-top: var(--space-8);
  background: var(--color-surface);
}

.coming-soon__icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.coming-soon__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.coming-soon__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 45ch;
  margin-inline: auto;
}

/* ============================================
   ORDER FORM
   ============================================ */
.order-form {
  max-width: 720px;
  margin: var(--space-8) auto 0;
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

@media (max-width: 600px) {
  .order-form {
    padding: var(--space-5);
  }
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}

/* Book checkbox items */
.book-select-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.book-select-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}

.book-select-item:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.book-select-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.book-select-item__info {
  flex: 1;
  min-width: 0;
}

.book-select-item__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.book-select-item__price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.book-select-item__qty {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.book-select-item__qty label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

.book-select-item__qty select {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  min-height: 36px;
  cursor: pointer;
}

/* Submit button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
  font-weight: 500;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 48px;
  transition: background var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.btn-submit:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-submit:active {
  background: var(--color-primary-active);
  transform: translateY(0);
  box-shadow: none;
}

/* Form success message */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8);
}

.form-success.is-visible {
  display: block;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success-highlight);
  color: var(--color-success);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.form-success__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-success__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 45ch;
  margin-inline: auto;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.contact-item__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}

.contact-item__value {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.5;
}

.contact-item__value a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.contact-item__value a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
}

.site-footer__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.site-footer__logo img {
  height: 32px;
  width: auto;
}

[data-theme="light"] .site-footer__logo img,
:root:not([data-theme]) .site-footer__logo img {
  mix-blend-mode: multiply;
}

[data-theme="dark"] .site-footer__logo img {
  filter: brightness(1.5) contrast(0.9);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .site-footer__logo img {
    filter: brightness(1.5) contrast(0.9);
  }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  .book-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .book-select-item {
    flex-wrap: wrap;
  }

  .book-select-item__qty {
    width: 100%;
    padding-top: var(--space-2);
  }

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

@media (min-width: 601px) and (max-width: 900px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   MUSIC TOGGLE BUTTON
   ============================================ */
.music-toggle {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  z-index: 90;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: oklch(from var(--color-surface) l c h / 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: color var(--transition-interactive), background var(--transition-interactive), box-shadow var(--transition-interactive);
}

.music-toggle:hover {
  color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

/* ============================================
   IMAGE FALLBACK
   ============================================ */
img {
  background: var(--color-surface-offset);
}

.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-offset);
  color: var(--color-text-faint);
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  width: 100%;
}
