/* Northwest Law Services: quiet, bilingual, static presentation. */
:root {
  font-size: 125%;
  --paper: #fcfbf8;
  --white: #ffffff;
  --ink: #253c34;
  --muted: #58635d;
  --line: #dbdfd8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Trebuchet MS', Verdana, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #f2f3ee;
  color: var(--ink);
  font: 21.25px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 0 0 auto;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid #627d69;
  outline-offset: 5px;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.22;
  text-wrap: pretty;
}

h1 {
  max-width: 850px;
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.4rem;
}

p + p {
  margin-top: 1rem;
}

.wrap {
  width: min(1100px, calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--ink);
  color: white;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  max-width: 100%;
}

.brand img {
  display: block;
  width: 420px;
  max-width: 100%;
  height: auto;
}

.header-links, .header-links nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-links {
  font-size: 0.88rem;
}

.header-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.header-links a:hover, .header-links a[aria-current] {
  text-decoration: underline;
}

.language-switch {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.hero {
  min-height: 500px;
  display: grid;
  align-items: center;
  text-align: center;
  color: var(--white);
  background-color: #20382e;
  background-image: var(--hero-overlay, linear-gradient(rgba(10, 24, 18, 0.57), rgba(10, 24, 18, 0.57))), var(--hero-image, url('/assets/hero.jpg'));
  background-size: cover;
  background-position: center 48%;
}

html[data-hero-image="oregon-coast"] .hero {
  --hero-image: url('/assets/hero-oregon-coast.jpg');
  --hero-overlay: radial-gradient(ellipse at center, rgba(10, 24, 18, 0.68) 0%, rgba(10, 24, 18, 0.62) 40%, rgba(10, 24, 18, 0.35) 100%);
}

html[data-hero-image="cannon-beach"] .hero {
  --hero-image: url('/assets/hero-cannon-beach.jpg');
  --hero-overlay: radial-gradient(ellipse at center, rgba(10, 24, 18, 0.65) 0%, rgba(10, 24, 18, 0.59) 40%, rgba(10, 24, 18, 0.28) 100%);
}

.hero-copy {
  padding-block: 64px;
}

.hero h1 {
  max-width: none;
  font-family: var(--sans);
  font-size: 67.584px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}


.services {
  padding-block: 64px 78px;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 88px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-list h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.service-list p {
  max-width: 430px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.95rem;
}

.reading {
  max-width: 850px;
  padding-block: 72px 88px;
  min-height: 485px;
}

.service-page {
  padding-inline: clamp(12px, 2vw, 28px);
}

.section-label {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.85rem;
}

.intro {
  max-width: 720px;
  margin-top: 24px;
  font-size: 1.1rem;
}

.about-page, .about-page .intro {
  max-width: none;
}

.service-page, .service-page .intro {
  max-width: none;
}

.about-page, .service-page {
  min-height: 660px;
  padding-block: 80px 104px;
}

.about-page h1, .service-page h1 {
  margin-inline: auto;
  text-align: center;
  font-size: calc(clamp(2.15rem, 4vw, 3.15rem) * 0.85);
}

.about-page > p, .service-page > p {
  font-family: var(--sans);
  font-size: 1.2rem;
  line-height: 1.65;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 44px 0;
  padding: 0;
}

.about-facts li {
  text-align: center;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.about-facts strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
}

.about-facts span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 1.1rem;
}

.reading h2 {
  margin-top: 38px;
  font-size: 1.5rem;
}

.practical-list {
  padding-left: 22px;
  margin-block: 18px 0;
}

.practical-list li + li {
  margin-top: 8px;
}

.reading.service-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(clamp(48px, 6vw, 80px) - 12px);
  padding-bottom: calc(clamp(48px, 6vw, 80px) + 12px);
}

.service-page .intro {
  margin-top: 44px;
}

.service-page h1 {
  margin-inline: 0;
  text-align: left;
}

.service-page h2 {
  margin-top: 44px;
  text-align: left;
}

.service-page .practical-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.service-page .practical-list li {
  display: grid;
  align-items: start;
  margin: 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.65;
}

.caution {
  max-width: 720px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-content {
  padding-block: 64px;
}

.contact-content .intro {
  margin-top: 24px;
  max-width: none;
}

.contact-details {
  text-align: center;
}

.contact-details h1 {
  color: var(--muted);
  font-size: calc(clamp(2.15rem, 4vw, 3.15rem) * 0.75);
}

.contact-details h1, .contact-details .intro {
  margin-inline: auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 56px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  gap: 28px;
  margin-top: 32px;
}

.contact-methods address {
  font-size: 0.9rem;
}

.contact-methods .footer-actions {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.contact-methods .footer-actions a {
  flex: 1 0 auto;
}

.contact-methods .footer-text {
  font-size: 1rem;
}

.contact-methods address a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  text-decoration: none;
}

.contact-methods address a:hover {
  background: #e2e8df;
  border-color: var(--ink);
}

.contact-layout .map-panel {
  margin-top: 0;
}

.contact-languages {
  white-space: nowrap;
  font-size: clamp(0.8rem, 3.8vw, 1.1rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.map-panel {
  margin-top: 32px;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 1px solid #b6beb5;
  border-radius: 6px;
  background: #e7eae3;
}

.map-panel p {
  margin-top: 12px;
}

.map-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.map-panel a:hover {
  text-decoration: underline;
}

.translation {
  margin-top: 40px;
}

.translation p {
  margin-top: 16px;
}

.site-footer {
  flex: 1 0 auto;
  padding-block: 36px 72px;
  border-top: 1px solid var(--line);
  background: #f2f3ee;
  font-size: 0.86rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

address {
  font-style: normal;
}

.footer-contact address {
  margin-left: auto;
  text-align: right;
  font-size: 0.95rem;
}

.footer-contact address a {
  display: block;
  text-decoration: none;
}

.footer-contact address a:hover {
  text-decoration: underline;
}

.footer-actions {
  order: -1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.footer-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: transparent;
  font-size: 0.8rem;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.footer-text:hover {
  background: #e2e8df;
  border-color: var(--ink);
}

.footer-phone {
  display: inline-flex;
  order: -1;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  padding: 12px 24px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  border-radius: 6px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.footer-phone:hover {
  background: #3d5c4e;
  border-color: #3d5c4e;
}

/* Balance the parentheses around the capital-height phone digits. */
.phone-paren {
  display: inline-block;
  transform: translateY(-0.06em);
}

.legal {
  margin-top: 26px;
  text-align: center;
  color: #6b746e;
  font-size: 0.73rem;
  line-height: 1.65;
}

.copyright {
  margin-left: 12px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .wrap {
    width: calc(100% - 48px);
  }

  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-block: 22px 12px;
  }

  .header-links {
    justify-content: space-between;
    width: 100%;
    gap: 16px;
  }

  .header-links nav {
    gap: 24px;
  }

  .language-switch {
    padding-left: 16px;
  }

  .hero {
    min-height: 410px;
  }

  .hero h1 {
    max-width: 560px;
    margin-inline: auto;
    font-size: 61.44px;
  }

  .services {
    padding-block: 44px 56px;
  }

  .service-list {
    gap: 28px 36px;
  }

  .reading, .contact-content {
    padding-block: 48px 60px;
    min-height: auto;
  }

  .footer-contact {
    flex-wrap: wrap;
    gap: 22px 40px;
  }
}

@media (max-width: 520px) {
  .about-facts, .service-page .practical-list {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 20px;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .header-links {
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-links nav {
    gap: 16px;
  }

  .language-switch {
    padding-left: 12px;
  }

  .hero {
    min-height: 380px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: min(61.44px, 10.4vw);
    margin-inline: auto;
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-phone {
    font-size: clamp(1rem, 5.4vw, 1.2rem);
  }

  .map-panel iframe {
    height: 300px;
  }
}

@media print {
  body {
    background: white;
    font-size: 12pt;
  }

  .header-links, .skip-link, .map-panel iframe {
    display: none;
  }

  .hero {
    min-height: 0;
    background: white;
    color: var(--ink);
  }

  .wrap {
    width: 100%;
  }

  .site-footer {
    break-inside: avoid;
  }
}
