/* Landing page (/) only: seed background, hero with photo carousel, thin type.
   Loaded after style.css by index.html. */

/* ---- seeds as a quiet background behind the whole landing page ---- */
/* overflow on <html> goes to the browser window, which lets <body> keep its own clip
   below; without it the body's clip is handed to the window and the fades can still
   cause a little sideways scrolling */
html { scroll-behavior: smooth; overflow-x: clip; }
/* clip at the page edge (not the content column), so the wide text glow fades out
   naturally instead of being cut off, and still never causes sideways scrolling */
body.seeds { position: relative; overflow-x: clip; }
/* seeds repeat down the whole page */
body.seeds::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/static/kmynai-pattern.svg") center top / max(1500px, 110vw) auto repeat-y;
  /* full strength across the first screen, then fade to a quieter level for the rest */
  --seeds-rest: rgba(0, 0, 0, 0.35);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 70vh, var(--seeds-rest) 110vh, var(--seeds-rest) 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 70vh, var(--seeds-rest) 110vh, var(--seeds-rest) 100%);
  z-index: -1;
  pointer-events: none;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 56px;
  padding: 16px 16px 24px;
}
.home-hero-text { position: relative; }
/* soft cream glow centred on the headline, so the seeds never cross the words.
   The headline's box hugs its text exactly, so the glow is centred on the words. */
.home-hero h1 { position: relative; width: fit-content; max-width: none; white-space: nowrap; }   /* always one line */
.home-hero h1::before {
  content: "";
  position: absolute;
  inset: -90px -180px;   /* wide for the one-line headline, centred on it */
  background: radial-gradient(closest-side,
    var(--cream) 0%,
    var(--cream) 62%,
    rgba(250, 246, 239, 0.8) 80%,
    rgba(250, 246, 239, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

/* shared white photo frame */
.frame {
  margin: 0;
  padding: 10px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(58, 48, 43, 0.18);
}
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* ---- A: carousel ---- */
.gal-a { justify-self: center; width: 100%; max-width: 420px; }
.gal-a .frame { transform: rotate(2deg); }
.slides { position: relative; aspect-ratio: 4 / 5; touch-action: pan-y; }
.slides img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slides img.is-current { opacity: 1; }
.car-btn {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-family: inherit;
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 40px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: background 0.15s;
}
.car-btn:hover { background: var(--paper); color: var(--accent); }
.car-prev { left: 10px; }
.car-next { right: 10px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: rgba(58, 48, 43, 0.25);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
.dot[aria-current="true"] { width: 26px; background: var(--ink); }

.home-hero h1 {
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 0;
}
.home-hero p {
  font-size: 1.15rem;
  max-width: 34ch;
  margin: 0 0 32px;
}

/* thin (non-bold) Beausite Classic weight for the hero and the section heading.
   The shop cards and info cards keep the normal (bold) site styles. */
.home-hero,
.home-hero *,
.home-main .section-title { font-weight: 100 !important; }

main.home-main { padding-top: 8px; }
.home-main .find-us { margin-top: 0; }
/* map: same soft box-shadow as the location cards */
.home-main .shop-map {
  box-shadow:
    0 2px 10px rgba(58, 48, 43, 0.06),
    0 8px 24px rgba(58, 48, 43, 0.12);
}
/* soft cream "clearing" in the seeds behind the section heading */
.home-main .section-title { position: relative; display: inline-block; }
.home-main .section-title::before {
  content: "";
  position: absolute;
  inset: -28px -48px;
  background: radial-gradient(closest-side, var(--cream) 55%, rgba(250, 246, 239, 0) 100%);
  z-index: -1;
}

/* ---- Karjera + Kontaktai sections (moved here from their own pages) ---- */
.home-main .find-us,
.career,
.contacts { scroll-margin-top: 24px; }

.career {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 64px;
}
.career-photo {
  justify-self: center;
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 10px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(58, 48, 43, 0.18);
  transform: rotate(-2deg);
}
.career-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 90%;   /* tall photo: keep the cup and pastry, trim the blurry top */
  border-radius: 10px;
}
.career-text p:not(.label) { font-size: 1.1rem; max-width: 46ch; margin-bottom: 16px; }

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  margin-bottom: 40px;
}
.contacts-text p { font-size: 1.1rem; max-width: 40ch; }

/* the same soft cream fade as behind the hero headline, so seeds never cross the text.
   Each text block is as wide as its paragraphs, so the fade is centred on the words. */
.career-text { position: relative; max-width: calc(46ch * 1.1); }   /* = the paragraphs' 46ch at 1.1rem */
.contacts-text { position: relative; max-width: calc(40ch * 1.1); }
.career-text::before,
.contacts-text::before {
  content: "";
  position: absolute;
  inset: -110px -140px;
  background: radial-gradient(closest-side,
    var(--cream) 0%,
    var(--cream) 62%,
    rgba(250, 246, 239, 0.8) 80%,
    rgba(250, 246, 239, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

/* "Kepyklėlės" heading + one-line intro, on its own soft fade */
.find-us-head { position: relative; width: fit-content; max-width: 100%; margin-bottom: 28px; }
.find-us-head .section-title { margin-bottom: 10px; }
.find-us-head p { font-size: 1.1rem; margin: 0; max-width: none; }
.find-us-head::before {
  content: "";
  position: absolute;
  inset: -70px -120px;
  background: radial-gradient(closest-side,
    var(--cream) 0%,
    var(--cream) 62%,
    rgba(250, 246, 239, 0.8) 80%,
    rgba(250, 246, 239, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

/* white card, as on the old Karjera and Kontaktai pages */
.info-card {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(58, 48, 43, 0.06), 0 8px 24px rgba(58, 48, 43, 0.12);
  max-width: 46ch;
}
.contacts-card { margin-top: 0; display: grid; gap: 18px; padding: 26px 28px; width: 100%; }
.info-card .label {
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.info-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 100;   /* thin, like the address cards; the small labels stay bold */
  font-size: 1.15rem;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.15s;
}
.info-link:hover { color: var(--accent); }
.info-link svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.info-social { display: flex; gap: 10px; margin-top: 4px; }
.info-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.info-social a:hover { background: var(--ink); color: var(--paper); }
.info-social svg { width: 20px; height: 20px; }

/* ---- "Gauk 10% nuolaidą": a tear-off coupon to show at the counter ---- */
.coupon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  scroll-margin-top: 24px;
}
/* soft cream fade behind the heading and coupon */
.coupon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -60px;
  bottom: -60px;
  width: 700px;              /* sized to the 460px card */
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--cream) 0%, var(--cream) 62%, rgba(250, 246, 239, 0.8) 80%, rgba(250, 246, 239, 0) 100%);
  z-index: -1;
  pointer-events: none;
}
/* The card is two white pieces (top + tear-off strip). Each piece has real half-circle
   holes cut out where they meet, so the page background shows through the notches.
   The shadow is a drop-shadow on the wrapper, so it follows the cut-out shape. */
@media (min-width: 861px) {
  .coupon::before {
    background: radial-gradient(closest-side, var(--cream) 0%, var(--cream) 62%, rgba(250, 246, 239, 0.8) 0%, rgba(250, 246, 239, 0) 100%);
  }
}
.coupon-card {
  position: relative;
  width: min(460px, 100%);
  /* a little tilt, like the photos. translateZ + will-change give the card its own
     drawing layer: without it Chrome can skip drawing the text when the tilt and the
     drop-shadow below are combined (seen on phones). */
  transform: rotate(-1.5deg) translateZ(0);
  will-change: transform;
  filter: drop-shadow(0 2px 5px rgba(58, 48, 43, 0.07)) drop-shadow(0 14px 22px rgba(58, 48, 43, 0.13));
}
.coupon-top,
.coupon-bottom { background: var(--paper); }
.coupon-top {
  border-radius: 18px 18px 0 0;
  -webkit-mask:
    radial-gradient(circle 12px at left bottom, transparent 11.5px, #000 12px) left / 51% 100% no-repeat,
    radial-gradient(circle 12px at right bottom, transparent 11.5px, #000 12px) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle 12px at left bottom, transparent 11.5px, #000 12px) left / 51% 100% no-repeat,
    radial-gradient(circle 12px at right bottom, transparent 11.5px, #000 12px) right / 51% 100% no-repeat;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 26px 20px;
  text-align: left;
}
.coupon-logo {
  flex: none;
  width: 92px;
  height: 92px;
  object-fit: contain;
}
.coupon-info p { margin: 0; max-width: none; }
.coupon-label {
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.coupon-value {
  font-weight: 900;
  font-size: 3.8rem;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 6px 0 8px !important;
}
.coupon-text { font-size: 1rem; line-height: 1.4; }
/* tear-off strip: dashed line between the two notches */
.coupon-bottom {
  position: relative;
  margin: 0;
  max-width: none;
  padding: 14px 20px 16px;
  border-top: 2px dashed rgba(58, 48, 43, 0.2);
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.coupon-bottom {
  border-radius: 0 0 18px 18px;
  -webkit-mask:
    radial-gradient(circle 12px at left top, transparent 11.5px, #000 12px) left / 51% 100% no-repeat,
    radial-gradient(circle 12px at right top, transparent 11.5px, #000 12px) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle 12px at left top, transparent 11.5px, #000 12px) left / 51% 100% no-repeat,
    radial-gradient(circle 12px at right top, transparent 11.5px, #000 12px) right / 51% 100% no-repeat;
}

/* ---- divider between sections: thin lines with three caraway seeds ---- */
.divider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(360px, 80%);
  margin: 50px auto;          /* the dividers set the space between sections */
  padding: 30px 0;
  color: var(--ink);   /* same dark as the logo */
  /* soft cream patch so the background seeds don't crowd the divider */
  background: radial-gradient(closest-side, var(--cream) 55%, rgba(250, 246, 239, 0) 100%) center / 100% 90px no-repeat;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(58, 48, 43, 0), rgba(58, 48, 43, 0.28));
}
.divider::after { background: linear-gradient(to left, rgba(58, 48, 43, 0), rgba(58, 48, 43, 0.28)); }
.divider svg { width: 64px; height: 24px; flex: none; }

/* desktop: more room between the logo and the carousel */
@media (min-width: 861px) {
  .home-hero { padding-top: 56px; }
}

@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .home-hero h1, .home-hero p { margin-left: auto; margin-right: auto; }
  .gal-a { max-width: 340px; }
  .career, .contacts { grid-template-columns: 1fr; gap: 40px; }
  .career-photo { max-width: 340px; }
}

@media (max-width: 640px) {
  body.seeds::before { background-size: 1100px auto; }
  .home-hero { padding: 40px 8px 16px; }
  .home-hero-text { margin-bottom: 16px; }   /* a little extra room above the photo */
  .gal-a { max-width: 290px; }
  .gal-a .frame { padding: 8px; }
  .home-hero p { font-size: 1.05rem; }
  .home-hero h1 { font-size: min(2rem, 8.6vw); }   /* one line fits even on narrow phones */
  .divider { margin: 24px auto; }
  .career-photo { display: none; }   /* phones: text only */
  .career-text p:not(.label), .contacts-text p { font-size: 1.02rem; }
  .info-link { font-size: 1.02rem; }
  .find-us-head p { font-size: 1.02rem; }
  .contacts-card { padding: 22px 20px; }
  .coupon-top { flex-direction: column; text-align: center; gap: 12px; padding: 24px 20px 18px; }
  .coupon-logo { width: 88px; height: 88px; }
  .coupon-value { font-size: 3.4rem; }
  .coupon-text { font-size: 1rem; }
}
