/* =========================================================
   Theme — change these variables to restyle the whole page
   ========================================================= */
:root {
  --bg: #050505;
  --surface: rgba(14, 14, 14, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f0f0f0;
  --muted: #8f8f8f;
  --accent: #f5f5f5;
  --accent-text: #0a0a0a;
  --error: #ff6b6b;
  --success: #6bd49a;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --sidebar-width: 330px;
  --max-width: 1560px;
  --main-max-width: 1040px;
  --gutter: 14px;
  /* How much of Acuity's page to hide at the top ("Select Appointment") and bottom */
  --booking-crop: 114px;
  --booking-crop-bottom: 85px;
  /* Extra iframe width that pushes Acuity's scrollbar outside the visible box */
  --booking-scrollbar: 20px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Black marble: fine white veins + soft glossy light reflections */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.035) 44%, transparent 58%),
    radial-gradient(ellipse 60% 45% at 18% 12%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(255, 255, 255, 0.035), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1920' height='1080' viewBox='0 0 1920 1080' preserveAspectRatio='xMidYMid slice'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.009' numOctaves='6' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 0 .9 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.13'/%3E%3C/svg%3E") center / cover no-repeat,
    radial-gradient(ellipse at 50% 50%, #0d0d0d 0%, #030303 100%);
}

/* Stippled wall (like the salon's olive-dotted walls).
   Enabled with <body class="wall">; remove the class to go back to black marble. */
body.wall {
  --surface: rgba(0, 0, 0, 0.3);
  --muted: #a8a8a8;
}

body.wall .field input,
body.wall .field textarea {
  background: rgba(0, 0, 0, 0.82);
  border-color: rgba(255, 255, 255, 0.14);
}

body.wall::before {
  background:
    radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(40, 40, 30, 0.22) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1920' height='1080' viewBox='0 0 1920 1080' preserveAspectRatio='xMidYMid slice'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0025' numOctaves='3' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .25 0 0 0 0 .2 3.5 0 0 0 -1.5'/%3E%3C/filter%3E%3Cfilter id='d' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.085 0.1' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .36 0 0 0 0 .29 9 0 0 0 -4.1'/%3E%3CfeGaussianBlur stdDeviation='0.6'/%3E%3C/filter%3E%3Cfilter id='l' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.15' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .96 0 0 0 0 .93 8 0 0 0 -4.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23e4e3dc'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23m%29' opacity='.45'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23d%29' opacity='.9'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23l%29' opacity='.7'/%3E%3C/svg%3E") center / cover no-repeat,
    #e4e3dc;
}

body.wall .card,
body.wall .sidebar {
  /* Darken the wall behind the card instead of covering it: stays black, dots stay visible */
  backdrop-filter: brightness(0.36) contrast(2);
  -webkit-backdrop-filter: brightness(0.36) contrast(2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 40px rgba(20, 20, 10, 0.45);
}

body.wall .site-footer {
  background: none;
}

body.wall .site-footer p {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.85);
  color: #b5b5b5;
  box-shadow: 0 6px 18px rgba(20, 20, 10, 0.35);
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}

/* Glossy polished-stone panel */
.card,
.sidebar {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 38%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 20px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- Layout ---------- */
.layout {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 24px;
  column-gap: clamp(80px, 10vw, 160px);
  align-items: stretch;
}

.sidebar {
  padding: 26px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main {
  width: 100%;
  max-width: var(--main-max-width);
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 24px;
  min-width: 0;
}

.contact {
  grid-column: 2;
  grid-row: 2;
}

.map {
  grid-column: 2;
  grid-row: 1;
}

.booking {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}

.card {
  padding: 24px;
}

/* ---------- Brand ---------- */
.brand {
  text-align: center;
}

.logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--border), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tagline {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0;
}

.services {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.services span {
  margin: 0 5px;
  opacity: 0.5;
}

/* ---------- Social icons ---------- */
.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.social-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.social-btn:active {
  transform: scale(0.94);
}

/* ---------- Info ---------- */
.info-list {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.92rem;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-list svg {
  width: 18px;
  height: 18px;
  fill: var(--muted);
  flex-shrink: 0;
}

.info-list a {
  text-decoration: none;
  overflow-wrap: anywhere;
}

.info-list a:hover {
  text-decoration: underline;
}

/* ---------- Contact form ---------- */
.card.contact {
  padding-bottom: 18px;
}

.contact h2 {
  margin-bottom: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--error);
}

.submit-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #d9d9d9);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: filter 0.2s, opacity 0.2s;
}

.submit-btn:hover {
  filter: brightness(0.92);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
}

.form-status:not(:empty) {
  margin-top: 8px;
}

.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }

/* ---------- Site footer ---------- */
.site-footer {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--gutter) 28px;
  background:
    linear-gradient(90deg, transparent, var(--border-strong), transparent) top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* ---------- Opening hours ---------- */
/* Lives in the sidebar */
.hours {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.hours h2 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.divider {
  width: 90px;
  height: 1px;
  margin: 0 auto 12px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  position: relative;
}

.divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--muted);
  transform: translate(-50%, -50%) rotate(45deg);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.hours-table th,
.hours-table td {
  padding: 9px 2px;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}

.hours-table th {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hours-table td {
  text-align: right;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.hours-table tr.closed td {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table tr.today th,
.hours-table tr.today td {
  color: var(--text);
  font-weight: 600;
}

.hours-table tr.today th::after {
  content: "I dag";
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  background: var(--accent);
  color: var(--accent-text);
  vertical-align: 1px;
}

.hours-note {
  margin: 14px 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Map ---------- */
.card.map {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.map-frame {
  flex: 1;
  min-height: 200px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
  display: block;
  /* Dark-mode look for the standard Google map (pin stays reddish) */
  filter: invert(0.92) hue-rotate(180deg) saturate(0.35) brightness(0.95) contrast(0.95);
}

/* ---------- Booking ---------- */
.booking-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.text-link {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.text-link:hover {
  color: var(--text);
}

.booking-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

/* Oversized and shifted so Acuity's header, footer and scrollbar are clipped away */
.booking-frame iframe {
  position: absolute;
  left: 0;
  top: calc(-1 * var(--booking-crop));
  width: calc(100% + var(--booking-scrollbar));
  height: calc(100% + var(--booking-crop) + var(--booking-crop-bottom));
  border: 0;
}

/* ---------- Focus & motion ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .contact,
  .map,
  .booking {
    grid-column: auto;
    grid-row: auto;
  }

  .booking-frame {
    flex: none;
    height: 520px;
  }
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .site-footer {
    padding: 16px 16px 24px;
    background-size: calc(100% - 32px) 1px;
  }

  .main {
    gap: 16px;
  }

  .card {
    padding: 20px 16px;
  }

  :root {
    --booking-crop: 125px;
    --booking-crop-bottom: 80px;
    --booking-scrollbar: 0px;
  }
}
