:root {
  --bg-dark: #0b0c0e;
  --bg-surface: #14171d;
  --bg-surface-elevated: #1e222b;
  --bg-surface-border: #2a303c;
  
  --primary-rust: #c85a32;
  --primary-rust-hover: #db683f;
  --secondary-forest: #1e3a2b;
  --secondary-forest-light: #2c543f;
  --accent-sand: #d4a373;
  --accent-sand-muted: #9e7953;
  --text-ivory: #f4f1de;
  --text-muted: #a0a7b5;
  --text-dark: #0b0c0e;

  --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(200, 90, 50, 0.2);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(200, 90, 50, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(30, 58, 43, 0.08) 0%, transparent 40%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* Typography Helpers */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  color: var(--text-ivory);
  font-weight: 600;
}

.text-rust { color: var(--primary-rust); }
.text-sand { color: var(--accent-sand); }
.text-forest { color: var(--secondary-forest-light); }
.text-muted { color: var(--text-muted); }

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Slim Unstuck Header */
.site-header {
  position: relative;
  width: 100%;
  height: 64px;
  background: rgba(11, 12, 14, 0.95);
  border-bottom: 1px solid rgba(212, 163, 115, 0.15);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-ivory);
  text-transform: uppercase;
}

.brand-logo svg {
  width: 28px;
  height: 28px;
  color: var(--primary-rust);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-sand);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-rust);
}

.header-cta {
  background: transparent;
  border: 1px solid var(--primary-rust);
  color: var(--text-ivory);
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}

.header-cta:hover {
  background: var(--primary-rust);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-ivory);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-surface-border);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  z-index: 999;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-links a {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--text-ivory);
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary-rust);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-rust-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-surface-border);
  color: var(--text-ivory);
}

.btn-secondary:hover {
  border-color: var(--accent-sand);
  color: var(--accent-sand);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--accent-sand);
  color: var(--accent-sand);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-sand);
  color: var(--text-dark);
}

/* Page Banner / Hero */
.hero-section {
  position: relative;
  padding: 6rem 0 4rem 0;
  background: linear-gradient(180deg, rgba(11,12,14,0.3) 0%, rgba(11,12,14,0.95) 100%),
              url('images/photo-1509316975850-ff9c5deb0cd9.png') center/cover no-repeat;
  border-bottom: 1px solid var(--bg-surface-border);
}

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--primary-rust);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-ivory);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 650px;
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--accent-sand);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
}

/* Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 90, 50, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-image-wrap img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--accent-sand);
  color: var(--accent-sand);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--accent-sand-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-footer-action {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Detail Pages Layout */
.detail-hero {
  position: relative;
  padding: 4rem 0 3rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-surface-border);
}

.detail-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-surface-border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-sand);
}

.detail-layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

.article-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--accent-sand);
}

.article-content h3 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--text-ivory);
}

.article-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-lead {
  font-size: 1.2rem !important;
  color: var(--text-ivory) !important;
  font-weight: 400;
  line-height: 1.7 !important;
  border-left: 3px solid var(--primary-rust);
  padding-left: 1.25rem;
  margin-bottom: 2rem !important;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.widget-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bg-surface-border);
  color: var(--accent-sand);
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
}

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

.spec-value {
  color: var(--text-ivory);
  font-weight: 600;
  text-align: right;
}

/* Universal Footer */
.site-footer {
  margin-top: auto;
  background: #070809;
  border-top: 1px solid var(--bg-surface-border);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .brand-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--text-ivory);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-links a:hover {
  color: var(--accent-sand);
}

.footer-address {
  font-style: normal;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 23, 29, 0.98);
  border-top: 1px solid var(--primary-rust);
  padding: 1.25rem 0;
  z-index: 2000;
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cookie-text a {
  color: var(--accent-sand);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--accent-sand);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-sm);
  color: var(--text-ivory);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-rust);
  box-shadow: 0 0 0 3px rgba(200, 90, 50, 0.2);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .header-cta { display: none; }
  .mobile-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cookie-content { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}