/* ═══════════════════════════════════════════
   PESHITTA.ORG — Complete Stylesheet
   Elegant scholarly site with light/dark mode
   ═══════════════════════════════════════════ */

/* ── CSS Custom Properties (Light Mode Default) ── */
:root {
  /* Gold & Crimson Accents - matched to logo */
  --gold: #d4b856;
  --gold-light: #e8d47a;
  --gold-dim: rgba(212, 184, 86, 0.15);
  --gold-glow: rgba(212, 184, 86, 0.08);
  --maroon: #8b1a2b;
  --maroon-light: #b22840;
  --maroon-dim: rgba(139, 26, 43, 0.12);

  /* Light Mode Colors */
  --bg-primary: #faf9f6;
  --bg-secondary: #f3f1ec;
  --bg-card: #ffffff;
  --bg-card-alt: #f9f8f5;
  --bg-hero: linear-gradient(175deg, rgba(139, 26, 43, 0.12) 0%, rgba(139, 26, 43, 0.08) 40%, rgba(139, 26, 43, 0.05) 100%);
  --bg-nav: rgba(250, 249, 246, 0.92);
  --bg-footer: #2c1820;

  --text-primary: #1c1418;
  --text-secondary: #594e55;
  --text-muted: #8f8289;
  --text-inverse: #faf9f6;

  --border: #e5e0db;
  --border-light: #edebe7;
  --border-focus: var(--gold);

  --shadow-sm: 0 1px 3px rgba(28, 20, 24, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 20, 24, 0.08);
  --shadow-lg: 0 8px 32px rgba(28, 20, 24, 0.1);

  /* Typography Scale */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-aramaic: 'Estrangelo', serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --max-width: 1100px;
  --nav-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --bg-primary: #100a0d;
  --bg-secondary: #1c1218;
  --bg-card: #22161c;
  --bg-card-alt: #291a22;
  --bg-hero: linear-gradient(175deg, rgba(139, 26, 43, 0.25) 0%, rgba(139, 26, 43, 0.18) 40%, rgba(139, 26, 43, 0.12) 100%);
  --bg-nav: rgba(16, 10, 13, 0.94);
  --bg-footer: #080406;

  --text-primary: #f0ebe8;
  --text-secondary: #b8aab0;
  --text-muted: #7a6a72;
  --text-inverse: #1c1418;

  --border: #38262e;
  --border-light: #2c1e25;
  --border-focus: var(--gold-light);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background var(--transition-base), color var(--transition-base);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--gold-dim);
  color: var(--text-primary);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--gold-light);
}

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

/* ── Estrangelo Font ── */
@font-face {
  font-family: 'Estrangelo';
  src: url('../fonts/ESTRANG2.woff2') format('woff2'),
       url('../fonts/ESTRANG2.ttf') format('truetype');
  font-display: swap;
}

.aramaic {
  font-family: var(--font-aramaic);
  font-size: 1.6em;
  line-height: 1.5;
  color: var(--maroon);
}

[data-theme="dark"] .aramaic {
  color: var(--maroon-light);
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.nav-links a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: var(--gold-glow);
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--text-primary);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile menu */
@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--space-md);
   P0+r4B31\P0+r4B33\P0+r4B34\P0+r4B35\P0+r6B42\ gap: 0;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.open { display: flex; }
  
  .nav-links a {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    width: 100%;
  }
}

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

.hero {
  background: var(--bg-hero);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(139, 26, 43, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-lg);
  opacity: 0.95;
  filter: drop-shadow(0 0 20px rgba(212, 184, 86, 0.3));
  object-fit: contain;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.hero h1 .accent {
  color: var(--gold);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--maroon-light);
  font-style: italic;
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto var(--space-2xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1410;
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.35);
  color: #1a1410;
}

.btn-outline {
  background: transparent;
  color: var(--maroon);
  border: 1px solid var(--maroon-dim);
}
.btn-outline:hover {
  border-color: var(--maroon);
  color: var(--maroon-light);
  background: var(--maroon-dim);
}

.btn-maroon {
  background: var(--maroon);
  color: #fff;
}
.btn-maroon:hover {
  background: var(--maroon-light);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   SECTION LAYOUTS
   ═══════════════════════════════════════════ */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.section-header {
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.section-header .subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: var(--space-md) auto;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-dim);
}

.card-grid {
  display: grid;
  gap: var(--space-lg);
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 750px; margin: 0 auto; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* ═══════════════════════════════════════════
   FEATURE CARDS (Homepage)
   ═══════════════════════════════════════════ */

.features {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-lg);
  background: var(--gold-glow);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   LEXICON SEARCH
   ═══════════════════════════════════════════ */

.lexicon-hero {
  background: var(--bg-hero);
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  text-align: center;
}

.lexicon-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.lexicon-hero .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

.search-box {
  display: flex;
  gap: var(--space-sm);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
}

.search-input {
  flex: 1;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
}
.search-input::placeholder {
  color: var(--text-muted);
}
.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.search-btn {
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1410;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.search-btn:hover {
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.35);
}

.search-fields {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-lg);
  margin-bottom: var(--space-lg);
}

.search-fields label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.search-fields input[type="radio"] {
  accent-color: var(--gold);
}

.search-copyright {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

/* Search Results */
.results-area {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.results-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.result-card {
  margin-bottom: var(--space-lg);
}

.result-badge {
  display: inline-block;
  background: var(--maroon-dim);
  color: var(--maroon);
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

[data-theme="dark"] .result-badge {
  color: var(--maroon-light);
}

.result-table {
  width: 100%;
  border-collapse: collapse;
}

.result-table tr {
  border-bottom: 1px solid var(--border-light);
}

.result-table tr:nth-child(even) {
  background: var(--bg-card-alt);
}

.result-table td {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  vertical-align: top;
}

.result-table .label {
  width: 150px;
  text-align: right;
  font-weight: 600;
  color: var(--text-secondary);
  padding-right: var(--space-md);
}

.result-table .pronunciation {
  color: var(--maroon);
  font-style: italic;
}

[data-theme="dark"] .result-table .pronunciation {
  color: var(--maroon-light);
}

/* Concordance */
.concordance-section {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.concordance-section h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.concordance-book {
  margin-bottom: var(--space-sm);
}

.concordance-book strong {
  color: var(--gold);
  font-size: 0.85rem;
}

.concordance-book span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.pagination button, .pagination span {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination .active {
  background: var(--gold);
  color: #1a1410;
  border-color: var(--gold);
  font-weight: 700;
}

/* Loading spinner */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: var(--space-2xl) auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   INTERLINEAR NT PAGE
   ═══════════════════════════════════════════ */

.book-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  text-decoration: none;
}

.book-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.book-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.book-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--gold-dim);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════
   BETH SAPRA
   ═══════════════════════════════════════════ */

.prose {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.prose p + p {
  margin-top: var(--space-lg);
}

.prose em {
  color: var(--text-primary);
  font-style: italic;
}

/* ═══════════════════════════════════════════
   BETH GAZZA — Articles
   ═══════════════════════════════════════════ */

.article-card {
  padding: var(--space-xl);
  cursor: pointer;
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.article-card .author {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.article-card .excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-card .read-more {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--maroon);
}

[data-theme="dark"] .article-card .read-more {
  color: var(--maroon-light);
}

/* Full article view */
.article-full {
  max-width: 750px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.article-full h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.article-full .byline {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--space-2xl);
}

.article-full .body {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-secondary);
}

.article-full .body p + p {
  margin-top: var(--space-lg);
}

.article-full blockquote {
  border-left: 3px solid var(--gold);
  margin: var(--space-xl) 0;
  padding: var(--space-md) var(--space-xl);
  background: var(--gold-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   LINKS & RESOURCES
   ═══════════════════════════════════════════ */

.link-category h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.link-category h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--maroon);
  border-radius: 50%;
  flex-shrink: 0;
}

.link-card {
  padding: var(--space-md) var(--space-lg);
}

.link-card .name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.link-card .desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   ABOUT / KEYBOARD MAP
   ═══════════════════════════════════════════ */

.about-section {
  max-width: 800px;
}

.about-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.credits-list {
  list-style: none;
  padding: 0;
}

.credits-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.credits-list li strong {
  color: var(--text-primary);
}

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

.footer {
  background: var(--bg-footer);
  border-top: 1px solid rgba(212, 184, 86, 0.18);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  margin-bottom: var(--space-lg);
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.5);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(250, 248, 245, 0.3);
  line-height: 1.8;
}

.footer-copy .separator {
  margin: 0 var(--space-sm);
  opacity: 0.3;
}

/* ═══════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════ */

.text-gold { color: var(--gold); }
.text-maroon { color: var(--maroon); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

@media (max-width: 768px) {
  .hero {
    padding: var(--space-2xl) var(--space-md);
  }

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

  .search-box {
    flex-direction: column;
  }

  .search-input, .search-btn {
    width: 100%;
  }

  .result-table .label {
    width: 120px;
    font-size: 0.8rem;
  }

  .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; max-width: 100%; }
  .card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  
  .hero-logo { width: 60px; height: 60px; }
  
  .result-table td {
    display: block;
    width: 100%;
    text-align: left;
  }
  
  .result-table .label {
    width: auto;
    text-align: left;
    padding-bottom: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
  }
}

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

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

.fade-in {
  animation: fadeInUp 0.5s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
