/*
Theme Name: Chuyen Gia Phap Luat
Theme URI: https://chuyengiaphapluat.com/
Author: Chuyen Gia Phap Luat
Author URI: https://chuyengiaphapluat.com/
Description: WordPress theme for a Vietnamese legal consulting website with full page, post, archive and category layouts.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kcpl
*/

:root {
  --kcpl-ink: #182033;
  --kcpl-ink-2: #28344f;
  --kcpl-body: #4d566b;
  --kcpl-muted: #727b91;
  --kcpl-paper: #ffffff;
  --kcpl-soft: #f4f7fb;
  --kcpl-soft-2: #fbfaf7;
  --kcpl-line: #dfe5ee;
  --kcpl-accent: #a4323b;
  --kcpl-accent-2: #0a756a;
  --kcpl-gold: #c89628;
  --kcpl-shadow: 0 18px 48px rgba(24, 32, 51, 0.12);
  --kcpl-radius: 8px;
  --kcpl-container: 1180px;
  --kcpl-content: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--kcpl-body);
  background: var(--kcpl-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

a:hover,
a:focus {
  color: #7b1f28;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  color: var(--kcpl-paper);
  background: var(--kcpl-ink);
  clip: auto;
}

.container {
  width: min(100% - 40px, var(--kcpl-container));
  margin-inline: auto;
}

.content-width {
  width: min(100% - 40px, var(--kcpl-content));
  margin-inline: auto;
}

.site-topbar {
  color: rgba(255, 255, 255, 0.84);
  background: var(--kcpl-ink);
  font-size: 14px;
}

.site-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
}

.topbar-links,
.topbar-note {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-topbar a {
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 229, 238, 0.84);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 220px;
}

.site-branding img {
  width: 220px;
  height: auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--kcpl-ink);
  background: var(--kcpl-soft);
  border: 1px solid var(--kcpl-line);
  border-radius: var(--kcpl-radius);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--kcpl-ink);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--kcpl-radius);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--kcpl-accent);
  background: #fff3f3;
}

.header-cta,
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  color: var(--kcpl-paper);
  background: var(--kcpl-accent);
  border: 1px solid var(--kcpl-accent);
  border-radius: var(--kcpl-radius);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.header-cta:hover,
.button:hover,
.wp-block-button__link:hover {
  color: var(--kcpl-paper);
  background: #86232c;
  border-color: #86232c;
}

.button.secondary {
  color: var(--kcpl-ink);
  background: var(--kcpl-paper);
  border-color: rgba(255, 255, 255, 0.7);
}

.button.secondary:hover {
  color: var(--kcpl-ink);
  background: var(--kcpl-soft);
}

.site-main {
  min-height: 62vh;
}

.hero {
  position: relative;
  color: #fff;
  background: var(--kcpl-ink);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(18, 26, 45, 0.88), rgba(18, 26, 45, 0.58) 52%, rgba(18, 26, 45, 0.2));
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(260px, 1fr);
  gap: 46px;
  align-items: end;
  min-height: 630px;
  padding: 86px 0 64px;
}

.hero__eyebrow,
.section-eyebrow {
  margin: 0 0 10px;
  color: var(--kcpl-gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 20px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
}

.hero__lead {
  max-width: 640px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__panel {
  align-self: end;
  padding: 24px;
  color: var(--kcpl-ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--kcpl-radius);
  box-shadow: var(--kcpl-shadow);
}

.hero__panel h2 {
  margin: 0 0 12px;
  color: var(--kcpl-ink);
  font-size: 20px;
  line-height: 1.25;
}

.hero__panel ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__panel li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
}

.hero__panel li::before,
.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 5px;
  background: var(--kcpl-accent-2);
  clip-path: polygon(14% 51%, 35% 72%, 85% 20%, 96% 31%, 36% 91%, 3% 59%);
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: var(--kcpl-soft);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-header h2,
.page-title,
.entry-title,
.archive-title {
  margin: 0;
  color: var(--kcpl-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.section-header p {
  margin: 0;
  color: var(--kcpl-body);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.post-card,
.case-card,
.info-card,
.sidebar .widget,
.contact-panel,
.pricing-card {
  background: var(--kcpl-paper);
  border: 1px solid var(--kcpl-line);
  border-radius: var(--kcpl-radius);
}

.service-card,
.case-card,
.info-card,
.pricing-card {
  padding: 26px;
}

.service-card h3,
.case-card h3,
.info-card h3,
.pricing-card h3,
.post-card h3 {
  margin: 0 0 10px;
  color: var(--kcpl-ink);
  font-size: 21px;
  line-height: 1.26;
}

.service-card p,
.case-card p,
.info-card p,
.pricing-card p {
  margin: 0;
}

.service-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--kcpl-ink);
  border-radius: var(--kcpl-radius);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 46px;
  align-items: center;
}

.split img,
.entry-featured img,
.archive-hero img {
  width: 100%;
  border-radius: var(--kcpl-radius);
  box-shadow: var(--kcpl-shadow);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--kcpl-line);
  border-radius: var(--kcpl-radius);
}

.stat strong {
  display: block;
  color: var(--kcpl-accent);
  font-size: 28px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--kcpl-muted);
  font-size: 14px;
}

.post-card {
  overflow: hidden;
}

.post-card__image {
  aspect-ratio: 16 / 10;
  background: var(--kcpl-soft);
  overflow: hidden;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.035);
}

.post-card__body {
  padding: 22px;
}

.post-card__meta,
.entry-meta,
.breadcrumb,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--kcpl-muted);
  font-size: 14px;
}

.post-card__body h3 a,
.entry-title a {
  color: var(--kcpl-ink);
}

.post-card__body h3 a:hover,
.entry-title a:hover {
  color: var(--kcpl-accent);
}

.post-card__body p {
  margin: 0 0 16px;
}

.page-hero,
.archive-hero,
.entry-hero {
  padding: 50px 0;
  background: var(--kcpl-soft-2);
  border-bottom: 1px solid var(--kcpl-line);
}

.page-hero__grid,
.entry-hero__grid,
.archive-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  gap: 36px;
  align-items: center;
}

.breadcrumb {
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--kcpl-muted);
}

.breadcrumb .current {
  color: var(--kcpl-ink);
  font-weight: 700;
}

.entry-content {
  color: var(--kcpl-body);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--kcpl-ink);
  line-height: 1.2;
}

.entry-content h2 {
  margin-top: 42px;
  font-size: 30px;
}

.entry-content h3 {
  margin-top: 30px;
  font-size: 23px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-top: 0;
  margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 24px;
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  color: var(--kcpl-ink);
  background: var(--kcpl-soft);
  border-left: 4px solid var(--kcpl-gold);
}

.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  align-items: start;
  padding: 58px 0 78px;
}

.sidebar {
  display: grid;
  gap: 20px;
}

.sidebar .widget {
  padding: 22px;
}

.sidebar .widget-title {
  margin: 0 0 14px;
  color: var(--kcpl-ink);
  font-size: 18px;
}

.sidebar ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar li {
  border-bottom: 1px solid var(--kcpl-line);
  padding-bottom: 10px;
}

.sidebar li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.search-form {
  display: grid;
  gap: 10px;
}

.search-form label {
  display: block;
}

.search-field,
.contact-field,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--kcpl-ink);
  background: #fff;
  border: 1px solid var(--kcpl-line);
  border-radius: var(--kcpl-radius);
}

.search-submit {
  min-height: 44px;
  color: #fff;
  background: var(--kcpl-ink);
  border: 0;
  border-radius: var(--kcpl-radius);
  cursor: pointer;
  font-weight: 800;
}

.pagination,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.page-numbers,
.post-page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--kcpl-ink);
  background: #fff;
  border: 1px solid var(--kcpl-line);
  border-radius: var(--kcpl-radius);
  font-weight: 700;
}

.page-numbers.current,
.page-numbers:hover {
  color: #fff;
  background: var(--kcpl-accent);
  border-color: var(--kcpl-accent);
}

.related-posts {
  margin-top: 54px;
  padding-top: 36px;
  border-top: 1px solid var(--kcpl-line);
}

.related-posts h2 {
  margin: 0 0 22px;
  color: var(--kcpl-ink);
  font-size: 26px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.contact-panel {
  padding: 26px;
}

.contact-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list strong {
  display: block;
  color: var(--kcpl-ink);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--kcpl-ink);
}

.site-footer a {
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
  padding: 58px 0 38px;
}

.footer-brand img {
  width: 220px;
  margin-bottom: 18px;
}

.footer-widget h2,
.footer-widget h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 17px;
}

.footer-widget ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 14px;
}

.not-found {
  padding: 90px 0;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 12px;
  color: var(--kcpl-ink);
  font-size: clamp(36px, 6vw, 64px);
}

@media (max-width: 1024px) {
  .hero__inner,
  .section-header,
  .split,
  .page-hero__grid,
  .entry-hero__grid,
  .archive-hero__grid,
  .layout-sidebar,
  .contact-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .layout-sidebar {
    gap: 28px;
  }

  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__inner {
    min-height: auto;
    padding: 78px 0 48px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .container,
  .content-width {
    width: min(100% - 28px, var(--kcpl-container));
  }

  .site-topbar .container,
  .topbar-links,
  .topbar-note {
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .site-header__inner {
    min-height: 72px;
  }

  .site-branding img {
    width: 184px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 14px;
    background: #fff;
    border-bottom: 1px solid var(--kcpl-line);
    box-shadow: var(--kcpl-shadow);
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    display: grid;
    gap: 4px;
  }

  .main-navigation a {
    width: 100%;
  }

  .header-cta {
    display: none;
  }

  .hero::after {
    background: rgba(18, 26, 45, 0.76);
  }

  .hero__inner {
    padding: 62px 0 42px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__panel {
    padding: 20px;
  }

  .section {
    padding: 54px 0;
  }

  .grid.three,
  .grid.two,
  .stats {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .archive-hero,
  .entry-hero {
    padding: 36px 0;
  }

  .footer-main {
    gap: 26px;
  }
}


/* KIRA_LOGO_REFRESH_START */
.site-logo img,.navbar-brand img,.custom-logo-link img,img.custom-logo{height:75px!important;width:auto!important;max-width:min(300px,48vw)!important;object-fit:contain!important;}
.site-footer img.flogo,footer img[src*='logo-light-kira-'],footer img[src*='logo-light.png']{height:69px!important;width:auto!important;max-width:min(290px,55vw)!important;object-fit:contain!important;}
@media(max-width:680px){.site-logo img,.navbar-brand img,.custom-logo-link img,img.custom-logo{height:58px!important;max-width:62vw!important}.site-footer img.flogo,footer img[src*='logo-light-kira-'],footer img[src*='logo-light.png']{height:54px!important;max-width:70vw!important}}
/* KIRA_LOGO_REFRESH_END */
