/* madskills.dk — one stylesheet for the whole site */

@font-face { font-family: "Montserrat"; src: url(/assets/fonts/montserrat.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Raleway"; src: url(/assets/fonts/raleway.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fira Code"; src: url(/assets/fonts/firacode.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --green: #c5d444;
  --orange: #edae49;
  --orange-dark: #c0830b;
  --text: #747474;
  --heading: #333333;
  --grey-bg: #f7f7f7;
  --line: #e5e5e5;
  --dark: #1a1a1a;
  --sans: "Montserrat", Arial, Helvetica, sans-serif;
  --display: "Raleway", Arial, Helvetica, sans-serif;
  --mono: "Fira Code", Consolas, "Courier New", monospace;
  --width: 1170px;
  --shadow: 0 15px 25px -12px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 13px/1.85 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }
p { margin: 0 0 20px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; color: var(--heading); font-family: var(--display); font-weight: 400; }
h1 { font-size: 80px; line-height: 1.14; }
h2 { font-size: 42px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.6; }
h4 { font-size: 16px; line-height: 1.6; }
h6 { font-size: 12px; line-height: 1.5; }
strong { color: var(--heading); font-weight: 600; }
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; }

.container { width: 100%; max-width: calc(var(--width) + 60px); margin: 0 auto; padding: 0 30px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 16px; background: #fff; }
.skip-link:focus { left: 8px; }

/* ---------- small building blocks ---------- */

.eyebrow { margin: 0 0 6px; color: var(--text); font: 400 12px/1.5 var(--sans); letter-spacing: 3px; text-transform: uppercase; }
.eyebrow--line::after { content: ""; display: block; width: 40px; height: 2px; margin: 14px 0 22px; background: var(--green); }
.divider { width: 30px; height: 2px; margin: 18px auto 24px; border: 0; background: var(--green); }

.button {
  display: inline-block; padding: 9px 26px; border: 0; border-radius: 30px;
  background: var(--orange); color: #fff; cursor: pointer;
  font: 700 12px/1.6 var(--sans); letter-spacing: 1px; text-transform: uppercase;
  transition: background .2s;
}
.button:hover { background: var(--green); color: #fff; }
.button--small { padding: 7px 22px; font-size: 10px; }

.section { padding: 100px 0; }
.section--grey { background: var(--grey-bg); }
.section--tight { padding: 60px 0; }

/* ---------- header & navigation ---------- */

.site-header { position: absolute; z-index: 10; top: 0; left: 0; right: 0; padding: 20px 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; }
.site-header__logo img { display: block; }

.site-nav ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-nav li { position: relative; }
.site-nav > ul > li > a {
  display: block; padding: 6px 0; color: #fff; border-bottom: 2px solid transparent;
  font: 400 13px/1.5 var(--sans);
}
.site-nav > ul > li > a:hover, .site-nav > ul > li.active > a { color: var(--green); border-bottom-color: var(--green); }
.site-nav__icon a { color: var(--green) !important; border: 0 !important; }
.site-nav__icon span { display: none; }

.submenu {
  position: absolute; top: 100%; left: -20px; min-width: 220px; display: block !important;
  padding: 10px 0 !important; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.submenu a { display: block; padding: 7px 20px; color: var(--heading); font-size: 13px; }
.submenu a:hover { color: var(--orange); background: var(--grey-bg); }
.site-nav li:hover > .submenu, .site-nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }

.menu-toggle { display: none; padding: 6px; border: 0; background: none; color: #fff; font-size: 24px; cursor: pointer; }
.menu-toggle .icon--close { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav > ul > li > a { padding: 12px 30px; color: var(--heading); border-bottom: 1px solid var(--line); }
  .site-nav > ul > li.active > a { border-bottom-color: var(--line); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 !important; }
  .submenu a { padding: 10px 30px 10px 50px; border-bottom: 1px solid var(--line); }
  .site-nav__icon { display: inline-block; }
  .site-nav__icon a { display: flex !important; gap: 12px; align-items: center; }
  .site-nav__icon span { display: inline; color: var(--heading); }
  .menu-open .site-nav { display: block; }
  .menu-open .menu-toggle .icon--open { display: none; }
  .menu-open .menu-toggle .icon--close { display: inline; }
}

/* ---------- page heroes ---------- */

.hero {
  position: relative; display: flex; align-items: center; min-height: 720px; padding: 120px 0 180px;
  background: #333 center / cover no-repeat; color: #fff; text-align: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.hero > .container { position: relative; }
.hero__eyebrow { margin: 0 0 6px; color: var(--green); font: 500 18px/1.5 var(--sans); letter-spacing: 2px; text-transform: uppercase; }
.hero__title { margin: 0; color: #fff; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 160px; fill: var(--grey-bg); }

.title-bar {
  display: flex; align-items: center; height: 250px; padding-top: 50px;
  background: #424b54 url(/assets/img/title-bar.jpg) center / cover no-repeat; text-align: center;
}
.title-bar__title { margin: 0; color: #fff; font-size: 64px; line-height: 1.1; }
.title-bar__subtitle { margin: 8px 0 0; color: var(--orange); font: 400 18px/1.5 var(--sans); }
.title-bar--blog .title-bar__title { font-family: var(--mono); font-size: 56px; }
.title-bar--blog .title-bar__subtitle { font-family: var(--mono); }

/* ---------- layouts ---------- */

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.intro h2 { font-size: 42px; }

.cards { display: grid; gap: 15px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 50px 30px 40px; background: #fff; text-align: center;
  border-bottom: 3px solid var(--orange); box-shadow: var(--shadow);
}
.card__icon { width: 100px; height: 90px; margin-bottom: 30px; fill: var(--green); }
.card .eyebrow { margin-bottom: 0; font-size: 11px; }
.card h3 { margin: 0; color: var(--heading); font-size: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; }
.split--grey .split__text { background: var(--grey-bg); }
.split__image { min-height: 400px; background: center / cover no-repeat; }
.split__text { display: flex; align-items: center; padding: 80px 0; }
.split__text-inner { width: 100%; max-width: calc(var(--width) / 2); padding: 0 50px 0 30px; }
.split--image-right .split__text-inner { margin-left: auto; padding: 0 60px 0 30px; }
.split--image-left .split__text-inner { padding: 0 30px 0 85px; }
.split h2 { font-size: 42px; }
.split .signature { color: var(--text); }
.split .client-logo { display: block; margin: 0 0 40px; }

.feature { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: start; }
.feature__box {
  padding: 40px 25px; background: #fff; text-align: center;
  border-left: 3px solid var(--orange); box-shadow: var(--shadow);
}
.feature__box .card__icon { margin-bottom: 20px; }
.feature__box h3 { margin: 0 0 10px; font-size: 22px; }
.feature__box small { display: block; margin-top: 20px; font-size: 10px; line-height: 1.6; }
.feature h3 { font-size: 22px; }

/* skills */
.skills-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: end; }
.skills-layout__image { align-self: end; justify-self: center; margin-bottom: -100px; }
.skill { position: relative; height: 26px; margin-bottom: 6px; background: #f6f6f6; }
.skill__bar {
  display: block; height: 100%; padding-left: 10px; color: #fff; font-size: 11px; line-height: 26px; white-space: nowrap;
  background-image: linear-gradient(45deg, rgba(255,255,255,.18) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.18) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
}
.skill:nth-child(odd) .skill__bar { background-color: var(--green); }
.skill:nth-child(even) .skill__bar { background-color: var(--orange); }

.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 30px; text-align: center; }
.certs img { height: 109px; width: auto; }
.certs h3 { margin: 14px 0 6px; font-size: 22px; }
.certs p { color: var(--heading); font-size: 13px; }

.tech-logos { display: flex; gap: 40px; align-items: center; margin: 20px 0; }
.tech-logos img { max-height: 60px; width: auto; }
.more-skills { border-bottom: 1px solid var(--line); }
.more-skills summary { padding: 6px 0; color: var(--heading); font-size: 12px; cursor: pointer; list-style: none; }
.more-skills summary::before {
  content: "+"; display: inline-block; width: 16px; height: 16px; margin-right: 14px;
  background: var(--orange); color: #fff; font-weight: 700; line-height: 16px; text-align: center;
}
.more-skills[open] summary::before { content: "−"; }
.more-skills ul { columns: 2; margin: 10px 0 20px; padding-left: 20px; }

/* cases */
.case-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.case-card { padding: 25px 30px 30px; background: #fff; text-align: center; box-shadow: 0 5px 30px rgba(0, 0, 0, .12); border-radius: 4px; }
.case-card img { height: 40px; width: auto; }
.case-card h3 { margin: 6px 0 18px; font-size: 20px; }
.case-card p { margin-bottom: 18px; }

.testimonial { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: start; }
.testimonial__photo { padding: 20px; background: #fff; border-left: 3px solid var(--orange); box-shadow: var(--shadow); }
.testimonial__photo img { display: block; width: 270px; height: 270px; margin: 0 auto; border-radius: 50%; object-fit: cover; }
.testimonial__quote-mark { display: block; margin-bottom: 6px; }
.testimonial h3 { margin: 0 0 14px; font-size: 22px; }
.testimonial cite { display: block; font-style: normal; }
.testimonial cite span { display: block; color: var(--green); }

/* get in touch */
.touch { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: start; }
.touch__photo { width: 360px; height: 360px; margin: 0 auto; border-radius: 50%; object-fit: cover; }
.centered { text-align: center; }

/* contact form */
.contact-form input, .contact-form textarea {
  width: 100%; margin: 0 0 20px; padding: 10px 15px; border: 1px solid #d2d2d2; border-radius: 0;
  background: #fff; color: var(--heading); font: 400 13px/1.5 var(--sans);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form__note { margin: 14px 0 0; font-size: 11px; }

/* legal pages */
.prose { max-width: 900px; }
.prose h2 { margin-top: 1.4em; font-size: 28px; }

/* ---------- blog ---------- */

body.blog { font-family: var(--mono); }
.blog-main, .blog-sidebar { min-width: 0; }
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 50px; padding-top: 60px; padding-bottom: 60px; }
.post-summary { margin-bottom: 50px; }
.post-summary h2 { margin: 0 0 14px; font-size: 18px; }
.post-summary h2 a { color: var(--heading); }
.post-summary h2 a:hover { color: var(--orange); }
.post-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 4px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px;
}
.post-meta a { color: var(--heading); }
.post-meta a:hover { color: var(--orange); }
.post-meta .sep, .site-footer .sep { margin: 0 4px; }
.read-more { color: var(--heading) !important; white-space: nowrap; }

.post__title { margin: 0 0 30px; font-size: 32px; }
.post__content { margin-bottom: 30px; font-size: 13px; }
.post__content h2 { font-size: 26px; margin-top: 1.4em; }
.post__content h3 { font-size: 20px; margin-top: 1.2em; }
.post__content img { display: block; margin: 20px 0; }
.post__content ul, .post__content ol { margin: 0 0 20px; }
.post__content blockquote { margin: 0 0 20px; padding: 6px 20px; border-left: 4px solid var(--green); background: var(--grey-bg); }
.post__content pre {
  margin: 0 0 20px; padding: 16px 20px; overflow-x: auto; background: #1b2b34; color: #d8dee9;
  border: 1px solid #e0dede; font: 14px/1.6 var(--mono); tab-size: 4;
}
.post__content code { font-family: var(--mono); }
.post__content :not(pre) > code { padding: 1px 5px; background: var(--grey-bg); color: var(--heading); }
.post-nav { display: flex; justify-content: space-between; gap: 30px; font-size: 12px; }
.post-nav a:last-child { text-align: right; }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #ebeaea; font-weight: 700; }
.pager a { color: var(--heading); }
.pager span { font-weight: 400; }

.widget { margin-bottom: 40px; }
.widget__title { margin-bottom: 14px; font: 400 13px/1.5 var(--display); color: var(--heading); }
.blog-search { display: flex; }
.blog-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid #d2d2d2; border-right: 0; font: inherit; }
.blog-search button { width: 50px; border: 0; background: #000; color: #fff; cursor: pointer; }
.recent-posts { margin: 0; padding: 0; list-style: none; }
.recent-posts li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.recent-posts a { display: block; color: var(--heading); font-size: 13px; }
.recent-posts a::before { content: "› "; }
.recent-posts a:hover { color: var(--orange); }
.recent-posts time { font-size: 11px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { padding: 2px 8px; border: 1px solid var(--line); color: var(--heading); font-size: 11px; }
.tag-cloud a:hover { border-color: var(--orange); color: var(--orange); }
.search-results h2 { font-size: 18px; }
.search-results mark { background: rgba(237, 174, 73, .35); color: inherit; }

/* ---------- footer ---------- */

.site-footer { border-top: 12px solid var(--green); }
.site-footer__main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding-top: 60px; padding-bottom: 50px; }
.site-footer__main p { margin: 0; }
.site-footer__logo img { display: block; width: 300px; }
.site-footer__address { text-align: right; }
.site-footer__bottom { background: var(--grey-bg); font-size: 11px; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.site-footer__bottom p { margin: 0; }
.social { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.social--facebook { color: #3b5998; }
.social--twitter { color: #55acee; }
.social--linkedin { color: #0077b5; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  h1 { font-size: 56px; }
  h2, .split h2, .intro h2 { font-size: 34px; }
  .split__text-inner, .split--image-right .split__text-inner, .split--image-left .split__text-inner { padding: 0 30px; margin: 0; max-width: none; }
  .feature, .testimonial { grid-template-columns: 280px 1fr; }
}

@media (max-width: 800px) {
  body { font-size: 14px; }
  h1 { font-size: 40px; }
  h2, .split h2, .intro h2 { font-size: 28px; }
  .section { padding: 60px 0; }
  .hero { min-height: 520px; padding-bottom: 120px; }
  .hero__wave { height: 80px; }
  .hero__eyebrow { font-size: 14px; }
  .title-bar { height: 220px; }
  .title-bar__title, .title-bar--blog .title-bar__title { font-size: 40px; }
  .intro, .cards--3, .split, .feature, .testimonial, .touch, .case-cards, .skills-layout, .blog-layout { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr 1fr; }
  .split { min-height: 0; }
  .split__image { min-height: 320px; }
  .split--image-right .split__image { order: -1; }
  .split__text { padding: 60px 0; }
  .skills-layout__image { margin-bottom: -60px; }
  .more-skills ul { columns: 1; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
  .touch__photo { width: 260px; height: 260px; }
  .site-footer__main { grid-template-columns: 1fr; text-align: center; }
  .site-footer__logo { order: -1; justify-self: center; }
  .site-footer__address { text-align: center; }
  .site-footer__bottom-inner { flex-direction: column; gap: 14px; text-align: center; }
}
