@font-face {
  font-family: "Beausite Classic";
  src: url("/static/BeausiteClassic-Black.otf") format("opentype");
  font-weight: 900;
}
@font-face {
  font-family: "Beausite Classic";
  src: url("/static/BeausiteClassic-Thin.otf") format("opentype");
  font-weight: 100;
}

:root {
  --ink: #3a302b;          /* warm dark brown for text */
  --paper: #fff;
  --cream: #faf6ef;        /* page background */
  --sand: #f1e8da;         /* light beige (social buttons) */
  --accent: #d9a23f;       /* golden accent */
  --muted: #8a7d72;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: "Beausite Classic", system-ui, sans-serif;
  font-weight: 100;
  line-height: 1.5;
}

a { color: inherit; }

/* ---------- Header: just the large round logo ---------- */
#site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 16px 0;
  position: relative;
  z-index: 2;
}
/* soft cream band along the line, so the background seeds don't cross the links */
#site-header::before {
  content: "";
  position: absolute;
  /* reach 40px past the content, but never past the screen edge (no sideways scrolling) */
  left: calc(-1 * min(40px, (100vw - 100%) / 2));
  right: calc(-1 * min(40px, (100vw - 100%) / 2));
  top: calc(32px + 102px);   /* header padding + half the logo = the line's height */
  height: 100px;
  transform: translateY(-50%);
  /* solid along the whole line, fading softly above/below and at the far ends */
  background: linear-gradient(to bottom, rgba(250, 246, 239, 0), var(--cream) 30%, var(--cream) 70%, rgba(250, 246, 239, 0));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  z-index: -1;
  pointer-events: none;
}
/* the logo sits on a thin line, with section links on both sides */
.head-side { flex: 1; display: flex; align-items: center; gap: 28px; }
.head-left { justify-content: flex-end; }
.head-line { flex: 1; height: 1px; background: linear-gradient(to right, rgba(58, 48, 43, 0), rgba(58, 48, 43, 0.28)); }
.head-right .head-line { background: linear-gradient(to left, rgba(58, 48, 43, 0), rgba(58, 48, 43, 0.28)); }
.head-nav { display: flex; gap: 28px; }
.head-nav a {
  text-decoration: none;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s;
}
.head-nav a:hover { color: var(--accent); }
.head-social { display: flex; gap: 8px; }
.head-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(58, 48, 43, 0.1);
  transition: background 0.15s, color 0.15s;
}
.head-social a:hover { background: var(--ink); color: var(--paper); }
.head-social svg { width: 16px; height: 16px; }
.logo {
  flex: none;
  display: block;
  width: 204px;
  height: 204px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(58, 48, 43, 0.16);
  transition: transform 0.2s;
}
.logo:hover,
.logo:active { transform: rotate(-6deg); }   /* :active = the tilt also shows while a finger is on it */
.logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  transform: scale(1.13);   /* the image has a wide empty margin; this fills the white circle */
}

/* ---------- Middle ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 16px 40px;
}

main h1 {
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
main h2 {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin: 24px 0 8px;
}
main p { margin-bottom: 12px; max-width: 65ch; }

/* ---------- "Kepyklėlės": shop cards + map ---------- */
.find-us { margin-top: 72px; }
main > .find-us:first-child { margin-top: 0; }

.section-title {
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.find-us-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: stretch;   /* the map takes the height of the card list */
}

.shop-list { display: flex; flex-direction: column; gap: 16px; }
.shop-cards { display: flex; flex-direction: column; gap: 10px; }

/* Vilnius | Kaunas switcher */
.city-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(58, 48, 43, 0.06);
}
.city-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.city-tab:hover { color: var(--accent); }
.city-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.city-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-card {
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(58, 48, 43, 0.06);
  transition: box-shadow 0.2s;
}
.shop-card[open] { box-shadow: 0 8px 24px rgba(58, 48, 43, 0.12); }

.shop-card summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 100;   /* thin type in the address cards; only the small labels stay bold */
  font-size: 1.05rem;
}
.shop-card summary::-webkit-details-marker { display: none; }
.shop-card summary:hover .shop-address { color: var(--accent); }
.shop-card summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }

.shop-pin { display: flex; color: var(--accent); }
.shop-pin svg { width: 22px; height: 22px; }
.shop-address { flex: 1; transition: color 0.15s; }

/* chevron that flips when the card opens */
.shop-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
.shop-card[open] .shop-chevron { transform: rotate(-135deg) translate(-2px, -2px); }

.shop-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  padding: 0 20px 20px 56px;
}
.shop-body p { margin-bottom: 4px; }
.shop-label {
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.shop-body a { font-weight: 100; text-decoration: none; }
.shop-body a:hover { color: var(--accent); }
.shop-note { font-size: 0.85rem; color: var(--muted); max-width: none; }
.shop-hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  font-weight: 100;
}
.shop-hours dd { margin: 0; }
.shop-directions {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--accent);
}

.shop-map {
  position: relative;
  height: auto;              /* desktop: as tall as the card list ... */
  min-height: 420px;         /* ... but never tiny (e.g. Kaunas has one card) */
  margin: 14px 0;            /* a little inset at the top and bottom */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(58, 48, 43, 0.12);
  background: var(--sand);
  z-index: 0;
}
.map-error { padding: 24px; color: var(--muted); }
.map-marker {
  cursor: pointer;
  transform: translateY(50%); /* Google anchors pins at the bottom; centre ours on the spot */
}
.map-pin {
  display: block;
  width: 46px;               /* desktop; smaller maps on tablets/phones use 38px */
  height: 46px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
/* the round logo, scaled up a touch so the cookie fills the badge */
.map-pin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.18);   /* the image has a wide empty margin; this makes the ring nearly fill the pin */
}
.map-marker:hover .map-pin { transform: scale(1.1); }
/* open card's shop: gold ring */
.map-pin.is-active {
  border: 3px solid var(--accent);
  transform: scale(1.2);
}
/* pin of the card under the mouse: just enlarges */
.map-pin.is-hover { transform: scale(1.3); }

@media (max-width: 900px) {
  #site-header { gap: 20px; }
  .head-side, .head-nav { gap: 16px; }
  .head-nav a { font-size: 0.72rem; letter-spacing: 0.08em; }
  .find-us-grid { grid-template-columns: 1fr; }
  .shop-map { height: 380px; min-height: 0; margin: 0; order: -1; }
  .map-pin { width: 38px; height: 38px; }
}

@media (max-width: 640px) {
  .find-us { margin-top: 48px; }
  .section-title { font-size: 1.5rem; }
  .shop-body { grid-template-columns: 1fr; padding: 0 16px 18px 52px; }
  .shop-card summary { padding: 14px 16px; }
  .shop-map { height: 300px; }
}

/* Phone */
@media (max-width: 640px) {
  /* phones: big logo near the top, then the headline, then the photo */
  :root { --m-logo: min(56vw, 236px); }
  #site-header { padding: 40px 16px 0; }
  .head-side, #site-header::before { display: none; }   /* phones: just the logo */
  .logo { width: var(--m-logo); height: var(--m-logo); }
  main { padding-top: 48px; }
  main h1 { font-size: 1.5rem; }
}
