/* ============================================================
   Skyview Mart
   Cream page inside a yellow frame, near-black panels, yellow accent.
   Radius scale anchored to the logo badge: 6px small / 8px cards and buttons / 10px panels.
   ============================================================ */

:root {
  --yellow: #F5B815;
  --yellow-press: #DCA30B;
  --black: #16130D;
  --black-2: #211D15;
  --black-3: #2C2719;
  --white: #FFFFFF;
  --cream: #FBF8F0;

  --ink: #16130D;
  --body: #57524A;          /* body text on cream, 7:1 */
  --muted: #7E7869;         /* second half of display headlines, 4.1:1 on cream */
  --muted-dark: #A9A294;    /* same role on solid black, 7.3:1 */
  --muted-hero: #C0BAAC;    /* same role over the faded photo, keeps 3:1 there */
  --body-dark: #C9C3B5;     /* body text on black */
  --line: #E7E1D2;
  --line-dark: #38321F;

  /* Anchored to the MART badge on the shop banner: a modest rounded rect,
     not a pill. Everything on the page steps off this. */
  --r-panel: 10px;
  --r-card: 8px;
  --r-sm: 6px;
  --r-btn: 8px;
  --r-dot: 2px;

  --frame: clamp(10px, 1.2vw, 18px);
  --shadow: 0 24px 50px -30px rgba(22, 19, 13, 0.4);

  --f: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --section-y: clamp(64px, 7vw, 104px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  padding: var(--frame);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--f);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }
p { margin: 0; }
button { font: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 21px; height: 21px; flex-shrink: 0; }
.icon-xs { width: 14px; height: 14px; }

.page { background: var(--cream); border-radius: var(--r-panel); }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 2.4vw, 32px); }

.muted { color: var(--muted); }
.panel .muted { color: var(--muted-dark); }
.hero .muted { color: var(--muted-hero); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--black); color: var(--white);
  padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--yellow-press); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-btn);
  font-weight: 700; font-size: 0.92rem; line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 11px 18px; font-size: 0.86rem; }

.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--yellow-press); border-color: var(--yellow-press); }

.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--black-2); border-color: var(--black-2); }

/* Outline button used on dark panels */
.btn-clear { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn-clear:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--body);
}
.eyebrow .icon { color: var(--yellow-press); }
.eyebrow-light { color: var(--body-dark); }
.eyebrow-light .icon { color: var(--yellow); }

/* ---------- Header: floating dark bar ---------- */
.site-header { position: sticky; top: var(--frame); z-index: 100; padding-top: 14px; }
.nav-bar {
  display: flex; align-items: center; gap: 22px;
  background: var(--black);
  border-radius: var(--r-panel);
  padding: 10px 10px 10px 20px;
}
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: var(--r-card);
  background: var(--yellow); color: var(--ink);
}
.brand-mark .icon { width: 18px; height: 18px; }
.brand-lockup { display: flex; flex-direction: column; gap: 3px; }
.brand-text { display: inline-flex; align-items: center; font-weight: 900; font-size: 1rem; letter-spacing: -0.02em; line-height: 1; }
.brand-sky { color: var(--white); padding-right: 5px; }
.brand-mart { background: var(--yellow); color: var(--ink); padding: 4px 8px; border-radius: var(--r-sm); }
.brand-tag { font-size: 0.7rem; color: var(--muted-dark); }

.site-nav ul { display: flex; gap: 26px; }
.site-nav a { font-size: 0.89rem; font-weight: 500; color: var(--body-dark); transition: color 0.2s ease; }
.site-nav a:hover { color: var(--white); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 42px; height: 42px; padding: 0;
  background: var(--black-3); border: none; border-radius: var(--r-card); cursor: pointer;
}
.nav-toggle span { display: block; width: 17px; height: 2px; background: var(--white); margin-inline: auto; transition: transform 0.22s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  margin-top: 8px; padding: 14px 18px 20px;
  background: var(--black);
  border-radius: var(--r-panel);
}
.mobile-nav ul { display: flex; flex-direction: column; margin-bottom: 14px; }
.mobile-nav a { display: block; padding: 13px 2px; font-size: 1rem; font-weight: 500; color: var(--white); border-bottom: 1px solid var(--line-dark); }
.mobile-nav .btn { width: 100%; }

/* ---------- Hero: faded photo panel ---------- */
.hero-shell { padding-top: 22px; }
.hero {
  position: relative; isolation: isolate;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--black);
  min-height: min(76dvh, 620px);
  display: grid; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
/* Faded treatment. Stays >=0.72 across the text column so white display type
   holds AA, then opens up on the right so the storefront reads through. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg,
    rgba(22, 19, 13, 0.93) 0%,
    rgba(22, 19, 13, 0.91) 55%,
    rgba(22, 19, 13, 0.82) 68%,
    rgba(22, 19, 13, 0.42) 88%,
    rgba(22, 19, 13, 0.24) 100%);
}
.hero-inner { padding: clamp(36px, 5vw, 72px); max-width: 640px; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
}
.hero-sub { margin-top: 18px; color: var(--body-dark); font-size: clamp(0.99rem, 1.2vw, 1.08rem); max-width: 44ch; }
.hero-actions { margin-top: 30px; display: flex; gap: 11px; flex-wrap: wrap; }

/* ---------- Greyscale marks row, faded at the edges ---------- */
.marks { padding-block: clamp(30px, 4vw, 46px); }
.marks ul {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  filter: grayscale(1);
  opacity: 0.75;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.marks li { display: flex; align-items: center; gap: 9px; font-size: 0.93rem; font-weight: 700; color: var(--body); }
.marks .icon { width: 19px; height: 19px; }

/* ---------- Section shells ---------- */
.section { padding-block: var(--section-y); }
.section-tight { padding-block: 0 var(--section-y); }

.head { max-width: 640px; margin-inline: auto; text-align: center; }
.head h2 { margin-top: 16px; font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.head > h2:first-child { margin-top: 0; }
.head p { margin-top: 16px; color: var(--body); font-size: 1.01rem; }

/* ---------- Dark panel ---------- */
.panel {
  background: var(--black);
  border-radius: var(--r-panel);
  padding: clamp(28px, 3.4vw, 44px);
  color: var(--white);
  display: flex; flex-direction: column;
}
.panel h2 { margin-top: 16px; font-size: clamp(1.75rem, 3.1vw, 2.4rem); color: var(--white); }
.panel > p { margin-top: 16px; color: var(--body-dark); font-size: 0.99rem; max-width: 44ch; }
.panel-actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }

.panel-note {
  margin-top: auto; padding-top: 30px;
  display: flex; align-items: center; gap: 16px;
}
.panel-note > div { display: flex; flex-direction: column; gap: 6px; }
.panel-note img {
  width: 74px; height: 66px; flex-shrink: 0;
  object-fit: cover; object-position: center 25%;
  border-radius: var(--r-sm);
}
.panel-note p { font-weight: 700; font-size: 0.97rem; }
.panel-note a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--yellow); }
.panel-note a:hover { text-decoration: underline; }

.panel-sm { padding: clamp(26px, 3vw, 34px); }
.hours-now-status { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.03em; }
.hours-now-detail { margin-top: 6px; color: var(--body-dark); font-size: 0.94rem; }

/* ---------- About row ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }

.about-media { position: relative; }
.about-media > img {
  width: 100%; height: 100%; min-height: 380px;
  object-fit: cover; object-position: center 24%;
  border-radius: var(--r-panel);
}
/* lighter wash on the about photo */
.about-media::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--r-panel);
  background: linear-gradient(to bottom, rgba(251, 248, 240, 0.12) 0%, rgba(251, 248, 240, 0.02) 45%, rgba(22, 19, 13, 0.24) 100%);
  pointer-events: none;
}
.float-cards {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.float-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.status-row { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 9px; height: 9px; border-radius: var(--r-dot); background: var(--muted); flex-shrink: 0; }
.status-dot.is-open { background: #3E9A5B; }
.status-dot.is-closed { background: #C0604F; }
.status-label { font-weight: 900; font-size: 1rem; letter-spacing: -0.02em; }
.float-title { font-weight: 900; font-size: 1rem; letter-spacing: -0.02em; }
.float-note { margin-top: 4px; color: var(--body); font-size: 0.83rem; }
.float-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 0.82rem; font-weight: 700; color: var(--yellow-press); }
.float-link:hover { text-decoration: underline; }

/* ---------- Stock cards ---------- */
.cards { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 22px 26px;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: #D6CFBB; }
.card h3 { font-size: 1rem; font-weight: 700; }
.card-icon {
  display: grid; place-items: center;
  margin-block: 30px 28px;
  color: #BDB6A4;
  transition: color 0.25s ease;
}
.card:hover .card-icon { color: var(--yellow-press); }
.card-icon svg { width: 58px; height: 58px; }
.card p { margin-top: auto; color: var(--body); font-size: 0.89rem; }

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 22px;
}
.stat-figure { display: block; font-size: clamp(1.7rem, 2.8vw, 2.15rem); font-weight: 900; letter-spacing: -0.04em; }
.stat-figure em { font-style: normal; color: var(--yellow-press); }
.stat-label { display: block; margin-top: 8px; font-size: 0.88rem; color: var(--body); }
.stat-note {
  display: flex; align-items: center; gap: 6px;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--body);
}
.stat-note .icon { color: var(--yellow-press); }

/* ---------- Hours ---------- */
.hours-grid { margin-top: 44px; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; align-items: start; }
.hours-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 16px;
}
.hours-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 0.95rem; color: var(--body);
}
.hours-list li span:first-child { font-weight: 700; color: var(--ink); }
.hours-list li.is-today { background: var(--yellow); color: var(--ink); }
.hours-list li.is-today span:last-child { font-weight: 700; }

.checks { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.9rem; color: var(--body-dark); }
.tick {
  display: grid; place-items: center; flex-shrink: 0;
  width: 22px; height: 22px; margin-top: 1px;
  border-radius: var(--r-sm);
  background: var(--yellow); color: var(--ink);
}
.panel-sm .btn { margin-top: 26px; width: 100%; }

/* ---------- Location ---------- */
.map-wrap { position: relative; margin-top: 44px; }
.map-frame {
  border-radius: var(--r-panel);
  overflow: hidden;
  border: 1px solid var(--line);
  height: clamp(370px, 42vw, 480px);
  background: var(--white);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-card {
  position: absolute; top: 24px; left: 24px; z-index: 2;
  width: min(330px, calc(100% - 48px));
  background: var(--white);
  border-radius: var(--r-card);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.map-card h3 { font-size: 1.15rem; }
.map-card p { margin-top: 10px; color: var(--body); font-size: 0.91rem; }
.map-card .btn { margin-top: 20px; width: 100%; }
.map-card-mail {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.83rem; color: var(--body);
  word-break: break-all;
}
.map-card-mail:hover { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--yellow);
  border-radius: var(--r-panel);
  padding: clamp(30px, 3.6vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.cta-band p { margin-top: 9px; color: var(--black-3); font-size: 0.97rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black); color: var(--white);
  border-radius: var(--r-panel);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px;
  padding-block: clamp(42px, 5vw, 64px);
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand p { margin-top: 14px; color: var(--body-dark); font-size: 0.9rem; max-width: 30ch; }
.social {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-top: 20px;
  border-radius: var(--r-card);
  background: var(--black-3); color: var(--white);
  transition: background 0.2s ease, color 0.2s ease, transform 0.3s var(--ease);
}
.social:hover { background: var(--yellow); color: var(--ink); transform: translateY(-2px); }

.footer-col h3 {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 15px;
}
.footer-col p, .footer-col a { display: block; margin-bottom: 9px; font-size: 0.9rem; color: var(--body-dark); }
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-block: 20px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--muted-dark); }
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted-dark); }
.footer-bottom a:hover { color: var(--yellow); }

/* ---------- Reveal (gated on JS, so a script failure cannot hide the page) ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media > img { min-height: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hours-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 880px) {
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.is-open { display: block; }
  .map-card { position: static; width: 100%; margin-bottom: 14px; box-shadow: none; border: 1px solid var(--line); }
  /* Text spans the full width here, so the wash is even rather than raked, and
     held at 0.87 so the grey headline half still clears 3:1 over the bright banner. */
  .hero::after {
    background: linear-gradient(to bottom, rgba(22, 19, 13, 0.90) 0%, rgba(22, 19, 13, 0.87) 55%, rgba(22, 19, 13, 0.90) 100%);
  }
}

@media (max-width: 620px) {
  .hero { min-height: 0; }
  .hero-inner { padding: 30px 22px 34px; }
  .hero-actions .btn { width: 100%; }
  .marks ul { justify-content: flex-start; gap: 16px 24px; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .float-cards { position: static; grid-template-columns: 1fr; margin-top: 12px; }
  .about-media::after { display: none; }
  .about-media > img { min-height: 300px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
