/* Franks House — site styles
   Colors and fonts come from the logo. Change them here and every page follows. */

:root {
  --navy: #16324F;
  --navy-dark: #0F2539;
  --navy-2: #1F4468;
  --navy-line: #3A6690;
  --red: #D6342B;
  --red-dark: #B92A22;
  --red-text: #B3261E;
  --yellow: #F6C21C;
  --blue: #2E6DB4;
  --green: #2E7D32;
  --orange: #E8892B;
  --orange-text: #A85A0F;
  --cream: #FFF7E8;
  --paper: #FFFFFF;
  --ink-2: #2B435C;
  --muted: #3A4F63;
  --sand: #E6D9C0;
  --sand-2: #F2EAD8;
  --on-navy: #E4ECF5;
  --on-navy-muted: #B9C8D8;

  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 20px;
  --shadow: 0 6px 0 var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--cream);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.container { width: min(1248px, 100% - 40px); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 400; line-height: 1; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--yellow); color: var(--navy); font-weight: 800;
  padding: 12px 16px; border-radius: 10px; border: 3px solid var(--navy);
}
.skip-link:focus { top: 16px; }

/* Facts to fill in before launch. Search the code for class="todo". */
.todo {
  background: #FFF1A8; color: var(--navy);
  outline: 2px dashed var(--red); outline-offset: 1px;
  border-radius: 4px; padding: 0 4px;
}

/* ---------- Announcement bar ---------- */
.announce { background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; }
.announce .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 24px; min-height: 40px; padding-block: 8px; text-align: center;
}
.announce a { color: var(--yellow); }
.announce a:hover { color: #fff; }
.dot { width: 10px; height: 10px; border-radius: 2px; background: var(--yellow); flex-shrink: 0; }
.dot--red { background: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 4px solid var(--navy);
}
.site-header .container {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 96px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 76px; height: 76px; }
.brand-name { display: block; font-family: var(--display); font-size: 30px; line-height: 1; color: var(--navy); }
.brand-tag { display: block; margin-top: 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--blue); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.main-nav a {
  display: inline-block; padding: 8px 2px; white-space: nowrap; font-size: 17px; font-weight: 800;
  text-decoration: none; border-bottom: 3px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--yellow); }
.icon-btn {
  width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 10px;
  background: none; color: var(--navy); cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.icon-btn svg { width: 26px; height: 26px; }
.shop-btn {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  min-height: 44px; padding: 0 18px; border-radius: 12px;
  background: var(--navy); color: #fff; font-weight: 800; text-decoration: none;
}
.shop-btn:hover { background: var(--navy-dark); color: #fff; }
.shop-btn svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border-radius: 14px;
  border: 3px solid var(--navy); box-shadow: 0 5px 0 var(--navy);
  font-family: var(--body); font-size: 18px; font-weight: 800; text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--navy); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--cream); color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--navy); border-color: #fff; box-shadow: none; }
.btn--yellow:hover { background: #FFD54A; color: var(--navy); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 18px; text-decoration: none;
  border-bottom: 3px solid var(--yellow); padding-bottom: 2px;
}
.text-link svg, .cat-link svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; }
.hero .container {
  display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 56px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.pill {
  align-self: flex-start; display: inline-block;
  background: var(--yellow); color: var(--navy); border: 2px solid var(--navy);
  border-radius: 999px; padding: 7px 14px;
  font-size: 14px; font-weight: 800; letter-spacing: 0.08em;
}
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 7vw, 92px); line-height: 0.98; }
.hero h1 .accent { color: var(--red); }
.lead { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 580px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 700; color: var(--ink-2); }
.facts span, .facts a { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }
.hero-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-art picture { position: relative; width: 88%; }
.hero-art img { width: 100%; }

/* ---------- Brick divider ---------- */
.bricks { height: 34px; background: url("/assets/bricks.svg") repeat-x left bottom / 300px 34px; }
.bricks--navy { background-color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--white { background: var(--paper); }
.section--navy { background: var(--navy); color: #fff; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 32px; margin-bottom: 32px;
}
.section-head h2, .h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.section-head p { margin-top: 10px; font-size: 19px; color: var(--muted); }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cat-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  background: var(--paper); border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.cat-card:hover { transform: translateY(-3px); color: var(--navy); }
.cat-art { height: 180px; display: grid; place-items: center; color: #fff; }
.cat-art svg { width: 84px; height: 84px; }
.cat-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 24px; }
.cat-body h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--navy); }
.cat-body p { font-size: 16px; color: var(--muted); }
.cat-link { display: inline-flex; align-items: center; gap: 6px; padding-top: 4px; font-weight: 800; }
.cat--toys .cat-art { background: var(--red); }   .cat--toys .cat-link { color: var(--red-text); }
.cat--cards .cat-art { background: var(--blue); } .cat--cards .cat-link { color: var(--blue); }
.cat--games .cat-art { background: var(--green); } .cat--games .cat-link { color: var(--green); }

/* Fresh on the Shelf */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 2px solid var(--sand); border-radius: 16px;
}
.product-photo { position: relative; aspect-ratio: 1; background: var(--sand-2); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 6px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--red); color: #fff;
}
.badge--rare { background: var(--blue); }
.badge--pick { background: var(--yellow); color: var(--navy); }
.product-body { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; padding: 18px; }
.product-cat { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.product-body h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.condition { align-self: flex-start; font-size: 13px; font-weight: 700; border: 2px solid var(--navy); border-radius: 6px; padding: 2px 8px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--display); font-size: 26px; }
.product-foot .btn { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; box-shadow: none; border-width: 0; }
.fresh-empty {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px 36px; background: var(--paper); border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow);
}
.fresh-empty .stack { display: flex; align-items: center; gap: 20px; }
.mini-bricks { display: flex; gap: 6px; flex-shrink: 0; }
.mini-bricks span { width: 22px; height: 30px; border-radius: 5px; border: 2px solid var(--navy); }
.fresh-empty h3 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; }
.fresh-empty p { color: var(--muted); }

/* We Buy band */
.webuy .container { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 64px; align-items: center; }
.webuy-copy { display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.14em; color: var(--yellow); }
.webuy h2 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 4.4vw, 60px); line-height: 1; color: #fff; }
.webuy p { font-size: 19px; color: var(--on-navy); }
.webuy .call { font-size: 15px; color: var(--on-navy); }
.webuy a:not(.btn) { color: #fff; font-weight: 800; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: var(--navy-2); border: 2px solid var(--navy-line); border-radius: 18px;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 24px; color: #fff; background: var(--red);
}
.steps li:nth-child(2) .step-num { background: var(--yellow); color: var(--navy); }
.steps li:nth-child(3) .step-num { background: var(--green); }
.steps h3 { font-size: 20px; font-weight: 800; color: #fff; }
.steps p { font-size: 16px; color: #D5E0EC; }

/* Why shop with us */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.why-item { display: flex; align-items: flex-start; gap: 20px; }
.why-icon {
  width: 60px; height: 60px; flex-shrink: 0; display: grid; place-items: center;
  border: 3px solid var(--navy); border-radius: 16px; color: #fff;
}
.why-icon svg { width: 30px; height: 30px; }
.why-item h3 { font-family: var(--display); font-weight: 400; font-size: 26px; margin-bottom: 6px; }
.why-item p { color: var(--muted); }

/* Alerts signup */
.signup {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  padding: 48px 56px; background: var(--yellow);
  border: 3px solid var(--navy); border-radius: 24px; box-shadow: 0 8px 0 var(--navy);
}
.signup-copy { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.signup h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; }
.signup p { font-size: 19px; }
.signup-action { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fine-print { font-size: 13px; color: #3B3312; max-width: 360px; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.map {
  width: 100%; height: 380px; border: 3px solid var(--navy); border-radius: var(--radius);
  background: #E7EFF7; display: block;
}
.visit-copy { display: flex; flex-direction: column; gap: 20px; }
.visit-copy > p { font-size: 19px; color: var(--muted); }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 18px; font-weight: 700; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-list svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.contact-list a { text-decoration: none; }
.hours { display: grid; grid-template-columns: auto auto; gap: 4px 24px; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; color: #D5E0EC; }
.footer-brand img { width: 96px; height: 96px; }
.footer-brand .name { font-family: var(--display); font-size: 24px; color: #fff; }
.site-footer h2 { font-family: var(--body); font-size: 14px; font-weight: 800; letter-spacing: 0.12em; color: var(--yellow); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 40px; padding-top: 20px; border-top: 2px solid #2E5A85;
  font-size: 14px; color: var(--on-navy-muted);
}

/* ---------- Inner pages ---------- */
.page-hero { padding: 56px 0 48px; }
.page-hero .container { display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 76px); line-height: 1; }
.page-hero .lead { max-width: 720px; }
.prose { max-width: 780px; display: flex; flex-direction: column; gap: 18px; font-size: 18px; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3vw, 38px); line-height: 1.05; margin-top: 24px; }
.prose ul, .prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.prose a { font-weight: 800; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.card {
  background: var(--paper); border: 3px solid var(--navy); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.card h2 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; }
.page-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.page-nav a {
  padding: 8px 14px; border: 2px solid var(--navy); border-radius: 999px;
  background: var(--paper); font-weight: 800; font-size: 15px; text-decoration: none;
}
.page-nav a:hover { background: var(--yellow); color: var(--navy); }
.table-wrap { overflow-x: auto; }
table.grades { width: 100%; border-collapse: collapse; background: var(--paper); border: 3px solid var(--navy); border-radius: 14px; overflow: hidden; font-size: 17px; }
table.grades th, table.grades td { text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--sand); vertical-align: top; }
table.grades thead th { background: var(--navy); color: #fff; font-weight: 800; }
table.grades tbody th { font-weight: 800; white-space: nowrap; }
table.grades tr:last-child th, table.grades tr:last-child td { border-bottom: 0; }
.form-slot { min-height: 200px; }
.form-slot iframe { display: block; width: 100%; border: 0; }
.form-alt { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.photo-tips { background: var(--sand-2); border-radius: 14px; padding: 20px 22px; }

/* ---------- Header collapses to a menu button below 1200px ---------- */
@media (max-width: 1199px) {
  html { scroll-padding-top: 88px; }
  .site-header .container { min-height: 68px; gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 48px; height: 48px; }
  .brand-name { font-size: 22px; }
  .brand-tag { display: none; }
  .icon-btn { display: inline-flex; }
  .shop-btn .label { display: none; }
  .shop-btn { padding: 0; width: 44px; justify-content: center; }
  /* Without JavaScript the menu simply shows under the header. */
  .site-header .container { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; }
  .main-nav ul { flex-direction: column; gap: 0; padding-bottom: 12px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--sand); font-size: 18px; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--sand); color: var(--red-text); }
  .js .site-header .container { flex-wrap: nowrap; }
  .js .main-nav {
    display: none; position: absolute; left: -20px; right: -20px; top: 100%;
    padding: 4px 20px 12px; background: var(--paper); border-bottom: 4px solid var(--navy);
    box-shadow: 0 12px 24px rgba(22, 50, 79, 0.15);
  }
  .js .main-nav.is-open { display: block; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {

  .hero { padding: 28px 0 44px; }
  .hero .container { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; width: min(340px, 88%); margin-inline: auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { gap: 16px; }
  .cat-body h3 { font-size: 22px; }
  .webuy .container { grid-template-columns: 1fr; gap: 32px; }
  .why { grid-template-columns: 1fr; gap: 24px; }
  .visit-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 56px 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 639px) {
  body { font-size: 16px; }
  .announce .hide-sm { display: none; }
  .pill { font-size: 12px; letter-spacing: 0.06em; }
  .btn-row .btn { width: 100%; }
  .facts { flex-direction: column; }
  .bricks { height: 23px; background-size: 200px 23px; }
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head p { font-size: 15px; }
  .product-grid { gap: 12px; }
  /* Category tiles stack as wide rows on phones: color block left, words right */
  .cat-grid { grid-template-columns: 1fr; gap: 14px; }
  .cat-card { flex-direction: row; box-shadow: 0 4px 0 var(--navy); }
  .cat-art { width: 92px; height: auto; min-height: 92px; flex-shrink: 0; }
  .cat-art svg { width: 44px; height: 44px; }
  .cat-body { padding: 12px 14px; gap: 4px; justify-content: center; }
  .cat-body h3 { font-size: 20px; }
  .cat-body p { font-size: 14px; }
  .cat-link { display: none; }
  .product-body { padding: 12px; }
  .product-body h3 { font-size: 15px; }
  .badge { top: 8px; left: 8px; font-size: 10px; padding: 4px 8px; }
  .price { font-size: 20px; }
  .product-foot { flex-direction: column; align-items: stretch; }
  .fresh-empty { padding: 24px 20px; }
  .fresh-empty .stack { flex-direction: column; align-items: flex-start; }
  .fresh-empty .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { flex-direction: row; align-items: center; gap: 14px; padding: 14px; }
  .steps .step-num { width: 40px; height: 40px; font-size: 20px; flex-shrink: 0; }
  .steps h3 { font-size: 16px; }
  .steps p { font-size: 14px; }
  .webuy .btn { width: 100%; }
  .why-icon { width: 48px; height: 48px; border-radius: 14px; }
  .why-icon svg { width: 24px; height: 24px; }
  .why-item h3 { font-size: 21px; }
  .signup { padding: 28px 20px; box-shadow: 0 6px 0 var(--navy); }
  .signup-action, .signup-action .btn { width: 100%; }
  .map { height: 220px; }
  .contact-list { font-size: 16px; }
  .footer-brand { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .footer-brand img { width: 72px; height: 72px; }
  .page-hero { padding: 36px 0 28px; }
  .prose { font-size: 16px; }
  .card { padding: 22px 18px; }
  table.grades { font-size: 15px; }
  table.grades th, table.grades td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Footer brand spans the full width on smaller screens */
@media (max-width: 1023px) {
  .footer-brand { grid-column: 1 / -1; }
}

/* Inner-page card grid */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card p { color: var(--muted); }
.card .contact-list { font-size: 16px; }
@media (max-width: 1023px) {
  .card-grid { grid-template-columns: 1fr; }
}
.hours span:nth-child(even) { white-space: nowrap; }
