/* Edmund Chan static replica — hand-written CSS, no build step.
   Colours, type and layout taken from the live lawbusiness theme. */

:root {
  --text: #7e7e7e;
  --heading: #000000;
  --link: #ea2e0d;
  --accent: #bc0b0b;
  --quote: #989898;
  --footer-text: #8d8d8d;
  --white: #ffffff;
  --black: #000000;
  --panel: #fcfcfc;
  --headline-bg: #fbfbfb;
  --border: #e0e0e0;
  --border-soft: #e4e4e4;
  --divider: rgba(85, 95, 100, 0.5);
  --content: 1000px;
  --serif: "Playfair Display", Verdana, Geneva, "DejaVu Sans", sans-serif;
  --sans: Verdana, Geneva, "DejaVu Sans", sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--text);
  font: 13px/20px var(--sans);
  text-align: left;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }

a {
  color: var(--link);
  text-decoration: none;
  font: 13px/20px var(--sans);
}
a:hover { color: var(--heading); }

h1, h2, h3, h4, h5, h6 { color: var(--heading); margin: 0 0 0.6em; font-weight: normal; font-style: normal; }
h1 { font: 34px/42px var(--serif); }
h2 { font: 26px/32px var(--serif); }
h3 { font: 20px/28px var(--serif); }
h4 { font: 18px/24px var(--serif); text-transform: uppercase; }
h5 { font: 16px/22px var(--serif); }

p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 2em; }
li { margin: 0 0 4px; }

.wrap {
  width: var(--content);
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.07);
  overflow: visible;
}
.header-inner {
  width: var(--content);
  max-width: calc(100% - 40px);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { flex: 0 1 auto; max-width: calc(100% - 56px); min-width: 0; display: flex; align-items: center; min-height: 44px; }
.logo img { width: 215px; max-width: 100%; height: auto; display: block; }

.nav-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 8px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-toggle span { width: 22px; position: relative; }
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.is-open span { background: var(--accent); }
.nav-toggle.is-open span::before,
.nav-toggle.is-open span::after { background: var(--accent); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.site-nav li { margin: 0; }
.site-nav > ul > li > a {
  display: block;
  padding: 13px 25px 12px;
  font: 16px/20px var(--serif);
  color: var(--heading);
  position: relative;
}
.site-nav > ul > li:last-child > a { padding-right: 0; }
.site-nav > ul > li > a:hover { color: var(--accent); }
.site-nav > ul > li.is-current > a { color: var(--heading); }
.site-nav > ul > li.is-current > a::after {
  content: "";
  position: absolute;
  left: 15%;
  width: 70%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}
.site-nav > ul > li:last-child.is-current > a::after { left: auto; right: 0; }

/* ---------- Heroes ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #1a2a33;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}
.hero-caption {
  position: absolute;
  left: 36%;
  right: 4%;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  pointer-events: none;
}
.hero-caption h1,
.hero-caption .hero-title {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(22px, 5.4vw, 72px);
  line-height: 1.15;
  text-shadow: 1px 1px 1px #333;
  font-weight: 400;
  max-width: 100%;
}
.hero-caption p {
  margin: 12px 0 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(12px, 2.4vw, 32px);
  line-height: 1.25;
  text-shadow: 1px 1px 1px #333;
  max-width: 100%;
}

/* ---------- Headline / breadcrumbs (inner pages) ---------- */
.headline {
  background: var(--headline-bg);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}
.headline-inner {
  width: var(--content);
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 38px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.headline h1 { margin: 0; }
.breadcrumbs {
  font-size: 11px;
  line-height: 18px;
  color: var(--text);
  text-align: right;
}
.breadcrumbs a,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 11px;
}
.breadcrumbs a { color: var(--link); }
.breadcrumbs a:hover { color: var(--heading); }
.breadcrumbs .sep {
  display: inline-block;
  width: 14px;
  text-align: center;
  color: #c0c0c0;
}
.breadcrumbs .sep::before { content: ">"; color: #c0c0c0; }

/* ---------- Content ---------- */
.page-content {
  width: var(--content);
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 50px 0 40px;
}
.page-content.full { padding-top: 40px; }

.oath-block {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 35px;
  margin-bottom: 18px;
}
.oath-block h2,
.oath-block h3 { margin-top: 0; text-align: left; }
.oath-block h3 { margin-top: 0.4em; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  align-items: start;
  margin-bottom: 10px;
}
.about-photo { text-align: center; padding-top: 20px; }
.about-photo img { width: 266px; height: auto; }

.divider {
  height: 1px;
  background: var(--divider);
  margin: 20px 0;
  border: 0;
}

.practice-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px 20px;
  margin: 10px 0 20px;
}
.practice-cols ul { margin: 0; list-style: none; padding-left: 0; }
.practice-cols li { padding-left: 14px; position: relative; }
.practice-cols li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #989898;
  font-size: 11px;
}

/* Tour (vertical tabs) */
.tour {
  display: flex;
  border: 0;
  margin: 24px 0 30px;
  min-height: 280px;
}
.tour-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 30%;
  flex-shrink: 0;
}
.tour-tabs li { margin: 0; border: 1px solid var(--border); border-bottom-width: 0; }
.tour-tabs li:last-child { border-bottom-width: 1px; }
.tour-tabs button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 20px 13px;
  background: var(--panel);
  color: #1b1b1b;
  border: 0;
  cursor: pointer;
  font: 14px/20px var(--sans);
}
.tour-tabs button:hover,
.tour-tabs li.is-current button {
  background: var(--accent);
  color: #fff;
}
.tour-panels {
  width: 70%;
  border: 1px solid var(--border);
  border-left: 0;
  background: var(--white);
  padding: 42px 4% 20px;
}
.tour-panel { display: none; }
.tour-panel.is-current { display: block; }
.tour-panel h4 { margin-top: 0; }

/* Featured callout with side button */
.feature {
  display: table;
  width: 100%;
  border: 1px solid var(--border);
  margin: 18px 0;
  background: var(--panel);
}
.feature-body {
  display: table-cell;
  padding: 35px;
  vertical-align: middle;
  background: var(--panel);
}
.feature-body h2,
.feature-body h3 { margin: 0; }
.feature-body blockquote { margin: 0; }
.feature-action {
  display: table-cell;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  background: var(--white);
  border-left: 1px solid var(--border);
  padding: 35px 40px;
  text-align: center;
  position: relative;
}

.button,
.button-large,
.button-small {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--serif);
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  border: 0;
  text-decoration: none;
}
.button:hover,
.button-large:hover,
.button-small:hover { background: #8e0808; color: #fff !important; }
.button-large {
  padding: 0 30px;
  min-height: 48px;
  height: 48px;
  font-size: 18px;
  line-height: 48px;
}
.button-small {
  padding: 0 24px;
  min-height: 44px;
  height: 44px;
  font-size: 13px;
  line-height: 44px;
}

/* Testimonials */
.quotes .feature { display: block; }
.quotes .feature-body { display: block; padding: 28px 32px; }
.quotes blockquote {
  margin: 0 0 8px;
  padding: 8px 0 0 0;
  color: var(--quote);
  font: 15px/24px var(--serif);
  position: relative;
}
.quotes blockquote::before {
  content: "“";
  display: block;
  color: var(--accent);
  font: 72px/18px var(--serif);
  margin: 0 0 16px;
}
.quote-author {
  margin: 8px 0 0;
  color: var(--heading);
  font: 20px/28px var(--serif);
}

.testimonial-slider {
  position: relative;
  margin: 20px 0 10px;
  padding-top: 8px;
  padding-right: 0;
}
.testimonial-slider h3 { margin-bottom: 16px; padding-right: 70px; }
.slide { display: none; }
.slide.is-current { display: block; }
.slide .tl-box {
  position: relative;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 22px 22px 22px 56px;
  margin: 0 0 8px;
}
.slide .tl-box::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--panel);
  filter: drop-shadow(0 1px 0 var(--border));
}
.slide blockquote {
  margin: 0;
  padding: 0;
  color: var(--text);
  font: 13px/20px var(--sans);
}
.slide blockquote::before {
  content: "“";
  position: absolute;
  left: 16px;
  top: 16px;
  display: block;
  color: var(--accent);
  font: 42px/36px var(--serif);
  margin: 0;
}
.slide .quote-author {
  font: 13px/20px var(--sans);
  color: var(--link);
  margin: 12px 0 0 8px;
}
.slider-nav {
  position: absolute;
  top: 8px;
  right: 0;
  display: flex;
  gap: 2px;
}
.slider-nav button {
  width: 22px;
  height: 22px;
  border: 0;
  background: var(--black);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 22px;
  padding: 0;
}
.slider-nav button:hover { background: var(--accent); color: #fff; }

/* FAQ accordion */
.accordion { margin: 10px 0 20px; }
.acc { margin: 0 0 5px; }
.acc-toggle {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 20px 12px 43px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  color: #383838;
  font: 14px/20px var(--sans);
  cursor: pointer;
}
.acc-toggle:hover,
.acc.is-open .acc-toggle { background: var(--panel); border-color: var(--border); }
.acc-plus {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 21px;
  height: 21px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--black);
}
.acc.is-open .acc-plus { background: var(--accent); }
.acc-plus::before,
.acc-plus::after {
  content: "";
  position: absolute;
  background: #fff;
}
.acc-plus::before { /* horizontal */
  left: 5px;
  top: 10px;
  width: 11px;
  height: 1px;
}
.acc-plus::after { /* vertical */
  left: 10px;
  top: 5px;
  width: 1px;
  height: 11px;
}
.acc.is-open .acc-plus::after { display: none; }
.acc-panel { display: none; padding: 20px 12px 5px; }
.acc.is-open .acc-panel { display: block; }

/* Contact */
.map-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  max-height: 480px;
  height: auto;
  margin: 10px 0 0;
  border: 1px solid var(--border);
  background: #e8e8e8;
  overflow: hidden;
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.office-block .feature-body {
  font-family: "Andale Mono", "Courier New", monospace;
  font-size: 14pt;
  line-height: 1.5;
  color: var(--heading);
}
.office-block .feature-body a { font: 14pt/1.5 "Andale Mono", "Courier New", monospace; }

.contact-form { max-width: 720px; margin: 10px 0 30px; }
.form-row { margin: 0 0 16px; }
.form-row label {
  display: block;
  margin: 0 0 4px;
  color: var(--heading);
  font-weight: normal;
}
.req { color: var(--accent); }
.form-row input,
.form-row textarea {
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font: 13px/20px var(--sans);
  padding: 8px 10px;
  min-height: 44px;
  height: 44px;
}
.form-row textarea { height: auto; min-height: 160px; resize: vertical; max-width: 640px; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-hint { display: block; color: #989898; font-size: 12px; margin-top: 4px; }
.honeypot {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.thank-you-block .button-large { margin-top: 8px; }
@media (max-width: 860px) {
  .form-row input,
  .form-row textarea { font-size: 16px; } /* avoid iOS zoom */
}

/* ---------- Bottom / footer ---------- */
.site-bottom {
  background: var(--black);
  color: var(--footer-text);
  font: 12px/18px var(--sans);
  padding: 0;
}
.bottom-inner {
  width: var(--content);
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 50px 0 20px;
  display: flex;
  gap: 0;
}
.office-widget {
  width: 30%;
  min-width: 260px;
  max-width: 100%;
  padding: 0 10px 20px;
  box-sizing: border-box;
}
.office-widget h3 {
  color: #fff;
  font: 16px/22px var(--serif);
  padding: 6px 0 14px;
  margin: 0 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.office-widget .addr {
  position: relative;
  padding: 0 0 20px 30px;
}
.office-widget .addr::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 18px;
  background:
    radial-gradient(circle at 50% 38%, #8d8d8d 0 3px, transparent 4px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 18'%3E%3Cpath fill='%238d8d8d' d='M7 0C3.1 0 0 3.1 0 7c0 5.3 7 11 7 11s7-5.7 7-11C14 3.1 10.9 0 7 0zm0 9.5A2.5 2.5 0 1 1 7 4.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.office-widget .street { display: block; white-space: nowrap; }
.office-widget .city,
.office-widget .region { display: block; }
.office-widget .phone {
  position: relative;
  display: block;
  padding: 0 0 20px 30px;
  color: var(--footer-text);
}
.office-widget a.phone {
  color: var(--footer-text);
  font-size: 12px;
  line-height: 18px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.office-widget a.phone:hover { color: var(--link); }
.office-widget .phone::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%238d8d8d' d='M3.2 1.3c.3-.4.9-.5 1.3-.2l2.2 1.6c.4.3.5.8.3 1.2L6.1 6.2c-.1.3 0 .6.2.8l2.7 2.7c.2.2.5.3.8.2l2.3-.9c.4-.2 1-.1 1.2.3l1.6 2.2c.3.4.2 1-.2 1.3l-1.4 1.1c-.4.3-.9.4-1.4.4C6.8 14.3 1.7 9.2 1.7 4.1c0-.5.1-1 .4-1.4L3.2 1.3z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.site-footer {
  background: var(--black);
  color: var(--footer-text);
  font: 12px/18px var(--sans);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bar { background: rgba(255, 255, 255, 0.05); }
.footer-inner {
  width: var(--content);
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 20px 0;
}

#to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  background: var(--black);
  color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}
#to-top.is-visible { opacity: 1; pointer-events: auto; }
#to-top:hover { background: var(--accent); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 1280px) {
  .site-nav > ul > li > a { padding: 13px 16px 12px; font-size: 15px; }
  .hero-caption .hero-title { font-size: clamp(28px, 4.2vw, 56px); }
  .hero-caption p { font-size: clamp(16px, 2vw, 28px); }
}

/* Hamburger from tablet width down so the 6-item nav never overflows */
@media only screen and (max-width: 1024px) {
  .nav-toggle { display: block; }
  .header-inner { min-height: 64px; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    border-top: 1px solid var(--border);
    z-index: 201;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; }
  .site-nav > ul > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .site-nav > ul > li:last-child > a { padding-right: 24px; }
  .site-nav > ul > li.is-current > a::after { display: none; }
  .site-nav > ul > li.is-current > a { color: var(--accent); }

  .hero:has(.hero-caption) { min-height: 140px; }
  .hero:has(.hero-caption) img { min-height: 140px; object-fit: cover; object-position: left center; }
  .hero img { width: 100%; height: auto; }
  .hero-caption { left: 28%; right: 2%; padding: 8px; }
  .hero-caption .hero-title { font-size: clamp(20px, 4.6vw, 36px); }
  .hero-caption p { font-size: clamp(12px, 2.4vw, 18px); margin-top: 4px; }
  .practice-cols { grid-template-columns: 1fr 1fr; }

  .headline-inner { flex-direction: column; align-items: flex-start; padding: 24px 0; }
  .breadcrumbs { text-align: left; max-width: 100%; }

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

  .tour { flex-direction: column; min-height: 0; }
  .tour-tabs, .tour-panels { width: 100%; }
  .tour-panels { border-left: 1px solid var(--border); border-top: 0; padding: 24px 20px; }
  .tour-tabs button { min-height: 44px; }

  .feature, .feature-body, .feature-action { display: block; width: 100%; }
  .feature-action { border-left: 0; border-top: 1px solid var(--border); }

  .bottom-inner { flex-wrap: wrap; }
  .office-widget { width: auto; min-width: 0; max-width: 100%; }

  .acc-toggle { min-height: 44px; }
  .slider-nav button { width: 44px; height: 44px; line-height: 44px; font-size: 18px; }

  h1 { font-size: 28px; line-height: 36px; }
  .map-wrap { max-height: 360px; }
}

@media only screen and (max-width: 768px) {
  .wrap,
  .header-inner,
  .headline-inner,
  .page-content,
  .bottom-inner,
  .footer-inner { max-width: calc(100% - 32px); }
  .office-widget .street { white-space: normal; }
  .feature-body, .feature-action { padding: 24px 20px; }
}

@media only screen and (max-width: 540px) {
  .office-widget { width: 100%; }
  .page-content { padding: 30px 0; }
  .practice-cols { grid-template-columns: 1fr; }
  .hero:has(.hero-caption) img { min-height: 160px; }
  .hero-caption {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    height: auto;
    align-items: center;
    justify-content: flex-end;
    padding: 28px 12px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72) 55%);
  }
  .hero-caption .hero-title { font-size: clamp(18px, 5.4vw, 24px); }
  .hero-caption p { font-size: clamp(11px, 3.2vw, 14px); }
  .about-photo img { width: 100%; max-width: 266px; height: auto; }
  .form-row input,
  .form-row textarea { max-width: 100%; }
  #to-top { right: 12px; bottom: 12px; }
}

@media only screen and (max-width: 380px) {
  .header-inner,
  .headline-inner,
  .page-content,
  .bottom-inner,
  .footer-inner { max-width: calc(100% - 24px); }
}

/* ---------- Form status / map link ---------- */
.form-status { margin: 0 0 16px; padding: 0; min-height: 0; }
.form-status.is-error,
.form-status.is-info {
  padding: 12px 16px;
  border: 1px solid #ead8b0;
  background: #fff8e8;
  color: #5a4a20;
}
.form-status.is-error { border-color: #e3b5b5; background: #fdf2f2; color: #8e0808; }
.map-link { margin: 8px 0 20px; }
.map-link a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
