/* ═══════════════════════════════════════════
   ArchitectsPRO — Ghost Theme Styles
   Warm Minimalism · Cormorant Garamond + Inter
   ═══════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --bg: #FAFAF8;
  --fg: #1A1A18;
  --accent: #B8860B;
  --accent-light: #D4A843;
  --muted: #8A8A82;
  --border: #E5E5E0;
  --card-bg: #FFFFFF;
  --dark-section: #1A1A18;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ═══ NAV ═══ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 3rem;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
}
.logo span { color: var(--accent); font-weight: 600; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--fg) !important;
  color: var(--bg) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--accent) !important; }

/* ─── Burger button ─── */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--fg);
  z-index: 301;
  position: relative;
}
.burger svg { display: block; }
.burger-top, .burger-mid, .burger-bot {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
body.menu-open .burger-top { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger-mid { opacity: 0; }
body.menu-open .burger-bot { transform: translateY(-6px) rotate(-45deg); }

/* ─── Mobile fullscreen menu ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s;
}
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
}
body.menu-open .burger { color: #fff; }
body.menu-open .logo { color: #fff; position: relative; z-index: 301; }
body.menu-open .logo span { color: var(--accent-light); }
body.menu-open .site-nav { background: transparent; border-color: transparent; backdrop-filter: none; }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}
.mobile-menu-link {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, color 0.2s;
}
body.menu-open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}
body.menu-open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-link:hover { color: var(--accent-light); }

.mobile-menu-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
body.menu-open .mobile-menu-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.mobile-menu-cta:hover { background: var(--accent-light); }

.mobile-menu-contacts {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
}
body.menu-open .mobile-menu-contacts {
  opacity: 1;
  transition-delay: 0.4s;
  transition: opacity 0.4s;
}
.mobile-menu-contacts a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.mobile-menu-contacts a:hover { color: #fff; }

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(250,250,248,0.95) 0%, rgba(250,250,248,0.85) 50%, rgba(250,250,248,0.4) 100%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(184,134,11,0.06) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before {
  content: '';
  width: 2rem; height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--fg);
  color: var(--bg);
  padding: 1rem 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all 0.3s;
}
.btn-primary:hover { background: var(--accent); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--fg);
  padding: 1rem 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--fg); }
.btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.btn-outline-light:hover { border-color: rgba(255,255,255,0.6); }

/* ═══ STATS BAR ═══ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 3rem;
}
.stat {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 300;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══ SECTION HEADERS ═══ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
}
.section-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  max-width: 600px;
}
.section-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.7;
  font-weight: 300;
}

/* ═══ SERVICES ═══ */
.services {
  padding: 6rem 3rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.service-card {
  background: var(--card-bg);
  padding: 2.5rem;
  transition: all 0.4s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.4s;
}
.service-card:hover::after { width: 100%; }
.service-card:hover { background: #FEFEFE; }
.service-card { padding: 3rem; }
.service-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--border);
  margin-bottom: 1.5rem;
  line-height: 1;
}
.service-card:hover .service-num { color: var(--accent-light); }
.service-name {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.service-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.service-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}
.service-link:hover { color: var(--accent); }
.service-link::after { content: '→'; transition: transform 0.3s; }
.service-card:hover .service-link::after { transform: translateX(4px); }

/* ═══ PORTFOLIO STRIP ═══ */
.portfolio-strip {
  background: var(--dark-section);
  padding: 6rem 3rem;
  color: #fff;
}
.portfolio-strip .section-tag { color: var(--accent-light); }
.portfolio-strip .section-title { color: #fff; }
.portfolio-strip .section-desc { color: rgba(255,255,255,0.5); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.portfolio-item {
  aspect-ratio: 4/3;
  background: #2A2A28;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.portfolio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  z-index: 1;
}
.portfolio-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-info { position: relative; z-index: 2; }
.portfolio-cat {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.4rem;
}
.portfolio-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
}
.portfolio-item:nth-child(1) { background: linear-gradient(135deg, #2A2A28 0%, #3D3530 100%); }
.portfolio-item:nth-child(2) { background: linear-gradient(135deg, #2E3035 0%, #28302A 100%); }
.portfolio-item:nth-child(3) { background: linear-gradient(135deg, #352A28 0%, #2A2830 100%); }

/* ═══ JOURNAL / BLOG ═══ */
.journal {
  padding: 6rem 3rem;
}
.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.journal-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.journal-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.journal-thumb {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #E8E4DE 0%, #D5D0C8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.journal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-thumb-icon {
  font-size: 2.5rem;
}
.journal-meta {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.journal-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.journal-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ═══ CTA SECTION ═══ */
.cta-section {
  margin: 0 3rem 6rem;
  background: var(--fg);
  padding: 5rem 5rem 4rem;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 5rem;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(184,134,11,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.cta-header {
  text-align: center;
  margin-bottom: 3rem;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.cta-desc {
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.cta-field { display: flex; flex-direction: column; gap: 0.4rem; }
.cta-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.cta-label span { color: var(--accent-light); }
.cta-input {
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  font-family: var(--sans);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  width: 100%;
  outline: none;
  transition: all 0.3s;
  resize: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.cta-input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}
.cta-textarea { min-height: 80px; resize: vertical; }
.cta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 0.5rem;
}
.cta-success {
  padding: 1.2rem;
  background: rgba(184,134,11,0.15);
  border: 1px solid rgba(184,134,11,0.4);
  color: var(--accent-light);
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0.5rem;
}
.cta-alt-contacts {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.cta-alt-contacts a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: color 0.2s;
}
.cta-alt-contacts a:hover { color: #fff; }
.cta-btn {
  padding: 1rem 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}
.cta-btn:hover { background: var(--accent-light); }

/* ═══ FOOTER ═══ */
.site-footer {
  border-top: 1px solid var(--border);
}
.footer-top {
  padding: 4rem 3rem;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
}
.footer-brand { max-width: 360px; }
.footer-brand .logo { display: inline-block; margin-bottom: 1rem; }
.footer-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.footer-contacts { display: flex; gap: 4rem; }
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 1rem;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding: 1.5rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  font-family: var(--serif);
  font-size: 1.2rem;
}
.footer-left span { color: var(--accent); }
.footer-right {
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-right a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-right a:hover { color: var(--fg); }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.8s 0.2s both; }
.hero h1 { animation: fadeUp 0.8s 0.4s both; }
.hero-sub { animation: fadeUp 0.8s 0.6s both; }
.hero-actions { animation: fadeUp 0.8s 0.8s both; }

/* ═══════════════════════════════════════════
   POST / ARTICLE PAGE
   ═══════════════════════════════════════════ */

/* Post Hero */
.post-hero {
  padding: 8rem 3rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}
.post-hero-inner { text-align: left; }
.post-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.post-tag-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}
.post-tag-link:hover { color: var(--accent-light); }
.post-reading-time {
  font-size: 0.75rem;
  color: var(--muted);
}
.post-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.post-excerpt {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 300;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.post-author-name {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
}
.post-date {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Feature Image */
.post-feature-image {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 3rem;
}
.post-feature-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.post-feature-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Post Layout (content + sidebar) */
.post-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
}
.post-content-area { min-width: 0; }

/* TOC */
.post-toc {
  display: none; /* shown by JS if headings exist */
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}
.toc-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.toc-list {
  list-style: none;
}
.toc-item { margin-bottom: 0.5rem; }
.toc-item a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.toc-item a:hover { color: var(--accent); }
.toc-h3 { padding-left: 1.25rem; }

/* ─── Ghost Content / Prose Styles ─── */
.gh-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--fg);
}
.gh-content > * + * { margin-top: 1.5rem; }
.gh-content h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.gh-content h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.gh-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.gh-content p {
  font-weight: 300;
}
.gh-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.gh-content a:hover { color: var(--accent-light); }
.gh-content strong { font-weight: 600; }
.gh-content em { font-style: italic; }
.gh-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
}
.gh-content ul, .gh-content ol {
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}
.gh-content li { margin-bottom: 0.5rem; font-weight: 300; }
.gh-content img {
  margin: 2rem 0;
  border-radius: 2px;
}
.gh-content figure {
  margin: 2rem 0;
}
.gh-content figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.gh-content pre {
  background: var(--dark-section);
  color: #e0e0e0;
  padding: 1.5rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 2rem 0;
  border-radius: 2px;
}
.gh-content code {
  font-size: 0.9em;
  background: rgba(0,0,0,0.04);
  padding: 0.15em 0.4em;
  border-radius: 2px;
}
.gh-content pre code {
  background: none;
  padding: 0;
}
.gh-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}
.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.gh-content th, .gh-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.gh-content th {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Ghost cards */
.kg-card { margin: 2rem 0; }
.kg-image-card img { width: 100%; }
.kg-width-wide { margin-left: -4rem; margin-right: -4rem; }
.kg-width-full { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
.kg-bookmark-card {
  border: 1px solid var(--border);
  display: flex;
  overflow: hidden;
}
.kg-bookmark-content { padding: 1.25rem; flex: 1; }
.kg-bookmark-title { font-weight: 500; font-size: 0.95rem; margin-bottom: 0.5rem; }
.kg-bookmark-description { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.kg-bookmark-metadata { margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted); }
.kg-bookmark-thumbnail { width: 200px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { height: 100%; object-fit: cover; }
.kg-gallery-card { margin: 2rem 0; }
.kg-gallery-container { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kg-gallery-row { display: flex; gap: 0.5rem; width: 100%; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

/* Author Box */
.post-author-box {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.author-box-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.author-box-bio {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Sidebar */
.post-sidebar {
  position: relative;
}
.sidebar-cta {
  background: var(--dark-section);
  padding: 2rem;
  color: #fff;
}
.sidebar-cta-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.sidebar-cta-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.sidebar-cta-form { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-cta-form input {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-family: var(--sans);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #fff;
  outline: none;
  transition: border-color 0.3s;
}
.sidebar-cta-form input::placeholder { color: rgba(255,255,255,0.3); }
.sidebar-cta-form input:focus { border-color: var(--accent); }
.sidebar-cta-form button {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.sidebar-cta-form button:hover { background: var(--accent-light); }
.sidebar-cta-phone {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.sidebar-cta-phone a { color: var(--accent-light); }

/* Related Posts */
.related-posts {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 0 3rem 4rem;
}
.related-posts .section-tag { margin-bottom: 0.5rem; }
.related-posts .section-title { margin-bottom: 2rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.related-grid .journal-card {
  grid-template-columns: 1fr;
}
.related-grid .journal-thumb {
  aspect-ratio: 16/9;
}

/* ═══ PAGE ═══ */
.page-full {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 3rem;
}
.page-hero {
  padding: 8rem 0 3rem;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-excerpt {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}
.page-content {
  padding-bottom: 4rem;
}

/* ═══ ARCHIVE / TAG / AUTHOR ═══ */
.archive-page {
  padding: 8rem 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.archive-header {
  margin-bottom: 3rem;
}
.archive-header .section-tag { margin-bottom: 0.5rem; }
.archive-header .section-title { margin-bottom: 0; }
.archive-grid {
  margin-top: 0;
}
.author-header {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.author-page-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-page-bio {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.pagination-info {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .post-sidebar { order: -1; }
  .sidebar-cta {
    position: static !important;
    width: 100% !important;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kg-width-wide { margin-left: 0; margin-right: 0; }
}

@media (max-width: 900px) {
  .site-nav { padding: 1rem 1.5rem; }
  .nav-desktop { display: none; }
  .burger { display: block; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); margin: 0 1.5rem; }
  .stat:nth-child(2) { border-right: none; }
  .services { padding: 4rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-strip { padding: 4rem 1.5rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .journal { padding: 4rem 1.5rem; }
  .journal-grid { grid-template-columns: 1fr; }
  .journal-card { grid-template-columns: 120px 1fr; }
  .cta-section {
    margin: 0 1.5rem 4rem;
    padding: 3rem 1.5rem 2.5rem;
  }
  .cta-row { grid-template-columns: 1fr; }
  .cta-bottom { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-top {
    padding: 3rem 1.5rem;
    flex-direction: column;
  }
  .footer-contacts { flex-direction: column; gap: 2rem; }
  .footer-bottom {
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .section-header { flex-direction: column; align-items: flex-start; }
  .post-hero { padding: 7rem 1.5rem 2rem; }
  .post-feature-image { padding: 0 1.5rem; }
  .post-layout { padding: 0 1.5rem; }
  .related-posts { padding: 0 1.5rem 3rem; }
  .related-grid { grid-template-columns: 1fr; }
  .archive-page { padding: 7rem 1.5rem 3rem; }
  .page-full { padding: 0 1.5rem; }
  .page-hero { padding: 7rem 0 2rem; }
}

@media (max-width: 600px) {
  .mobile-menu-link { font-size: 1.6rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .journal-card { grid-template-columns: 1fr; }
  .journal-thumb { aspect-ratio: 16/9; }
  .post-title { font-size: 2rem; }
  .post-author-box { flex-direction: column; text-align: center; }
  .author-header { flex-direction: column; text-align: center; }
  .kg-bookmark-card { flex-direction: column; }
  .kg-bookmark-thumbnail { width: 100%; height: 160px; }
}

/* ═══ PORTFOLIO CASE STUDY — FULL WIDTH ═══ */
.portfolio-page {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.portfolio-page .gh-content {
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.portfolio-page .kg-card-markdown,
.portfolio-page .gh-content > * {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
