/* Candy Nails & Beauty — website.
   Colours are the brand palette from ../brand/brand.css (copied here so the
   built site is self-contained). Fonts: Playfair Display for headings, Archivo
   for text (as in the printed price list); "&" comes from Cormorant Garamond.
   Light and dark theme follow the visitor's system setting. */

@font-face { font-family: "Candy Serif"; src: url("fonts/playfair.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Candy Serif"; src: url("fonts/amp.woff2") format("woff2"); font-weight: 400 900; unicode-range: U+0026; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  /* brand palette */
  --rose:  #A36361;  /* bordo */
  --dusty: #D3A29D;  /* stara ruža */
  --blush: #F1DBD0;  /* puder */
  --sand:  #CDBFAA;  /* pijesak */
  --sage:  #ADB697;  /* kadulja */

  /* theme roles — light */
  --bg:      #FCF7F4;               /* page, a whisper of puder */
  --band:    var(--blush);          /* alternate sections */
  --surface: #FCF7F4;               /* cards sitting on a band */
  --panel:   #F7EAE4;               /* boxes sitting on the page */
  --ink:     #5A2E2F;               /* text */
  --soft:    #7B5251;               /* secondary text, 6.4:1 on --bg */
  --accent:  var(--rose);           /* small accent text: eyebrows, links */
  --line:    rgb(205 191 170 / .6);
  --btn-hover: #5A2E2F;
  --foot:    var(--rose);
  --logo:    #5A2E2F;

  --serif: "Candy Serif", Georgia, serif;
  --sans: "Archivo", system-ui, sans-serif;
  --radius: 14px;
  --wrap: 1120px;

  /* "only light" also stops browsers' forced dark mode (e.g. Brave's flag)
     from inverting the light theme; dark visitors get the real dark theme below */
  color-scheme: only light;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg:      #1D1415;
    --band:    #271B1C;
    --surface: #322425;
    --panel:   #271B1C;
    --ink:     #F1DBD0;
    --soft:    #CBB0A8;
    --accent:  #E0ADA6;
    --line:    rgb(241 219 208 / .14);
    --btn-hover: #8A4F4D;
    --foot:    #2A1C1D;
    --logo:    #F1DBD0;
  }
  .hero-photo img, .feature img, .gallery img, .card img { filter: brightness(.94); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 400 1.0625rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em;
             font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.i { width: 1.15em; height: 1.15em; flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 9vw, 112px) 24px; }
.wrap.narrow { max-width: 820px; }
.band { background: var(--band); }
.band > .wrap { padding-top: clamp(56px, 9vw, 104px); }

/* ---------- logo (single-colour SVG with "KOZMETIČKI CENTAR", painted with a mask) ---------- */
.logo { display: block; aspect-ratio: 3.1982; background: var(--logo);
        -webkit-mask: url(logo.svg) center / contain no-repeat;
                mask: url(logo.svg) center / contain no-repeat; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
       padding: 12px max(24px, calc((100% - var(--wrap)) / 2 + 24px));
       background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px);
       border-bottom: 1px solid var(--line); }
.brand .logo { width: 172px; }
.top nav { display: flex; gap: 26px; margin-left: auto; font-size: .98rem; }
.top nav a { text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.top nav a:hover { border-color: var(--dusty); }
.lang { font-size: .85rem; font-weight: 500; letter-spacing: .08em; text-decoration: none; color: var(--soft);
        min-width: 40px; min-height: 40px; display: grid; place-items: center; border-radius: 999px;
        border: 1px solid var(--line); }
.lang:hover { color: var(--ink); border-color: var(--accent); }
@media (max-width: 900px) { .top nav { gap: 18px; font-size: .93rem; } }
@media (max-width: 800px) {
  .top { gap: 12px; }
  .top nav { display: none; }
  .top .lang { margin-left: auto; }
  .brand .logo { width: 150px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px;
       padding: 0 26px; border-radius: 999px; background: var(--rose); color: #fff;
       font: 500 1rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
       border: 1.5px solid var(--rose); transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .93rem; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- hero ---------- */
.heart { display: inline-block; width: .78em; height: .72em; fill: var(--accent); vertical-align: -.02em; }
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 7vw, 88px) 24px;
        display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { font-size: .82rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
           color: var(--accent); margin-bottom: 1.2em; }
.lead { font-size: 1.18rem; color: var(--soft); max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.perks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
         font-size: .95rem; color: var(--soft); }
.perks li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
                    background: var(--sage); margin-right: 9px; vertical-align: .12em; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-width: 520px; }
}

/* ---------- temporary offer (promo.json) ---------- */
.promo-bar { display: flex; justify-content: center; gap: .5em; flex-wrap: wrap; padding: 10px 24px;
             background: var(--ink); color: var(--bg); font-size: .93rem; text-align: center; text-decoration: none; }
.promo-bar b { font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.promo-bar:hover span:last-child { transform: translateX(3px); }
.promo-bar span:last-child { transition: transform .15s; }
.promo { max-width: var(--wrap); margin: 0 auto; padding: 0 24px clamp(56px, 8vw, 96px); }
.promo-card { border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); color: #fff; text-align: center;
              background: radial-gradient(ellipse 80% 70% at 50% 0%, rgb(255 255 255 / .1), transparent 70%),
                          linear-gradient(170deg, var(--rose) 0%, #8A4F4E 55%, #5A2E2F 100%); }
.promo-card .eyebrow { color: var(--blush); }
.promo-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 1em; }
.promo-items { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo-items li { border: 1px solid rgb(241 219 208 / .45); border-radius: 12px; padding: 22px 18px; }
.promo-items h3 { font-size: 1.2rem; margin: 0 0 .2em; }
.promo-one { font: 600 2rem/1.2 var(--serif); margin: 10px 0 2px; font-variant-numeric: lining-nums; }
.promo-base { margin: 0; font-size: .9rem; color: var(--blush); }
.promo-note { font-size: .88rem; color: var(--blush); max-width: 40em; margin: -8px auto 26px; }
.promo-note a { color: #fff; }
.btn-light { background: var(--blush); border-color: var(--blush); color: #5A2E2F; }
.btn-light:hover { background: #fff; border-color: #fff; }
@media (max-width: 760px) { .promo-items { grid-template-columns: 1fr; } }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
        overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgb(40 20 20 / .5); }
.card img { aspect-ratio: 4 / 5; object-fit: cover; }
.card h3 { margin: 20px 20px 8px; }
.card p { margin: 0 20px 14px; color: var(--soft); font-size: .97rem; }
.card .more { margin: auto 20px 20px; color: var(--accent); font-weight: 500; font-size: .95rem; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {   /* phone: photo left, text right */
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { display: grid; grid-template-columns: 38% 1fr; grid-template-rows: auto auto 1fr; }
  .card img { grid-row: 1 / 4; width: 100%; height: 100%; aspect-ratio: auto; min-height: 170px; }
  .card h3 { margin: 16px 16px 6px; font-size: 1.25rem; }
  .card p { margin: 0 16px 10px; font-size: .93rem; }
  .card .more { margin: 0 16px 16px; align-self: end; }
}

/* ---------- about + gallery ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
#salon { border-top: 1px solid var(--line); }
.split > div > p { color: var(--soft); max-width: 34em; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; }
.gallery img:nth-child(2) { transform: translateY(28px); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .gallery { margin-bottom: 28px; }
}

/* ---------- facial treatments (the services mom is growing) ---------- */
.feature { grid-template-columns: .85fr 1.15fr; }
.feature figure { margin: 0; }
.feature figure img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.treat { list-style: none; padding: 0; margin: 26px 0 4px; }
.treat li { padding: 16px 0 14px 18px; border-left: 2px solid var(--dusty); margin-bottom: 10px; }
.treat h3 { font-size: 1.22rem; margin: 0 0 .25em; }
.treat p { margin: 0; color: var(--soft); font-size: .98rem; }
.feature .actions { margin-bottom: 0; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature figure { max-width: 460px; }
}

/* ---------- price list ---------- */
.hint { color: var(--soft); font-size: .95rem; }
.hint a { color: var(--accent); }
.cat { background: var(--surface); border-radius: var(--radius); margin: 14px 0; }
.cat summary { list-style: none; cursor: pointer; display: flex; align-items: center;
               justify-content: space-between; padding: 20px 24px; }
.cat summary::-webkit-details-marker { display: none; }
.cat summary h3 { margin: 0; }
.cat summary::after { content: "+"; font: 400 1.8rem/1 var(--serif); color: var(--accent);
                      transition: transform .2s; }
.cat[open] summary::after { transform: rotate(45deg); }
.groups { padding: 0 24px 14px; }
.grp h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
          margin: 18px 0 4px; font: 500 .8rem/1.4 var(--sans); letter-spacing: .14em;
          text-transform: uppercase; color: var(--accent); }
.grp .note { letter-spacing: .04em; text-transform: none; color: var(--soft); font-weight: 400; }
.grp ul { list-style: none; margin: 0; padding: 0; }
.grp li, .cols { display: grid; grid-template-columns: minmax(0, 1fr) 5em 4.2em; align-items: baseline; gap: 16px;
          padding: 9px 0; border-bottom: 1px solid var(--line); }
.cols { margin: 0; padding: 0 0 2px; border: 0; font-size: .74rem; color: var(--soft); }
.cols span:first-child { grid-column: 2; }
.cols span { text-align: right; }
.grp li:last-child { border-bottom: 0; }
@media (max-width: 520px) {
  .cat summary { padding: 18px 18px; }
  .groups { padding: 0 16px 10px; }
  .grp li, .cols { gap: 10px; grid-template-columns: minmax(0, 1fr) 4.4em 3.9em; font-size: .97rem; }
  .cols { font-size: .72rem; }
}
.grp .p, .grp .b { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.grp .p { font-weight: 500; }
/* during an offer: sale price replaces the regular one (the bazna column stays) */
.p:has(.p-sale) .p-reg { display: none; }
.p-sale { color: var(--accent); }
.p-sale small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .04em; }
.grp .b { font-size: .85rem; color: var(--soft); }
.archive { font-size: .9rem; color: var(--soft); }
.archive summary { cursor: pointer; }
.archive li { overflow-wrap: anywhere; margin: .4em 0; }
.fees { margin-top: 26px; }
.fees small { color: var(--soft); }

/* ---------- contact: info + hours on the left, map on the right ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
                grid-template-areas: "info map" "hours map"; gap: 20px; margin-top: 28px; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 30px 32px; }
.info { grid-area: info; }
.hours-panel { grid-area: hours; }
.map { grid-area: map; position: relative; min-height: 520px; border-radius: var(--radius);
       overflow: hidden; background: var(--panel); }
address { font-style: normal; color: var(--soft); line-height: 1.55; }
address strong { display: block; font: 600 1.6rem/1.2 var(--serif); color: var(--ink); margin-bottom: 6px; }
.reach { list-style: none; padding: 0; margin: 22px 0 0; }
.reach li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 11px 0;
            border-top: 1px solid var(--line); }
.reach .i { color: var(--accent); }
.reach a { font-weight: 500; text-underline-offset: 3px; text-decoration-color: var(--dusty); }
.reach .pill { margin-left: auto; font-size: .8rem; text-decoration: none; padding: 5px 12px;
               border: 1px solid var(--line); border-radius: 999px; color: var(--soft); }
.reach .pill:hover { border-color: var(--accent); color: var(--ink); }
.info .actions { margin: 24px 0 22px; }
.info .btn { flex: 1 1 auto; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
            background: var(--rose); color: #fff; transition: background .15s; }
.social a:hover { background: var(--btn-hover); }
.social .i { width: 20px; height: 20px; }
.hours-panel h3 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 1.3rem; }
.status { font: 500 .8rem/1 var(--sans); padding: 7px 12px; border-radius: 999px;
          background: var(--band); color: var(--ink); }
.status.open { background: var(--sage); color: #2B2E22; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums; font-size: .98rem; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours tr:last-child > * { border-bottom: 0; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 500; color: var(--accent); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; grid-template-areas: "info" "map" "hours"; }
  .map { min-height: 340px; }
  .panel { padding: 24px 22px; }
}

/* the map itself (MapLibre, loaded only when the section is near) */
.map-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
                gap: 8px; color: var(--accent); font-weight: 500; }
.map.ready .map-fallback { display: none; }
.pin { display: flex; flex-direction: column; align-items: center; text-decoration: none; cursor: pointer; }
.pin span { background: var(--rose); color: #fff; font: 500 13px/1 var(--sans); padding: 8px 12px;
            border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px -6px rgb(40 20 20 / .55); }
.pin::after { content: ""; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%;
              background: var(--rose); border: 3px solid #fff; box-shadow: 0 2px 6px rgb(40 20 20 / .4); }
.map .maplibregl-ctrl-attrib { font: 11px/1.4 var(--sans); }
.map .maplibregl-cooperative-gesture-screen { font: 500 1rem/1.4 var(--sans); }

/* ---------- footer ---------- */
.foot { background: var(--foot); color: #fff; text-align: center; padding: 56px 24px 40px; font-size: .9rem; }
.foot .logo { width: 230px; margin: 0 auto 24px; --logo: var(--blush); }
.foot .social { justify-content: center; margin-bottom: 22px; }
.foot .social a { background: transparent; border: 1.5px solid rgb(255 255 255 / .7); }
.foot .social a:hover { background: rgb(255 255 255 / .15); }
.foot p { margin: .5em 0; opacity: .92; line-height: 1.6; }
.foot .made { margin-top: 1.6em; font-size: .82rem; }
.foot a { text-underline-offset: 3px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .cat summary::after { transition: none; }
}
