/*
Theme Name: Siming Counsel
Theme URI: https://siming.org.cn/
Author: Siming Wang
Description: A block theme for a PRC lawyer serving international businesses and professionals in Shenzhen, Dongguan and Huizhou.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: siming-counsel
*/

:root {
  --sw-ink: #263b35;
  --sw-green: #667f72;
  --sw-button: #526d60;
  --sw-sage: #82968a;
  --sw-mist: #dde5de;
  --sw-sea: #667b80;
  --sw-paper: #f5f1e8;
  --sw-white: #fffdf8;
  --sw-stone: #b8b5aa;
  --sw-line: #d4d1c7;
  --sw-muted: #58645f;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
.sw-shell { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
.sw-header { border-bottom: 1px solid rgba(38,59,53,.13); }
.sw-header .wp-block-site-title { font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; letter-spacing: .025em; }
.sw-header .wp-block-navigation { font-size: 13px; }
.sw-hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(249,246,239,.95) 0%, rgba(249,246,239,.82) 34%, rgba(249,246,239,.12) 70%, rgba(249,246,239,.02) 100%),
    url("assets/images/south-china-coast.png") center/cover no-repeat;
}
.sw-hero-inner { padding-block: 92px 100px; }
.sw-eyebrow { margin-bottom: 23px !important; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.sw-hero h1 { max-width: 830px; margin-bottom: 30px; font-size: clamp(52px, 5.5vw, 82px); line-height: 1.01; letter-spacing: -.035em; }
.sw-hero-copy { max-width: 610px; color: #35413c; font-size: 19px; line-height: 1.6; }
.sw-belief { max-width: 610px; padding-left: 18px; border-left: 2px solid var(--sw-sage); color: var(--sw-ink); font: 400 18px/1.5 Georgia, "Times New Roman", serif; }
.sw-buttons .wp-block-button__link { min-height: 54px; display: inline-flex; align-items: center; padding-inline: 23px; border-radius: 0; font-size: 13px; font-weight: 700; }
.sw-buttons .is-style-fill .wp-block-button__link { background: var(--sw-button); border: 1px solid var(--sw-button); }
.sw-buttons .is-style-outline .wp-block-button__link { background: rgba(255,253,248,.7); border: 1px solid var(--sw-ink); color: var(--sw-ink); }
.sw-section { padding-block: 110px; }
.sw-section-title { max-width: 780px; font-size: clamp(38px, 4vw, 58px); line-height: 1.08; letter-spacing: -.025em; }
.sw-audiences { margin-top: 60px; border-top: 1px solid var(--sw-line); border-bottom: 1px solid var(--sw-line); }
.sw-audience { min-height: 210px; padding: 33px 25px 35px 0; border-right: 1px solid var(--sw-line); }
.sw-audience:last-child { border-right: 0; }
.sw-audience h3, .sw-service h3, .sw-insight h3, .sw-step h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.sw-audience p, .sw-service p, .sw-insight p, .sw-step p { color: var(--sw-muted); font-size: 14px; line-height: 1.65; }
.sw-paper { background: var(--sw-paper); }
.sw-mist { background: var(--sw-mist); }
.sw-dark { background: var(--sw-ink); color: var(--sw-paper); }
.sw-split { align-items: end !important; gap: 80px !important; }
.sw-services { margin-top: 70px; border-top: 1px solid #cfc8bb; }
.sw-service { padding: 38px 42px 38px 0; border-right: 1px solid #cfc8bb; border-bottom: 1px solid #cfc8bb; }
.sw-service:nth-child(even) { padding-left: 42px; padding-right: 0; border-right: 0; }
.sw-number { color: var(--sw-green); font-size: 12px; letter-spacing: .15em; }
.sw-service h3 { margin-block: 30px 20px; font-size: 31px; }
.sw-service ul { padding-top: 20px; margin-top: 28px; border-top: 1px solid #cfc8bb; font-size: 13px; }
.sw-service li { padding-block: 7px; }
.sw-region { gap: 100px !important; }
.sw-region-copy p { color: var(--sw-muted); line-height: 1.7; }
.sw-region-photo { min-height: 440px; display: flex; align-items: end; padding: 32px; color: var(--sw-white); background: linear-gradient(0deg,rgba(38,59,53,.82),rgba(38,59,53,.04)),url("assets/images/south-china-coast.png") center/cover no-repeat; }
.sw-region-photo p { max-width: 520px; font: 400 26px/1.35 Georgia, "Times New Roman", serif; }
.sw-insights { margin-top: 55px; }
.sw-insight { min-height: 340px; display: flex; flex-direction: column; padding: 34px; background: var(--sw-white); border: 1px solid #cbd3cd; }
.sw-insight h3 { margin-block: 42px 18px; font-size: 27px; }
.sw-insight .wp-block-post-excerpt { color: var(--sw-muted); font-size: 14px; line-height: 1.65; }
.sw-insight .wp-block-read-more { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--sw-line); font-size: 13px; font-weight: 700; }
.sw-process { border-top: 1px solid var(--sw-line); }
.sw-step { padding-block: 26px; border-bottom: 1px solid var(--sw-line); }
.sw-step > .wp-block-columns { margin-bottom: 0; }
.sw-step h3 { margin-bottom: 7px; }
.sw-matters { gap: 90px !important; }
.sw-matter { padding-block: 25px; border-bottom: 1px solid rgba(255,255,255,.24); }
.sw-matter p:last-child { font: 400 20px/1.45 Georgia, "Times New Roman", serif; }
.sw-about { gap: 100px !important; }
.sw-about-quote { font: 400 33px/1.25 Georgia, "Times New Roman", serif; }
.sw-about-copy p { color: #46524d; line-height: 1.75; }
.sw-video { min-height: 210px; display: grid; place-items: center; padding: 25px; border: 1px solid var(--sw-line); background: linear-gradient(145deg,var(--sw-mist),var(--sw-paper)); text-align: center; }
.sw-contact { background: #cfdad2; }
.sw-contact-panel { padding: 34px; background: rgba(255,253,248,.6); border: 1px solid rgba(38,59,53,.22); }
.sw-footer { min-height: 150px; color: var(--sw-muted); font-size: 12px; }
.sw-page-hero { padding-block: 90px 70px; background: var(--sw-paper); }
.sw-page-hero h1 { max-width: 900px; font-size: clamp(46px, 5vw, 72px); line-height: 1.04; letter-spacing: -.03em; }
.sw-page-body { padding-block: 80px 110px; }
.sw-page-body > * { max-width: 800px; margin-inline: auto; }
.sw-page-body > .alignwide { max-width: 1180px; }
.sw-page-body h2 { margin-top: 65px; font-size: clamp(32px, 3.3vw, 46px); line-height: 1.12; }
.sw-page-body h3 { margin-top: 38px; font-size: 25px; }
.sw-page-body p, .sw-page-body li { color: var(--sw-muted); line-height: 1.75; }
.sw-page-body .sw-lead { color: var(--sw-ink); font: 400 23px/1.55 Georgia, "Times New Roman", serif; }
.sw-service-links { margin-block: 55px; border-top: 1px solid var(--sw-line); }
.sw-service-link { padding-block: 22px; border-bottom: 1px solid var(--sw-line); }
.sw-service-link a { font: 400 22px/1.3 Georgia, "Times New Roman", serif; }
.sw-facts { margin-block: 45px; padding: 28px; background: var(--sw-mist); }
.sw-cta { margin-top: 65px !important; padding: 35px; background: var(--sw-ink); color: var(--sw-paper); }
.sw-cta p { color: #dce5de; }
.sw-cta .wp-block-button__link { border-radius: 0; background: var(--sw-paper); color: var(--sw-ink); }
.sw-contact-details { margin-block: 45px; padding: 30px; background: var(--sw-paper); }
.sw-contact-details p { margin-bottom: 20px; }
.sw-enquiry-form { margin-top: 45px; }
.sw-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sw-enquiry-form label { display: block; margin-bottom: 22px; color: var(--sw-ink); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.sw-enquiry-form label span { color: #8b3e30; }
.sw-enquiry-form input:not([type="checkbox"]), .sw-enquiry-form select, .sw-enquiry-form textarea {
  width: 100%; margin-top: 8px; padding: 14px 15px; border: 1px solid var(--sw-stone); border-radius: 0; background: var(--sw-white); color: var(--sw-ink); font: 400 15px/1.4 Arial, sans-serif;
}
.sw-enquiry-form input:focus, .sw-enquiry-form select:focus, .sw-enquiry-form textarea:focus { outline: 2px solid var(--sw-green); outline-offset: 2px; }
.sw-enquiry-form .sw-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.55; }
.sw-enquiry-form .sw-consent input { margin-top: 4px; }
.sw-enquiry-form button { min-height: 54px; padding-inline: 24px; border: 1px solid var(--sw-button); background: var(--sw-button); color: #fff; font-weight: 700; cursor: pointer; }
.sw-enquiry-form button:hover { background: var(--sw-ink); }
.sw-form-message { margin-block: 24px; padding: 17px 20px; border-left: 4px solid; }
.sw-form-success { background: var(--sw-mist); border-color: var(--sw-green); }
.sw-form-error { background: #f4e8e5; border-color: #8b3e30; }
.sw-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .sw-audiences, .sw-services { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .sw-split, .sw-region, .sw-about, .sw-matters { flex-direction: column !important; gap: 50px !important; }
}

@media (max-width: 640px) {
  .sw-shell { width: min(100% - 36px, 1180px); }
  .sw-hero { min-height: 700px; align-items: flex-start; background-position: 58% center; }
  .sw-hero-inner { padding-top: 75px; }
  .sw-hero h1 { font-size: 49px; }
  .sw-hero-copy { font-size: 16px; }
  .sw-section { padding-block: 75px; }
  .sw-page-hero { padding-block: 65px 45px; }
  .sw-page-body { padding-block: 55px 80px; }
  .sw-form-grid { grid-template-columns: 1fr; gap: 0; }
  .sw-audiences, .sw-services { grid-template-columns: 1fr !important; }
  .sw-audience, .sw-service, .sw-service:nth-child(even) { min-height: auto; padding: 25px 0; border-right: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
