/*
Theme Name: Steak 'n Shake In-Line Franchise
Description: Single-page Steak 'n Shake in-line franchise marketing theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sns-inline-franchise
*/

:root {
  --sns-red: #d2082e;
  --sns-red-dark: #98051f;
  --sns-black: #0a0a0c;
  --sns-charcoal: #1a1a1f;
  --sns-white: #ffffff;
  --sns-warm-white: #f7f5f1;
  --sns-text: #16161a;
  --sns-muted: #5f6068;
  --sns-gold: #ffb12a;
  --sns-border: #c6c7cc;
  --sns-error: #a30020;
  --header-height: 4.75rem;
  --max-width: 88rem;
  --shadow: 0 1.25rem 3rem rgb(0 0 0 / 0.28);
  --focus: #ffd45a;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--sns-black);
  color: var(--sns-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.8rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.25rem;
  background: var(--sns-white);
  color: var(--sns-black);
  font-weight: 700;
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  min-height: var(--header-height);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 0.65rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(10 10 12 / 0.96);
  color: var(--sns-white);
  backdrop-filter: blur(10px);
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  font-family: "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.brand-mark small {
  margin-top: 0.25rem;
  color: var(--sns-gold);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.9rem, 2vw, 2.4rem);
}

.primary-nav a {
  padding-block: 0.5rem;
  color: #f3f3f4;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4rem;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 2.75rem;
  padding-inline: 1.1rem;
  font-size: 0.72rem;
}

.button-light {
  border-color: var(--sns-white);
  background: var(--sns-white);
  color: var(--sns-red-dark);
}

.button-light:hover {
  border-color: var(--sns-gold);
  background: var(--sns-gold);
  color: var(--sns-black);
}

.button-red {
  border-color: var(--sns-red);
  background: var(--sns-red);
  color: var(--sns-white);
}

.button-red:hover {
  border-color: var(--sns-red-dark);
  background: var(--sns-red-dark);
}

.section-progress {
  position: fixed;
  z-index: 90;
  bottom: 1rem;
  left: 50%;
  display: flex;
  gap: 0.45rem;
  padding: 0.45rem;
  transform: translateX(-50%);
  border: 1px solid rgb(255 255 255 / 0.62);
  border-radius: 999px;
  background: rgb(10 10 12 / 0.68);
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.28);
  backdrop-filter: blur(8px);
}

.section-progress a {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 50%;
  color: var(--sns-white);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.section-progress a[aria-current="true"] {
  border-color: var(--sns-white);
  background: var(--sns-white);
  color: var(--sns-red-dark);
}

.photo-section {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  align-items: center;
  overflow: clip;
  background: var(--sns-black);
  color: var(--sns-white);
  isolation: isolate;
}

.section-photo,
.photo-overlay {
  position: absolute;
  inset: 0;
}

.section-photo {
  z-index: -3;
}

.section-photo picture,
.section-photo img {
  width: 100%;
  height: 100%;
}

.section-photo img {
  object-fit: cover;
  object-position: center;
}

.hero .section-photo img {
  object-position: 52% center;
}

.photo-overlay {
  z-index: -2;
  background: linear-gradient(90deg, rgb(4 4 7 / 0.86) 0%, rgb(4 4 7 / 0.58) 46%, rgb(4 4 7 / 0.28) 72%, rgb(4 4 7 / 0.42) 100%);
}

.align-right + * {
  min-width: 0;
}

.section-shell {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 4rem);
}

.section-shell.align-right {
  display: flex;
  justify-content: flex-end;
}

.content-panel {
  position: relative;
  width: min(48rem, 100%);
  padding: clamp(1.5rem, 3vw, 3rem);
  border-left: 4px solid var(--sns-red);
  background: rgb(10 10 12 / 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.hero-panel {
  width: min(44rem, 100%);
}

.wide-panel {
  width: min(62rem, 100%);
}

.extra-wide-panel,
.full-panel {
  width: 100%;
}

.full-panel {
  background: rgb(10 10 12 / 0.9);
}

.eyebrow,
.subheading,
.process-lead {
  margin: 0 0 0.75rem;
  color: var(--sns-gold);
  font-size: clamp(0.76rem, 1vw, 0.96rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-red {
  color: var(--sns-red-dark);
}

h1,
h2,
h3,
.footer-brand {
  font-family: "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
  font-stretch: condensed;
}

h1,
h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 0.94;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 7.3vw, 7rem);
}

h1 span {
  display: block;
}

h2 {
  max-width: 17ch;
  font-size: clamp(2.5rem, 5vw, 5.25rem);
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-kicker {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 0.25rem solid var(--sns-gold);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.hero-copy {
  max-width: 42rem;
  margin-bottom: 1.7rem;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero-copy p {
  margin: 0 0 0.65rem;
}

.subheading {
  margin-top: 1.1rem;
}

.lead {
  max-width: 47rem;
  margin: 1.2rem 0 1.5rem;
  color: var(--sns-white);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
}

.section-number {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  margin: 0;
  color: rgb(255 255 255 / 0.14);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 1;
}

.feature-grid,
.icon-list,
.support-grid ul {
  list-style: none;
  padding: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.75rem;
  margin: 0 0 1.75rem;
}

.checked-list li {
  position: relative;
  min-height: 2rem;
  padding-left: 2rem;
  font-weight: 700;
}

.checked-list li::before {
  position: absolute;
  top: 0.05rem;
  left: 0;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 2px solid var(--sns-gold);
  border-radius: 50%;
  color: var(--sns-gold);
  content: "✓";
  font-size: 0.75rem;
  font-weight: 900;
}

.requirements-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(25rem, 1.1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  margin: 1.6rem 0;
}

.requirements-grid h3,
.support-grid h3 {
  margin-bottom: 1rem;
  color: var(--sns-gold);
}

.icon-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.icon-list li {
  display: grid;
  min-height: 3rem;
  grid-template-columns: 2.5rem 1fr;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.15);
}

.icon-list img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.financial-panel {
  padding: 1.25rem;
  border-top: 4px solid var(--sns-gold);
  background: rgb(0 0 0 / 0.38);
}

.financial-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.financial-list div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) 1.2fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.17);
}

.financial-list dt {
  font-size: 1.25rem;
  font-weight: 900;
}

.financial-list dd {
  margin: 0;
  color: #f1f1f3;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.6rem 0;
}

.support-grid article {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.6rem);
  border-top: 4px solid var(--sns-gold);
  background: rgb(0 0 0 / 0.42);
}

.support-grid article > img {
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.8rem;
  object-fit: contain;
}

.support-grid ul {
  margin: 0;
}

.support-grid li {
  position: relative;
  margin-top: 0.65rem;
  padding-left: 1rem;
}

.support-grid li::before {
  position: absolute;
  left: 0;
  color: var(--sns-gold);
  content: "•";
}

.process-lead {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
}

.process-steps::before {
  position: absolute;
  z-index: -1;
  top: 1.45rem;
  right: 8%;
  left: 8%;
  height: 2px;
  background: var(--sns-gold);
  content: "";
}

.process-steps li {
  padding: 0 0.75rem;
  text-align: center;
}

.step-number {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--sns-red);
  color: var(--sns-white);
  font-weight: 900;
}

.process-steps h3 {
  color: var(--sns-gold);
}

.process-steps p {
  margin: 0.75rem 0 0;
  font-size: 0.94rem;
  line-height: 1.42;
}

.form-section {
  background: var(--sns-warm-white);
  color: var(--sns-text);
}

.form-shell {
  width: min(100%, 76rem);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1rem, 4vw, 3.5rem);
}

.form-intro {
  max-width: 54rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.form-intro h2 {
  max-width: none;
  color: var(--sns-black);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.form-intro > p:not(.eyebrow) {
  margin: 1.2rem auto 0;
  font-size: 1.1rem;
}

form {
  display: grid;
  gap: 2rem;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--sns-border);
  border-radius: 0.35rem;
  background: var(--sns-white);
  box-shadow: 0 0.8rem 2.4rem rgb(0 0 0 / 0.06);
}

legend {
  max-width: 100%;
  padding: 0 0.75rem;
  color: var(--sns-red-dark);
  font-family: "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.required-note,
.field-help {
  margin: 0 0 1.25rem;
  color: var(--sns-muted);
  font-size: 0.88rem;
}

.field-help {
  margin: 1rem 0 0;
}

.required-note span,
label span {
  color: var(--sns-error);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.field {
  min-width: 0;
}

.field-span-two {
  grid-column: span 2;
}

.field-span-three {
  grid-column: span 3;
}

label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--sns-black);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3.15rem;
  border: 2px solid #73757d;
  border-radius: 0.3rem;
  background: var(--sns-white);
  color: var(--sns-text);
}

input,
select {
  padding: 0.68rem 0.8rem;
}

textarea {
  min-height: 9rem;
  padding: 0.8rem;
  resize: vertical;
}

input::placeholder {
  color: #5a5b62;
  opacity: 1;
}

input[readonly] {
  border-color: #92949a;
  background: #ededee;
  color: #2d2e32;
  cursor: not-allowed;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--sns-error);
  box-shadow: 0 0 0 1px var(--sns-error);
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  color: var(--sns-error);
  font-size: 0.86rem;
  font-weight: 700;
}

.error-summary {
  padding: 1rem 1.2rem;
  border: 3px solid var(--sns-error);
  border-radius: 0.3rem;
  background: #fff1f4;
  color: #650014;
}

.error-summary h3 {
  margin-bottom: 0.6rem;
  color: inherit;
}

.error-summary ul {
  margin: 0;
}

.error-summary a {
  font-weight: 700;
}

.turnstile-slot {
  display: grid;
  max-width: 28rem;
  gap: 0.2rem;
  padding: 1rem;
  border: 2px dashed #777981;
  border-radius: 0.3rem;
  background: var(--sns-white);
  color: var(--sns-text);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 50rem;
  padding: 1rem;
  border: 2px solid var(--sns-border);
  border-radius: 0.3rem;
  background: var(--sns-white);
}

.checkbox-field input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  min-height: 1.35rem;
  margin: 0.1rem 0 0;
  accent-color: var(--sns-red);
}

.checkbox-field label {
  margin: 0;
  line-height: 1.45;
}

.turnstile-slot span {
  color: var(--sns-muted);
  font-size: 0.88rem;
}

.submit-button {
  justify-self: start;
  min-width: 11rem;
  border-radius: 0.4rem;
}

.form-status {
  padding: 1rem 1.2rem;
  border-left: 4px solid #12743b;
  background: #e9f8ef;
  color: #0b532b;
  font-weight: 700;
}

.form-status-error {
  border-left-color: var(--sns-error);
  background: #fff1f4;
  color: #650014;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 5rem);
  border-top: 5px solid var(--sns-red);
  background: var(--sns-black);
  color: var(--sns-white);
}

.footer-brand {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.footer-brand span {
  display: block;
  margin-top: 0.3rem;
  color: var(--sns-gold);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.footer-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.55rem 0.8rem;
  color: var(--sns-white);
  font-weight: 800;
  text-decoration-color: var(--sns-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3rem;
}

@media (max-width: 70rem) {
  .requirements-grid {
    grid-template-columns: 1fr;
  }

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

  .support-grid article {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
  }

  .support-grid article > img {
    grid-row: 1 / span 2;
  }

  .support-grid ul {
    grid-column: 2;
  }

  .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .process-steps::before {
    display: none;
  }

  .primary-nav {
    display: none;
  }
}

@media (max-width: 48rem) {
  :root {
    --header-height: 4.2rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding-inline: 0.9rem;
  }

  .brand-mark {
    font-size: 0.9rem;
  }

  .site-header .button-small {
    min-height: 2.5rem;
    max-width: 9.5rem;
    padding-inline: 0.75rem;
    font-size: 0.62rem;
  }

  .section-progress {
    display: none;
  }

  .photo-section {
    display: block;
    min-height: 0;
  }

  .section-photo {
    position: relative;
    z-index: 0;
    height: clamp(14rem, 62vw, 24rem);
  }

  .section-photo img,
  .hero .section-photo img {
    object-position: center;
  }

  .photo-overlay {
    display: none;
  }

  .section-shell,
  .section-shell.align-right {
    display: block;
    padding: 0;
  }

  .content-panel {
    width: 100%;
    padding: 2rem 1.25rem 2.75rem;
    border-top: 5px solid var(--sns-red);
    border-left: 0;
    background: var(--sns-black);
    box-shadow: none;
    backdrop-filter: none;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5.5rem);
  }

  h2 {
    font-size: clamp(2.45rem, 12vw, 4.5rem);
  }

  .section-number {
    top: 1.2rem;
    right: 1rem;
  }

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

  .financial-list div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .support-grid article {
    display: block;
  }

  .support-grid article > img {
    margin-bottom: 0.75rem;
  }

  .support-grid ul {
    grid-column: auto;
  }

  .process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-steps li {
    position: relative;
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: 0 1rem;
    padding: 0 0 1.7rem;
    text-align: left;
  }

  .process-steps li:not(:last-child)::before {
    position: absolute;
    top: 3rem;
    bottom: 0;
    left: 1.48rem;
    width: 2px;
    background: var(--sns-gold);
    content: "";
  }

  .step-number {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .process-steps h3 {
    align-self: center;
  }

  .process-steps p {
    grid-column: 2;
  }

  .form-shell {
    padding-inline: 0.85rem;
  }

  .form-grid-three,
  .form-grid-two {
    grid-template-columns: 1fr;
  }

  .field-span-two,
  .field-span-three {
    grid-column: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 24rem) {
  .brand-mark small {
    display: none;
  }

  .site-header .button-small {
    max-width: 8.2rem;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .content-panel {
    padding-inline: 1rem;
  }

  fieldset {
    padding-inline: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .section-progress,
  .skip-link {
    display: none;
  }

  .photo-section {
    min-height: auto;
    break-inside: avoid;
  }
}
