/* Opulent house rules. Layout, spacing and headshot treatment pair with the Opulent review flow pages. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Sampled from the opulentproperty.com logo. */
  --op-navy: #262672;
  --op-navy-light: #4064ac;
  --op-blue: #2562ac;
  --op-bright: #009de2;
  --op-sky: #4fb7e8;
  --op-teal: #62c2cf;
  --op-slate: #414b66;
  --op-ink: #030722;

  --panel: #f3f3f1;
  --card: #fff;
  --line: #dedcd5;
  --line-soft: #e9e7e1;

  --font: Montserrat, 'Helvetica Neue', Arial, sans-serif;
  --measure: 680px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  color: #333;
  background-color: #fff;
  min-height: 100%;
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  vertical-align: middle;
  max-width: 100%;
  display: inline-block;
}

a {
  color: var(--op-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--op-navy);
}

:focus-visible {
  outline: 2px solid var(--op-navy);
  outline-offset: 3px;
}

/* Page shell */

.page-container {
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
  padding-left: max(15px, env(safe-area-inset-left));
  padding-right: max(15px, env(safe-area-inset-right));
}

.rules-content {
  background-color: var(--panel);
  border-radius: 8px;
  width: 100%;
  min-height: calc(100vh - 30px);
  min-height: calc(100dvh - 30px);
  padding: 80px 16px 90px;
}

.rules-content--center {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: center;
}

.rules-article {
  max-width: var(--measure);
  margin: 0 auto;
}

.review-button {
  color: #fff;
  background-image: linear-gradient(121deg, var(--op-bright), var(--op-blue));
  border: 2px solid #1d529c;
  border-radius: 20px;
  margin-top: 20px;
  padding: 8px 25px;
  font-size: 13px;
  font-weight: 600;
  line-height: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.review-button:hover {
  color: #fff;
  filter: brightness(1.05);
}

/* Hero */

.rules-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-logo {
  display: block;
  width: 230px;
  margin-bottom: 40px;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.review-photo {
  border: 3px solid var(--op-sky);
  border-radius: 200px;
  width: 112px;
  height: 112px;
  flex: none;
  overflow: hidden;
  background-color: #fff;
}

.review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.rules-h1 {
  color: var(--op-navy);
  margin: 30px 0 12px;
  font-size: 22.4px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.rules-content--center .rules-h1 {
  font-size: 34px;
}

.rules-lede {
  color: #4d4c4c;
  text-align: center;
  max-width: 500px;
  margin: 0 0 30px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5em;
  text-wrap: balance;
}

/* Long-form reading */

.rules-article p,
.rules-article li {
  color: var(--op-slate);
  font-size: 17px;
  line-height: 1.7;
}

.rules-article p {
  margin: 0 0 16px;
}

.rules-article strong {
  color: var(--op-navy);
  font-weight: 700;
}

.rules-intro {
  margin-top: 46px;
}

.rules-intro .intro-greeting {
  color: var(--op-navy);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.55;
}

hr {
  border: 0;
  height: 1px;
  background-color: var(--line);
  margin: 48px 0;
}

.rules-section {
  scroll-margin-top: 24px;
}

.rules-section h2 {
  color: var(--op-navy);
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
}

.rules-section h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background-color: var(--op-sky);
}

.sec-num {
  color: var(--op-blue);
}

.rules-section h3 {
  color: var(--op-navy);
  margin: 34px 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}

.rules-section h2 + h3 {
  margin-top: 26px;
}

.rules-section h2 + p {
  margin-top: 26px;
}

.rules-article ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.rules-article ul li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 24px;
}

.rules-article ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: calc(0.85em - 3.5px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--op-sky);
}

.rules-article ul.checklist li {
  padding-left: 32px;
}

.rules-article ul.checklist li::before {
  left: 0;
  top: calc(0.85em - 10px);
  width: 20px;
  height: 20px;
  background: var(--op-sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5.5 10.4l3 3 6-6.6'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

/* Table of contents */

.toc {
  margin-top: 34px;
  padding: 22px 24px 18px;
  border-radius: 8px;
  background-color: var(--card);
}

.rules-article .toc-title {
  margin: 0 0 12px;
  color: var(--op-slate);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  columns: 2;
  column-gap: 28px;
}

.toc li {
  counter-increment: toc;
  break-inside: avoid;
}

.rules-article .toc li {
  font-size: 15px;
  line-height: 1.45;
}

.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  color: var(--op-navy);
  font-weight: 500;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc) '.';
  min-width: 1.1em;
  color: var(--op-blue);
  font-weight: 700;
}

.toc a:hover {
  color: var(--op-blue);
  text-decoration: underline;
}

/* Callouts */

.tip {
  margin: 26px 0 8px;
  padding: 20px 24px 6px;
  border-radius: 8px;
  background-color: var(--card);
}

.tip a {
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 28px;
}

.rules-article .contact-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background-color: var(--card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-item:hover,
.contact-item:focus-within {
  border-color: var(--op-sky);
  box-shadow: 0 6px 18px rgba(38, 38, 114, 0.08);
}

.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 2px solid var(--op-sky);
  border-radius: 50%;
  color: var(--op-blue);
}

.contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-label {
  color: var(--op-slate);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-link {
  color: var(--op-blue);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-link[href^='tel:'] {
  white-space: nowrap;
}

/* Makes the whole card the tap target while the link text stays the number or address. */
.contact-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.contact-link:hover {
  color: var(--op-navy);
  text-decoration: underline;
}

.signoff {
  margin-top: 34px;
}

.rules-article .signoff-line {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.rules-article .signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--op-navy);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.signature-photo {
  width: 48px;
  height: 48px;
  border: 2px solid var(--op-sky);
  border-radius: 50%;
  background-color: #fff;
  object-fit: cover;
}

/* Footer */

.rules-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: var(--measure);
  margin: 64px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--op-slate);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.footer-logo {
  display: block;
  width: 144px;
  max-width: 100%;
  margin-top: 4px;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-logo:hover {
  opacity: 0.85;
}

.rules-footer-place {
  letter-spacing: 0.04em;
  text-wrap: balance;
}

/* Responsive, on the same breakpoints as the review flow */

@media screen and (max-width: 991px) {
  .page-container {
    padding: 10px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .rules-content {
    min-height: calc(100vh - 20px);
    min-height: calc(100dvh - 20px);
  }
}

@media screen and (max-width: 767px) {
  .page-container {
    padding-top: 10px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .rules-content {
    padding: 56px 18px 64px;
  }

  .brand-logo {
    width: 200px;
    margin-bottom: 32px;
  }

  .rules-content--center .rules-h1 {
    font-size: 30px;
  }

  .rules-lede {
    padding-left: 0;
    padding-right: 0;
  }

  .rules-intro {
    margin-top: 38px;
  }

  .rules-article p,
  .rules-article li {
    font-size: 16px;
  }

  .rules-intro .intro-greeting,
  .rules-article .signoff-line {
    font-size: 1.125rem;
  }

  hr {
    margin: 40px 0;
  }

  .rules-section h2 {
    font-size: 19px;
  }

  .rules-section h3 {
    margin-top: 30px;
    font-size: 17px;
  }

  .toc {
    padding: 18px 18px 12px;
  }

  .toc ol {
    columns: 1;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .tip {
    padding: 18px 18px 4px;
  }

  .footer-logo {
    width: 125px;
  }
}

@media screen and (max-width: 479px) {
  .rules-h1 {
    font-size: 19.2px;
  }
}

@media screen and (max-width: 380px) {
  .rules-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .rules-content--center .rules-h1 {
    font-size: 26px;
  }

  .rules-article .contact-item {
    padding: 14px;
    gap: 12px;
  }

  .contact-icon {
    width: 34px;
    height: 34px;
  }

  .contact-link {
    font-size: 15px;
  }
}

@media screen and (max-width: 359px) {
  .contact-icon {
    display: none;
  }
}

@media print {
  .page-container,
  .rules-content {
    padding: 0;
    background: none;
    min-height: 0;
  }

  .toc,
  .contact-icon {
    display: none;
  }

  .rules-article p,
  .rules-article li {
    font-size: 11pt;
    color: #000;
  }

  .rules-section h2,
  .rules-section h3 {
    break-after: avoid;
  }

  .rules-article ul li {
    break-inside: avoid;
  }

  .tip,
  .rules-article .contact-item {
    border: 1px solid #ccc;
  }

  .contact-link::after {
    content: none;
  }

  hr {
    margin: 24px 0;
  }
}
