/* Imagine That — boutique shop site, Bend, Oregon
   Brand red and cream tokens follow the Imagine That palette. */

@font-face {
  font-family: "Cinzel";
  src: url("../assets/fonts/Cinzel-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Josefin Sans";
  src: url("../assets/fonts/JosefinSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --it-red: #ce3247;
  --it-red-deep: #b4283c;
  --it-red-soft: #e45a6c;
  --gold: #c9a36a;
  --gold-light: #e8c878;
  --bg: #fbf7ef;
  --bg-alt: #f4eee4;
  --surface: #ffffff;
  --text: #2a241c;
  --muted: #5c5348;
  --line: #e2d6c4;
  --ink: #1a1412;
  --ink-soft: #2b2420;
  --header-bg: rgba(251, 247, 239, 0.94);
  --max: 1120px;
  --pad: 24px;
  --header-h: 76px;
  --sticky-call-h: 64px;
  --radius: 14px;
  --shadow: 0 12px 36px rgba(42, 36, 28, 0.08);
  --shadow-soft: 0 6px 20px rgba(42, 36, 28, 0.06);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--it-red);
  --font-display: "Cinzel", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-kicker: "Josefin Sans", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}

@media (max-width: 839px) {
  body {
    padding-bottom: var(--sticky-call-h);
  }
}

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

picture {
  display: block;
}

a {
  color: var(--it-red-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--it-red);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--it-red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--it-red);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  color: #fff;
  outline-color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(206, 50, 71, 0.35);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--it-red);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: var(--it-red);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 28px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  display: inline-block;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
}

.site-nav a:not(.btn):hover {
  color: var(--it-red);
}

.site-nav a[aria-current="page"] {
  color: var(--it-red);
  background: rgba(206, 50, 71, 0.08);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-call,
.btn-primary {
  background: var(--it-red);
  color: #fff;
  border-color: var(--it-red);
}

.btn-call:hover,
.btn-primary:hover,
.btn-call:focus-visible,
.btn-primary:focus-visible {
  background: var(--it-red-deep);
  border-color: var(--it-red-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--it-red);
  color: var(--it-red-deep);
  background: rgba(206, 50, 71, 0.05);
}

.btn-gold {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: rgba(201, 163, 106, 0.12);
  color: var(--gold-light);
}

.header-inner .btn-call {
  padding: 9px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.kicker {
  margin: 0 0 10px;
  font-family: var(--font-kicker);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--it-red);
}

.section-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.lede {
  margin: 0 0 28px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: 36px;
}

.rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 28px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(86vh, 840px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-media picture,
.hero-media source {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 60%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 20, 18, 0.15) 0%, rgba(26, 20, 18, 0.28) 40%, rgba(26, 20, 18, 0.78) 100%),
    linear-gradient(90deg, rgba(26, 20, 18, 0.45) 0%, rgba(26, 20, 18, 0.05) 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--pad) 72px;
}

.hero-content .kicker {
  color: var(--gold-light);
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: 0.03em;
  color: #fff;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 28rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: rgba(251, 247, 239, 0.92);
}

/* ---------- Hours band ---------- */

.hours-band {
  background: var(--ink);
  color: #f5eee6;
  padding: 56px 0;
  text-align: center;
}

.hours-band .kicker {
  color: var(--gold-light);
}

.hours-band-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  color: #fff;
}

.hours-band p {
  margin: 0 auto 22px;
  max-width: 32rem;
  color: rgba(245, 238, 230, 0.82);
}

.hours-band .btn-row {
  justify-content: center;
}

/* ---------- Cards / categories ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.card:hover,
a.card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

a.card:hover .card-media img,
a.card:focus-visible .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-body h2,
.card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.card-body h2 {
  font-size: 1.3rem;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-more {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--it-red);
}

/* Products page uses larger cards, still 3-col on desktop */
.card-grid.cards-roomy .card-body {
  padding: 24px 24px 26px;
}

.card-grid.cards-roomy .card-body p {
  font-size: 0.98rem;
}

/* ---------- Visit teaser / split ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.detail-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.detail-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.detail-list .icon {
  width: 22px;
  height: 22px;
  color: var(--it-red);
  margin-top: 3px;
}

.detail-list strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.detail-list p,
.detail-list address {
  margin: 0;
  font-style: normal;
  color: var(--text);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 56px 0 28px;
  background:
    radial-gradient(800px 280px at 100% 0%, rgba(206, 50, 71, 0.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.page-hero .section-title {
  margin-bottom: 10px;
}

.page-hero .lede {
  margin-bottom: 0;
}

/* ---------- Visit / map ---------- */

.visit-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.address-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 30px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.address-card h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.map-wrap {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  box-shadow: var(--shadow-soft);
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 28px;
  background:
    radial-gradient(500px 240px at 80% 20%, rgba(206, 50, 71, 0.08), transparent 60%),
    linear-gradient(160deg, #f4eee4, #e8dcc8);
  color: var(--text);
  z-index: 0;
}

.map-fallback strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.map-fallback p {
  margin: 0;
  color: var(--muted);
}

.map-wrap iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  background: transparent;
}

.hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(206, 50, 71, 0.1);
  color: var(--it-red-deep);
  font-weight: 600;
  font-size: 0.92rem;
  width: max-content;
}

/* ---------- Contact form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
}

.form-row input:hover,
.form-row textarea:hover {
  border-color: #d0c3ae;
}

.form-row input:focus-visible,
.form-row textarea:focus-visible {
  outline: 3px solid var(--it-red);
  outline-offset: 2px;
  border-color: var(--it-red);
  background: #fff;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  margin-top: 8px;
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.call-panel {
  background: var(--ink);
  color: #f5eee6;
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.call-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
}

.call-panel p {
  margin: 0 0 20px;
  color: rgba(245, 238, 230, 0.82);
}

.call-panel .btn-call {
  width: 100%;
  padding: 14px 20px;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #e8dfd4;
  padding: 56px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .brand-name {
  color: #fff;
  font-size: 1.35rem;
}

.footer-brand .brand {
  color: #fff;
  width: max-content;
}

.footer-brand p {
  margin: 0;
  max-width: 26rem;
  color: rgba(232, 223, 212, 0.78);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-family: var(--font-kicker);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.site-footer address {
  font-style: normal;
  margin: 0 0 10px;
}

.site-footer a {
  color: #f5eee6;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold-light);
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(232, 223, 212, 0.7);
}

.age-note {
  color: #f5eee6;
  font-weight: 600;
}

/* ---------- Sticky tap-to-call (phone) ---------- */

.sticky-call {
  display: none;
}

@media (max-width: 839px) {
  .sticky-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    height: var(--sticky-call-h);
    padding: 0 16px calc(env(safe-area-inset-bottom, 0px));
    min-height: var(--sticky-call-h);
    background: var(--it-red);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.06em;
    box-shadow: 0 -6px 20px rgba(26, 20, 18, 0.2);
  }

  .sticky-call:hover,
  .sticky-call:focus-visible {
    color: #fff;
    background: var(--it-red-deep);
  }
}

/* ---------- Mobile nav ---------- */

@media (max-width: 839px) {
  :root {
    --pad: 18px;
    --header-h: 64px;
  }

  .header-inner {
    min-height: 64px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0 20px;
    gap: 8px;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 14px 6px;
    font-size: 0.92rem;
    border-radius: 8px;
  }

  .header-inner .btn-call {
    width: 100%;
    margin-top: 6px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero {
    min-height: min(78vh, 680px);
  }

  .hero-content {
    padding: 48px var(--pad) 48px;
  }

  .section {
    padding: 52px 0;
  }

  .card-grid,
  .split,
  .visit-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 28px;
  }

  .contact-form,
  .address-card,
  .call-panel {
    padding: 22px;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 280px;
  }
}

@media (min-width: 640px) and (max-width: 839px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 639px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .btn-row .btn {
    flex: 1 1 auto;
  }
}

@media (min-width: 840px) {
  .nav-toggle {
    display: none !important;
  }

  .site-nav {
    display: flex !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .sticky-call,
  .nav-toggle,
  .btn-row,
  .contact-form,
  .map-wrap iframe {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding: 0;
  }

  .site-footer {
    background: #fff;
    color: #000;
    border-top: 1px solid #ccc;
  }

  a[href^="tel:"]::after,
  a[href^="http"]::after {
    content: none;
  }
}
