/* =========================================================
   VARIABLES
========================================================= */
:root {
  --primary: #3b82f6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s6: 1.5rem;
  --s8: 2rem;
  
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  
  --r-sm: 0.375rem;
  --r-lg: 0.75rem;
  --r-xl: 1rem;
}

/* =========================================================
   RESET
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: var(--text-base); line-height: 1.6; color: #333; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* =========================================================
   LAYOUT
========================================================= */
.container { max-width: 900px; margin: 0 auto; padding: 10px; }
.content { padding: 10px; }
.separator {
  text-align: center;
  overflow: hidden;
  margin: 3rem 0;
}

.separator::before {
  content: '....................................................................................................';
  font-family: 'TRS Million', monospace;
  color: #000000;
  font-size: 1rem;
  letter-spacing: 0.5rem;
  display: block;
}
/* =========================================================
   HEADER & NAVIGATION
========================================================= */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  min-height: 56px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2000;
}

.site-logo img { max-height: 90px; }

.burger {
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 16px;
  width: max-content;
  overflow-y: auto;
  transform: translateX(-100%);
  z-index: 3000;
  background: #fff;
}

body.menu-open .sidebar { transform: translateX(0); }
body.menu-open { overflow: hidden; }

.sidebar-menu li + li { margin-top: 8px; }

.breadcrumb {
  display: flex;
  gap: var(--s2);
  font-size: var(--text-sm);
  color: #666;
  margin-bottom: var(--s4);
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer { margin-top: auto; padding: 20px; }

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--gray-200); color: var(--gray-700); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-lg { padding: var(--s4) var(--s6); font-size: var(--text-lg); }
.btn-xl { padding: 1rem 2rem; font-size: 1.125rem; }

/* =========================================================
   FORMS
========================================================= */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--r-lg);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #000;
}

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

/* =========================================================
   TABLES
========================================================= */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table thead { border-bottom: 2px solid #000; }
.table th { padding: 12px 16px; text-align: left; font-weight: 700; }
.table td { padding: 12px 16px; border-bottom: 1px solid #eee; }

/* =========================================================
   HOME - HERO
========================================================= */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s8) var(--s6);
  background-image: url('/assets/img/charles-snow-B0_HlgJ5-yk-unsplash.webp');
  background-size: cover;
  background-position: center;
}
.hero-content { max-width: 1200px; margin: 0 auto; text-align: center; }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; margin: 0 0 var(--s6) 0; line-height: 1.1; text-align: center; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.95); margin: 0 0 var(--s8) 0; text-align: center; }
.hero-actions { display: flex; gap: var(--s4); justify-content: center; flex-wrap: wrap; margin-bottom: var(--s8); }
.hero-stats { display: flex; gap: var(--s8); justify-content: center; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.stat-number { font-size: var(--text-2xl); font-weight: 800; color: #fff; }
.stat-label { font-size: var(--text-sm); color: rgba(255,255,255,0.8); }

/* =========================================================
   HOME - SECTIONS
========================================================= */
section:not(.hero-section) {
  padding: var(--s8) var(--s6);
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--s8);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 var(--s4) 0;
  text-align: center;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-600);
  margin: 0 0 var(--s8) 0;
  text-align: center;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s8);
}

.feature-card {
  padding: var(--s6);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--s6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: var(--r-xl);
  color: #fff;
}

.feature-title { font-size: var(--text-xl); font-weight: 700; margin: 0 0 var(--s3) 0; }
.feature-description { color: var(--gray-600); }

/* Process */
.process-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.process-step {
  text-align: center;
}

.process-connector {
  display: none;
}

.process-number {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--s4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 9999px;
  font-size: var(--text-2xl);
  font-weight: 800;
}

.process-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.process-title { font-size: var(--text-lg); font-weight: 700; margin: 0 0 var(--s2) 0; }
.process-description { font-size: var(--text-sm); color: var(--gray-600); }

.process-time {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gray-600);
  font-style: italic;
  margin-top: 0.25rem;
}

/* Gallery */
.gallery-section { 
  background-image: url('/assets/img/charles-snow-VsI9PqaGScw-unsplash.webp');
  background-size: cover;
  background-position: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s6); }
.gallery-card { display: block; overflow: hidden; }
.gallery-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-placeholder { width: 100%; aspect-ratio: 1 / 1;  display: flex; align-items: center; justify-content: center; }
.gallery-info { padding: var(--s4); }
.gallery-info h3 { margin: 0 0 var(--s2) 0; font-size: var(--text-lg); }
.gallery-info p { margin: 0; color: var(--gray-600); font-size: var(--text-sm); }
.gallery-cta { text-align: center; margin-top: var(--s8); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--s4);
  margin-bottom: var(--s3);
}

.faq-question {
  font-weight: 700;
  cursor: pointer;
}

.faq-answer { margin-top: var(--s3); color: var(--gray-600); }

/* CTA Final */
.cta-final-section {
  background-image: url('/assets/img/charles-snow-5TbB6xRL1SY-unsplash.webp');
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-final-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-final-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 var(--s4) 0;
}

.cta-final-text {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.95);
  margin: 0 0 var(--s8) 0;
}

/* =========================================================
   PAGES - DETAIL
========================================================= */
.content-page { max-width: 1200px; margin: 0 auto; padding: 2rem; }

.page-header h1 { font-size: 2rem; margin: 0 0 2rem 0; }

.page-main {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.page-media { display: flex; flex-direction: column; gap: 1rem; }

.page-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--r-lg);
}

.page-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
}

.page-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--r-sm);
  cursor: pointer;
}

.page-meta {
  padding: var(--s4);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
}

.meta-row {
  display: flex;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.meta-row:last-child { border-bottom: none; }
.meta-label { font-weight: 600; min-width: 120px; color: var(--gray-600); }
.meta-value { color: #000; }

.page-content { line-height: 1.6; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  .content-page { padding: 1rem; }
  .page-main { grid-template-columns: 1fr; gap: 2rem; }
  .page-image { height: 300px; }
  .page-thumbs { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
  .page-thumb { height: 60px; }
  .meta-row { flex-direction: column; gap: 0.25rem; }
  .meta-label { min-width: auto; }
  .gallery-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}

@media (max-width: 640px) {
  .process-timeline {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    gap: var(--s6);
  }
  
  .stat-item {
    min-width: 120px;
  }
}
