:root {
  --brand-gray: #3f3f3f;
  --brand-red: #b20f02;
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --bg: #fbf8f2;
  --rule: #e6e2d8;
  --maxw: 720px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header {
  padding: 48px 24px 8px;
}

.logo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}

.content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px 8px;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 810;
  border-radius: 10px;
  margin: 0 0 2.5em;
}

.content p {
  margin: 0 0 1.5em;
}

.content ul {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}

.content li {
  margin: 0 0 0.4em;
}

.lead {
  font-size: 1.22em;
  line-height: 1.55;
  font-weight: 500;
  color: var(--brand-gray);
}

.signoff {
  margin-top: 2.5em;
  color: var(--muted);
}

/* Legal / content pages */
.page-title {
  font-size: 1.9em;
  font-weight: 700;
  color: var(--brand-gray);
  margin: 0 0 0.25em;
}

.page-meta {
  color: var(--muted);
  font-size: 0.95em;
  margin: 0 0 2em;
}

.placeholder-note {
  border-left: 3px solid var(--brand-red);
  background: #faf3f2;
  padding: 12px 16px;
  margin: 0 0 2em;
  font-size: 0.95em;
  color: var(--ink);
}

.content h2 {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--brand-gray);
  margin: 1.8em 0 0.5em;
}

.back-link {
  display: inline-block;
  margin-top: 1em;
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 64px;
  border-top: 1px solid var(--rule);
  font-size: 0.95em;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.5em;
}

.site-footer a {
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 500;
}

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

.social {
  margin-top: 1.25em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-gray);
}

.social-link:hover {
  color: var(--brand-red);
  text-decoration: none;
}

.social-icon {
  flex: none;
}

.legal-links {
  margin-top: 1.25em;
  font-size: 0.9em;
}

.legal-links span {
  color: var(--muted);
  margin: 0 0.4em;
}

.copyright {
  font-size: 0.85em;
  color: var(--muted);
}

/* SMS registration trigger — red text link beside the social icons */
.sms-trigger {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--brand-red);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.sms-trigger:hover {
  text-decoration: underline;
}

.sms-trigger:focus-visible {
  outline: 3px solid rgba(178, 15, 2, 0.35);
  outline-offset: 3px;
  border-radius: 4px;
}

/* SMS modal pill buttons (submit / done) */
.sms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: var(--brand-red);
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.sms-button:hover {
  background: #8f0c02;
}

.sms-button:active {
  transform: translateY(1px);
}

.sms-button:focus-visible {
  outline: 3px solid rgba(178, 15, 2, 0.35);
  outline-offset: 2px;
}

.sms-button--full {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 10px;
}

/* SMS modal */
.sms-no-scroll {
  overflow: hidden;
}

.sms-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sms-modal[hidden] {
  display: none;
}

.sms-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 28, 24, 0.55);
  backdrop-filter: blur(2px);
  animation: smsFade 0.18s ease;
}

.sms-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 28px 26px 26px;
  animation: smsPop 0.2s ease;
}

@keyframes smsFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes smsPop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sms-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}

.sms-modal__close:hover {
  background: var(--rule);
  color: var(--ink);
}

.sms-modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-gray);
  margin: 0 0 0.4em;
}

.sms-modal__intro {
  margin: 0 0 1.4em;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.sms-field__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-gray);
  margin: 0 0 6px;
}

.sms-field {
  display: block;
}

/* intl-tel-input fills the container width */
.sms-field .iti {
  width: 100%;
}

.sms-field input[type="tel"] {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 12px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sms-field input[type="tel"]:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(178, 15, 2, 0.15);
}

.sms-field input.sms-input--error {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(178, 15, 2, 0.18);
}

.sms-field__error,
.sms-form__error {
  color: var(--brand-red);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 6px 0 0;
}

.sms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.sms-check input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand-red);
  cursor: pointer;
}

.sms-check a {
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: none;
}

.sms-check a:hover {
  text-decoration: underline;
}

.sms-form__error {
  margin-top: 12px;
}

.sms-button--full {
  margin-top: 20px;
}

/* Success state */
.sms-modal__success {
  text-align: center;
  padding: 8px 0 0;
}

.sms-modal__check {
  width: 56px;
  height: 56px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-size: 30px;
  line-height: 56px;
  font-weight: 700;
}

.sms-modal__success p {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0 0 1em;
}

.sms-modal__fineprint {
  color: var(--muted);
  font-size: 0.82rem !important;
}

/* Keep the country dropdown above the dialog scroll area */
.sms-field .iti__dropdown-content {
  z-index: 1100;
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }
  .site-header {
    padding: 32px 20px 24px;
  }
  .content {
    padding: 32px 20px 0;
  }
  .sms-modal__dialog {
    padding: 24px 18px 20px;
  }
}
