/* =========================================================
   Kinmel Mart — informational website
   Warm, natural orange-brand local mart identity
   ========================================================= */

:root {
  --brand:        #ea580c;
  --brand-dark:   #c2410c;
  --brand-deep:   #9a3412;
  --brand-tint:   #fff7ed;
  --brand-tint-2: #ffedd5;
  --ink:          #2b2018;
  --text:         #5d5044;
  --muted:        #837466;
  --line:         #eee1d2;
  --white:        #ffffff;
  --footer-bg:    #2a1708;
  --radius-lg:    22px;
  --radius-md:    14px;
  --shadow-sm:    0 2px 10px rgba(90, 45, 15, .07);
  --shadow-md:    0 10px 30px rgba(90, 45, 15, .12);
  --shadow-lg:    0 22px 55px rgba(90, 45, 15, .16);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--brand-tint-2); color: var(--brand-deep); }

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid rgba(234, 88, 12, .5);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease,
              transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(234, 88, 12, .28);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(234, 88, 12, .32);
}

.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border-color: rgba(234, 88, 12, .4);
}
.btn-outline:hover {
  background: var(--brand-tint);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.btn-dark {
  background: #292524;
  color: #fff;
}
.btn-dark:hover {
  background: #1c1917;
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 20px; font-size: .88rem; }

/* Google Play badge */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1c1917;
  color: #fff;
  border-radius: 14px;
  padding: 10px 20px 10px 16px;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-play:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(28, 25, 23, .28);
}
.btn-play svg { width: 26px; height: 26px; flex: none; }
.play-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.play-small {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
}
.play-big { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal-box { max-width: 780px; margin: 0 auto; }
.legal-box h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.legal-updated { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.legal-box h2 { font-size: 1.18rem; margin-top: 36px; }
.legal-box p { margin-top: 12px; }
.legal-box ul {
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc;
}
.legal-box li { margin-top: 8px; }
.legal-box a { color: var(--brand-dark); font-weight: 600; }
.legal-box a:hover { text-decoration: underline; }

/* ---------- Section labels / heads ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.section { padding: 96px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-sub {
  margin-top: 12px;
  font-size: 1.08rem;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--brand);
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-name span { color: var(--brand); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: var(--brand-dark); background: var(--brand-tint); }
.nav-link.is-active { color: var(--brand-dark); background: var(--brand-tint-2); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: var(--brand-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.menu-toggle .bar {
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5.4vw, 4rem);
}
.tagline {
  margin-top: 14px;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--brand-dark);
}
.lead {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--text);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink);
}
.hero-points svg { width: 21px; height: 21px; color: var(--brand); flex: none; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-card {
  position: absolute;
  left: -18px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 20px;
  box-shadow: var(--shadow-md);
}
.hero-card > svg { width: 26px; height: 26px; color: var(--brand); flex: none; }
.hero-card strong { display: block; color: var(--ink); font-size: .95rem; }
.hero-card span { display: block; font-size: .82rem; color: var(--muted); }

/* ---------- Branches ---------- */
.branches { background: var(--brand-tint); }

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.branch-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.branch-media { position: relative; }
.branch-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.chip {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .95);
  color: var(--brand-deep);
  font-size: .82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 14px; height: 14px; color: var(--brand); }

.branch-body {
  padding: 28px 30px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}
.branch-body h3 { font-size: 1.35rem; }
.branch-body p { color: var(--text); }

.branch-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
}
.branch-address svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 3px; }

.branch-contact {
  display: grid;
  gap: 8px;
  width: 100%;
}
.branch-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--brand-dark);
  transition: color .2s ease;
  word-break: break-all;
}
.branch-contact a:hover { color: var(--brand); text-decoration: underline; }
.branch-contact svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

.branch-body .btn { margin-top: auto; }

/* ---------- Founder ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.founder-media { position: relative; }
.founder-media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  background: var(--brand-tint-2);
  border: 1px solid rgba(234, 88, 12, .22);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.founder-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 5 / 4.4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.founder-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-top: 18px; }
.founder-name { font-size: 1.45rem; margin-top: 22px; color: var(--brand-deep); }
.founder-role {
  margin-top: 4px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.founder-copy > p:not(.eyebrow):not(.founder-role) {
  margin-top: 16px;
  font-size: 1.02rem;
  max-width: 58ch;
}

/* ---------- Developer ---------- */
.developer { padding: 40px 0 96px; }

.dev-card {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px 44px;
  box-shadow: var(--shadow-sm);
}
.dev-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto 18px;
  background: #faf6f0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
}
.dev-title {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.dev-name {
  margin-top: 8px;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #292524;
}
.dev-sub {
  margin-top: 4px;
  font-weight: 600;
  color: #6b5f56;
}
.dev-desc {
  margin: 16px auto 26px;
  max-width: 46ch;
  color: var(--muted);
  font-size: .97rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #e0cbb6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .9fr 1.2fr;
  gap: 44px;
  padding: 68px 0 52px;
}

.brand-light { color: #fb923c; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name span { color: #fb923c; }

.footer-tagline {
  margin-top: 16px;
  font-size: .98rem;
  color: #c8ab8e;
  max-width: 30ch;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #ecd9c6;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.socials a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }

.footer-col h3 {
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a {
  font-size: .95rem;
  color: #d3b79c;
  transition: color .2s ease;
}
.footer-col a:hover { color: #fb923c; }

.footer-contact li {
  display: flex;
  gap: 11px;
  font-size: .95rem;
  color: #d3b79c;
}
.footer-contact svg { width: 18px; height: 18px; color: #fb923c; flex: none; margin-top: 4px; }
.footer-contact strong {
  display: block;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.footer-contact a { color: #d3b79c; transition: color .2s ease; }
.footer-contact a:hover { color: #fb923c; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .88rem;
  color: #b3977c;
}
.footer-credit a {
  color: #d3b79c;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  transition: color .2s ease;
}
.footer-credit a:hover { color: #fb923c; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 48px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-card { left: 16px; }
  .founder-grid { grid-template-columns: 1fr; gap: 56px; }
  .founder-media { max-width: 520px; margin-inline: auto; }
  .founder-copy { text-align: center; }
  .founder-copy > p:not(.eyebrow):not(.founder-role) { margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 20px 24px 28px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility .28s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { display: block; padding: 13px 16px; border-radius: 12px; font-size: 1.02rem; }
  .nav-cta { justify-content: center; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .branch-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .header-inner { height: 68px; }
  html { scroll-padding-top: 84px; }
  .site-nav { inset: 68px 0 auto 0; }
  .hero { padding: 36px 0 72px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-card { position: static; margin-top: 16px; box-shadow: var(--shadow-sm); }
  .founder-media::before { inset: 14px -10px -14px 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 44px; }
  .dev-card { padding: 40px 24px 36px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
