/* Downtown Barbers AS Oslo — Website #102
   Urban barbershop × downtown signage modernism
   Fully offline. HTML + CSS only. */

:root {
  --white: #f7f4ee;
  --paper: #fbf8f2;
  --black: #171819;
  --concrete: #9a9da0;
  --red: #c53b32;
  --blue: #486b86;
  --beige: #ddd1bf;
  --line: rgba(23,24,25,0.14);
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier New", Courier, monospace;
  --shadow: 0 18px 44px rgba(20,22,24,0.09);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--black);
  background:
    linear-gradient(180deg, rgba(197,59,50,0.035), transparent 18rem),
    var(--white);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  padding: .7rem 1rem;
  background: var(--black);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 7rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(247,244,238,.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: grid;
  text-decoration: none;
  line-height: 1;
}

.brand-main {
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.brand-sub {
  margin-top: .25rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .11em;
}

.main-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.main-nav a,
.footer-nav a {
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .04em;
}

.main-nav a {
  padding: .45rem 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--red);
  border-color: currentColor;
}

.hero {
  padding: 4.7rem 0 5.4rem;
  scroll-margin-top: 7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sign-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem;
  align-items: center;
  max-width: 560px;
  margin-bottom: 1rem;
  color: var(--concrete);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
}

.sign-rule {
  height: 1px;
  background: var(--line);
}

h1,
h2,
h3 { margin-top: 0; }

h1,
h2 {
  font-weight: 900;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.3rem;
  font-size: clamp(3.5rem, 7.2vw, 6.9rem);
  line-height: .93;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 4.8vw, 4.1rem);
  line-height: .97;
}

h3 {
  margin-bottom: .45rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}

p {
  margin-top: 0;
  color: #5d6062;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 1.8rem;
  font-size: 1.04rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .82rem 1.3rem;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--paper);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23,24,25,.18);
}

.hero-note {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .9rem;
  max-width: 560px;
  margin-top: 2rem;
}

.arrow-mark {
  position: relative;
  width: 38px;
  height: 42px;
}

.arrow-mark::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 30px;
  height: 3px;
  background: var(--red);
}

.arrow-mark::after {
  content: "";
  position: absolute;
  right: 0;
  top: 14px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--red);
  border-right: 3px solid var(--red);
  transform: rotate(45deg);
}

.hero-note p {
  margin-bottom: 0;
  font-family: var(--mono);
  font-size: .75rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(72,107,134,.05), transparent 58%),
    var(--paper);
  box-shadow: var(--shadow);
}

.window-grid,
.style-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(23,24,25,.045) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(90deg, rgba(23,24,25,.045) 1px, transparent 1px) 0 0 / 54px 54px;
}

.sign-block {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 250px;
  padding: 1rem;
  border: 1px solid var(--black);
  background: rgba(247,244,238,.94);
}

.sign-block span,
.sign-block strong,
.sign-block small { display: block; }

.sign-kicker {
  color: var(--red);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
}

.sign-block strong {
  margin: .25rem 0;
  font-size: 1.05rem;
  letter-spacing: .05em;
}

.sign-block small {
  color: var(--blue);
  font-family: var(--mono);
  font-size: .58rem;
}

.street-number {
  position: absolute;
  right: 38px;
  top: 38px;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--paper);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -.05em;
}

.mirror-box {
  position: absolute;
  border: 5px solid var(--black);
  background: linear-gradient(135deg, rgba(154,157,160,.12), transparent 64%);
}

.mirror-one {
  width: 190px;
  height: 270px;
  left: 34%;
  top: 40%;
  transform: translate(-50%, -50%);
}

.mirror-two {
  width: 128px;
  height: 182px;
  right: 46px;
  bottom: 48px;
  border-color: var(--blue);
}

.direction {
  position: absolute;
  height: 6px;
}

.direction::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -6px;
  width: 14px;
  height: 14px;
  border-top: 6px solid currentColor;
  border-right: 6px solid currentColor;
  transform: rotate(45deg);
}

.arrow-a {
  left: 34px;
  bottom: 52px;
  width: 160px;
  background: var(--red);
  color: var(--red);
}

.arrow-b {
  right: 40px;
  top: 194px;
  width: 112px;
  background: var(--blue);
  color: var(--blue);
}

.barber-rules {
  position: absolute;
  left: 38px;
  top: 190px;
  display: grid;
  gap: 9px;
}

.barber-rules i {
  display: block;
  height: 2px;
  background: var(--black);
}

.barber-rules i:nth-child(1) { width: 72px; }
.barber-rules i:nth-child(2) { width: 54px; }
.barber-rules i:nth-child(3) { width: 82px; }
.barber-rules i:nth-child(4) { width: 46px; }
.barber-rules i:nth-child(5) { width: 64px; }

.corner-label {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--concrete);
  font-family: var(--mono);
  font-size: .56rem;
}

.about-section {
  background:
    linear-gradient(90deg, rgba(154,157,160,.09), transparent 34%),
    #fbfaf6;
}

.about-grid {
  display: grid;
  grid-template-columns: 70px .9fr 1.1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
}

.section-index {
  color: var(--concrete);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
}

.about-copy {
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.about-copy p { font-size: 1.02rem; }

.section-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  margin-bottom: 2rem;
}

.signage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-sign {
  position: relative;
  min-height: 315px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .95rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--concrete);
  font-family: var(--mono);
  font-size: .62rem;
}

.mini-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--black);
  color: var(--paper);
  font-size: .58rem;
}

.service-band {
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--paper);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.band-black { background: var(--black); }
.band-red { background: var(--red); }
.band-blue { background: var(--blue); }

.service-copy {
  padding: 1.5rem 1rem 2.6rem;
}

.service-copy p { margin-bottom: 0; }

.service-foot {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  color: var(--concrete);
  font-family: var(--mono);
  font-size: .6rem;
}

.style-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.style-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(72,107,134,.05), transparent 70%),
    #eceae5;
}

.style-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  max-width: 860px;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.style-heading p:last-child { max-width: 700px; }

.sequence-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sequence-step {
  position: relative;
  min-height: 180px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(251,248,242,.86);
}

.sequence-no {
  display: block;
  margin-bottom: 2rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: .64rem;
}

.sequence-label {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sequence-arrow {
  position: relative;
  display: block;
  width: 62px;
  height: 3px;
  margin-top: .85rem;
  background: var(--black);
}

.sequence-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 3px solid var(--black);
  border-right: 3px solid var(--black);
  transform: rotate(45deg);
}

.sequence-step small {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  color: var(--concrete);
  font-family: var(--mono);
  font-size: .58rem;
}

.style-route {
  position: absolute;
  right: 0;
  height: 6px;
  opacity: .4;
}

.route-one {
  top: 84px;
  width: 34%;
  background: var(--red);
}

.route-two {
  bottom: 76px;
  width: 48%;
  background: var(--blue);
}

.closing-section { background: #efede7; }

.closing-grid {
  display: grid;
  grid-template-columns: 1fr minmax(330px, .8fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.closing-copy { max-width: 700px; }

.closing-art {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.closing-sign {
  position: absolute;
  left: 26px;
  top: 26px;
  width: 230px;
  padding: 1rem;
  border: 1px solid var(--black);
  background: rgba(247,244,238,.94);
}

.closing-sign span,
.closing-sign strong,
.closing-sign small { display: block; }

.closing-sign span,
.closing-sign small {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
}

.closing-sign span { color: var(--red); }

.closing-sign strong {
  margin: .25rem 0;
  font-size: .95rem;
  letter-spacing: .05em;
}

.closing-number {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--paper);
  font-size: 1.7rem;
  font-weight: 900;
}

.closing-window {
  position: absolute;
  right: 54px;
  bottom: 28px;
  width: 126px;
  height: 138px;
  border: 5px solid var(--blue);
  background:
    linear-gradient(90deg, transparent 49%, var(--line) 50%, transparent 51%),
    linear-gradient(transparent 49%, var(--line) 50%, transparent 51%);
}

.closing-arrow {
  position: absolute;
  left: 36px;
  height: 5px;
}

.ca1 {
  bottom: 34px;
  width: 44%;
  background: var(--red);
}

.ca2 {
  bottom: 54px;
  width: 28%;
  background: var(--blue);
}

.legal-section { background: #e4e0d8; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legal-card {
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(251,248,242,.68);
}

.legal-card h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  text-transform: none;
  letter-spacing: -.03em;
}

.legal-card p:last-child { margin-bottom: 0; }

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: #e4e0d8;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.footer-brand {
  display: grid;
  gap: .15rem;
}

.footer-brand strong {
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-brand span {
  color: var(--red);
  font-family: var(--mono);
  font-size: .6rem;
}

@media (max-width: 960px) {
  .header-inner {
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: .7rem;
  }

  .hero-grid,
  .closing-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { min-height: 440px; }

  .about-grid {
    grid-template-columns: 56px 1fr;
  }

  .about-copy { grid-column: 2; }

  .signage-grid { grid-template-columns: 1fr; }

  .service-sign { min-height: 245px; }

  .sequence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .section { padding: 4rem 0; }

  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  h2 { font-size: clamp(2.1rem, 10vw, 3rem); }

  .hero { padding-top: 3rem; }

  .sign-line { grid-template-columns: 1fr; }
  .sign-rule { display: none; }

  .hero-visual { min-height: 370px; }

  .sign-block {
    left: 20px;
    top: 20px;
    width: 190px;
  }

  .street-number {
    right: 20px;
    top: 24px;
    width: 76px;
    height: 76px;
    font-size: 1.45rem;
  }

  .mirror-one {
    width: 145px;
    height: 205px;
  }

  .mirror-two {
    width: 92px;
    height: 132px;
    right: 22px;
    bottom: 34px;
  }

  .about-grid,
  .section-heading,
  .style-heading {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .about-copy { grid-column: auto; }

  .sequence-grid { grid-template-columns: 1fr; }

  .sequence-step { min-height: 138px; }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: .55rem 1rem;
  }

  .main-nav a { font-size: .72rem; }

  .hero-visual { min-height: 340px; }

  .sign-block {
    max-width: 62%;
    padding: .8rem;
  }

  .barber-rules { opacity: .45; }

  .closing-sign {
    left: 18px;
    top: 18px;
    max-width: 62%;
  }

  .legal-card,
  .style-panel {
    padding: 1.35rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
