/*
Theme Name: The Atelier
Author: WordPress Expert Designer
Description: A split-layout theme with a fixed sidebar and gallery-style aesthetic.
Version: 12.0
*/

:root {
  /* Colors */
  --bg-body: #ffffff;
  --bg-sidebar: #f4f4f4;
  --text-main: #000000;
  --text-muted: #777777;
  --border-color: #e0e0e0;
  
  /* Dimensions */
  --sidebar-width: 300px;
  --content-max: 1000px;
  
  /* Typography */
  --font-main: 'Jost', sans-serif; /* Geometric Sans */
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  display: flex; /* Main Flex Layout */
  min-height: 100vh;
}

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

a:hover {
  opacity: 0.6;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* SIDEBAR (Former Header) */
.site-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding: 4rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-color);
  z-index: 100;
  overflow-y: auto;
}

.branding {
  margin-bottom: 4rem;
}

.site-logo {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
  display: block;
  margin-bottom: 1rem;
}

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

/* Vertical Navigation */
.main-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.main-navigation a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  position: relative;
}

.main-navigation a::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}

.main-navigation .current-menu-item > a::before,
.main-navigation a:hover::before {
  opacity: 1;
}

/* Sidebar Footer Info */
.sidebar-footer {
  margin-top: 4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* MAIN CONTENT AREA */
.site-main {
  margin-left: var(--sidebar-width); /* Offset for sidebar */
  flex-grow: 1;
  width: calc(100% - var(--sidebar-width));
}

.content-wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 6rem 4rem;
}

/* GRID LAYOUT */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.post-item {
  display: flex;
  flex-direction: column;
}

.post-image-wrap {
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 1/1; /* Square images */
}

.post-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-item:hover .post-image-wrap img {
  transform: scale(1.05);
}

.post-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.post-title {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.read-btn {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: auto;
  display: inline-block;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
  align-self: flex-start;
}

/* PAGINATION */
.pagination {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

.pagination a, .pagination span {
  font-size: 1.2rem;
  font-weight: 500;
}

/* SINGLE POST */
.single-header {
  margin-bottom: 4rem;
  max-width: 800px;
}

.single-cat {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.single-title {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
}

.single-image-hero {
  width: 100%;
  margin-bottom: 4rem;
}

.single-content-body {
  max-width: 700px; /* Narrower for reading */
  font-size: 1.15rem;
  line-height: 1.8;
}

.single-content-body p { margin-bottom: 2rem; }
.single-content-body h2 { font-size: 2rem; margin-top: 3rem; font-weight: 400; }

/* 404 */
.not-found-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 70vh;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  body { flex-direction: column; }
  .site-sidebar { position: relative; width: 100%; height: auto; padding: 2rem; border-right: none; border-bottom: 1px solid var(--border-color); }
  .site-main { margin-left: 0; width: 100%; }
  .main-navigation ul { flex-direction: row; flex-wrap: wrap; }
  .content-wrapper { padding: 4rem 2rem; }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 3rem; }
  .single-title { font-size: 2.5rem; }
}

/* HOMEPAGE BLOCKS */

/* Hero */
.hero-section {
  text-align: center;
  padding: 8rem 2rem;
  max-width: 100%;
  margin: 0 auto;
  background-image: url('hero-banner.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff; /* Text is white on dark background */
  margin-bottom: 5rem;
  border-radius: 8px;
  overflow: hidden;
}

/* Overlay for readability */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.hero-btn.primary {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}

.hero-btn.primary:hover {
  background: transparent;
  color: #fff;
}

.hero-btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-btn.secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Features */
.features-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 6rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 4rem 0;
}

.feature-card {
  padding: 1rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA */
.cta-section {
  background: #f9f9f9;
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 6rem;
  border-radius: 4px;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--text-main);
  color: var(--bg-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  font-weight: 600;
}

.cta-btn:hover {
  opacity: 0.8;
  color: var(--bg-body);
}

/* Responsive Blocks */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .features-section { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-btn { width: 100%; text-align: center; }
}