/* Alex Barbershop Tønsberg — dark charcoal + gold barbershop */
:root {
  --bg: #0d0d0d;
  --bg-elevated: #161616;
  --bg-card: #1a1a1a;
  --charcoal: #1f1f1f;
  --gold: #c9a227;
  --gold-light: #e0c056;
  --gold-dim: rgba(201, 162, 39, 0.15);
  --text: #f2f2f2;
  --text-muted: #a8a8a8;
  --border: #2a2a2a;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --max: 1100px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.logo span { color: var(--gold); }

.nav {
  display: none;
  gap: 1.25rem;
  align-items: center;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav a:hover { color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--gold);
  color: #111;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-gold {
  background: var(--gold);
  color: #111;
}
.btn-gold:hover {
  background: var(--gold-light);
  color: #111;
}
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold-dim);
  color: var(--gold-light);
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }

.menu-btn {
  display: flex;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-muted);
  padding: 0.4rem 0;
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,13,13,0.15) 0%, rgba(13,13,13,0.35) 45%, rgba(13,13,13,0.88) 100%),
    linear-gradient(90deg, rgba(13,13,13,0.45) 0%, transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 0 3.5rem;
  max-width: 640px;
}
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 36ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding: 0.45rem 0.85rem;
  background: var(--gold-dim);
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gold-light);
}
.rating-pill strong { color: var(--gold); }

/* Sections */
section { padding: 4rem 0; }
.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.5rem;
}
.section-head p {
  color: var(--text-muted);
  max-width: 42ch;
  margin-inline: auto;
}
.gold-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0.85rem auto 1rem;
}

/* Services */
.services { background: var(--bg-elevated); }
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: border-color 0.2s;
}
.service-card:hover { border-color: rgba(201,162,39,0.45); }
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.service-card .price {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.price-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201,162,39,0.25);
  aspect-ratio: 4/3;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-bottom: 0.75rem;
}
.about-copy p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about-copy strong { color: var(--text); }
.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.chip {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-elevated);
}

/* Reviews */
.reviews { background: var(--bg-elevated); }
.reviews-score {
  text-align: center;
  margin-bottom: 2rem;
}
.reviews-score .big {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}
.reviews-score .stars { color: var(--gold); letter-spacing: 0.15em; margin: 0.35rem 0; }
.reviews-score .sub { color: var(--text-muted); font-size: 0.9rem; }
.reviews-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.review-card .theme {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.review-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* Film styles live at bottom (click-to-play Shorts grid) */


/* Booking */
.booking-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.booking-fallback {
  padding: 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.booking-fallback p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.booking-iframe-wrap {
  position: relative;
  width: 100%;
  min-height: 640px;
  background: #111;
}
.booking-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.contact-card h3 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.contact-card p, .contact-card a {
  color: var(--text);
  font-size: 1rem;
}
.contact-card a { display: inline-block; margin-top: 0.15rem; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.map-link {
  display: inline-flex;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  text-align: center;
}
.site-footer .brand {
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}
.site-footer .legal {
  color: #666;
  font-size: 0.75rem;
  line-height: 1.5;
}
.site-footer .note {
  color: #555;
  font-size: 0.7rem;
  margin-top: 0.75rem;
}

/* Lang visibility */
html[lang="no"] [data-lang="en"] { display: none !important; }
html[lang="en"] [data-lang="no"] { display: none !important; }

/* Desktop */
@media (min-width: 768px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-iframe-wrap { min-height: 720px; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .film { padding: 3.25rem 0; }
}

.film { background: #0d0d0d; padding: 4.5rem 0; border-top: 1px solid #2a2a2a; }
.film-lead { color: #a8a8a8; max-width: 42rem; margin: 0.75rem 0 1.75rem; }
.film-lead strong { color: #e0c056; font-weight: 600; }
.film-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 800px) { .film-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }
.film-card { border: 1px solid rgba(201,162,39,0.4); border-radius: 14px; overflow: hidden; background: #111; box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.film-embed { position: relative; aspect-ratio: 9/16; background: #000; }
.film-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-links { margin-top: 1.25rem; font-size: 0.95rem; }
.film-links a { color: #c9a227; }


.film-card { margin: 0; display: flex; flex-direction: column; }
.film-meta {
  display: flex; align-items: baseline; gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: #141414;
  border-top: 1px solid rgba(201,162,39,0.25);
  color: #a8a8a8;
  font-size: 0.85rem;
}
.film-views { color: #e0c056; font-weight: 600; font-variant-numeric: tabular-nums; }


/* Click-to-play: hide YouTube chrome/badge until user plays */
.film-facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer;
  background: #000; display: block;
}
.film-facade img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.film-play {
  position: absolute; left: 50%; top: 50%;
  width: 3.25rem; height: 3.25rem;
  margin: -1.625rem 0 0 -1.625rem;
  border-radius: 50%;
  background: rgba(14,14,14,0.72);
  border: 2px solid #c9a227;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.film-play::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent #e0c056;
}
.film-facade:hover .film-play,
.film-facade:focus-visible .film-play {
  background: rgba(201,162,39,0.2);
}
.film-facade:focus-visible { outline: 2px solid #e0c056; outline-offset: -2px; }


/* Subtle login/session heartbeat — charcoal + gold */
.login-heartbeat {
  pointer-events: none;
  position: fixed;
  left: 50%;
  top: 42%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 162, 39, 0.55);
  background: radial-gradient(circle, rgba(224, 192, 86, 0.18) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.72);
  z-index: 80;
}
.login-heartbeat.is-beating {
  animation: alex-hb-ring 1.05s ease-in-out 1;
}
@keyframes alex-hb-ring {
  0%   { opacity: 0; transform: scale(0.72); }
  12%  { opacity: 0.85; transform: scale(1.05); }
  28%  { opacity: 0.35; transform: scale(0.92); }
  44%  { opacity: 0.75; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.35); }
}
.logo.alex-heartbeat-pulse span {
  display: inline-block;
  animation: alex-hb-logo 1.05s ease-in-out 1;
}
@keyframes alex-hb-logo {
  0%, 100% { transform: scale(1); text-shadow: none; }
  12% { transform: scale(1.06); text-shadow: 0 0 14px rgba(224, 192, 86, 0.45); }
  28% { transform: scale(1); }
  44% { transform: scale(1.05); text-shadow: 0 0 12px rgba(224, 192, 86, 0.35); }
  70% { transform: scale(1); text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .login-heartbeat.is-beating,
  .logo.alex-heartbeat-pulse span { animation: none !important; opacity: 0; }
}


/* Hours + map embed */
.hours-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.25rem 0 0.5rem;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-size: 0.95rem;
}
.hours-list strong { color: var(--gold-light); font-weight: 600; }
.hours-note {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}
.map-embed-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201,162,39,0.35);
  background: #111;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  min-height: 240px;
}
.reviews-source {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.review-attr {
  margin-top: 0.65rem !important;
  font-size: 0.75rem !important;
  font-style: normal !important;
  color: #777 !important;
  letter-spacing: 0.02em;
}
.contact-card-wide { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-card-wide { grid-column: span 3; }
}
