/* =========================================================
   IS POSTERI — styles
   Palette: #FFE98D yellow · #472083 purple · #FCF7EE cream · #F5ECDF sand
   ========================================================= */
:root {
  --yellow: #FFE98D;
  --purple: #472083;
  --purple-ink: #2E1556;
  --cream: #FCF7EE;
  --sand: #F5ECDF;
  --ink: #2A2238;
  --muted: #5E5670;
  --line: rgba(71, 32, 131, .14);

  --font: "Montserrat", "Noto Sans Georgian", system-ui, sans-serif;
  --radius: 6px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; }

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

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
}
:lang(ka) .eyebrow { letter-spacing: .06em; }

.display {
  font-weight: 900;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--purple);
  text-wrap: balance;
}
/* Georgian: no uppercase (Mtavruli needs font support), slightly smaller to fit longer words */
:lang(ka) .display { text-transform: none; font-size: clamp(34px, 4.8vw, 62px); line-height: 1.12; letter-spacing: 0; }

.h2 {
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  color: var(--purple);
  text-wrap: balance;
}
.lead { font-size: clamp(16px, 1.4vw, 18px); max-width: 30em; margin: 20px 0 30px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-size: 15px; font-weight: 700;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { transition: transform .2s ease; flex: none; }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-purple { background: var(--purple); color: var(--cream); }
.btn-purple:hover { background: var(--purple-ink); box-shadow: 0 10px 24px -10px rgba(71,32,131,.6); }
.btn-yellow { background: var(--yellow); color: var(--purple); }
.btn-yellow:hover { background: #fff1b3; }
.btn-outline { border-color: var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--cream); }

.arrow {
  display: inline-block; width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--yellow);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(46, 21, 86, .45); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo img { width: 96px; height: auto; }
.main-nav { display: flex; gap: clamp(20px, 3.4vw, 54px); margin-inline: auto; }
.main-nav a {
  position: relative; font-size: 14px; font-weight: 600; color: var(--purple-ink); padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; background: transparent; color: var(--purple-ink); border-radius: 50%;
  transition: background-color .2s ease;
}
.icon-btn:hover { background: rgba(71, 32, 131, .08); }

.lang-switch {
  display: inline-flex; padding: 3px; margin-right: 6px;
  border: 1.5px solid var(--purple); border-radius: 999px;
}
.lang-switch button {
  border: 0; background: transparent; color: var(--purple);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 6px 11px; border-radius: 999px; line-height: 1;
  transition: background-color .2s ease, color .2s ease;
}
.lang-switch button.is-active { background: var(--purple); color: var(--yellow); }

.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(620px, 80vh);
  background: var(--cream);
}
.hero-text {
  align-self: center;
  padding: 64px var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.hero-media { position: relative; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.section-head.center { text-align: center; max-width: 640px; margin-inline: auto; }
.section-head.center p:last-child { margin: 14px 0 0; }
.section-head.row { display: flex; align-items: end; justify-content: space-between; gap: 16px; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--purple); white-space: nowrap; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* Services */
.services { background: var(--sand); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-card {
  background: var(--cream);
  border-radius: 10px;
  padding: 30px 24px 28px;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(46, 21, 86, .5); }
.service-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px;
  border-radius: 14px; background: var(--yellow); color: var(--purple);
}
.service-icon svg { width: 34px; height: 34px; }
.service-card h3 { font-size: 18px; font-weight: 800; color: var(--purple); line-height: 1.3; margin-bottom: 10px; }
.service-card p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cat-card {
  display: block; background: var(--sand); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
}
.cat-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s ease; }
.cat-label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; font-weight: 700; font-size: 15px; color: var(--purple-ink);
}
.cat-label .arrow { color: var(--purple); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card:hover .arrow { transform: translateX(4px); }

/* Products */
.product-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.product-img { overflow: hidden; border-radius: 3px; background: var(--sand); box-shadow: 0 10px 24px -18px rgba(46, 21, 86, .6); }
.product-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s ease; }
.product:hover .product-img img { transform: scale(1.05); }
.product h3 { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.product .price { margin: 2px 0 0; font-weight: 700; font-size: 15px; color: var(--purple); }

/* Promo */
.promo { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); background: var(--purple); color: var(--cream); }
.promo-text {
  align-self: center;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.promo .eyebrow { color: var(--cream); opacity: .85; }
.promo .display { color: var(--yellow); }
:lang(ka) .promo .display { font-size: clamp(28px, 3.1vw, 46px); }
.promo-media { position: relative; min-height: 360px; overflow: hidden; }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Custom order */
.custom { background: var(--yellow); }
.custom-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 56px; }
.custom-inner p { margin: 12px 0 0; max-width: 40em; color: var(--purple-ink); }
.custom-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* Features */
.features { background: var(--cream); padding-block: clamp(40px, 5vw, 64px); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { text-align: center; padding: 8px 20px; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature svg { width: 40px; height: 40px; color: var(--purple); margin: 0 auto 14px; }
.feature h3 { font-size: 15px; font-weight: 700; color: var(--ink); }
.feature p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple); color: var(--cream); padding-top: clamp(48px, 6vw, 72px); }
.footer-top { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(252, 247, 238, .18); }
.logo-footer img { width: 104px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px clamp(20px, 3vw, 44px); margin-inline: auto; }
.footer-nav a { font-size: 14px; font-weight: 600; opacity: .9; }
.footer-nav a:hover { opacity: 1; color: var(--yellow); }
.socials { display: flex; gap: 8px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(252, 247, 238, .25); transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.socials a:hover { background: var(--yellow); color: var(--purple); border-color: var(--yellow); }

.visit {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px);
  align-items: stretch; padding-block: clamp(40px, 5vw, 64px);
}
.visit .eyebrow { color: var(--yellow); }
.visit .h2 { color: var(--cream); }
.contact-list { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: rgba(255, 233, 141, .14); color: var(--yellow);
}
.contact-list small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.contact-list span, .contact-list a { font-size: 16px; font-weight: 600; }
.contact-list a:hover { color: var(--yellow); }

.map-frame {
  position: relative; min-height: 360px; border-radius: 14px; overflow: hidden;
  border: 4px solid var(--yellow); background: var(--sand);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding-block: 24px; border-top: 1px solid rgba(252, 247, 238, .18);
  font-size: 13px; opacity: .85;
}
.footer-bottom p { margin: 0; }
.legal { display: flex; gap: 24px; flex-wrap: wrap; }
.legal a:hover { color: var(--yellow); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .promo :focus-visible { outline-color: var(--yellow); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-row .product:nth-child(n+4) { display: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .feature:nth-child(3) { border-left: 0; }
  .custom-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .logo img { width: 78px; }
  .burger { display: flex; }
  .hide-sm { display: none; }

  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--yellow);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 24px -16px rgba(46, 21, 86, .45);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .3s ease, visibility 0s linear .3s;
  }
  .main-nav.is-open { clip-path: inset(0 0 -40px 0); visibility: visible; transition: clip-path .3s ease; }
  .main-nav a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .header-actions { margin-left: auto; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 44px var(--gutter) 40px; }
  .hero-media { aspect-ratio: 1 / 1; }

  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

  /* swipeable product row */
  .product-row {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
    scrollbar-width: none;
  }
  .product-row::-webkit-scrollbar { display: none; }
  .product-row .product, .product-row .product:nth-child(n+4) { display: block; flex: 0 0 44%; scroll-snap-align: start; }

  .promo { grid-template-columns: 1fr; }
  .promo-text { padding: 56px var(--gutter); }
  .promo-media { min-height: 0; aspect-ratio: 4 / 3; }

  .visit { grid-template-columns: 1fr; }
  .map-frame { min-height: 300px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav { margin-inline: 0; }
}

@media (max-width: 520px) {
  .service-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 20px; }
  .service-icon { width: 56px; height: 56px; margin: 0; grid-row: span 2; }
  .service-icon svg { width: 30px; height: 30px; }
  .service-card h3 { font-size: 16.5px; margin: 2px 0 4px; }
  .cat-label { font-size: 13.5px; padding: 12px; }
  .product-row .product, .product-row .product:nth-child(n+4) { flex-basis: 62%; }
  .section-head.row { align-items: center; }
  .feature { padding-inline: 10px; }
  .btn { width: 100%; justify-content: center; }
  .custom-actions { width: 100%; }
  .lang-switch { margin-right: 0; }
  .lang-switch button { padding: 6px 9px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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