:root {
  --ink: #171717;
  --soft-ink: #3e4146;
  --muted: #6f7378;
  --paper: #fbfaf7;
  --paper-deep: #f0eee7;
  --line: #ded8ca;
  --charcoal: #111316;
  --charcoal-2: #22252a;
  --brass: #ad8844;
  --brass-dark: #856323;
  --green: #33443d;
  --white: #ffffff;
  --header-h: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(18px, 5vw, 72px);
  color: var(--white);
  background: rgba(17, 19, 22, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--brass);
  border: 1px solid rgba(173, 136, 68, 0.62);
  background: rgba(255, 255, 255, 0.06);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

.site-nav a {
  transition: color 0.18s ease;
}

.site-nav a:hover {
  color: var(--white);
}

.nav-call {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  color: #111111 !important;
  background: var(--brass);
  font-weight: 900;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 84svh;
  padding: calc(var(--header-h) + 58px) clamp(20px, 7vw, 92px) 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(92deg, rgba(12, 13, 15, 0.88) 0%, rgba(12, 13, 15, 0.65) 42%, rgba(12, 13, 15, 0.18) 100%), url("../assets/legal-office-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-copy {
  width: min(660px, 100%);
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.contact .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn.primary {
  background: var(--brass);
  color: #111111;
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.btn.full {
  width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary:hover {
  background: #c59d53;
}

.btn.secondary:hover {
  border-color: var(--brass);
  background: rgba(255, 255, 255, 0.13);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-strip div {
  min-height: 118px;
  padding: 28px clamp(20px, 5vw, 56px);
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip b {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(72px, 10vw, 116px) clamp(20px, 7vw, 92px);
}

.section-head {
  width: min(860px, 100%);
  margin-bottom: 34px;
}

.section-head.narrow {
  width: min(680px, 100%);
}

.section-head h2,
.contact h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 500;
  line-height: 1.22;
}

.section-head p:not(.eyebrow),
.contact p {
  color: var(--muted);
  font-size: 16px;
}

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: stretch;
}

.about-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  color: var(--soft-ink);
  font-size: 17px;
}

.about-copy p {
  margin-bottom: 0;
}

.office-panel {
  min-height: 390px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  overflow: hidden;
}

.office-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.services {
  background: var(--charcoal);
  color: var(--white);
}

.services .section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.64);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.service-card {
  min-height: 260px;
  padding: 34px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}

.service-card span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.3;
}

.service-card p {
  color: rgba(255, 255, 255, 0.67);
  font-size: 15px;
}

.process {
  background: var(--paper-deep);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: process;
}

.process-list li {
  position: relative;
  min-height: 230px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.process-list li::before {
  counter-increment: process;
  content: "0" counter(process);
  display: block;
  margin-bottom: 46px;
  color: var(--brass-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1;
}

.process-list b {
  display: block;
  margin-bottom: 9px;
  font-size: 19px;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq {
  background: var(--paper);
}

.faq-list {
  width: min(920px, 100%);
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 24px 52px 24px 0;
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brass-dark);
  font-size: 28px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  width: min(680px, 100%);
  margin: 0;
  padding: 0 0 24px;
  color: var(--muted);
}

.contact {
  background: var(--green);
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contact p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-phone {
  display: inline-block;
  margin-top: 8px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.contact-list {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 18px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-list dt {
  color: var(--brass);
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.map-btn {
  min-height: 44px;
  padding: 10px 16px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.map-btn:hover {
  border-color: var(--brass);
  background: rgba(255, 255, 255, 0.14);
}

.contact-side {
  display: grid;
  gap: 18px;
}

.contact-map {
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-map-head {
  padding: 18px 20px;
  border-bottom: 1px solid #e6e1d6;
}

.contact-map-head b {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.contact-map-head span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.map-frame {
  position: relative;
  min-height: 430px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e6e1d6;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.contact-form {
  padding: 30px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
}

.contact-form span {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d8d5ce;
  background: #fbfaf7;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(173, 136, 68, 0.3);
  border-color: var(--brass);
  background: var(--white);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted) !important;
  font-size: 13px !important;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 7vw, 92px);
  background: #0d0e10;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer b {
  color: var(--white);
}

@media (max-width: 960px) {
  .site-header {
    gap: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: rgba(17, 19, 22, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-call {
    justify-content: center;
    margin-top: 10px;
    border-bottom: 0 !important;
  }

  .trust-strip,
  .service-grid,
  .process-list {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip div:nth-child(2) {
    border-right: 0;
  }

  .trust-strip div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

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

  .office-panel {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 78svh;
    padding: calc(var(--header-h) + 44px) 20px 48px;
  }

  .hero-bg {
    background-image: linear-gradient(90deg, rgba(12, 13, 15, 0.9) 0%, rgba(12, 13, 15, 0.72) 58%, rgba(12, 13, 15, 0.45) 100%), url("../assets/legal-office-hero.png");
    background-position: 66% center;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .trust-strip,
  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .trust-strip div,
  .trust-strip div:nth-child(2),
  .trust-strip div:last-child {
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card,
  .process-list li {
    min-height: auto;
  }

  .contact-form {
    padding: 22px;
  }

  .map-frame {
    min-height: 320px;
  }

  .site-footer {
    flex-direction: column;
  }
}
