/* HomeSweets brand tokens and base components. Colours are sampled from the logo:
   charcoal ground, light-grey "HOME", blush "sweets". Shared by index.html and brand-guidelines.html. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--punch); outline-offset: 3px; }
p { margin: 0; }

/* Headline lockup mirrors the logo: heavy caps + one light lowercase word in blush (<em>). */
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: -0.01em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; font-weight: 300; text-transform: lowercase; letter-spacing: 0; color: var(--blush); }
.on-light em { color: var(--punch); }

.hs-label { font: 500 13px/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* Buttons are square, like the logo. Punch is reserved for the Instagram action. */

.stripes { background-image: var(--stripes); }

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

/* Layout: tamni ulični izlog na vrhu, kolekcije u kvadratima kao logo,
   Instagram blok na roze podlozi, visine jelki u razmeri, salon, kontakt. Tokeni su u brand.css. */
:root { --cm: 1px; }  /* razmera grafikona visina: 1 cm = 1 px */

/* --- hero --- */
.hero { position: relative; display: grid; min-height: clamp(460px, 60vw, 680px); color: #fff; background: var(--asphalt); overflow: hidden; }
.hero > * { grid-area: 1 / 1; }
.slides { position: relative; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slides img:nth-child(2) { animation: swap 14s ease-in-out infinite; }
@keyframes swap { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
.hero::after { content: ""; grid-area: 1 / 1; position: relative; background: linear-gradient(90deg, rgba(38,38,38,.94) 0%, rgba(38,38,38,.86) 38%, rgba(38,38,38,.25) 68%, rgba(38,38,38,0) 100%); }
.hero-text { position: relative; z-index: 1; align-self: center; display: flex; flex-direction: column; gap: 24px; padding-block: 56px; }
.hero .hs-label { color: var(--blush); }
.hero h1 { font-size: clamp(46px, 8.4vw, 118px); font-weight: 700; max-width: 9ch; }
.hero h1 em { display: block; font-size: 0.62em; margin-top: 0.08em; }
.hero p { max-width: 42ch; font-size: 18px; color: var(--concrete); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- sekcije --- */
section { padding-block: clamp(56px, 8vw, 110px); }
.head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.head .hs-label { grid-column: 1 / -1; }
.head h2 { font-size: clamp(34px, 5.6vw, 72px); font-weight: 700; }
.head p { color: var(--muted); max-width: 46ch; }

/* kolekcije: kvadrati, kao logo */
.rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.room { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--charcoal); color: #fff; text-decoration: none; min-width: 0; }
.room img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,38,38,0) 45%, rgba(38,38,38,.88) 100%); }
.room div { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: clamp(12px, 1.8vw, 22px); }
.room h3 { font-size: clamp(17px, 2vw, 26px); }
.room span { font-size: 14px; color: var(--concrete); }
.room:hover img { transform: scale(1.06); }
.room:hover h3 { color: var(--blush); }

/* Instagram */
.insta { position: relative; background: var(--blush-soft); }
.insta .hs-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.insta h2 { font-size: clamp(34px, 5.6vw, 72px); font-weight: 700; margin-block: 16px 20px; }
.insta p { max-width: 44ch; margin-bottom: 26px; }
.stats { display: flex; gap: 12px 36px; flex-wrap: wrap; margin-top: 30px; }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats b { font: 700 clamp(28px, 3.4vw, 42px)/1 var(--display); font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 20px; background: var(--paper); border: 2px solid var(--asphalt); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 700 30px/1 var(--display); color: var(--punch); }
.steps b { display: block; font: 600 17px/1.3 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.steps span { color: var(--muted); font-size: 15px; }

/* visine jelki u razmeri */
.chart { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 8px; height: calc(300 * var(--cm)); border-bottom: 3px solid var(--asphalt); }
.ceiling { position: absolute; left: 0; right: 0; bottom: calc(260 * var(--cm)); border-top: 1px dashed var(--muted); }
.ceiling span { position: absolute; right: 0; top: -24px; font-size: 13px; color: var(--muted); }
.tree { position: relative; height: calc(var(--h) * var(--cm)); display: flex; justify-content: center; }
.tree i { display: block; height: 100%; aspect-ratio: 112 / 150; max-width: 100%; background: var(--charcoal); clip-path: polygon(50% 0, 68% 26%, 60% 26%, 82% 56%, 71% 56%, 100% 92%, 56% 92%, 56% 100%, 44% 100%, 44% 92%, 0 92%, 29% 56%, 18% 56%, 40% 26%, 32% 26%); }
.tree::before { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; background: var(--punch); clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); }
.sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.size { display: flex; flex-direction: column; gap: 8px; min-width: 0; text-align: center; }
.size b { font: 700 clamp(18px, 2.6vw, 30px)/1 var(--display); font-variant-numeric: tabular-nums; }
.size ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.size a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.size a:hover { color: var(--punch); text-decoration-color: var(--punch); }
.led { white-space: nowrap; }
.led::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: var(--punch); vertical-align: middle; }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px; margin-top: clamp(32px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); }
.notes p { color: var(--muted); font-size: 16px; }
.notes strong { display: block; color: var(--ink); font: 600 16px/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.after { display: flex; margin-top: 36px; }

/* salon */
.dark { background: var(--asphalt); color: #fff; }
.dark .head p, .dark .hs-label { color: var(--concrete); }
.shop { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(10px, 1.6vw, 20px); }
.shop img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.shop .stack { display: grid; gap: clamp(10px, 1.6vw, 20px); }
.shop .stack img { aspect-ratio: 16 / 7; }

/* kontakt */
.come-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 2px solid var(--asphalt); }
.come-grid > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(20px, 3vw, 34px); border: 1px solid var(--asphalt); }
.big { font: 600 clamp(22px, 2.6vw, 30px)/1.2 var(--display); font-style: normal; text-decoration: none; }
a.big:hover { color: var(--punch); }
.hours { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 6px 24px 6px 0; }
.hours td:last-child { padding-right: 0; text-align: right; font-weight: 700; }
.open { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.open::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.open.on::before { background: var(--open); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }



@media (max-width: 860px) {
  :root { --cm: 0.72px; }
  .hero::after { background: linear-gradient(180deg, rgba(38,38,38,.7), rgba(38,38,38,.86)); }
  .head { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insta .hs-wrap, .shop { grid-template-columns: 1fr; }
  .sizes { grid-template-columns: 1fr; gap: 0; }
  .size { flex-direction: row; align-items: baseline; gap: 16px; text-align: left; padding-block: 12px; border-bottom: 1px solid var(--line); }
  .size b { flex: 0 0 92px; }
  .size ul { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .slides img:nth-child(2) { animation: none; opacity: 0; }
  .room img { transition: none; }
}
