/*
Theme Name: Bangkok Legal Servie Minimal
Theme URI: https://example.com/bangkoklegalservice-minimal
Author: Local Setup
Author URI: https://example.com
Description: Minimal clean legal office style with responsive side menu and hamburger navigation.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: bangkoklegalservice-minimal
*/

:root {
  --bls-bg: #f7f9fc;
  --bls-surface: #ffffff;
  --bls-ink: #1c2430;
  --bls-muted: #667085;
  --bls-border: #d7dfef;
  --bls-accent: #0c3f90;
  --bls-accent-soft: #eef3ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bls-bg);
  color: var(--bls-ink);
  font-family: Cambria, Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

a {
  color: var(--bls-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-shell {
  min-height: 100vh;
  display: flex;
}

.site-topbar {
  display: none;
}

.site-sidebar {
  width: 300px;
  background: var(--bls-surface);
  border-right: 1px solid var(--bls-border);
  padding: 2rem 1.4rem;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: #11213c;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand-tagline {
  margin: 0.6rem 0 1.6rem;
  font-size: 0.9rem;
  color: var(--bls-muted);
}

.sidebar-rule {
  height: 6px;
  border: 0;
  background: #d7dce8;
  border-radius: 999px;
  margin: 0 0 1.5rem;
}

.menu-title {
  font-size: 0.85rem;
  margin: 0 0 0.8rem;
  color: var(--bls-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.side-menu,
.side-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-menu li {
  margin-bottom: 0.45rem;
}

.side-menu a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-left: 3px solid #e5eaf3;
  color: var(--bls-ink);
  border-radius: 0 8px 8px 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.side-menu a:hover,
.side-menu a:focus,
.side-menu .current-menu-item > a,
.side-menu .current_page_item > a {
  background: #f4f6fa;
  border-left-color: #cfd7e5;
  text-decoration: none;
}

.sidebar-note {
  margin-top: 1.4rem;
  padding: 0.9rem;
  border: 1px solid var(--bls-border);
  background: #fafcff;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #2d3c52;
}

.site-main {
  flex: 1;
  padding: 2.2rem 2rem;
}

.content-header-logo {
  max-width: 980px;
  margin: 0 auto 1rem;
  background: #f8f9fc;
  border: 1px solid var(--bls-border);
  border-radius: 12px;
  padding: 0;
  height: 200px;
  overflow: hidden;
}

.content-header-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.page-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.hero {
  background: var(--bls-surface);
  border: 1px solid var(--bls-border);
  border-radius: 14px;
  padding: 1.6rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.25;
}

.hero p {
  margin: 0.8rem 0 0;
  color: #37465f;
}

.hero-media {
  border: 1px solid var(--bls-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.section-block {
  margin-top: 1rem;
  background: var(--bls-surface);
  border: 1px solid var(--bls-border);
  border-radius: 12px;
  padding: 1.3rem 1.2rem;
}

.section-block h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.service-item {
  border: 1px solid var(--bls-border);
  padding: 0.8rem;
  border-radius: 8px;
  background: #fcfdff;
}

.site-footer {
  margin-top: 1.2rem;
  color: #596b88;
  font-size: 0.92rem;
  text-align: center;
  padding: 0.8rem;
}

.menu-toggle {
  appearance: none;
  border: 1px solid #c6cedc;
  background: #fff;
  color: #1c2430;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.nav-overlay {
  display: none;
}

@media (max-width: 991px) {
  .site-shell {
    display: block;
  }

  .site-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid var(--bls-border);
    background: #fff;
  }

  .site-topbar .brand-name {
    font-size: 0.95rem;
    margin: 0;
  }

  .site-main {
    padding: 1rem 0.8rem 1.4rem;
  }

  .content-header-logo {
    margin-bottom: 0.8rem;
    height: 200px;
  }

  .site-sidebar {
    position: fixed;
    z-index: 60;
    left: 0;
    top: 0;
    width: min(86vw, 320px);
    transform: translateX(-106%);
    transition: transform 0.24s ease;
    box-shadow: none;
    padding-top: 1.1rem;
  }

  body.nav-open .site-sidebar {
    transform: translateX(0);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 16, 38, 0.52);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
  }
}
