:root {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --ink: #112238;
  --muted: #5a6574;
  --deep: #0c1f35;
  --deep-2: #152d4a;
  --gold: #cda268;
  --gold-2: #e4be8a;
  --line: rgba(17, 34, 56, 0.12);
  --radius: 14px;
  --shadow: 0 22px 44px rgba(10, 25, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.55;
}

.container {
  width: min(1200px, calc(100% - 2.6rem));
  margin-inline: auto;
}

.topbar {
  background: linear-gradient(92deg, var(--deep-2), var(--deep));
  border-bottom: 1px solid rgba(228, 190, 138, 0.22);
}

.topbar-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #f4f5f7;
  text-decoration: none;
}

.brand-mark {
  color: var(--gold);
  font-size: 1.8rem;
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-text strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  letter-spacing: 0.015em;
  font-weight: 600;
  white-space: nowrap;
}

.brand-text small {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  opacity: 0.84;
  display: block;
  width: 100%;
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
}

.brand-text small::after {
  content: "";
  display: inline-block;
  width: 100%;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2.1vw, 2rem);
}

.nav-list a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f2f5f9;
  opacity: 0.92;
  transition: color 220ms ease, opacity 220ms ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--gold-2);
  opacity: 1;
}

.nav-list a.active {
  color: var(--gold-2);
  opacity: 1;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.phone-link {
  text-decoration: none;
  color: #f4f6f8;
  font-weight: 600;
  font-size: 1.1rem;
}

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(10, 27, 47, 0.9), rgba(10, 27, 47, 0.18)),
    url("https://images.unsplash.com/photo-1589578527966-fdac0f44566c?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 44%, rgba(205, 162, 104, 0.15), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  color: #f4f5f7;
  padding: 2.2rem 0;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  font-weight: 600;
}

.hero h1 span {
  color: var(--gold-2);
}

.hero-line {
  width: 70px;
  height: 3px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.hero p {
  width: min(560px, 100%);
  font-size: 1.12rem;
  color: rgba(245, 247, 250, 0.92);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.84rem 1.4rem;
  border-radius: 2px;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  transition: transform 180ms ease, background-color 220ms ease, color 220ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #c19258, #ddb684);
  color: #102338;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.76);
  color: #f6f8fa;
  background: rgba(255, 255, 255, 0.03);
}

.btn-dark {
  background: #14273f;
  color: #ffffff;
}

.services-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-item {
  padding: 1.55rem 1rem 1.4rem;
  text-align: center;
  border-left: 1px solid var(--line);
}

.service-item:nth-child(4n + 1) {
  border-left: 0;
}

.icon {
  display: inline-block;
  color: var(--gold);
  font-size: 1.7rem;
}

.service-item h2 {
  margin-top: 0.5rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.93rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.service-item p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.about-section {
  background: #ffffff;
  padding: clamp(2.2rem, 5vw, 4.2rem) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(1rem, 3vw, 2.6rem);
  align-items: center;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  font-weight: 700;
}

.about-copy h2 {
  margin-top: 0.45rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.about-copy p {
  color: var(--muted);
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.5rem;
  display: grid;
  gap: 0.52rem;
}

.benefits-list li {
  position: relative;
  padding-left: 1.36rem;
  color: #2e3847;
}

.benefits-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.about-media {
  min-height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-image: url("law-building.png");
  background-size: cover;
  background-position: center;
}

.site-footer {
  background: linear-gradient(95deg, #10233b, #1a3352);
  color: #f3f7fa;
  padding: 2.2rem 0;
}

.contact-page {
  background: linear-gradient(180deg, #f5f6f8 0%, #ffffff 52%);
}

.inner-page {
  background: linear-gradient(180deg, #f5f6f8 0%, #ffffff 46%);
}

.page-hero {
  padding: clamp(2.2rem, 5vw, 4.2rem) 0 1.2rem;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.9rem);
  color: #15263c;
  max-width: none;
  white-space: nowrap;
}

.page-lead {
  color: var(--muted);
  max-width: 66ch;
  font-size: 1.02rem;
}

.page-section {
  padding: 0 0 clamp(2rem, 5vw, 4rem);
}

.panel-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.panel-card h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}

.panel-card p {
  color: #3f4b5c;
}

.about-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.8rem);
}

.stat-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-grid div {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem;
}

.stat-grid strong {
  display: block;
  font-size: 1.4rem;
  color: #1b3555;
}

.stat-grid span {
  color: #4e5968;
  font-size: 0.88rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2.4vw, 1.3rem);
}

.principle-card {
  text-align: center;
}

.principle-card .icon {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.principle-card h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.principle-card p {
  color: #3f4b5c;
  margin: 0;
}

.principles-note {
  margin: 1.4rem 0 0;
  color: var(--muted);
  max-width: 78ch;
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2.4vw, 1.3rem);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2.4vw, 1.3rem);
}

.service-detail-card h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.service-detail-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #3f4b5c;
}

.service-detail-card li {
  margin: 0.34rem 0;
}

.panel-card-wide {
  grid-column: 1 / -1;
}

.process-bar {
  background: linear-gradient(96deg, #11233b, #1a3554);
  color: #f4f7fa;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.process-bar h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.process-bar ol {
  margin: 1rem 0 1.3rem;
  padding-left: 1.2rem;
}

.process-bar li {
  margin: 0.5rem 0;
}

.section-heading {
  margin-bottom: 0.9rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.price-note {
  border-left: 4px solid var(--gold);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2.4vw, 1.3rem);
}

.price-grid h3,
.table-card h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.table-card {
  margin-top: 1rem;
}

.price-table-wrap {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.price-table th,
.price-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.72rem 0.45rem;
  color: #334155;
}

.price-table th {
  color: #132a43;
  font-weight: 700;
}

.contact-hero {
  padding: clamp(2.2rem, 5vw, 4rem) 0 1.4rem;
}

.contact-hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.9rem);
  color: #15263c;
  white-space: nowrap;
}

.contact-intro {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.02rem;
}

.contact-section {
  padding: 0 0 clamp(2rem, 5vw, 4rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(1rem, 3vw, 1.8rem);
  align-items: stretch;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.contact-card h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
  margin-bottom: 0.9rem;
}

.contact-card p {
  margin: 0.55rem 0;
  color: #3f4b5c;
}

.contact-card a:not(.btn) {
  color: #16385d;
  font-weight: 700;
}

.contact-card .btn {
  margin-top: 1rem;
}

.contact-divider {
  border-top: 1px solid var(--line);
  margin: 1.25rem 0;
}

.contact-form {
  margin-top: 0.6rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.form-field label {
  font-weight: 700;
  color: #1f3149;
  font-size: 0.92rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(17, 34, 56, 0.22);
  border-radius: 8px;
  padding: 0.7rem 0.78rem;
  font: inherit;
  color: #223247;
  background: #ffffff;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(205, 162, 104, 0.35);
  border-color: #9f7642;
}

.form-field input.input-invalid,
.form-field textarea.input-invalid {
  border-color: #c24949;
}

.field-error {
  min-height: 1.1em;
  color: #b12424;
  font-size: 0.83rem;
}

.form-status {
  margin: 0.75rem 0 0;
  color: #1d3f67;
  font-weight: 600;
}

.map-wrap {
  min-height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #dce2eb;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  width: 100%;
  margin: 0.4rem 0 0;
  color: rgba(243, 247, 250, 0.82);
  font-size: 0.9rem;
}

.copyright-main {
  position: relative;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  text-align: center;
}

.copyright-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  border-top: 1px solid rgba(243, 247, 250, 0.24);
}

.site-footer h2 {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  max-width: 22ch;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 720ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero .reveal {
  animation-delay: 150ms;
}

.services-strip.reveal {
  animation-delay: 260ms;
}

.about-section.reveal {
  animation-delay: 340ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 1rem 0;
    gap: 0.9rem;
  }

  .nav-list {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-item:nth-child(4n + 1) {
    border-left: 1px solid var(--line);
  }

  .service-item:nth-child(3n + 1) {
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 520px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    min-height: 320px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-page-grid,
  .service-cards-grid,
  .service-detail-grid,
  .principles-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 340px;
  }
}

@media (max-width: 660px) {
  .container {
    width: min(1200px, calc(100% - 1.4rem));
  }

  .page-hero h1 {
    white-space: normal;
  }

  .contact-hero h1 {
    white-space: normal;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-item,
  .service-item:nth-child(3n + 1),
  .service-item:nth-child(4n + 1) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .service-item:first-child {
    border-top: 0;
  }

  .topbar-cta {
    width: 100%;
    justify-content: space-between;
  }
}
