/* =====================================================
   GLOBAL RESET
   ===================================================== */

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: #424242;
  color: #dddddd;
}

/* =====================================================
   LAYOUT
   ===================================================== */

.site-wrapper {
  display: flex;
  min-height: 100vh;
  background: #424242;
}

/* =====================================================
   SIDEBAR (DESKTOP / TABLET)
   ===================================================== */

.sidebar {
  width: 440px;
  background: #424242;
  color: #ffffff;
  flex-shrink: 0;
}

.sidebar-inner {
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body:not(.home) .sidebar-inner,
body.home .sidebar-inner {
  height: 100vh;
  justify-content: center;
}

/* Logo in sidebar */
.logo img {
  max-width: 277px;
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.main-nav ul {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.main-nav li {
  margin: 18px 0;
}

.main-nav a {
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: block;
  text-align: right;
}

.main-nav a:hover,
.main-nav a.active {
  color: #999966;
}

/* =====================================================
   SIDEBAR META
   ===================================================== */

.sidebar-meta {
  margin-top: 28px;
}

.sidebar-meta a {
  font-size: 12px;
  color: #cccccc;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.sidebar-meta a:hover {
  color: #999966;
}

/* =====================================================
   CONTENT AREA
   ===================================================== */

.content-area {
  flex: 1;
  padding: 0;
}

/* =====================================================
   STATIC PAGES (BIO + CONTACT)
   ===================================================== */

.static-page {
  padding: 80px 0 60px 0;
}

.static-inner {
  max-width: 820px;
  margin-left: 40px;
  margin-right: auto;
  font-size: 16px;
  line-height: 1.7;
}

/* Headers */
.static-inner h1 {
  color: #ffffff;
  margin-bottom: 12px;
}

/* Divider */
.static-divider {
  width: 120px;
  height: 1px;
  background: #999966;
  margin-bottom: 28px;
}

/* ==============================
   MODAL (LEGAL)
   ============================== */

.modal-content {
  background-color: #424242;
  color: #ffffff;
  border-radius: 10px;
}

.modal-header {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cccccc;
}

.modal-body {
  padding-top: 10px;
}

.modal-body p {
  font-size: 14px;
  line-height: 1.65;
  color: #dddddd;
  margin-bottom: 14px;
}

.btn-close {
  filter: invert(1);
  opacity: 0.6;
}

.btn-close:hover {
  opacity: 0.9;
}


/* ==============================
   BIOGRAPHY — HERO / PORTRAIT IMAGE
   ============================== */

body.biography img {
  max-width: 260px;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */

body.contact .static-inner {
  max-width: 680px;
  margin-left: 0;
}

.contact-form {
  max-width: 680px;
  margin: 40px 0;
}

.contact-form .form-row {
  margin-bottom: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-sizing: border-box;
}

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

.contact-form button {
  padding: 12px 26px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

.contact-form button:hover {
  background: #333;
}

.form-status {
  margin-top: 14px;
  font-size: 0.95rem;
}

/* =====================================================
   MOBILE HEADER (GLOBAL UI)
   ===================================================== */

.mobile-header {
  display: none;
}

/* =====================================================
   MOBILE & TABLET
   ===================================================== */

@media (max-width: 991px) {


  /* Push content below fixed header */
  .site-wrapper {
    margin-top: 72px;
  }

  /* Sidebar hidden by default */
  .sidebar {
    display: none;
    width: 100%;
  }

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

  /* Kill desktop flex */
  .site-wrapper {
    display: block;
  }

  /* Content full width */
  .content-area {
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
  }

  /* Static pages */
  .static-page {
    padding-top: 2rem;
  }

  .static-inner {
    max-width: 100%;
    margin: 0;
  }
  
body.contact .contact-form button {
  width: 100%;
}

  body.contact .static-inner {
    padding: 0 1rem;
  }


  /* Typography */
  body.contact h1,
  body.biography h1 {
    font-size: 1.6rem;
  }
  
  body.biography img {
  max-width: 200px;
}

}



/* =====================================================
   BODY LOCK WHEN MENU OPEN
   ===================================================== */

body.menu-open {
  overflow: hidden;
}

/* =====================================================
   MOBILE HEADER — SINGLE SOURCE OF TRUTH
   ===================================================== */

@media (max-width: 991px) {

  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    height: 72px;
    background: #424242;
    z-index: 2000;
  }

  .mobile-menu-toggle {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);

    background: none;
    border: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
  }

  .mobile-logo {
    display: block;
  }

  .mobile-logo img {
    height: 72px;
    width: auto;
    display: block;
  }

}

/* =====================================================
   SLIDESHOW — MOBILE (FILL WIDTH, NOT HEIGHT)
   ===================================================== */

@media (max-width: 768px) {

  .slideshow,
  .slideshow img,
  .slideshow-slide img {
    width: 100%;
    height: auto !important;
    max-height: none;
    object-fit: contain;
  }

  /* If slideshow container forces vh */
  .slideshow,
  .courtroom-stage {
    height: auto !important;
    min-height: 0;
  }

}

/* ==============================
   HONEYPOT (ANTI-SPAM)
   ============================== */

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* =====================================================
   SLIDESHOW — MOBILE HARD OVERRIDE (iOS SAFE)
   ===================================================== */

@media (max-width: 768px) {

  /* Kill ALL height forcing on slideshow images */
  .slideshow img,
  .courtroom-stage img,
  .slideshow-slide img {
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    object-fit: contain !important;
  }

  /* Release container vh constraints */
  .slideshow,
  .courtroom-stage {
    height: auto !important;
    min-height: 0 !important;
  }

}

