/* ==========================================================================
   Katz Krust Hospitality — site styles
   Brand: Domino's brand book — Red PMS 186, Blue PMS 307, White.
   Colors are always used at 100% (no tints/screens).
   ========================================================================== */

:root {
  /* Brand colors */
  --red: #e31837;          /* PMS 186 */
  --blue: #006491;         /* PMS 307 */
  --white: #ffffff;
  --navy: #0b3a57;         /* map/land + deep blocks */

  /* Neutrals (text + dividers only) */
  --ink: #1f1f1f;
  --ink-soft: #4a4a4a;
  --line: #e2e2e2;
  --bg-alt: #f4f4f4;

  /* Type — Trade Gothic is the brand face; Oswald/Roboto are web fallbacks */
  --font-display: "Trade Gothic LT Bold Condensed No. 20", "Trade Gothic Next Condensed", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Trade Gothic LT", "Trade Gothic Next", "Roboto", "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --max: 1180px;
  --gutter: 16px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--red); color: var(--white); padding: 8px 14px; font-weight: 700;
}
.skip-link:focus { left: 8px; color: var(--white); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--blue { background: var(--blue); color: var(--white); }
.section--red { background: var(--red); color: var(--white); }
.section--blue h2, .section--red h2 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.9rem; color: var(--red); margin-bottom: 8px;
}
.section--blue .eyebrow, .section--red .eyebrow, .hero .eyebrow { color: var(--white); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.section--blue .lead, .section--red .lead { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; min-height: 46px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
  cursor: pointer; transition: transform 0.15s, background-color 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: #c4122d; color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: #004f73; color: var(--white); }
.btn--white { background: var(--white); color: var(--blue); }
.btn--white:hover { color: var(--red); }
.btn--outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--outline-white { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline-white:hover { background: var(--white); color: var(--blue); }
.btn--black { background: #000; color: var(--white); }
.btn--black:hover { color: var(--white); background: #222; }
.btn--sm { padding: 8px 14px; min-height: 38px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 4px solid var(--blue);
  box-shadow: var(--shadow);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 16px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 74px; height: auto; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 10px;
  background: var(--blue); border: 0; border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; height: 3px; background: var(--white); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 4px solid var(--blue);
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.site-nav a {
  display: block; padding: 12px 4px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.1rem; letter-spacing: 0.03em;
  color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--line);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .nav-cta { margin-top: 12px; border: 0; }
.site-nav .nav-cta a { border: 0; text-align: center; color: var(--white); padding: 12px; }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; border: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 10px; font-size: 1rem; position: relative; }
  .site-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; background: var(--red);
  }
  .site-nav .nav-cta { margin: 0 0 0 8px; }
  .site-nav .nav-cta a::after { display: none; }
  .brand img { width: 84px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--blue); color: var(--white);
  position: relative; overflow: hidden;
}
.hero::after { /* domino-dot motif */
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px;
  background:
    radial-gradient(circle at 30% 30%, var(--white) 0 28px, transparent 29px),
    radial-gradient(circle at 70% 70%, var(--white) 0 28px, transparent 29px),
    var(--red);
  border-radius: 36px; transform: rotate(-30deg);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: 32px; align-items: center;
  padding: 56px var(--gutter) 72px;
}
.hero h1 { color: var(--white); }
.hero p { font-size: 1.2rem; max-width: 560px; }
.hero__logo {
  background: var(--white); border-radius: 12px; padding: 24px;
  max-width: 360px; width: 100%; justify-self: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.3fr 1fr; padding-top: 88px; padding-bottom: 104px; }
  .hero__logo { justify-self: end; }
}

.page-hero { background: var(--blue); color: var(--white); padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { max-width: 640px; font-size: 1.15rem; margin: 0; }
.page-hero::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 120px; height: 120px; margin-top: -60px;
  background:
    radial-gradient(circle at 30% 30%, var(--white) 0 12px, transparent 13px),
    radial-gradient(circle at 70% 70%, var(--white) 0 12px, transparent 13px),
    var(--red);
  border-radius: 18px; transform: rotate(-30deg); opacity: 1;
  display: none;
}
@media (min-width: 760px) { .page-hero::after { display: block; } }
.page-hero--brand::after { content: none; }
.page-hero__brand-icon {
  display: none; position: absolute; right: 24px; top: 50%; width: 160px; height: 160px; margin-top: -80px;
}
@media (min-width: 760px) { .page-hero__brand-icon { display: block; } }
img.page-hero__brand-icon { background: var(--white); border-radius: 18px; padding: 14px; box-sizing: border-box; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  border-top: 5px solid var(--blue);
}
.card--red { border-top-color: var(--red); }
.card h3 { color: var(--blue); }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: var(--white); margin-bottom: 16px;
}
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge--blue { background: var(--blue); }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.placeholder-img {
  aspect-ratio: 4 / 3; width: 100%; border-radius: var(--radius);
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; padding: 16px;
}
img.placeholder-img { object-fit: cover; padding: 0; text-transform: none; letter-spacing: normal; }
.placeholder-img--red { background: var(--red); }
.placeholder-img--square { aspect-ratio: 1; }
.placeholder-img--sm { max-width: 160px; margin-left: auto; margin-right: auto; }
.mission-icon { width: 100%; max-width: 220px; justify-self: center; align-self: center; }

/* Mission block */
.mission {
  background: var(--white); border-left: 8px solid var(--red);
  padding: 28px 32px; border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 1.2rem; line-height: 1.7;
}
.mission p:last-child { margin: 0; }
.section--blue .mission { color: var(--ink); }

/* Band (CTA strip) */
.band { padding: 48px 0; }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { margin: 0; }
.band p { margin: 6px 0 0; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; }
.steps .card::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 12px;
}

/* Role list */
.role { display: flex; flex-direction: column; gap: 8px; }
.role .tag {
  align-self: flex-start;
  background: var(--red); color: var(--white); border-radius: 999px;
  padding: 2px 12px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.role .tag--blue { background: var(--blue); }

/* Check list */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Person card */
.person { text-align: center; }
.person .placeholder-img { margin-bottom: 16px; }
.person h3 { margin-bottom: 2px; }
.person .role-title { color: var(--red); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.06em; }

/* Logos strip */
.logo-strip { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .logo-strip { grid-template-columns: repeat(5, 1fr); } }
.logo-strip div {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px 12px; text-align: center;
  color: var(--ink-soft); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.06em;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid #cfcfcf; border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 100, 145, 0.25); }
.field textarea { min-height: 130px; resize: vertical; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field .error { color: var(--red); font-size: 0.875rem; font-weight: 700; min-height: 0; }
.field .error:empty { display: none; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.form-success {
  border: 2px solid var(--blue); border-left: 8px solid var(--blue); border-radius: var(--radius);
  padding: 24px; background: var(--white);
}
.form-success h3 { color: var(--blue); }
.form-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-top: 5px solid var(--red); }

/* Contact info */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-badge { width: 44px; height: 44px; margin: 0; flex: none; }
.contact-list .icon-badge svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--blue); }

/* ---------- Store locator ---------- */
.locator {
  display: flex; flex-direction: column-reverse;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--white);
}
.locator__panel { display: flex; flex-direction: column; min-height: 0; }
.locator__search {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.locator__search svg { width: 22px; height: 22px; color: #9a9a9a; flex: none; }
.locator__search input { flex: 1; min-width: 0; border: 0; font-size: 1.05rem; padding: 8px 0; background: transparent; }
.locator__search input:focus { outline: none; }
.locator__search:focus-within { box-shadow: inset 0 -3px 0 var(--blue); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink-soft);
}
.icon-btn:hover { background: var(--bg-alt); color: var(--blue); }
.icon-btn svg { width: 22px; height: 22px; color: inherit; }
.locator__status { padding: 10px 20px; font-size: 0.875rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.locator__status:empty { display: none; }
.store-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.store-card {
  padding: 22px 20px; border-bottom: 1px solid var(--line); cursor: pointer;
  border-left: 5px solid transparent; transition: background-color 0.15s;
}
.store-card:hover { background: #fafafa; }
.store-card.is-active { border-left-color: var(--red); background: #fff6f7; }
.store-card h3 { color: var(--red); font-size: 1.4rem; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.store-card .distance { font-family: var(--font-body); font-size: 0.85rem; color: var(--ink-soft); text-transform: none; font-weight: 400; white-space: nowrap; }
.store-card .badge {
  display: inline-block; background: var(--red); color: var(--white); border-radius: 999px;
  padding: 2px 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px;
}
.store-card address { font-style: normal; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.store-card .phone { color: var(--ink-soft); display: inline-block; margin-bottom: 6px; text-decoration: none; }
.store-card .phone:hover { color: var(--blue); }
.store-card .hours { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 10px; }
.store-card .socials { display: flex; gap: 10px; margin-bottom: 14px; }
.store-card .socials a { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--blue); color: var(--white); }
.store-card .socials a:hover { background: var(--red); }
.store-card .socials svg { width: 16px; height: 16px; }
.store-card .btn-row { gap: 8px; }
.store-empty { padding: 28px 20px; color: var(--ink-soft); }
.locator__apps { padding: 18px 20px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.locator__apps p { font-weight: 700; margin-bottom: 10px; font-family: var(--font-display); text-transform: uppercase; color: var(--blue); }
.locator__apps .btn-row { gap: 8px; }

.locator__map { position: relative; height: 50vh; min-height: 320px; background: var(--navy); }
.map-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--white); padding: 24px; font-weight: 700;
}
@media (min-width: 960px) {
  .locator { flex-direction: row; height: 640px; }
  .locator__panel { width: 400px; flex: none; border-right: 1px solid var(--line); }
  .locator__map { flex: 1; height: auto; }
  .store-list { flex: 1; }
}

/* Map marker (generic domino tile — swap for an approved Domino's asset if provided) */
.store-marker { width: 44px; height: 44px; cursor: pointer; background: none; border: 0; padding: 0; }
.store-marker svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.45)); transition: transform 0.15s; }
.store-marker:hover svg, .store-marker.is-active svg { transform: scale(1.2); }

/* MapLibre popup restyle */
.maplibregl-popup-content {
  border-radius: 14px !important; padding: 20px 24px !important; min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important; font-family: var(--font-body); font-size: 1rem;
}
.maplibregl-popup-content h4 { color: var(--ink); text-transform: none; font-size: 1.3rem; margin: 0 28px 8px 0; font-family: var(--font-body); font-weight: 700; }
.maplibregl-popup-content p { margin: 0 0 12px; color: var(--ink-soft); }
.maplibregl-popup-content a { font-weight: 700; color: var(--blue); text-decoration: none; }
.maplibregl-popup-content a:hover { color: var(--red); }
.maplibregl-popup-close-button { font-size: 26px; right: 10px !important; top: 8px !important; color: var(--ink-soft); }

/* Home mini map */
.mini-map { position: relative; display: block; height: 340px; border-radius: 10px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.mini-map__map { position: absolute; inset: 0; }
.mini-map__label {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: var(--red); color: var(--white); padding: 10px 18px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.mini-map:hover .mini-map__label { background: var(--blue); }
.mini-store-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.mini-store-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 16px; background: var(--white); border-radius: var(--radius); border-left: 5px solid var(--red); box-shadow: var(--shadow); }
.mini-store-list strong { display: block; font-family: var(--font-display); text-transform: uppercase; color: var(--blue); font-size: 1.1rem; }
.mini-store-list span { color: var(--ink-soft); font-size: 0.95rem; }
.mini-store-list li > div { flex: 1 1 220px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: 56px 0 24px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo { background: var(--white); border-radius: 10px; padding: 14px; width: 150px; margin-bottom: 16px; }
.site-footer h4 { font-size: 1.1rem; margin-bottom: 14px; color: var(--white); border-bottom: 3px solid var(--red); display: inline-block; padding-bottom: 4px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-socials { display: flex; gap: 10px; margin-top: 8px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.footer-socials a:hover { background: var(--red); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-legal {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem;
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
