/*
Theme Name: Vault Brutalism v2
Author: Assistant
Description: Dark, industrial financial theme with Unbounded typography.
Version: 5.0
*/

:root {
  /* Palette: Deep Slate, Vibrant Orange, Concrete */
  --bg-dark: #0b0f19;       /* Dark Navy/Black */
  --bg-card: #131b2c;       /* Slightly lighter navy */
  --text-main: #f1f5f9;     /* Slate 100 */
  --text-muted: #94a3b8;    /* Slate 400 */
  --accent-primary: #ff5c00; /* Safety Orange */
  --accent-secondary: #38bdf8; /* Sky Blue for balance */
  --border-color: #1e293b;
  
  /* Dimensions */
  --sidebar-width: 90px;
  --sidebar-width-expanded: 320px;
  
  /* Typography */
  --font-display: 'Unbounded', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Manrope', sans-serif;
  
  --spacing-unit: 1rem;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.5s ease;
}

ul {
  list-style: none;
}

/* LAYOUT STRUCTURE */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR HEADER */
.sidebar-header {
  width: var(--sidebar-width);
  background: #05070a; /* Very dark */
  border-right: 1px solid var(--border-color);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  z-index: 1000;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.sidebar-header:hover {
  width: var(--sidebar-width-expanded);
  background: #080b12;
}

.logo-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-primary);
  white-space: nowrap;
  letter-spacing: 1px;
}

.sidebar-header:hover .logo-vertical {
    /* Optional: Reset rotation on expand if we wanted, but let's keep vertical style */
}

.menu-trigger {
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.menu-trigger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: 0.3s;
}

.sidebar-header:hover .menu-trigger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.sidebar-header:hover .menu-trigger span:nth-child(2) { opacity: 0; }
.sidebar-header:hover .menu-trigger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hidden Nav */
.nav-hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  transition: opacity 0.3s 0.1s;
}

.sidebar-header:hover .nav-hidden {
  opacity: 1;
  pointer-events: auto;
}

.nav-hidden ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-hidden a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  display: inline-block;
}

.nav-hidden a:hover {
  color: var(--accent-primary);
  transform: translateX(10px);
}

/* MAIN CONTENT AREA */
.main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  transition: margin-left 0.4s;
  background: var(--bg-dark);
}

/* HERO SECTION */
.hero-kinetic {
  padding: 8rem 4rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at 80% 20%, rgba(255, 92, 0, 0.08), transparent 40%);
}

.hero-h1 {
  font-size: 5rem;
  line-height: 0.9;
  margin-bottom: 2rem;
  color: #fff;
}

.hero-h1 span {
  color: var(--accent-primary);
  font-style: italic;
}

.hero-sub {
  font-size: 1.5rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  font-family: var(--font-body);
}

.hero-grid-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-item h4 {
  color: var(--accent-secondary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* DIRECTIONS GRID (Custom Layout) */
.section-directions {
  padding: 6rem 4rem;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border-color); /* Gap lines */
  border: 1px solid var(--border-color);
}

.direction-card {
  background: var(--bg-dark);
  padding: 2.5rem;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.direction-card:hover {
  background: var(--bg-card);
}

.direction-icon {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.direction-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.direction-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ABOUT TEXT BLOCK */
.section-about {
  padding: 6rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  border-bottom: 1px solid var(--border-color);
}

.about-lead {
  font-size: 1.8rem;
  line-height: 1.4;
  font-weight: 300;
}

.about-details p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.highlight-box {
  border-left: 4px solid var(--accent-secondary);
  padding-left: 2rem;
  margin-top: 2rem;
}

/* LATEST POSTS BENTO */
.section-latest {
  padding: 6rem 4rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 300px;
  gap: 1.5rem;
  grid-auto-flow: dense;
}

.post-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
}

.is-wide { grid-column: span 2; }
.is-tall { grid-row: span 2; }

.post-img-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
}

.post-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.5s;
}

.post-card:hover .post-img-wrap img {
  opacity: 0.4;
  transform: scale(1.05);
}

.post-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 2;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.post-cat {
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.post-title {
  font-size: 1.4rem;
  line-height: 1.3;
}

/* FOOTER */
.main-footer {
  padding: 4rem;
  border-top: 1px solid var(--border-color);
  background: #05070a;
}

.footer-big-text {
  font-family: var(--font-display);
  font-size: 4vw;
  color: var(--text-muted);
  opacity: 0.3;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  color: #555;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* SINGLE CONTENT TYPOGRAPHY */
.single-content-body {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.single-content-body p {
  margin-bottom: 1.5rem;
}

.single-content-body h2, 
.single-content-body h3 {
  color: #fff;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.single-content-body ul, 
.single-content-body ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

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

.single-content-body blockquote {
  border-left: 4px solid var(--accent-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-main);
  font-size: 1.3rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .section-about { grid-template-columns: 1fr; gap: 2rem; }
  .is-wide, .is-tall { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
  .app-shell { flex-direction: column; }
  .sidebar-header {
    width: 100%;
    height: 70px;
    flex-direction: row;
    position: sticky;
    top: 0;
    bottom: auto;
    padding: 0 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .sidebar-header:hover { width: 100%; height: 100vh; background: var(--bg-dark); }
  .logo-vertical { 
    writing-mode: horizontal-tb; 
    transform: none; 
    font-size: 1.2rem; 
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .hero-h1 { font-size: 2.8rem; }
  .hero-kinetic, .section-directions, .section-about, .section-latest { padding: 3rem 1.5rem; }
  
  .directions-grid { display: flex; flex-direction: column; gap: 1rem; background: none; border: none; }
  .direction-card { border: 1px solid var(--border-color); border-radius: 8px; }
}
