/* ArtCAD Architecture – shared stylesheet (static rebuild of the former Wix site) */
:root {
  --c-dark: #2b2b2b;
  --c-grey: #555555;
  --c-mid: #808080;
  --c-light: #d5d5d5;
  --c-tan: #957b5f;
  --c-orange: #e05300;
  --c-orange-2: #e65727;
  --c-rust: #bd4411;
  --c-text: #ffffff;
  --c-text-soft: #e6e6e6;
  --font-body: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-nav: "DIN Alternate", "DIN Next", Bahnschrift, "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next", "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 980px;
  --header-h: 343px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-grey);
  color: var(--c-text);
  font: 300 15px/1.5 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--c-orange-2); outline-offset: 2px; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: #000; padding: .5em 1em; }
.skip:focus { left: 0; }

/* ------------------------------------------------------------ header */
.site-header {
  position: relative;
  background: var(--c-dark);
}
.photo-header .site-header {
  min-height: var(--header-h);
  background: var(--c-dark) url("/images/thumb/fond-facade.jpg") right top / cover no-repeat;
}
@media (min-width: 801px) {
  .photo-header .site-header { background-image: url("/images/fond-facade.jpg"); }
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px 0 43px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 240px; height: auto; margin-top: 2px; }
.site-nav ul { list-style: none; margin: 58px 0 0; padding: 0; display: flex; }
.site-nav li + li { border-left: 1px solid #fff; }
.site-nav a {
  display: block;
  padding: 0 40px;
  font: 400 14px/18px var(--font-nav);
  letter-spacing: .02em;
  color: var(--c-tan);
  text-decoration: none;
}
.site-nav li:last-child a { padding-right: 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #c6a47e; }
.nav-toggle { display: none; }

/* ------------------------------------------------------------ footer */
.site-footer {
  background: var(--c-grey);
  border-top: 5px solid var(--c-light);
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 20px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-contact p { margin: 0 0 4px; font-size: 15px; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-title { margin-bottom: 12px !important; }
.footer-title a {
  color: var(--c-orange-2);
  font: 400 18px/1.4 var(--font-display);
  letter-spacing: .22em;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.copyright { color: var(--c-orange-2); margin: 0 auto 0 0; padding-left: 15%; font-size: 15px; }

/* social icons */
.social { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 10px; }
.social a { display: block; border-radius: 50%; }
.social svg { display: block; width: 35px; height: 35px; }
.social circle { fill: #b0b0b0; transition: fill .2s; }
.social g { fill: var(--c-grey); }
.social a:hover circle { fill: #d5d5d5; }
.social-small { margin-left: 11px; }
.social-large { gap: 20px; margin-top: 24px; }
.social-large svg { width: 107px; height: 107px; }

/* ------------------------------------------------------------ shared content */
.content { max-width: var(--wrap); margin: 0 auto; padding: 98px 20px 60px; }
.two-col { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.two-col .prose { max-width: 520px; }
.prose { color: var(--c-text-soft); font-size: 15px; line-height: 1.45; }
.prose p:empty { display: none; }
.prose ul { margin: 0 0 1em; padding-left: 1.6em; }
.prose li { margin: 0 0 .25em; }
.prose h2 { font-size: 18px; margin: 1.4em 0 .5em; color: #fff; }
.display-light {
  font: 300 24px/1.4 var(--font-display);
  letter-spacing: .25em;
  color: var(--c-text-soft);
  padding-left: 62px;
}
.display-orange {
  font: 800 22px/1.25 var(--font-display);
  letter-spacing: .2em;
  color: var(--c-orange-2);
  text-transform: uppercase;
  padding: 0 0 0 42px;
}
.back { margin: 36px 0 0 52px; }
.back a { text-decoration: none; color: var(--c-text-soft); }
.back a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ carousel */
.carousel { position: relative; max-width: 889px; margin: 0 auto; }
.carousel-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li { flex: 0 0 100%; scroll-snap-align: start; }
.carousel-track img { width: 100%; aspect-ratio: 889 / 553; object-fit: cover; background: var(--c-dark); }
.carousel-track a { display: block; cursor: zoom-in; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; font: 32px/40px var(--font-body);
  cursor: pointer; display: none;
}
.js .carousel-btn { display: block; }
.carousel-btn:hover { background: rgba(0,0,0,.6); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-count { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: 13px; background: rgba(0,0,0,.4); padding: 1px 8px; border-radius: 10px; }

/* ------------------------------------------------------------ home */
.home .site-header { min-height: 293px; }
.tagline {
  background: var(--c-grey);
  color: var(--c-orange);
  font: 400 22px/40px "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
  padding: 0 16px;
  letter-spacing: -.01em;
}
.hero { max-width: none; background: var(--c-dark); }
.hero .carousel-track img { aspect-ratio: 1434 / 795; max-height: 82vh; }
.hero .carousel-track a { cursor: pointer; text-decoration: none; position: relative; }
.hero-caption {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  text-align: right; text-shadow: 1px 1px 4px rgba(0,0,0,.7);
}
.hero-title { display: block; font: 300 clamp(28px, 5vw, 64px)/1.1 var(--font-display); }
.hero-sub { display: block; margin-top: .4em; font: 600 clamp(13px, 1.6vw, 20px)/1.2 var(--font-display); letter-spacing: .12em; }
.home-spacer { height: 120px; background: var(--c-dark); }
.orange-band { height: 40px; background: var(--c-rust); }
.home .site-footer { border-top-width: 5px; }

/* ------------------------------------------------------------ about */
.about { padding-top: 112px; padding-bottom: 60px; }
.about .display-light { padding-top: 8px; }

/* ------------------------------------------------------------ projects index */
.band { margin: 0; color: #fff; }
.band-dark {
  background: var(--c-dark);
  font: 600 28px/1.4 var(--font-display);
  letter-spacing: .22em;
  padding: 18px max(20px, calc((100% - var(--wrap)) / 2 + 52px));
}
.band-grey {
  background: var(--c-mid);
  font: 600 15px/1.4 var(--font-display);
  letter-spacing: .2em;
  padding: 10px max(20px, calc((100% - var(--wrap)) / 2 + 52px));
}
.proj-section { padding-bottom: 40px; }
.grid {
  list-style: none; margin: 0 auto; padding: 44px 20px 0;
  max-width: 900px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 60px;
}
.grid li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 30px); }
.grid a { display: block; cursor: zoom-in; }
.grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: opacity .2s; }
.grid img.portrait { object-fit: contain; background: transparent; box-shadow: none; }
.grid a:hover img { opacity: .85; }
.galleries ul { list-style: none; margin: 0 auto; padding: 30px 20px 50px; max-width: 900px; display: flex; flex-wrap: wrap; gap: 12px 14px; }
.galleries a {
  display: block; padding: 8px 16px; border: 1px solid var(--c-light); text-decoration: none;
  font: 400 14px/1.3 var(--font-nav); letter-spacing: .08em; text-transform: uppercase;
}
.galleries a:hover { background: var(--c-tan); border-color: var(--c-tan); }

/* project galleries */
.photo-header .content > .carousel:first-of-type, .bim-block .carousel { margin-top: 0; }
.bim-block + .bim-block { margin-top: 70px; }
.bim-block .carousel { max-width: 980px; }
.bim-block .carousel-track img { aspect-ratio: 980 / 553; }
.bim-block .two-col { grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 44px; }
.bim-block .prose { font-size: 15px; }

/* ------------------------------------------------------------ contact */
.photo-full { background: var(--c-grey); }
.photo-full .site-header { min-height: var(--header-h); }
.contact-panel {
  max-width: 1360px; margin: -1px 40px 36px; margin-inline: auto;
  width: calc(100% - 80px);
  background: rgba(85,85,85,.88);
  padding: 30px 40px 40px 218px;
  position: relative; top: 0;
}
@supports (backdrop-filter: blur(2px)) { .contact-panel { background: rgba(85,85,85,.8); backdrop-filter: blur(1px); } }
.photo-full main { background: linear-gradient(to bottom, transparent 0, transparent 607px, #777 607px), url("/images/fond-facade.jpg") right -343px / cover no-repeat; margin-top: 0; }
.photo-full .site-header { background-image: url("/images/fond-facade.jpg"); background-position: right top; }
.contact-title { font: 300 38px/1.2 var(--font-body); margin-bottom: 54px; }
.contact-grid { display: grid; grid-template-columns: 285px 1fr; gap: 0 40px; }
.label-orange { color: #a85f0f; font: 800 16px/1.4 var(--font-display); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 8px; }
.label-spaced { margin-top: 36px; }
.contact-big { font-size: 20px; margin: 0 0 8px; }
.contact-big a { text-decoration: none; }
.contact-big a:hover { text-decoration: underline; }
.contact-grid > div:first-child .label-orange + .contact-big { margin-top: 0; }
.contact-grid > div:first-child .contact-big + .label-orange { margin-top: 14px; }
.contact-write { align-self: start; padding-top: 4px; }
.contact-form { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin: 0 0 14px; }
.field label { display: block; font-size: 14px; margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; background: var(--c-dark); color: #fff; border: 1px solid #c8c8c8;
  font: 300 16px/1.4 var(--font-body); padding: 9px 10px; border-radius: 0;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--c-orange-2); outline-offset: 0; border-color: var(--c-orange-2); }
.form-actions { text-align: right; margin: 0; }
.form-actions .button { min-width: 250px; cursor: pointer; font: 400 15px/1.4 var(--font-body); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 12px 14px; margin: 0 0 16px; border-left: 4px solid; font-size: 15px; }
.form-ok { background: rgba(46,125,50,.25); border-color: #66bb6a; }
.form-err { background: rgba(183,28,28,.28); border-color: #ef5350; }
.form-status[hidden] { display: none; }
.button {
  display: inline-block; background: #a85f0f; color: #fff; text-decoration: none;
  padding: 10px 34px; font-size: 15px; border: 1px solid #c87a2a;
}
.button:hover { background: #c46f12; }
.contact-bottom { grid-template-columns: 1fr 340px; margin-left: -40px; }
.contact-bottom > div:first-child { padding-left: 68px; }
.contact-map { text-align: center; }
.map-link { display: inline-block; border-radius: 50%; overflow: hidden; margin-top: 18px; }
.map-link img { width: 260px; }
.map-alt { font-size: 13px; margin-top: 10px; }

/* ------------------------------------------------------------ blog */
.blog-page { background: var(--c-grey) url("/images/fond-facade.jpg") center top / 100% 900px no-repeat; }
.blog-page .site-header { background: transparent; }
.blog-page main { padding-bottom: 0; }
.blog-wrap {
  max-width: 980px; margin: 0 auto; position: relative;
  background: var(--c-dark); padding: 18px 20px 30px;
}
.blog-nav { font-size: 13px; padding: 4px 0 18px; border-bottom: 1px solid #3c3c3c; margin-bottom: 20px; }
.blog-nav a { text-decoration: none; color: #ddd; }
.post-card { border: 1px solid #444; margin-bottom: 30px; }
.post-card-img img { width: 100%; aspect-ratio: 940 / 411; object-fit: cover; }
.post-card-body { padding: 24px 48px 30px; }
.post-card h2 { font: 400 26px/1.3 var(--font-body); margin: 12px 0 10px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--c-tan); }
.post-card p { color: #ccc; }
.post-meta { font-size: 12px; color: #bbb; display: flex; align-items: center; gap: 6px; margin: 0; }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: #6c8798; color: #fff; display: inline-grid; place-items: center; font-size: 13px; }
.post { border: 1px solid #444; padding: 50px 100px 40px; }
.post h1 { font: 400 40px/1.25 var(--font-body); margin: 26px 0 24px; }
.post-body { font-size: 16px; line-height: 1.6; color: #e6e6e6; }
.post-body h2 { font: 600 16px/1.4 var(--font-body); margin: 1.6em 0 .6em; color: #fff; }
.post-body figure { margin: 0 0 1.4em; }
.post-body blockquote { margin: 1em 0; padding: 0 0 0 20px; border-left: 3px solid var(--c-tan); font-size: 22px; line-height: 1.45; }
.post-body blockquote p { margin: 0; }
.recent { margin-top: 30px; }
.recent h2 { font-size: 16px; display: flex; justify-content: space-between; margin-bottom: 14px; }
.recent h2 a { font-size: 13px; text-decoration: none; }
.recent-card { display: block; width: 292px; max-width: 100%; border: 1px solid #444; text-decoration: none; }
.recent-card img { width: 100%; aspect-ratio: 292 / 164; object-fit: cover; }
.recent-card span { display: block; padding: 16px; font-size: 17px; line-height: 1.3; }

/* ------------------------------------------------------------ legal / plain */
.plain-dark { background: var(--c-dark); }
.plain-dark .site-header { min-height: 343px; }
.legal { padding-top: 112px; padding-bottom: 120px; }
.legal .display-light { padding-left: 62px; }
.legal .prose { line-height: 1.5; }

/* ------------------------------------------------------------ lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; margin: 0 auto; }
.lightbox figcaption { margin-top: 10px; font-size: 14px; color: #ddd; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 48px/1 var(--font-body); padding: 10px 16px; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .site-nav a { padding: 0 22px; }
  .contact-panel { padding-left: 60px; }
}
@media (max-width: 800px) {
  :root { --header-h: 150px; }
  .header-inner { padding: 12px 16px; align-items: center; }
  .brand img { width: 190px; margin: 4px auto 0 34px; }
  .nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; background: rgba(43,43,43,.75);
    border-radius: 4px; cursor: pointer; position: relative; flex: none;
  }
  .js .nav-toggle { display: block; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: #fff; content: ""; transition: transform .2s;
  }
  .nav-toggle-bar { top: 21px; }
  .nav-toggle-bar::before { top: -7px; left: 0; }
  .nav-toggle-bar::after { top: 7px; left: 0; }
  .nav-open .nav-toggle-bar { background: transparent; }
  .nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; background: rgba(43,43,43,.94); }
  .site-nav li + li { border-left: 0; border-top: 1px solid #444; }
  .site-nav ul { margin: 0; }
  .site-nav a { margin: 0; padding: 14px 18px; font-size: 16px; color: #c6a47e; }
  .no-js-nav { display: block; }

  .content { padding: 48px 16px 40px; }
  .two-col, .bim-block .two-col { grid-template-columns: 1fr; gap: 24px; }
  .display-light, .legal .display-light { padding-left: 0; font-size: 20px; }
  .display-orange { padding-left: 0; font-size: 18px; }
  .about, .legal { padding-top: 48px; }
  .plain-dark .site-header { min-height: 120px; }
  .back { margin-left: 0; }
  .tagline { font-size: 17px; line-height: 1.4; padding: 8px 16px; }
  .home .site-header { min-height: 150px; }
  .hero-caption { right: 4%; }
  .hero-sub { letter-spacing: .04em; font-size: 11px; }
  .home-spacer { height: 40px; }
  .band-dark { font-size: 20px; padding: 14px 16px; }
  .band-grey { font-size: 13px; padding: 8px 16px; }
  .grid { grid-template-columns: 1fr; gap: 20px; padding: 24px 16px 0; }
  .grid li:last-child:nth-child(odd) { width: 100%; }
  .carousel-btn { width: 36px; height: 36px; font-size: 26px; line-height: 32px; }

  .contact-panel { width: auto; margin: 0 0 24px; padding: 28px 16px 32px; }
  .photo-full main { background: var(--c-grey); }
  .contact-title { margin-bottom: 24px; }
  .contact-grid, .contact-bottom { grid-template-columns: 1fr; margin-left: 0; gap: 16px; }
  .contact-bottom > div:first-child { padding-left: 0; }
  .contact-write { align-self: start; margin-top: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions .button { width: 100%; min-width: 0; }
  .social-large svg { width: 64px; height: 64px; }
  .contact-map { text-align: left; }

  .blog-wrap { padding: 14px 12px 24px; }
  .blog-page { background-size: auto 600px; }
  .post-card-body { padding: 18px 16px 20px; }
  .post { padding: 24px 16px; }
  .post h1 { font-size: 28px; }
  .post-body blockquote { font-size: 18px; }

  .footer-inner { flex-direction: column; align-items: flex-start; padding: 14px 16px 18px; }
  .copyright { padding-left: 0; margin: 6px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}
