:root {
  --navy: #061b35;
  --navy-soft: #0a2443;
  --gold: #c4933d;
  --cream: #fbfaf7;
  --ink: #081b36;
  --line: #d2aa67;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.site-header {
  min-height: 100px;
  padding: 18px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(115deg, #071d38, #031326);
  border-bottom: 1px solid rgba(196, 147, 61, .75);
  position: relative;
  z-index: 10;
}

.logo-link {
  flex: 0 0 auto;
}

.site-logo {
  height: 56px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(25px, 4.5vw, 66px);
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 17px;
  line-height: 1.2;
  padding: 10px 5px 9px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #d8aa57;
  border-bottom-color: #d8aa57;
}

.home-hero,
.page-banner {
  position: relative;
  overflow: hidden;
  background: #1c1b19;
}

.home-hero {
  height: 525px;
}

.home-hero > img,
.page-banner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero::after,
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .12);
}

.home-hero-overlay,
.banner-title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 8px rgba(0, 0, 0, .7);
}

.home-hero-overlay h1 {
  margin: -15px 0 5px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 600;
}

.home-hero-overlay p {
  margin: 5px 0 0;
  font-size: 24px;
  line-height: 1.25;
}

.gold-ornament {
  width: min(410px, 80%);
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
}

.gold-ornament span {
  height: 1px;
  background: var(--gold);
  flex: 1;
}

.gold-ornament b {
  font-size: 18px;
  font-weight: normal;
}

.home-features {
  padding: 8px 3% 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 9vw, 135px);
  background: radial-gradient(circle at center, #fff 0, #f8f6f1 100%);
}

.feature-card {
  min-width: 0;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border: 1.8px solid var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.short-rule {
  width: 142px;
  height: 1px;
  margin: 6px auto 7px;
  background: var(--gold);
}

.feature-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.2;
}

.page-banner {
  height: 335px;
}

.compact-banner {
  height: 202px;
}

.banner-title h1 {
  margin: 0;
  font-size: 43px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.content-container {
  width: min(1100px, 90%);
  margin-inline: auto;
}

.services-section {
  padding: 24px 3% 28px;
  background: radial-gradient(circle at 50% 15%, #fff, #f8f5ef);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1.03fr 1fr;
  gap: 25px 18px;
}

.service-group {
  min-width: 0;
}

.service-group + .service-group {
  border-left: 1px solid #ddd4c7;
  padding-left: 18px;
}

.service-group.family-law {
  grid-column: span 1;
  border-left: 0;
  border-top: 1px solid #ddd4c7;
  padding: 14px 18px 0 0;
}

.service-group.inheritance-law {
  grid-column: span 2;
  border-top: 1px solid #ddd4c7;
  padding-top: 14px;
}

.service-group h2 {
  margin: 0 0 11px;
  font-size: 19px;
  line-height: 1.2;
}

.service-group h2 span {
  width: 30px;
  height: 30px;
  margin-right: 8px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  clip-path: polygon(13% 0, 87% 0, 100% 70%, 50% 100%, 0 70%);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1.2;
}

th,
td {
  padding: 6px 9px;
  border: 1px solid #d9bd8d;
  vertical-align: middle;
}

th {
  font-weight: normal;
  text-align: center;
}

td:last-child {
  text-align: center;
  white-space: normal;
}

.fee-note {
  margin-top: 27px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 13px;
}

.fee-note svg {
  flex: 0 0 48px;
  width: 48px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
}

.fee-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.about-content {
  padding: 35px 0 18px;
}

.section-heading {
  display: grid;
  grid-template-columns: 150px 58px auto 150px;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading > span {
  height: 1px;
  background: var(--gold);
}

.section-heading svg {
  width: 58px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
}

.section-heading h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
}

.about-content p {
  margin: 0 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-align: justify;
}

.bottom-ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 88%;
  margin: 17px auto 0;
  color: var(--gold);
}

.bottom-ornament span {
  height: 1px;
  flex: 1;
  background: var(--gold);
}

.bottom-ornament b {
  font-weight: normal;
}

.tips-banner {
  height: 325px;
}

.tips-section {
  padding: 12px 0 20px;
}

.tips-heading {
  text-align: center;
}

.tips-heading > div {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 72%;
  margin: 0 auto;
}

.tips-heading span {
  height: 1px;
  background: var(--gold);
  flex: 1;
}

.tips-heading svg {
  width: 47px;
  height: 47px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
}

.tips-heading h1 {
  margin: 3px 0 14px;
  font-size: 35px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 500;
}

.tips-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tips;
}

.tips-list li {
  counter-increment: tips;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 23px;
  margin-bottom: 8px;
}

.tips-list li::before {
  content: counter(tips);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.tips-list li > div {
  border-left: 1px solid var(--gold);
  padding-left: 30px;
}

.tips-list h2 {
  margin: -3px 0 0;
  font-size: 19px;
  line-height: 1.3;
}

.tips-list p {
  margin: 1px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.contact-banner {
  height: 360px;
}

.contact-title h1 {
  font-size: 47px;
}

.contact-title .gold-ornament {
  margin-top: 15px;
}

.contact-section {
  padding: 20px 0 32px;
}

.contact-divider {
  width: 80%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.contact-divider span:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}

.contact-divider svg {
  width: 49px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
}

.contact-intro {
  margin: 8px 0 14px;
  text-align: center;
  font-size: 21px;
  line-height: 1.35;
}

.contact-details {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  font-style: normal;
}

.contact-details > div,
.hours {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 8px 0;
}

.round-icon {
  flex: 0 0 53px;
  width: 53px;
  height: 53px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
}

.round-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #d7a64c;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-details p,
.hours p {
  margin: 0;
  font-size: 20px;
}

.contact-details a {
  text-decoration: none;
}

.hours {
  width: fit-content;
  max-width: 100%;
  margin: 20px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--gold);
}

.site-footer {
  padding: 13px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #e8e8e8;
  background: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.calmyx-credit {
  color: #e8e8e8;
  text-decoration: none;
  white-space: nowrap;
  opacity: .9;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    padding-block: 14px;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
  }

  .main-nav a {
    font-size: 15px;
    padding-block: 6px;
  }

  .home-features {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-card {
    max-width: 650px;
    margin: auto;
  }

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

  .service-group,
  .service-group + .service-group,
  .service-group.family-law,
  .service-group.inheritance-law {
    grid-column: auto;
    border-left: 0;
    border-top: 1px solid #ddd4c7;
    padding: 16px 0 0;
  }

  table {
    font-size: 13px;
    min-width: 590px;
  }

  .section-heading {
    grid-template-columns: 60px 48px auto 60px;
  }

  .tips-heading > div {
    width: 95%;
  }
}

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

  .site-header {
    min-height: auto;
  }

  .site-logo {
    height: 50px;
    max-width: 100%;
    object-fit: contain;
  }

  .main-nav {
    gap: 3px 13px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .home-hero {
    height: 410px;
  }

  .home-hero-overlay h1 {
    font-size: 34px;
    padding: 0 15px;
  }

  .home-hero-overlay p {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 15px;
    line-height: 1.45;
  }

  .page-banner,
  .tips-banner,
  .contact-banner {
    height: 260px;
  }

  .compact-banner {
    height: 180px;
  }

  .banner-title h1,
  .contact-title h1 {
    font-size: 34px;
  }

  .services-section {
    padding-inline: 15px;
  }

  .fee-note {
    align-items: flex-start;
  }

  .fee-note svg {
    flex-basis: 38px;
    width: 38px;
  }

  .section-heading {
    grid-template-columns: 1fr 43px auto 1fr;
    gap: 10px;
  }

  .section-heading h1 {
    font-size: 32px;
  }

  .section-heading svg {
    width: 43px;
  }

  .about-content p {
    text-align: left;
  }

  .tips-heading h1 {
    font-size: 30px;
  }

  .tips-list li {
    grid-template-columns: 43px 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .tips-list li::before {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .tips-list li > div {
    padding-left: 13px;
  }

  .tips-list h2 {
    font-size: 18px;
  }

  .tips-list p {
    font-size: 14px;
  }

  .contact-intro {
    font-size: 18px;
  }

  .contact-intro br {
    display: none;
  }

  .contact-details > div,
  .hours {
    align-items: flex-start;
    gap: 13px;
  }

  .round-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .round-icon svg {
    width: 28px;
    height: 28px;
  }

  .contact-details p,
  .hours p {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 16px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}