/* Hakaly Barber & Hair Salon – demo
   Sort + gull fra kundens eget profilbilde. Cinzel (logo/overskrifter) + Inter (tekst). */

@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --black: #0d0b08;
  --ink: #15120d;
  --ink-2: #1d1913;
  --line: rgba(217, 180, 101, .18);
  --line-strong: rgba(217, 180, 101, .42);
  --gold: #d9b465;
  --gold-2: #c9a24b;
  --gold-dark: #8a6420;
  --gold-grad: linear-gradient(180deg, #f7e1a1 0%, #d9b465 45%, #a9782c 78%, #e4bf73 100%);
  --cream: #f4eee3;
  --cream-2: #e9e0d0;
  --text: #efe8dc;
  --muted: #a89f90;
  --dark-text: #1b1711;
  --dark-muted: #5d5446;
  --radius: 6px;
  --wrap: 1200px;
  --serif: "Cinzel", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--black); color: var(--text); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1rem; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(920px, 100% - 40px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--black); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ───── Typografi ───── */
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.eyebrow--dark { color: var(--gold-dark); }
.h2 { font: 600 clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem)/1.12 var(--serif); letter-spacing: .01em; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold-text--dark { background: linear-gradient(180deg, #b8892f, #7c5718); -webkit-background-clip: text; background-clip: text; }

/* ───── Knapper ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, filter .2s; }
.btn--gold { background: var(--gold-grad); color: #1a1206; box-shadow: 0 6px 22px -8px rgba(217, 180, 101, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn--sm { padding: .55rem 1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.link-arrow { color: var(--gold); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ───── Header ───── */
.header { position: sticky; top: 0; z-index: 50; background: rgba(13, 11, 8, .96); border-bottom: 1px solid var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header__logo { position: relative; z-index: 2; display: block; }
.header__logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--text); opacity: .85; transition: color .2s, opacity .2s; }
.nav a:not(.btn):hover { color: var(--gold); opacity: 1; }
.burger { display: none; position: relative; z-index: 2; width: 44px; height: 44px; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; background: var(--gold); margin: 4px auto; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--black); flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 20px 2rem; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { font: 600 1.4rem/1 var(--serif); padding: 1.1rem 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav__cta { margin-top: 1.5rem; padding: 1rem; font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }
}

/* ───── Hero ───── */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(217, 180, 101, .16), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(169, 120, 44, .12), transparent 70%),
    var(--black); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font: 700 clamp(2.7rem, 1.6rem + 4.6vw, 5.1rem)/1.04 var(--serif); letter-spacing: .005em; margin-bottom: 1.4rem; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: #d8cfc0; max-width: 34rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-bottom: 2.4rem; }
.hero__facts { list-style: none; padding: 1.4rem 0 0; margin: 0; display: grid; gap: .7rem; border-top: 1px solid var(--line); max-width: 34rem; color: var(--muted); font-size: .95rem; }
.hero__facts li { display: flex; align-items: center; gap: .7rem; }
.hero__facts svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.hero__facts a { text-decoration: none; }
.hero__facts a:hover { color: var(--gold); }
.is-open-now { color: var(--text); }
.is-open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5cc27a; box-shadow: 0 0 0 4px rgba(92, 194, 122, .18); display: inline-block; margin-right: .2rem; }

/* Reels – signaturelementet: salongens egne TikTok-klipp som stående "telefonskjermer" */
.reels { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.reel { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--ink); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .9), 0 0 0 6px rgba(13, 11, 8, .8); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { position: absolute; left: 10px; top: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding: .3rem .6rem; border-radius: 4px; background: rgba(13, 11, 8, .72); color: var(--gold); }
.reel--a { margin-top: 3.2rem; }
.reel--b { margin-top: 0; }
.reel--c { margin-top: 5.4rem; }
.reels__badge { position: absolute; width: 132px; height: 132px; left: -46px; bottom: -28px; border-radius: 50%; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .9); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .reels { max-width: 560px; }
  .reels__badge { left: auto; right: -10px; bottom: -34px; width: 104px; height: 104px; }
}
@media (max-width: 560px) {
  .reels { gap: 10px; }
  .reel--a { margin-top: 1.6rem; }
  .reel--c { margin-top: 2.8rem; }
  .reel figcaption { display: none; }
}

/* ───── Seksjoner ───── */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--dark { background: var(--black); }
.section--booking { background: linear-gradient(180deg, var(--ink) 0%, var(--black) 100%); border-block: 1px solid var(--line); }
.section--cream { background: var(--cream); color: var(--dark-text); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 40rem; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section__foot { margin-top: 2.5rem; }

/* Prisliste – "barbermeny" */
.menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 6vw, 5rem); }
.menu__item { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.menu__row { display: flex; align-items: baseline; gap: .8rem; }
.menu__name { font: 600 1.28rem/1.25 var(--serif); }
.menu__dots { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); min-width: 1.5rem; }
.menu__price { font-weight: 600; color: var(--gold); white-space: nowrap; font-size: 1.08rem; }
.menu__desc { margin: .45rem 0 0; color: var(--muted); font-size: .95rem; }
.menu__min { color: var(--text); opacity: .7; white-space: nowrap; margin-left: .3rem; }
.menu__min::before { content: "· "; }
.tag { display: inline-block; vertical-align: middle; font: 600 .68rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--black); background: var(--gold); padding: .3rem .45rem; border-radius: 3px; margin-left: .4rem; transform: translateY(-2px); }
@media (max-width: 760px) { .menu { grid-template-columns: 1fr; } }

/* ───── Booking ───── */
.booking { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.2rem, 3vw, 2.4rem); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.steps { list-style: none; margin: 0 0 2rem; padding: 0 0 1.4rem; display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--line); counter-reset: s; }
.steps li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 500; color: var(--muted); flex: 1; }
.steps li + li::before { content: ""; height: 1px; flex: 0 1 40px; background: var(--line-strong); margin-right: .2rem; }
.steps span { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-weight: 600; font-size: .85rem; }
.steps .is-active { color: var(--text); }
.steps .is-active span { background: var(--gold-grad); color: var(--black); border-color: transparent; }
.steps .is-done span { background: transparent; color: var(--gold); border-color: var(--gold); }
@media (max-width: 560px) { .steps li { font-size: .78rem; flex-direction: column; text-align: center; gap: .35rem; } .steps li + li::before { display: none; } }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.choice { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n p" "m p"; gap: .15rem 1rem; text-align: left; padding: 1rem 1.15rem; background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.choice:hover { border-color: var(--gold); background: #241e16; transform: translateY(-1px); }
.choice.is-selected { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.choice__name { grid-area: n; font: 600 1.08rem/1.3 var(--serif); }
.choice__meta { grid-area: m; font-size: .85rem; color: var(--muted); }
.choice__price { grid-area: p; align-self: center; font-weight: 600; color: var(--gold); white-space: nowrap; }

.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(74px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: .6rem; margin-bottom: 1.4rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.day { display: grid; justify-items: center; gap: .1rem; padding: .7rem .4rem; background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.day small { font-size: .75rem; color: var(--muted); text-transform: capitalize; }
.day strong { font: 600 1.35rem/1.1 var(--serif); }
.day:hover { border-color: var(--gold); }
.day.is-selected { background: var(--gold-grad); color: var(--black); border-color: transparent; }
.day.is-selected small { color: #3a2a10; }
.day:disabled { opacity: .35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; min-height: 3rem; }
.slots__label { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; margin: 0 0 .3rem; }
.slot { padding: .65rem 0; background: transparent; border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--gold); color: var(--gold); }
.slot:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.back { margin-top: 1.6rem; background: none; border: 0; color: var(--muted); cursor: pointer; padding: .3rem 0; }
.back:hover { color: var(--gold); }

.summary { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .3rem 2.4rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line-strong); border-radius: 8px; margin-bottom: 1.6rem; background: rgba(217, 180, 101, .05); }
.summary dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.summary dd { margin: 0; font: 600 1.05rem/1.35 var(--serif); }
@media (max-width: 560px) { .summary { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field--full, .form .btn, .form__note, .form__err { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; background: var(--black); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); font: inherit; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 180, 101, .2); }
.field input[aria-invalid="true"] { border-color: #e0795f; }
.form__note { font-size: .85rem; color: var(--muted); margin: 0; text-align: center; }
.form__err { color: #f0a08a; margin: 0; font-size: .9rem; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ───── Galleri ───── */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tile { position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--ink); aspect-ratio: 3 / 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; transition: box-shadow .2s; }
.tile:hover::after { box-shadow: inset 0 0 0 2px var(--gold); }
.tile__play { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(13, 11, 8, .7); border: 1px solid var(--line-strong); }
.tile__play svg { width: 16px; height: 16px; fill: var(--gold); margin-left: 2px; }

@media (max-width: 960px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 4, 3, .94); display: grid; place-items: center; padding: 4rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox__stage img, .lightbox__stage video { max-height: calc(100vh - 8rem); max-width: min(92vw, 560px); width: auto; border-radius: 8px; border: 1px solid var(--line-strong); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(13, 11, 8, .7); border: 1px solid var(--line-strong); color: var(--gold); width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) { .lightbox__nav { top: auto; bottom: 16px; transform: none; } }

/* ───── Om ───── */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__media { position: relative; }
.about__media > img:first-child { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(27, 23, 17, .55); }
.about__badge { position: absolute; right: -36px; bottom: -36px; width: 140px; height: 140px; border-radius: 50%; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.about__text .h2 { margin-bottom: 1.4rem; }
.about__text p { color: var(--dark-muted); font-size: 1.06rem; max-width: 34rem; }
.checks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.checks li { display: flex; gap: .6rem; align-items: baseline; font-weight: 500; }
.checks li::before { content: ""; width: 14px; height: 8px; flex: none; border-left: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); transform: rotate(-45deg) translateY(-3px); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; }
  .about__badge { right: -12px; width: 110px; height: 110px; }
}
@media (max-width: 480px) { .checks { grid-template-columns: 1fr; } }

/* ───── Kontakt ───── */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.contact__info .h2 { margin-bottom: 2rem; }
.contact__list { margin: 0 0 2.2rem; display: grid; gap: 1.3rem; }
.contact__list > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.contact__list dt { color: var(--muted); font-size: .9rem; }
.contact__list dd { margin: 0; }
.contact__list a { color: var(--gold); text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.hours li { display: flex; justify-content: space-between; gap: 1.5rem; max-width: 18rem; }
.hours li.is-today { color: var(--gold); font-weight: 600; }
.contact__map { min-height: 420px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--ink); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.85) invert(.92) contrast(.9) sepia(.25); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact__map, .contact__map iframe { min-height: 320px; } }
@media (max-width: 480px) { .contact__list > div { grid-template-columns: 1fr; gap: .3rem; } }

/* ───── Footer ───── */
.footer { background: #080705; border-top: 1px solid var(--line); padding: 4rem 0 1.5rem; color: var(--muted); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand img { width: 132px; height: 132px; }
.footer__tag { font: 600 .95rem/1.4 var(--serif); color: var(--gold); margin-top: 1rem; }
.footer__h { font: 600 1rem/1.2 var(--serif); color: var(--text); margin-bottom: 1rem; letter-spacing: .03em; }
.footer p { margin: 0 0 .6rem; }
.footer a:not(.btn) { color: var(--text); text-decoration: none; }
.footer a:not(.btn):hover { color: var(--gold); }
.footer .btn { margin-top: .6rem; }
.hours--small li { max-width: 15rem; }
.social { display: inline-flex; align-items: center; gap: .45rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.4rem; font-size: .85rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ───── 404 ───── */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 5rem 0; }
.notfound img { width: 140px; margin: 0 auto 2rem; }
.notfound p { color: var(--muted); }

/* ───── Scroll-reveal (kun med JS) ───── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* salong.mp4 har et TikTok-klistremerke nederst – zoom litt inn fra toppen */
.reel--c video { transform: scale(1.22); transform-origin: 50% 12%; }

/* Mobil-justeringer etter QA */
@media (max-width: 560px) {
  .reels__badge { display: none; }
  .menu__min { display: block; margin: .25rem 0 0; }
  .menu__min::before { content: none; }
  .checks { grid-template-columns: 1fr; }
  .gallery .tile:nth-child(n+9) { display: none; }
}
