/*
 * Vispaleis & Rokerij Van der Star - statische site
 * Nagebouwd naar het WordPress-thema "star" (Sage), zonder Bootstrap.
 * Kleuren en typografie komen 1-op-1 uit resources/assets/styles van dat thema.
 */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap");

:root {
  --primary: #0050be;
  --background: #f6f9ff;
  --border: rgba(151, 151, 151, 0.4);
  --text: #212529;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--serif);
  margin-top: 0;
}

p {
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px;
}

.site-padding {
  padding-top: 8rem;
}

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

/* Buttons
--------------------------------------------------- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  outline: none;
  border: 1px solid var(--primary);
  padding: 0.5rem 1.75rem;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.5;
  color: #fff;
  background-color: var(--primary);
  cursor: pointer;
  text-align: center;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--primary);
}

.btn-primary:hover {
  background-color: #00429c;
  border-color: #00429c;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Header
--------------------------------------------------- */
.banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.banner .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.banner .brand img {
  display: block;
  width: 180px;
  height: auto;
}

.navbar-collapse {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-grow: 1;
}

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.banner .navbar li {
  padding: 0 1rem;
  margin: 0 0.5rem;
}

.banner .navbar li a {
  display: block;
  padding: 0.5rem 0;
  font-weight: 400;
  color: #000;
}

.banner .navbar li.btn-primary {
  padding: 0 2rem;
}

.banner .navbar li.btn-primary a {
  color: #fff;
  font-weight: 700;
}

body.home .banner .navbar a {
  color: #fff;
}

body.home .banner .navbar li.btn-primary a {
  color: #fff;
}

/* Telefoonlink rechts in de balk (vervangt de winkelwagen van de webshop) */
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
}

body.home .header-phone {
  color: #fff;
}

.header-phone svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

/* Witte balk zodra er gescrold wordt */
.banner.scrolling {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.banner.scrolling .navbar li:not(.btn-primary) a,
.banner.scrolling .header-phone {
  color: #000;
}

.banner.scrolling .hamburger-inner,
.banner.scrolling .hamburger-inner::before,
.banner.scrolling .hamburger-inner::after {
  background-color: var(--primary);
}

/* Hamburger */
.navbar-toggler {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.hamburger-box {
  display: inline-block;
  position: relative;
  width: 30px;
  height: 18px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  position: absolute;
  width: 30px;
  height: 3px;
  background-color: #000;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.hamburger-inner {
  top: 50%;
  margin-top: -1.5px;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
  left: 0;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

body.home .hamburger-inner,
body.home .hamburger-inner::before,
body.home .hamburger-inner::after {
  background-color: #fff;
}

.navbar-toggler[aria-expanded="true"] .hamburger-inner {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

@media (max-width: 767px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    background-color: #fff;
    padding: 0.5rem 0 1rem;
  }

  .navbar-collapse.show {
    display: flex;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .banner .navbar li {
    margin: 0;
  }

  .banner .navbar li:not(.btn-primary) a,
  body.home .banner .navbar li:not(.btn-primary) a {
    color: #000;
  }

  .banner .navbar li.btn-primary {
    padding: 0 1rem;
    margin-top: 0.5rem;
  }

  .header-phone,
  body.home .header-phone {
    color: #000;
    padding: 0.75rem 1rem 0;
  }
}

/* Hero
--------------------------------------------------- */
.hero-block {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 912px;
  max-height: 1124px;
  background-size: cover;
  background-position: center center;
  text-align: center;
  padding-top: 12rem;
  margin-bottom: -10rem;
}

.hero-block .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0.55;
}

.hero-block .container {
  position: relative;
}

.hero-block h1 {
  color: #fff;
  font-size: 4.25rem;
  margin-bottom: 2rem;
}

.hero-block .content__container {
  margin-bottom: 2rem;
}

.hero-block .content__container p {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 300;
  max-width: 768px;
  margin: 0 auto;
}

.hero-block .btn-primary {
  margin-bottom: 5rem;
}

.hero-block .scroll-down {
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.75;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .hero-block {
    padding-top: 8rem;
  }

  .hero-block h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .hero-block .content__container {
    margin-bottom: 1rem;
  }

  .hero-block .content__container p {
    font-size: 1rem;
  }

  .hero-block .btn-primary {
    margin-bottom: 3rem;
  }
}

/* Tekst/beeld blokken
--------------------------------------------------- */
.content-block {
  margin-top: 3rem;
  margin-bottom: 3rem;
  /*
   * De hero heeft margin-bottom: -10rem, waardoor dit blok bewust over de
   * onderkant van de herofoto valt. De hero is position: relative en zou dit
   * blok daarom overschilderen; deze z-index zet het er weer bovenop.
   */
  position: relative;
  z-index: 1;
}

.content-block .content-area {
  display: grid;
  grid-template-columns: 1fr;
}

.content-block p {
  font-weight: 300;
}

.content-block .content__container {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--border);
  background-color: #fff;
}

.content-block .content__container > :last-child {
  margin-bottom: 0;
}

.content-block .image__container {
  height: 100%;
}

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

@media (min-width: 768px) {
  .content-block .content-area {
    grid-template-columns: 58.333333% 41.666667%;
  }

  .content-block .content-area.is-reversed .content__container {
    order: 2;
  }

  .content-block .content-area.is-reversed {
    grid-template-columns: 41.666667% 58.333333%;
  }
}

@media (max-width: 767px) {
  .content-block .content__container {
    padding: 1rem;
  }
}

/* Assortiment (uitgelichte producten)
--------------------------------------------------- */
.assortiment {
  background-color: var(--background);
  padding: 4rem 0;
}

.assortiment h2 {
  text-align: center;
  margin-bottom: 2.625rem;
  font-weight: 600;
}

.assortiment .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 30px;
}

.assortiment--item {
  background: #fff;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  padding: 1rem;
  height: calc(100% - 1rem);
  display: flex;
  flex-direction: column;
}

.assortiment--item__thumbnail {
  margin-bottom: 1rem;
}

.assortiment--item__thumbnail img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  display: block;
}

.assortiment--item__title {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 0.25rem;
}

.assortiment--item__price {
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 1rem;
}

.assortiment--item .btn-primary {
  width: 100%;
  margin-top: auto;
}

.assortiment__link {
  margin-top: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .assortiment .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .assortiment .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Recensies
--------------------------------------------------- */
.testimonials-block {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.testimonials-block .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 30px;
  margin-bottom: 1rem;
}

.testimonial__item blockquote {
  font-family: var(--serif);
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.testimonial__item h5 {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.testimonial__item p {
  font-weight: 300;
}

.testimonials-block .btn-secondary {
  display: block;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .testimonials-block .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Openingstijden
--------------------------------------------------- */
section.opening-hours {
  margin-bottom: 5rem;
}

section.opening-hours h1 {
  margin-bottom: 2rem;
}

.table__grid {
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
}

.table__content {
  padding: 2rem;
}

.table__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.table__row:last-child {
  border-bottom: none;
}

.table__time {
  font-weight: 700;
}

.table__time.is-open {
  color: var(--primary);
}

.table__image {
  background-position: center;
  background-size: cover;
  padding-top: 100%;
}

@media (min-width: 992px) {
  .table__grid {
    grid-template-columns: 60% 1fr;
  }

  .table__image {
    padding-top: 0;
  }
}

/* Pagina-inhoud
--------------------------------------------------- */
.page-content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.page-content h2 {
  font-size: 1.75rem;
}

.page-content h3 {
  font-size: 1.375rem;
  margin-top: 2rem;
}

.page-content p {
  font-weight: 300;
}

.page-lead {
  max-width: 820px;
}

.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  background-color: var(--background);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.notice p {
  margin: 0;
  font-weight: 300;
}

/* Contact
--------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact-details {
  border: 1px solid var(--border);
  background-color: var(--background);
  padding: 1.5rem;
}

.contact-details h3 {
  margin-top: 0;
}

.contact-details address {
  font-style: normal;
  font-weight: 300;
  line-height: 1.9;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  border: 1px solid var(--border);
  background-color: #fff;
  border-radius: 0;
}

.contact-form textarea {
  min-height: 12rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background-color: var(--background);
  font-weight: 300;
}

.form-message[hidden] {
  display: none;
}

/* Productoverzicht en productpagina
--------------------------------------------------- */
.archive__heading {
  font-size: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .archive__heading {
    font-size: 1.5rem;
  }
}

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}

@media (min-width: 768px) {
  .products {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
  }
}

.products li {
  display: flex;
  flex-direction: column;
}

.products li > a {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  border: 1px solid var(--border);
  padding: 0.5rem;
  color: #000;
  font-weight: 700;
}

.products li > a:hover {
  border-color: var(--primary);
}

.products img {
  width: 100%;
  display: block;
  margin-bottom: 0.75rem;
  height: 200px;
  object-fit: cover;
  background-color: #fff;
}

.products h2 {
  margin: 0 0 0.125rem;
  color: var(--primary);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 700;
}

.products .price {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.products .price-suffix {
  font-weight: 300;
}

/* Categorietegels op de assortimentspagina */
.products.product-categories li > a {
  padding: 0.5rem;
}

.products.product-categories h2 {
  text-align: center;
  color: #000;
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* Productdetail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

.product-gallery img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  background-color: #fff;
}

.product-gallery .thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.product_title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.summary .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1.5rem;
}

.product__description {
  font-weight: 300;
}

.product__description > :first-child {
  margin-top: 0;
}

.variations {
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.variations caption {
  text-align: left;
  padding: 0.75rem 1rem;
  background-color: var(--background);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.variations table {
  width: 100%;
  border-collapse: collapse;
}

.variations td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 300;
}

.variations tr:last-child td {
  border-bottom: none;
}

.variations td.variation-price {
  text-align: right;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.product_meta {
  font-size: 0.875rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.product_meta span {
  display: block;
}

.order-box {
  border: 1px solid var(--border);
  background-color: var(--background);
  padding: 1.25rem;
}

.order-box h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.order-box p {
  font-weight: 300;
}

.order-box p:last-child {
  margin-bottom: 0;
}

.related h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.breadcrumb {
  font-size: 0.875rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Footer
--------------------------------------------------- */
footer {
  margin-top: 2rem;
  background-color: var(--background);
  padding-top: 2rem;
}

footer h4 {
  font-weight: 600;
}

footer p {
  font-weight: 300;
}

footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

footer ul li {
  padding: 0.25rem 0;
}

footer ul li a {
  color: #000;
  font-weight: 300;
}

footer ul li a:hover {
  color: var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.footer-grid > div {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

footer .opening-hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.opening-hours__day {
  font-weight: 300;
}

.opening-hours__time {
  font-weight: 600;
}

.opening-hours__time.is-open {
  color: var(--primary);
}

.copyright {
  margin-top: 3rem;
  padding: 1rem;
  background-color: var(--primary);
  text-align: center;
}

.copyright h6 {
  color: #fff;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  margin: 0;
}
