/* style.css — Rocky Mountain Mining Design System
   Art direction: Colorado Rocky Mountain Mining
   Palette: warm earth tones, deep gold accent, charcoal/warm-white surfaces
   Typography: Playfair Display (headings, display) + Work Sans (body, UI)
   Density: balanced — editorial spaciousness for content, denser for listings */

/* ===== COLOR TOKENS ===== */
:root, [data-theme="light"] {
  --color-bg:             #f8f5f0;
  --color-surface:        #faf7f3;
  --color-surface-2:      #fdfcfa;
  --color-surface-offset: #f1ece4;
  --color-divider:        #ddd5c8;
  --color-border:         #cfc7b8;

  --color-text:           #2a2218;
  --color-text-muted:     #7a6e60;
  --color-text-faint:     #b8ae9f;
  --color-text-inverse:   #faf7f3;

  --color-primary:        #b8830a;
  --color-primary-hover:  #9a6c06;
  --color-primary-active: #7a5404;
  --color-primary-highlight: #ede0c4;

  --color-secondary:      #7a4f2e;
  --color-secondary-hover: #5f3a1f;

  --color-success:        #437a22;
  --color-error:          #a13544;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 60 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 60 / 0.12);
}

[data-theme="dark"] {
  --color-bg:             #1a1610;
  --color-surface:        #1f1b14;
  --color-surface-2:      #252018;
  --color-surface-offset: #2a2419;
  --color-divider:        #302a1e;
  --color-border:         #3d3526;

  --color-text:           #d4cdc3;
  --color-text-muted:     #7a7268;
  --color-text-faint:     #504840;
  --color-text-inverse:   #2a2218;

  --color-primary:        #e8a830;
  --color-primary-hover:  #d49020;
  --color-primary-active: #b87010;
  --color-primary-highlight: #3d3020;

  --color-secondary:      #c08050;
  --color-secondary-hover: #a06838;

  --color-success:        #6daa45;
  --color-error:          #dd6974;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #1a1610;
    --color-surface:        #1f1b14;
    --color-surface-2:      #252018;
    --color-surface-offset: #2a2419;
    --color-divider:        #302a1e;
    --color-border:         #3d3526;
    --color-text:           #d4cdc3;
    --color-text-muted:     #7a7268;
    --color-text-faint:     #504840;
    --color-text-inverse:   #2a2218;
    --color-primary:        #e8a830;
    --color-primary-hover:  #d49020;
    --color-primary-active: #b87010;
    --color-primary-highlight: #3d3020;
    --color-secondary:      #c08050;
    --color-secondary-hover: #a06838;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ===== GLOBAL TYPOGRAPHY ===== */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
}
h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text);
}

h1 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); }

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow {
  max-width: var(--content-default);
}

.section-padding {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
}

.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.logo-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.nav-list {
  display: flex;
  gap: var(--space-1);
}
.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
}
.nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

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

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.mobile-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-surface);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    oklch(0.18 0.03 50) 0%,
    oklch(0.12 0.02 40) 50%,
    oklch(0.15 0.04 55) 100%
  );
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, oklch(0.10 0.02 40 / 0.85) 0%, oklch(0.10 0.02 40 / 0.5) 60%, oklch(0.10 0.02 40 / 0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-16) var(--space-6);
  color: #d4cdc3;
}
.hero h1 {
  font-size: var(--text-3xl);
  color: #faf7f3;
  margin-bottom: var(--space-4);
  max-width: 16ch;
}
.hero h1 span {
  color: var(--color-primary);
}
.hero-subtitle {
  font-size: var(--text-lg);
  color: #b8ae9f;
  max-width: 50ch;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}
.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary-highlight);
  color: var(--color-primary-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  margin-bottom: var(--space-8);
}
.section-header h2 {
  margin-bottom: var(--space-2);
}
.section-header p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.section-header .section-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
}
.section-header .section-link:hover {
  color: var(--color-primary-hover);
}

/* ===== CARDS ===== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}
.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--color-surface-offset);
}
.card-body {
  padding: var(--space-5);
}
.card-body h3 {
  margin-bottom: var(--space-2);
}
.card-body h3 a {
  color: var(--color-text);
  text-decoration: none;
}
.card-body h3 a:hover {
  color: var(--color-primary);
}
.card-body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.card-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}
.card-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.card-tag--sold {
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}

/* ===== GRID LAYOUTS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: var(--space-8);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  text-align: center;
}
.stat-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.stat-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}
.newsletter h2 {
  margin-bottom: var(--space-2);
}
.newsletter p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  margin-inline: auto;
}
.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin-inline: auto;
}
.newsletter-form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.newsletter-form input::placeholder {
  color: var(--color-text-faint);
}
.newsletter-form input:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.testimonial-card blockquote {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.6;
  font-style: italic;
}
.testimonial-card cite {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: normal;
  font-weight: 600;
}
.testimonial-stars {
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  letter-spacing: 2px;
}

/* ===== FILTER SIDEBAR / BAR ===== */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
  align-items: start;
}
.sidebar {
  position: sticky;
  top: calc(80px + var(--space-6));
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.sidebar h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.sidebar-section {
  margin-bottom: var(--space-5);
}
.sidebar-section:last-child {
  margin-bottom: 0;
}
.filter-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.filter-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: block;
}
.filter-link:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.filter-link.active {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-weight: 600;
}

/* Filter pill bar (horizontal alternative) */
.filter-bar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.filter-pill {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.filter-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.filter-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ===== DETAIL PAGE ===== */
.detail-header {
  padding-block: var(--space-8);
}
.detail-breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.detail-breadcrumb a {
  color: var(--color-text-muted);
}
.detail-breadcrumb a:hover {
  color: var(--color-primary);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-8);
  align-items: start;
}
.detail-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
}
.detail-info {
  position: sticky;
  top: calc(80px + var(--space-6));
}
.detail-info h1 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.detail-meta-item {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.detail-description {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.detail-specs {
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}
.detail-specs dt {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}
.detail-specs dd {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.detail-specs dd:last-child {
  margin-bottom: 0;
}

/* ===== BLOG LAYOUT ===== */
.blog-featured {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}
.blog-featured-img {
  background: var(--color-surface-offset);
  min-height: 100%;
}
.blog-featured-content {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-content .card-tag {
  align-self: flex-start;
  margin-bottom: var(--space-3);
}
.blog-featured-content h2 {
  margin-bottom: var(--space-3);
}
.blog-featured-content h2 a {
  color: var(--color-text);
  text-decoration: none;
}
.blog-featured-content h2 a:hover {
  color: var(--color-primary);
}
.blog-featured-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* Blog post content */
.blog-article {
  max-width: var(--content-default);
  margin-inline: auto;
  padding: var(--space-8) var(--space-6);
}
.blog-article-header {
  margin-bottom: var(--space-8);
  text-align: center;
}
.blog-article-header h1 {
  margin-bottom: var(--space-4);
}
.blog-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.blog-content {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
}
.blog-content h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}
.blog-content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.blog-content p {
  margin-bottom: var(--space-4);
}
.blog-content ul, .blog-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}
.blog-content li {
  margin-bottom: var(--space-2);
}
.blog-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-4);
  margin-block: var(--space-6);
  color: var(--color-text-muted);
  font-style: italic;
}
.blog-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== GUIDE PAGE ===== */
.guide-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}
.guide-toc h3 {
  margin-bottom: var(--space-4);
}
.guide-toc ol {
  padding-left: var(--space-6);
}
.guide-toc li {
  margin-bottom: var(--space-2);
}
.guide-toc a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.guide-toc a:hover {
  color: var(--color-primary);
}

.guide-section {
  margin-bottom: var(--space-12);
}
.guide-section h2 {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}
.guide-section h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.guide-section p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
}
.guide-section ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}
.guide-section li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}
.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237a6e60' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.contact-info {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.contact-info h3 {
  margin-bottom: var(--space-4);
}
.contact-info-item {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.contact-info-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

/* ===== PAGE HEADERS ===== */
.page-header {
  background: var(--color-surface-offset);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  border-bottom: 1px solid var(--color-divider);
}
.page-header h1 {
  margin-bottom: var(--space-2);
}
.page-header p {
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-inline: auto;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.about-hero-text h2 {
  margin-bottom: var(--space-4);
}
.about-hero-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}
.team-card {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}
.team-card h3 {
  margin-bottom: var(--space-1);
}
.team-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: none;
}

/* ===== CLAIM/SPECIMEN PLACEHOLDER IMAGES ===== */
.placeholder-img {
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}

/* ===== RELATED SECTION ===== */
.related-section {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-8);
  margin-top: var(--space-8);
}
.related-section h2 {
  margin-bottom: var(--space-6);
}

/* ===== 404 PAGE ===== */
.error-page {
  text-align: center;
  padding: var(--space-20) var(--space-6);
}
.error-page h1 {
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.error-page p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  margin-inline: auto;
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
  background: oklch(from var(--color-success) l c h / 0.1);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  color: var(--color-success);
  margin-bottom: var(--space-6);
  font-weight: 500;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.1 0 0 / 0.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal h2 {
  margin-bottom: var(--space-4);
}
.modal-close {
  float: right;
  color: var(--color-text-muted);
  padding: var(--space-2);
}
.modal-close:hover {
  color: var(--color-text);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  margin-top: var(--space-16);
}
.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-12) var(--space-6) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.footer-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}
.footer-tagline {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  max-width: 30ch;
}
.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social a {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}
.footer-social a:hover {
  color: var(--color-primary);
}
.footer-links h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}
.footer-links li {
  margin-bottom: var(--space-2);
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-domain {
  font-weight: 600;
  color: var(--color-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 68px;
    background: var(--color-bg);
    z-index: 99;
    padding: var(--space-6);
    border-top: 1px solid var(--color-divider);
    overflow-y: auto;
    backdrop-filter: none;
  }
  .main-nav.open {
    display: block;
  }

  .site-header {
    backdrop-filter: none;
    background: var(--color-bg);
  }
  .nav-list {
    flex-direction: column;
    gap: var(--space-1);
  }
  .nav-link {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
    display: block;
  }
  .mobile-toggle {
    display: flex;
  }

  .page-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    order: -1;
  }

  .hero h1 {
    font-size: var(--text-2xl);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-info {
    position: static;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }

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

  .about-hero {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 600px) {
  .hero {
    min-height: 50vh;
  }
  .hero-content {
    padding: var(--space-10) var(--space-4);
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    text-align: center;
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

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

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-5);
  }
}
