/* Restauro Architecten — contemporary studio layer over the archived Joomla markup */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --paper: #f3efe8;
  --paper-2: #e7e1d6;
  --ink: #1c1915;
  --muted: #6a635a;
  --line: #d4cdc2;
  --accent: #3f5a45;
  --accent-soft: #5c7a62;
  --white: #faf8f4;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1180px;
}

html {
  height: auto !important;
  overflow-y: scroll;
}

body {
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  min-height: 100%;
}

#wrapper,
.body__home #wrapper {
  min-height: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  background: var(--paper);
}

.row-container {
  max-width: var(--max) !important;
  padding: 0 32px !important;
}

#header-row,
.body__home #header-row .container-fluid,
#header-row .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
}

#header-row {
  padding: 28px 0 0 !important;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

#header-row header {
  display: block !important;
  width: 100% !important;
}

#header-row header .row-fluid {
  display: grid !important;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  column-gap: 32px;
  row-gap: 16px;
  padding-bottom: 22px;
  width: 100% !important;
  max-width: 100% !important;
}

#header-row header .row-fluid::before,
#header-row header .row-fluid::after {
  display: none !important;
  content: none !important;
}

#header-row #logo,
#logo {
  grid-column: 1;
  grid-row: 1;
  float: none !important;
  width: 200px !important;
  max-width: 200px !important;
  margin: 0 !important;
  justify-self: start;
}

#logo img {
  float: none !important;
  width: 200px !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  background: transparent !important;
}

.moduletable.navigation.span8 {
  grid-column: 2;
  grid-row: 1;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  justify-self: end;
  min-width: 0;
}

#as-menu,
#as-menu .menu-wrapper {
  float: none !important;
  width: auto !important;
}

#header-row .moduletable:has(.mod-menu__social) {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  height: auto !important;
}

.mod-menu__social {
  height: auto !important;
  float: none !important;
  position: static !important;
}

.mod-menu__social .menu {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.mod-menu__social .menu li {
  float: none !important;
  display: block !important;
  margin: 0 !important;
}

.mod-menu__social .menu a {
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  color: var(--muted) !important;
  text-decoration: none !important;
  padding: 0 !important;
}

.mod-menu__social .menu .current a,
.mod-menu__social .menu .active a,
.mod-menu__social .menu a:hover {
  color: var(--ink) !important;
}

#as-menu #menu_1,
#as-menu ul#menu_1.as-menu,
#as-menu ul.as-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 28px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: none !important;
}

#as-menu ul.as-menu ul {
  display: none !important;
}

#as-menu ul.as-menu > li {
  float: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
}

#as-menu ul.as-menu > li > a,
#as-menu ul.as-menu > li > span {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid transparent !important;
  line-height: 1.4 !important;
}

#as-menu ul.as-menu > li > a:hover,
#as-menu ul.as-menu > li.current > a,
#as-menu ul.as-menu > li.active > a {
  color: var(--accent) !important;
  border-bottom-color: var(--accent) !important;
}

#content-row {
  padding: 48px 0 72px !important;
}

.studio-intro,
.page-intro {
  max-width: 760px;
  margin: 0 0 48px;
}

.page-intro {
  grid-column: 1 / -1;
}

.studio-intro .eyebrow,
.page-intro .eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.studio-intro h1,
.page-intro h1 {
  font-family: var(--serif) !important;
  font-size: clamp(32px, 5vw, 52px) !important;
  font-weight: 400 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em;
  margin: 0 0 18px !important;
  color: var(--ink) !important;
}

.studio-intro .lead {
  font-family: var(--serif) !important;
  font-size: 22px !important;
  line-height: 1.45 !important;
  color: var(--muted) !important;
  text-align: left !important;
  margin: 0 !important;
  max-width: 36em;
}

p {
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: var(--ink) !important;
  text-align: left !important;
  font-weight: 400 !important;
  padding-top: 0 !important;
  margin: 0 0 1.1em !important;
}

.item_fulltext {
  overflow: hidden;
}

.body__projecten .item_fulltext,
.page-item__projecten .item_fulltext {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.page-item__projecten .item_fulltext .span6,
.page-item__projecten .item_fulltext .span3 {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

.page-item__projecten .item_fulltext .span6 br,
.page-item__projecten .item_fulltext .span3 br {
  display: none;
}

.page-item__projecten .item_fulltext a {
  display: block;
  overflow: hidden;
  color: inherit !important;
  text-decoration: none !important;
}

.page-item__projecten .item_fulltext img {
  width: 100% !important;
  height: 240px !important;
  object-fit: cover;
  display: block;
  margin: 0 0 12px !important;
  background: var(--paper-2);
  filter: saturate(0.92);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.page-item__projecten .item_fulltext h2 a {
  overflow: visible;
}

.page-item__projecten .item_fulltext a:hover img {
  transform: scale(1.03);
  filter: saturate(1);
}

.page-item__projecten .item_fulltext h2 {
  font-family: var(--serif) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.page-item__projecten .item_fulltext h2 a {
  display: inline;
}

/* Category overview thumbs (span3 grids) */
.item_fulltext:has(> .span3) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}

.item_fulltext .span3 {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

.item_fulltext .span3 img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  margin: 0 !important;
  display: block;
}

.item_fulltext .span3 a {
  display: block;
  position: relative;
}

.item_fulltext .span3 img {
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: saturate(0.92);
}

.item_fulltext .span3 a:hover img {
  transform: scale(1.03);
  filter: saturate(1);
}

.item_fulltext .span3 a::after {
  content: attr(title);
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.3;
}

#content-top-row {
  margin: 0 0 36px !important;
}

.project-gallery {
  position: relative;
  margin: 0;
}

.project-gallery__scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.project-gallery__scroller::-webkit-scrollbar {
  display: none;
}

.project-gallery__link {
  flex: 0 0 calc(50% - 9px);
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  display: block !important;
}

.project-gallery:has(.project-gallery__link:only-child) .project-gallery__link {
  flex-basis: 100%;
  max-height: 520px;
}

.project-gallery:has(.project-gallery__link:only-child) .project-gallery__nav,
.project-gallery:not(:has(.project-gallery__link:nth-child(2))) .project-gallery__nav {
  display: none;
}

.project-gallery__link img,
#content-top-row .project-gallery img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
  display: block;
  margin: 0 !important;
}

.project-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 25, 21, 0.72);
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-gallery__prev { left: 12px; }
.project-gallery__next { right: 12px; }

.project-gallery__nav:hover {
  background: var(--ink);
}

.djslider-loader,
.djslider-default {
  opacity: 1 !important;
}

@media (max-width: 700px) {
  .project-gallery__link {
    flex-basis: 100%;
  }
}

.item_fulltext .span6 p,
.item_fulltext p.span6 {
  width: calc(50% - 18px) !important;
  float: left;
  margin-right: 18px !important;
}

.page-item__home_simple .item_fulltext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-item__home_simple .item_fulltext p.span6,
.page-item__home_simple .item_fulltext .span6 {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

h1, h2, h3, h4 {
  font-family: var(--serif) !important;
  color: var(--ink) !important;
  font-weight: 400 !important;
}

a {
  color: var(--accent) !important;
}

a:hover {
  color: var(--ink) !important;
}

#footer-wrapper,
.body__home #footer-wrapper,
#push {
  height: auto !important;
  margin-top: 0 !important;
}

#copyright-row {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px !important;
  background: var(--white);
}

#copyright,
#copyright-row #copyright {
  width: 100% !important;
  text-align: left !important;
  font-size: 14px !important;
  color: var(--muted) !important;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
}

.site-footer .footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.site-footer .footer-tagline {
  font-size: 14px !important;
  color: var(--muted) !important;
  margin: 0 !important;
}

.site-footer .footer-meta {
  font-size: 13px !important;
  color: var(--muted) !important;
  margin: 0 !important;
  letter-spacing: 0.04em;
}

.site-footer .footer-meta a {
  color: var(--ink) !important;
  margin-left: 16px;
  text-decoration: none !important;
  border-bottom: 1px solid var(--line);
}

.page-item__ .item_fulltext:has(> p.span6) {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.4fr) 1fr;
  gap: 36px 56px;
  align-items: start;
}

.page-item__ .item_fulltext:has(> p.span6) > p.span6 {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

.page-item__ .item_fulltext:has(> p.span6) > p.span6:first-of-type {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--muted) !important;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.page-item__ .item_fulltext:has(> p.span6) > p.span6:last-of-type {
  font-size: 18px !important;
  line-height: 1.7 !important;
}

.item_img.img-full {
  float: none !important;
  width: 100% !important;
  margin: 0 0 36px !important;
}

.item_img.img-full img {
  width: 100% !important;
  height: auto !important;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.item_fulltext ul {
  margin: 0 0 1.4em;
  padding-left: 1.15em;
}

.item_fulltext li {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 0.35em;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 420px);
  gap: 24px 56px;
  align-items: start;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-grid img {
  display: none !important;
}

.contact-card h2 {
  font-size: 20px !important;
  margin: 0 0 12px !important;
}

.contact-card p {
  margin: 0 0 4px !important;
  font-size: 16px !important;
}

#back-top a {
  background: var(--ink) !important;
  border: 0 !important;
  color: var(--paper) !important;
  font-family: var(--sans) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: auto !important;
  padding: 10px 14px !important;
}

@media (max-width: 900px) {
  .body__projecten .item_fulltext,
  .page-item__projecten .item_fulltext,
  .page-item__home_simple .item_fulltext,
  .page-item__ .item_fulltext:has(> p.span6) {
    grid-template-columns: 1fr !important;
  }

  .item_fulltext:has(> .span3) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .item_fulltext .span3 {
    width: auto !important;
  }

  .item_fulltext .span6 p,
  .item_fulltext p.span6 {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .row-container {
    padding: 0 18px !important;
  }

  #header-row header .row-fluid {
    grid-template-columns: 1fr;
  }

  #header-row #logo,
  #logo,
  .moduletable.navigation.span8 {
    grid-column: 1;
    justify-self: start;
  }

  .moduletable.navigation.span8 {
    grid-row: 2;
  }

  #header-row .moduletable:has(.mod-menu__social) {
    grid-row: 3;
  }

  #logo img {
    width: 168px !important;
  }

  .item_fulltext:has(> .span3) {
    grid-template-columns: 1fr !important;
  }

  .item_fulltext .span3 {
    width: auto !important;
    margin-right: 0 !important;
  }

  .page-item__projecten .item_fulltext img,
  .item_fulltext .span3 img {
    height: 200px !important;
  }
}
