/* =========================================================
   Kornfeld's Department Store — Shared Styles
   Fonts: Oswald (display, all caps) + Libre Franklin (body)
   Palette: Burgundy #68313e · Sage #a7a08b · Cream tans · White
   ========================================================= */

:root {
  --burgundy: #68313e;
  --burgundy-deep: #4d2530;
  --burgundy-soft: #7d4250;
  --sage: #a7a08b;
  --sage-deep: #8d8670;
  --sage-light: #c2bba6;
  --cream: #f6f3ec;
  --cream-2: #efe9dd;
  --tan: #e6dfd0;
  --tan-deep: #d8cfbb;
  --ink: #2b2521;
  --ink-soft: #5a514a;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(43, 37, 33, 0.08);
  --shadow-md: 0 10px 30px rgba(43, 37, 33, 0.12);
  --shadow-lg: 0 24px 60px rgba(43, 37, 33, 0.18);

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Libre Franklin", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.04;
  margin: 0;
  color: var(--burgundy);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--sage-deep);
  display: inline-block;
  margin-bottom: 14px;
}

.section { padding-block: clamp(56px, 8vw, 110px); }
.section--cream { background: var(--cream); }
.section--tan { background: var(--cream-2); }
.section--burgundy { background: var(--burgundy); color: var(--cream); }
.section--burgundy h1,
.section--burgundy h2,
.section--burgundy h3 { color: var(--white); }
.section--burgundy .eyebrow { color: var(--sage-light); }

.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head p { font-size: 1.08rem; color: var(--ink-soft); margin-top: 16px; }
.section--burgundy .section-head p { color: rgba(246,243,236,0.82); }
.section--burgundy .split__body p,
.section--burgundy > .container > .split p { color: rgba(246,243,236,0.88); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--burgundy);
  --fg: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 15px 30px;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  min-height: 48px;
  line-height: 1;
}
.btn:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); transform: translateY(-2px); }
.btn--sage { --bg: var(--sage); --fg: var(--burgundy-deep); }
.btn--sage:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--white); }
.btn--ghost {
  background: transparent; color: var(--cream); border-color: rgba(246,243,236,0.55);
}
.btn--ghost:hover { background: var(--cream); color: var(--burgundy); border-color: var(--cream); }
.btn--outline { background: transparent; color: var(--burgundy); border-color: var(--burgundy); }
.btn--outline:hover { background: var(--burgundy); color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--burgundy);
  border-bottom: 3px solid var(--burgundy-deep);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding-block: 12px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--cream);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: background .18s ease, color .18s ease;
}
.nav a:hover, .nav a[aria-current="page"] {
  background: var(--burgundy-deep);
  color: var(--white);
}
.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-cta .btn { padding: 12px 22px; font-size: 0.85rem; min-height: 44px; }

.mobile-menu { display: none; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(246,243,236,0.5);
  border-radius: var(--radius);
  width: 48px; height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); transition: .25s; }

/* phone icon shown beside burger on tablet/mobile */
.mobile-actions { display: none; align-items: center; gap: 10px; }
.header-phone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 46px; border-radius: var(--radius);
  background: var(--sage); color: var(--burgundy-deep);
  border: 2px solid var(--sage); transition: background .2s, color .2s, border-color .2s;
}
.header-phone:hover { background: var(--sage-deep); color: #fff; border-color: var(--sage-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(460px, 72vh, 720px);
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(43,20,26,0.62) 0%, rgba(77,37,48,0.45) 45%, rgba(43,20,26,0.78) 100%),
    linear-gradient(90deg, rgba(43,20,26,0.55), rgba(43,20,26,0.15));
}
.hero__inner { position: relative; z-index: 2; padding-block: 80px; max-width: 880px; }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 6.2vw, 5rem); font-weight: 600; }
.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 620px;
  margin-top: 22px;
  color: rgba(246,243,236,0.92);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* page hero (interior) */
.pagehero {
  position: relative;
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  min-height: clamp(320px, 46vh, 460px);
  overflow: hidden;
}
.pagehero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pagehero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,20,26,0.30) 0%, rgba(43,20,26,0.55) 60%, rgba(43,20,26,0.85) 100%);
}
.pagehero__inner { position: relative; z-index: 2; padding-block: 48px; max-width: 820px; }
.pagehero h1 { color: var(--white); font-size: clamp(2.2rem, 5.4vw, 4rem); }
.pagehero .eyebrow { color: var(--sage-light); }
.pagehero p { color: rgba(246,243,236,0.9); font-size: 1.1rem; max-width: 640px; margin-top: 16px; margin-bottom: 0; }

/* breadcrumb */
.crumbs { background: var(--cream); border-bottom: 1px solid var(--tan); }
.crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0; padding: 14px 0; font-size: 0.86rem; color: var(--ink-soft);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em;
}
.crumbs a:hover { color: var(--burgundy); }
.crumbs li[aria-current] { color: var(--burgundy); }
.crumbs .sep { color: var(--sage); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.split__media.landscape img { aspect-ratio: 4 / 3; }
.split__body h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.split__body p { color: var(--ink-soft); margin-top: 16px; }
.split--burgundy-body .split__body p { color: rgba(246,243,236,0.85); }
.media-badge {
  position: absolute; left: -14px; bottom: 24px;
  background: var(--burgundy); color: var(--cream);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; font-size: 0.95rem; padding: 12px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-md); line-height: 1.2; max-width: 70%;
}

/* ---------- Department / category cards ---------- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 52px;
}
.dept-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.dept-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.dept-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.dept-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dept-card:hover .dept-card__img img { transform: scale(1.05); }
.dept-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.dept-card__body h3 { font-size: 1.5rem; }
.dept-card__body p { color: var(--ink-soft); font-size: 0.98rem; margin: 12px 0 20px; flex: 1; }
.dept-card__link {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; font-size: 0.9rem; color: var(--burgundy);
  display: inline-flex; align-items: center; gap: 8px;
}
.dept-card__link .arrow { transition: transform .2s ease; }
.dept-card:hover .dept-card__link .arrow { transform: translateX(5px); }

/* ---------- Checklists ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.checklist li {
  position: relative; padding-left: 36px; font-size: 1.04rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.section--burgundy .checklist li::before { background: var(--sage-light); }

/* feature panel (selection + image) */
.feature-panel {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature-panel.reverse > .feature-panel__media { order: -1; }
.feature-panel__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.feature-panel__body h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.feature-panel__body > p { color: var(--ink-soft); margin: 14px 0 26px; }
.feature-panel__body .eyebrow { margin-bottom: 12px; }

/* card grid of small image tiles */
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.tile {
  border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow-sm); border: 1px solid var(--tan);
  aspect-ratio: 2 / 3; background: var(--cream-2);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(43,20,26,0.85));
  color: var(--cream); padding: 28px 18px 16px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 500; font-size: 1.02rem;
}

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--white); line-height: 1; }
.stat__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--sage-light); margin-top: 10px; }

/* ---------- Testimonials ---------- */
.reviews-carousel {
  display: flex; align-items: center; gap: 14px; margin-top: 50px;
  --rev-visible: 3; --rev-gap: 26px;
}
.reviews-viewport {
  overflow-x: auto; overflow-y: hidden; flex: 1 1 0; min-width: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.reviews-viewport::-webkit-scrollbar { display: none; }
.reviews-track {
  display: flex; gap: var(--rev-gap);
  padding: 4px 2px;
}
.reviews-track .review {
  flex: 0 0 calc((100% - (var(--rev-visible) - 1) * var(--rev-gap)) / var(--rev-visible));
  scroll-snap-align: start;
}
.rev-arrow {
  flex: 0 0 auto; align-self: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--burgundy); color: var(--cream); border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, opacity .2s, transform .15s;
  box-shadow: var(--shadow-sm);
}
.rev-arrow:hover { background: var(--burgundy-deep); transform: scale(1.05); }
.rev-arrow:disabled { opacity: 0.3; cursor: default; transform: none; }
.review {
  margin: 0;
  background: var(--white); border: 1px solid var(--tan); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.review__stars { color: #d8a83a; letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 14px; }
.review__text { font-size: 1.05rem; color: var(--ink); flex: 1; margin: 0 0 18px; }
.review__who { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; color: var(--burgundy); font-size: 0.95rem; }
.review__meta { font-size: 0.82rem; color: var(--ink-soft); margin-top: 2px; }
.review-source {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  font-size: 0.92rem; color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-top: 44px; }
.faq details {
  border-bottom: 1px solid var(--tan);
  padding: 6px 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em;
  font-weight: 500; font-size: 1.12rem; color: var(--burgundy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 300; font-size: 1.9rem; color: var(--sage-deep);
  transition: transform .25s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 0 0 22px; padding-right: 24px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--burgundy); color: var(--cream); text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.2rem); }
.cta-band p { max-width: 600px; margin: 16px auto 30px; color: rgba(246,243,236,0.85); font-size: 1.1rem; }
.cta-band .hero__actions { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--burgundy-deep); color: rgba(246,243,236,0.82); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 64px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 0.96rem; color: rgba(246,243,236,0.72); max-width: 320px; }
.footer-col h4 { color: var(--sage-light); font-size: 1rem; letter-spacing: 0.12em; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a, .footer-col address {
  color: rgba(246,243,236,0.8); font-style: normal; font-size: 0.96rem; transition: color .18s;
}
.footer-col a:hover { color: var(--white); }
.footer-contact .line { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px; font-size: 0.96rem; }
.footer-contact .line svg { flex-shrink: 0; margin-top: 3px; color: var(--sage-light); }
.footer-map {
  border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(246,243,236,0.18);
  width: 100%; height: 160px; align-self: start;
}
.footer-map iframe { width: 100%; height: 100%; min-height: 160px; border: 0; display: block; filter: saturate(0.9); }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(246,243,236,0.1); color: var(--cream);
  transition: background .2s, transform .2s;
}
.social:hover { background: var(--sage); color: var(--burgundy-deep); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(246,243,236,0.14);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: rgba(246,243,236,0.6);
}
.footer-bottom a:hover { color: var(--white); }

/* ---------- Utilities ---------- */
.lede { font-size: 1.18rem; color: var(--ink-soft); }
.stack-lg > * + * { margin-top: 28px; }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.divider { height: 3px; width: 104px; background: var(--sage); border: 0; margin: 24px 0 26px; }
.center .divider { margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-map-col { grid-column: 1 / -1; }
  .dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-actions { display: flex; }
  .header-cta.mobile-show { display: none; }

  .mobile-menu {
    background: var(--burgundy-deep);
    border-top: 1px solid rgba(246,243,236,0.15);
  }
  .mobile-menu.open { display: block; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 12px var(--gutter) 18px; display: grid; gap: 4px; }
  .mobile-menu a {
    display: block; padding: 14px 8px; color: var(--cream);
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 1.05rem; border-bottom: 1px solid rgba(246,243,236,0.08);
  }
  .mobile-menu .mm-cta { display: flex; gap: 12px; padding: 16px var(--gutter) 22px; flex-wrap: wrap; justify-content: center; }
  .mobile-menu .mm-cta .btn { justify-content: center; min-width: 200px; }

  .split, .feature-panel { grid-template-columns: 1fr; }
  .split--reverse .split__media, .feature-panel.reverse > .feature-panel__media { order: 0; }
  .split__media img { aspect-ratio: 4 / 3; }
  .checklist.cols-2 { grid-template-columns: 1fr; }
  .header-inner { gap: 14px; }
  .hero__inner { padding-block: 64px; }
  .pagehero__inner { padding-block: 40px; }
}

@media (max-width: 1080px) {
  .reviews-carousel { --rev-visible: 2; --rev-gap: 20px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { height: 40px; }
  .header-inner { min-height: 66px; }
  .dept-grid { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero { min-height: 78vh; }
  .hero__inner { padding-block: 52px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .media-badge { left: 12px; bottom: 14px; font-size: 0.82rem; padding: 10px 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .faq summary { font-size: 1.02rem; padding-right: 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .reviews-carousel { --rev-visible: 1; gap: 8px; }
  .rev-arrow { width: 42px; height: 42px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
