/* ---------------------------------------------------------
   Law Office Website Styles
   Edit the colors below if you want a different look.
--------------------------------------------------------- */
:root {
  --navy: #102a43;
  --navy-dark: #071b2f;
  --blue: #1f4f7a;
  --gray-900: #20242a;
  --gray-700: #4d5661;
  --gray-200: #d9dee5;
  --gray-100: #f3f5f7;
  --neutral: #efe9df;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.13);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.top-contact {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  color: var(--white);
  background: var(--navy-dark);
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.top-contact a {
  color: var(--white);
  text-decoration: none;
}

.top-contact a:hover,
.top-contact a:focus {
  text-decoration: underline;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-photo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--white);
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--gray-200);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  color: var(--gray-700);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--gray-700);
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--navy);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
}

.menu-toggle-line {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

/* Hero section */
.hero {
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 88px clamp(20px, 6vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 27, 47, 0.94) 0%, rgba(16, 42, 67, 0.82) 46%, rgba(16, 42, 67, 0.18) 100%),
    url("assets/images/real-estate-signing.png") center right / cover no-repeat;
}

.hero-content {
  max-width: 720px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--neutral);
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.25;
}

.hero-text {
  max-width: 690px;
  margin-bottom: 34px;
  color: #f6f8fa;
  font-size: clamp(20px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--navy-dark);
}

.button-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--gray-200);
}

.button-secondary:hover,
.button-secondary:focus {
  border-color: var(--navy);
}

.button-light {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
}

.button-light:hover,
.button-light:focus {
  color: var(--white);
  background: transparent;
}

/* Primary service shortcuts under the first screen */
.quick-services {
  padding: 0 0 20px;
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--white) 100%);
}

.quick-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  transform: translateY(-42px);
}

.quick-services-grid a {
  min-height: 170px;
  padding: 22px;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.quick-services-grid a:hover,
.quick-services-grid a:focus {
  border-color: var(--blue);
}

.quick-services-grid strong,
.quick-services-grid span {
  display: block;
}

.quick-services-grid strong {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.2;
}

.quick-services-grid span {
  color: var(--gray-700);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

/* Main content sections */
.section {
  padding: 78px 0;
}

.section-intro {
  padding: 38px 0 52px;
  border-bottom: 1px solid var(--gray-200);
}

.section-muted {
  background: var(--gray-100);
}

.real-estate-focus {
  padding-top: 62px;
  background:
    linear-gradient(90deg, rgba(16, 42, 67, 0.96), rgba(16, 42, 67, 0.86)),
    url("assets/images/real-estate-signing.png") center / cover no-repeat;
  color: var(--white);
}

.real-estate-focus h2,
.real-estate-focus .section-label {
  color: var(--white);
}

.real-estate-focus p {
  color: #dce6ef;
}

.focus-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: center;
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.focus-list span {
  padding: 14px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.image-band {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 0;
  max-height: 320px;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-200);
}

.image-band img,
.section-photo {
  width: 100%;
  object-fit: cover;
}

.image-band img {
  height: 320px;
}

.section-photo {
  margin-top: 28px;
  height: 280px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading p,
.content-block p,
.section-intro p,
.contact-details p {
  color: var(--gray-700);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  min-height: 220px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.service-card p {
  color: var(--gray-700);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.service-list span {
  padding: 11px 15px;
  color: var(--navy);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.expectation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.expectation-grid article {
  min-height: 220px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.08);
}

.expectation-grid h3 {
  font-size: 22px;
}

.expectation-grid p {
  margin-bottom: 0;
  color: var(--gray-700);
}

.peace-section {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 62%, rgba(255, 255, 255, 0.72) 100%),
    url("assets/images/law-books-banner.jpg") center / cover no-repeat;
}

.peace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.peace-grid article {
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
}

.peace-grid p {
  margin-bottom: 0;
  color: var(--gray-700);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.document-grid article {
  padding: 24px;
  background: var(--gray-100);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
}

.document-grid p {
  margin-bottom: 0;
  color: var(--gray-700);
}

/* Contact section */
.contact-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: start;
}

address {
  margin-bottom: 18px;
  font-style: normal;
}

.notice {
  padding: 18px;
  color: var(--navy);
  background: #fff9ec;
  border-left: 4px solid #b88a2d;
}

.contact-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.contact-card p {
  color: var(--gray-700);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 10px;
}

.form-note {
  margin: 12px 0 0;
  color: var(--gray-700);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

/* Footer appears at the bottom of the page. */
.site-footer {
  padding: 34px 0;
  color: #dce6ef;
  background: var(--navy-dark);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.footer-layout {
  display: grid;
  gap: 18px;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-disclaimer {
  max-width: 980px;
  color: #c7d3df;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 79px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: 620px;
    background:
      linear-gradient(90deg, rgba(7, 27, 47, 0.94) 0%, rgba(16, 42, 67, 0.84) 58%, rgba(16, 42, 67, 0.52) 100%),
      url("assets/images/real-estate-signing.png") center / cover no-repeat;
  }

  .quick-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .focus-layout,
  .contact-layout,
  .service-grid,
  .expectation-grid,
  .peace-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .image-band {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .image-band img {
    height: 220px;
  }

  .section-photo {
    height: 230px;
  }

  .focus-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .top-contact {
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 14px;
  }

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

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .brand-photo {
    display: none;
  }

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

  .brand small {
    font-size: 12px;
  }

  .site-nav {
    top: 68px;
    right: 12px;
    left: 12px;
  }

  .hero {
    min-height: 590px;
    padding: 64px 20px;
  }

  .quick-services {
    padding-bottom: 0;
  }

  .quick-services-grid {
    grid-template-columns: 1fr;
    transform: translateY(-24px);
  }

  .quick-services-grid a {
    min-height: auto;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .section {
    padding: 58px 0;
  }

  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .contact-card {
    padding: 22px;
  }

}
