/* Static copy of davidoliviergascon.com — hand-written stylesheet (no Squarespace CSS). */

:root {
  --white-hsl: 0, 0%, 100%;
  --lightAccent-hsl: 0, 0%, 96.08%;
  --accent-hsl: 0, 0%, 85%;
  --darkAccent-hsl: 0, 0%, 47.45%;
  --black-hsl: 0, 0%, 0%;

  --maxPageWidth: 1713px;
  --pagePadding: 5vw;
  --sqs-site-max-width: var(--maxPageWidth);
  --sqs-site-gutter: var(--pagePadding);
  --sqs-mobile-site-gutter: 16px;

  --heading-font: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --body-font: 'Poppins', 'Helvetica Neue', Arial, sans-serif;

  --h1: 2.1; --h2: 1.4; --h3: 1.3; --h4: 1.1;
  --p-large: 1.2; --p-normal: 1.1; --p-small: 0.9;
  --nav: 1.1; --site-title: 1.5;

  --header-h: calc(2.8vw + 34px);

  /* default (white) theme */
  --bg: hsla(var(--white-hsl), 1);
  --fg: hsla(var(--black-hsl), 1);
  --heading: hsla(var(--black-hsl), 1);
  --btn-bg: hsla(var(--black-hsl), 1);
  --btn-fg: hsla(var(--white-hsl), 1);
  --overlay: hsla(var(--black-hsl), 1);
  --field-bg: hsla(var(--white-hsl), 1);
}

/* ---------- section themes (values taken from the Squarespace site.css) ---------- */
.theme-white       { --bg: hsla(var(--white-hsl), 1);       --fg: hsla(var(--black-hsl), 1); --heading: hsla(var(--black-hsl), 1); --btn-bg: hsla(var(--black-hsl), 1); --btn-fg: hsla(var(--white-hsl), 1); --field-bg: hsla(var(--lightAccent-hsl), 1); }
.theme-white-bold  { --bg: hsla(var(--white-hsl), 1);       --fg: hsla(var(--black-hsl), 1); --heading: hsla(var(--black-hsl), 1); --btn-bg: hsla(var(--black-hsl), 1); --btn-fg: hsla(var(--white-hsl), 1); --field-bg: hsla(var(--lightAccent-hsl), 1); }
.theme-light       { --bg: hsla(var(--lightAccent-hsl), 1); --fg: hsla(var(--black-hsl), 1); --heading: hsla(var(--black-hsl), 1); --btn-bg: hsla(var(--black-hsl), 1); --btn-fg: hsla(var(--white-hsl), 1); --field-bg: hsla(var(--white-hsl), 1); }
.theme-light-bold  { --bg: hsla(var(--lightAccent-hsl), 1); --fg: hsla(var(--black-hsl), 1); --heading: hsla(var(--black-hsl), 1); --btn-bg: hsla(var(--black-hsl), 1); --btn-fg: hsla(var(--white-hsl), 1); --field-bg: hsla(var(--white-hsl), 1); }
.theme-dark        { --bg: hsla(var(--darkAccent-hsl), 1);  --fg: hsla(var(--white-hsl), 1); --heading: hsla(var(--white-hsl), 1); --btn-bg: hsla(var(--accent-hsl), 1); --btn-fg: hsla(var(--black-hsl), 1); --field-bg: hsla(var(--white-hsl), .9); }
.theme-dark-bold   { --bg: hsla(var(--darkAccent-hsl), 1);  --fg: hsla(var(--white-hsl), 1); --heading: hsla(var(--accent-hsl), 1); --btn-bg: hsla(var(--accent-hsl), 1); --btn-fg: hsla(var(--black-hsl), 1); --field-bg: hsla(var(--white-hsl), .9); }
.theme-black       { --bg: hsla(var(--black-hsl), 1);       --fg: hsla(var(--white-hsl), 1); --heading: hsla(var(--white-hsl), 1); --btn-bg: hsla(var(--accent-hsl), 1); --btn-fg: hsla(var(--black-hsl), 1); --field-bg: hsla(var(--white-hsl), .9); }
.theme-black-bold  { --bg: hsla(var(--black-hsl), 1);       --fg: hsla(var(--white-hsl), 1); --heading: hsla(var(--accent-hsl), 1); --btn-bg: hsla(var(--accent-hsl), 1); --btn-fg: hsla(var(--black-hsl), 1); --field-bg: hsla(var(--white-hsl), .9); }
.theme-bright      { --bg: hsla(var(--accent-hsl), .97);    --fg: hsla(var(--black-hsl), 1); --heading: hsla(var(--black-hsl), 1); --btn-bg: hsla(var(--black-hsl), 1); --btn-fg: hsla(var(--accent-hsl), 1); --field-bg: hsla(var(--white-hsl), 1); }
.theme-bright-inverse { --bg: hsla(var(--black-hsl), 1);    --fg: hsla(var(--accent-hsl), 1); --heading: hsla(var(--white-hsl), 1); --btn-bg: hsla(25.05, 91%, 60.78%, 1); --btn-fg: hsla(var(--black-hsl), 1); --field-bg: hsla(var(--white-hsl), .9); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--heading);
  margin: 1rem 0;
  overflow-wrap: anywhere;
}
/* Squarespace fluid type scale: min(calc((v-1)*1.2vw + 1rem), max(calc((v-1)*0.012*maxWidth + 1rem), v*1rem)) */
h1 { font-size: min(calc((var(--h1) - 1) * 1.2vw + 1rem), max(calc((var(--h1) - 1) * 0.012 * var(--maxPageWidth) + 1rem), calc(var(--h1) * 1rem))); }
h2 { font-size: min(calc((var(--h2) - 1) * 1.2vw + 1rem), max(calc((var(--h2) - 1) * 0.012 * var(--maxPageWidth) + 1rem), calc(var(--h2) * 1rem))); }
h3 { font-size: min(calc((var(--h3) - 1) * 1.2vw + 1rem), max(calc((var(--h3) - 1) * 0.012 * var(--maxPageWidth) + 1rem), calc(var(--h3) * 1rem))); }
h4, h5, h6 { font-size: min(calc((var(--h4) - 1) * 1.2vw + 1rem), max(calc((var(--h4) - 1) * 0.012 * var(--maxPageWidth) + 1rem), calc(var(--h4) * 1rem))); }
p, li { font-size: min(calc((var(--p-normal) - 1) * 1.2vw + 1rem), max(calc((var(--p-normal) - 1) * 0.012 * var(--maxPageWidth) + 1rem), calc(var(--p-normal) * 1rem))); }
p { margin: 1rem 0; }
p.sqsrte-large, .sqsrte-large { font-size: min(calc((var(--p-large) - 1) * 1.2vw + 1rem), max(calc((var(--p-large) - 1) * 0.012 * var(--maxPageWidth) + 1rem), calc(var(--p-large) * 1rem))); }
p.sqsrte-small, .sqsrte-small { font-size: calc((var(--p-small) - 1) * calc(.012 * min(100vh, 900px)) + 1rem); }
ul, ol { padding-left: 1.4em; }
blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 2px solid currentColor; font-style: italic; }
hr.rule { border: 0; border-top: 1px solid currentColor; opacity: .4; margin: 1rem 0; }

/* ---------- header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5em;
  padding: 1.4vw var(--sqs-site-gutter);
  color: var(--fg);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header.theme-white, .site-header.theme-white-bold, .site-header.theme-light, .site-header.theme-light-bold, .site-header.theme-bright { --fg: hsla(var(--black-hsl), 1); }
.site-header.theme-bright-inverse, .site-header.theme-dark, .site-header.theme-dark-bold, .site-header.theme-black, .site-header.theme-black-bold { --fg: hsla(var(--white-hsl), 1); }
.site-title { display: none; /* hidden on the original site (custom CSS) */ font-family: var(--heading-font); font-weight: 500; text-decoration: none; }
.site-nav { display: flex; flex: 1; align-items: center; flex-wrap: wrap; gap: .25em 1.1em; font-family: var(--body-font); min-width: 0; }
.site-nav a, .site-nav .lang {
  font-size: min(calc((var(--nav) - 1) * 1.2vw + 1rem), max(calc((var(--nav) - 1) * 0.012 * var(--maxPageWidth) + 1rem), calc(var(--nav) * 1rem)));
  text-decoration: none; padding: .1em 0; white-space: nowrap; line-height: 1.2;
}
.site-nav a:nth-child(5) { margin-left: auto; }   /* BLOG + CONTACT sit at the right, as on the live site */
.site-nav a.active { border-bottom: 2px solid currentColor; }
.site-nav .lang { margin-left: .2em; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: inherit; margin-left: auto; }
.burger span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .2s; }

@media (max-width: 767px) {
  .site-header { padding: 14px var(--sqs-mobile-site-gutter); }
  .site-nav {
    display: none; position: fixed; inset: 0; z-index: 30;
    flex-direction: column; justify-content: center; align-items: center; gap: 1.2em;
    background: hsla(var(--white-hsl), 1); color: hsla(var(--black-hsl), 1);
  }
  .site-nav a, .site-nav .lang { font-size: 1.6rem; }
  .site-nav a:nth-child(5) { margin-left: 0; }
  body.nav-open .site-nav { display: flex; }
  body.nav-open { overflow: hidden; }
  .burger { display: block; position: relative; z-index: 31; }
  body.nav-open .burger { color: hsla(var(--black-hsl), 1); }
  body.nav-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  body.nav-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- sections ---------- */
.page-section {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg); color: var(--fg);
  isolation: isolate;
}
.page-section.vertical-alignment--top { justify-content: flex-start; }
.page-section.vertical-alignment--bottom { justify-content: flex-end; }
.page-section.section-height--large { min-height: 100vh; }
.page-section.section-height--medium { min-height: 66vh; }
.page-section.section-height--small { min-height: 33vh; }
.section-background { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.section-background .bg-img, .section-background .bg-video { width: 100%; height: 100%; object-fit: cover; }
.section-background .bg-overlay { position: absolute; inset: 0; background: var(--overlay); }
.content-wrapper { position: relative; z-index: 1; width: 100%; padding: 2vmax 0; }
.content { width: 100%; }
.page-section.content-width--medium .content { width: 75%; margin: 0 auto; }
.page-section.content-width--narrow .content { width: 50%; margin: 0 auto; }
/* first section: keep the content clear of the floating header when it has no background media */
body.first-no-bg .sections > .page-section:first-child > .content-wrapper { padding-top: calc(var(--header-h) + 1vmax); }
body.first-has-bg .sections > .page-section:first-child > .content-wrapper { padding-top: calc(var(--header-h)); }

/* ---------- fluid engine grid (grid-area rules are emitted per section) ---------- */
.fluid-engine { width: 100%; }
.fluid-engine > .fe-block { min-width: 0; position: relative; }
.fe-block > .sqs-block { display: flex; flex-direction: column; height: 100%; width: 100%; }
.fe-block > .sqs-block > * { width: 100%; }
.sqs-block-alignment-wrapper { display: flex; width: 100%; height: 100%; }
.text-block > :first-child, .accordion-body > :first-child, .video-caption > :first-child { margin-top: 0; }
.text-block > :last-child, .accordion-body > :last-child, .video-caption > :last-child { margin-bottom: 0; }
.text-block { overflow-wrap: anywhere; }

/* legacy 12-column layout (blog posts) */
.legacy-layout .row { display: flex; flex-wrap: wrap; margin: 0 -17px; }
.legacy-layout .col { padding: 0 17px; min-width: 0; flex: 0 0 100%; }
.legacy-layout .col > .sqs-block { padding: 17px 0; }
@media (min-width: 768px) {
  .legacy-layout .col-1 { flex-basis: 8.3333%; } .legacy-layout .col-2 { flex-basis: 16.6667%; } .legacy-layout .col-3 { flex-basis: 25%; }
  .legacy-layout .col-4 { flex-basis: 33.3333%; } .legacy-layout .col-5 { flex-basis: 41.6667%; } .legacy-layout .col-6 { flex-basis: 50%; }
  .legacy-layout .col-7 { flex-basis: 58.3333%; } .legacy-layout .col-8 { flex-basis: 66.6667%; } .legacy-layout .col-9 { flex-basis: 75%; }
  .legacy-layout .col-10 { flex-basis: 83.3333%; } .legacy-layout .col-11 { flex-basis: 91.6667%; } .legacy-layout .col-12 { flex-basis: 100%; }
}

/* ---------- blocks ---------- */
figure { margin: 0; }
.image-block { width: 100%; height: 100%; display: flex; flex-direction: column; }
.image-block .sqs-block-alignment-wrapper { flex: 1; }
.image-block a { display: block; width: 100%; }
.image-block img { width: 100%; height: auto; }
.fluid-engine .image-block.image-fit:not(.has-caption) { position: relative; height: 100%; }
.fluid-engine .image-block.image-fit:not(.has-caption) img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; aspect-ratio: auto; }
.fluid-engine .image-block.image-fit.pos-top img { object-position: top; }
.fluid-engine .image-block.image-fit.pos-bottom img { object-position: bottom; }
.fluid-engine .image-block.image-fit.pos-left img { object-position: left; }
.fluid-engine .image-block.image-fit.pos-right img { object-position: right; }
.fluid-engine .image-block.image-fit.has-caption img { height: auto; }
.image-block.image-fill .sqs-block-alignment-wrapper, .image-block.image-fill a { height: 100%; }
.image-block.image-fill img { height: 100%; object-fit: cover; aspect-ratio: auto; }
.image-block.pos-top .sqs-block-alignment-wrapper { align-items: flex-start; }
.image-block.pos-bottom .sqs-block-alignment-wrapper { align-items: flex-end; }
.image-caption { font-size: .85em; margin-top: .6em; opacity: .85; }

.video-block { width: 100%; }
.video-embed { position: relative; width: 100%; height: 0; background: #000; }
.video-embed iframe, .video-embed img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-native { width: 100%; background: #000; }
.video-native video, .video-native img { width: 100%; height: 100%; object-fit: cover; }
.video-caption { margin-top: .75em; font-size: .9em; }

.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--gap, 12px); width: 100%; }
.gallery.cols-1 { --cols: 1; } .gallery.cols-2 { --cols: 2; } .gallery.cols-3 { --cols: 3; } .gallery.cols-4 { --cols: 4; } .gallery.cols-5 { --cols: 5; } .gallery.cols-6 { --cols: 6; }
.gallery-item { min-width: 0; }
.gallery-item a { display: block; }
.gallery.crop .gallery-item img { width: 100%; aspect-ratio: var(--ar, 1/1); object-fit: cover; }
.gallery.nocrop .gallery-item img { width: 100%; height: auto; }
.gallery-item figcaption { font-size: .85em; margin-top: .5em; }
.gallery.gallery-slideshow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--gap, 12px); -webkit-overflow-scrolling: touch; }
.gallery.gallery-slideshow .gallery-item { flex: 0 0 100%; scroll-snap-align: start; }
.gallery.gallery-slideshow .gallery-item img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
@media (max-width: 767px) {
  .gallery.cols-3, .gallery.cols-4, .gallery.cols-5, .gallery.cols-6 { --cols: 2; }
}

.button-block { display: flex; width: 100%; }
.button-block.align-center { justify-content: center; }
.button-block.align-right { justify-content: flex-end; }
.btn {
  display: inline-block; font-family: var(--body-font); font-weight: 400; letter-spacing: 0; text-decoration: none;
  line-height: 1.2; cursor: pointer; transition: opacity .2s;
}
.btn:hover { opacity: .8; }
.btn-small { font-size: .9em; padding: .8em 1.4em; }
.btn-medium { font-size: 1em; padding: 1em 1.8em; }
.btn-large { font-size: 1.1em; padding: 1.3em 2.3em; }
.btn-primary { border: 2px solid var(--fg); color: var(--fg); background: transparent; border-radius: 0; }
.btn-secondary { background: var(--btn-bg); color: var(--btn-fg); border: 0; border-radius: 300px; }
.btn-tertiary { padding-left: 0; padding-right: 0; border-bottom: 2px solid currentColor; color: var(--fg); }

.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1em; }
.social-links a { display: inline-block; width: 24px; height: 24px; color: var(--fg); }
.social-links svg { width: 100%; height: 100%; }

.contact-form { width: 100%; max-width: 100%; }
.contact-form label { display: block; font-size: .95em; margin: 1.1em 0 .35em; }
.contact-form .required { font-size: .8em; opacity: .7; margin-left: .3em; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: .35em; padding: .8em .9em; border: 0; border-radius: 0;
  background: var(--field-bg); color: hsla(var(--black-hsl), 1); font: inherit; font-size: 1em;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid hsla(var(--black-hsl), .5); }
.contact-form .form-actions { display: flex; justify-content: center; margin-top: 1.5em; }

.accordion { width: 100%; border-top: 1px solid currentColor; }
.accordion-item { border-bottom: 1px solid currentColor; }
.accordion-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 1em;
  padding: 1.2em .5em; font-family: var(--heading-font); font-weight: 500; font-size: 1.1em; letter-spacing: -.02em; position: relative;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.acc-icon { position: absolute; right: .5em; width: 14px; height: 14px; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: currentColor; left: 0; top: 6px; width: 14px; height: 2px; }
.acc-icon::after { transform: rotate(90deg); transition: transform .2s; }
.accordion-item[open] .acc-icon::after { transform: rotate(0); }
.accordion-body { padding: 0 .5em 1.4em; }

.summary-block { width: 100%; }
.summary-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 60px; }
.summary-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.summary-title { font-size: 1.05em; margin: .8em 0 .3em; }
.summary-title a, .summary-more { text-decoration: none; }
.summary-more { font-size: .9em; border-bottom: 1px solid currentColor; }
@media (max-width: 767px) { .summary-grid { grid-template-columns: 1fr; gap: 32px; } }

.map-block { width: 100%; }
.map-block iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.map-address { font-size: .9em; }

.code-block { width: 100%; }
.spacer { width: 100%; }

/* ---------- blog ---------- */
.blog-list-section .content, .blog-item-section .content { padding: 0 var(--sqs-site-gutter); max-width: var(--maxPageWidth); margin: 0 auto; }
.blog-list { width: 100%; }
.blog-list.layout-masonry { columns: var(--cols, 3); column-gap: var(--blog-horizontal-spacing, 42px); }
.blog-list.layout-masonry .blog-card { break-inside: avoid; margin-bottom: var(--blog-vertical-spacing, 50px); }
.blog-list.layout-singleColumn { max-width: 1000px; margin: 0 auto; }
.blog-list.layout-singleColumn .blog-card { margin-bottom: var(--blog-vertical-spacing, 133px); }
.blog-list.align-center .blog-card-text { text-align: center; }
.blog-card { display: block; }
.blog-thumb img { width: 100%; height: auto; }
.blog-card-text { padding-top: var(--blog-image-spacing, 20px); }
.blog-title { margin: 0 0 .5em; font-size: 1.3em; }
.blog-title a, .blog-more, .pag-title, .pag-label { text-decoration: none; }
.blog-meta { font-size: .85em; opacity: .8; margin-bottom: .6em; }
.blog-more { font-size: .95em; border-bottom: 1px solid currentColor; }
.blog-category-title { column-span: all; }
@media (max-width: 767px) { .blog-list.layout-masonry { columns: 1; } .blog-list.layout-singleColumn .blog-card { margin-bottom: 60px; } }

.blog-item { max-width: 1200px; margin: 0 auto; }
.blog-item-top { text-align: center; margin-bottom: 2.5rem; }
.blog-item-meta { font-size: .9em; opacity: .8; }
.blog-item-meta time::after { content: ""; display: inline-block; width: 1em; }
.blog-item-content .legacy-layout { width: 100%; }
.blog-item-tags { margin-top: 2rem; font-size: .9em; }
.item-pagination { display: flex; justify-content: space-between; gap: 2em; margin: 4rem auto 0; max-width: 1200px; border-top: 1px solid hsla(var(--black-hsl), .15); padding-top: 2rem; }
.item-pagination a { display: flex; flex-direction: column; gap: .3em; max-width: 48%; }
.item-pagination .pag-next { margin-left: auto; text-align: right; }
.pag-label { font-size: .8em; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.pag-title { font-family: var(--heading-font); font-weight: 500; }
.pag-prev .pag-label::before { content: "← "; }
.pag-next .pag-label::after { content: " →"; }

/* ---------- footer ---------- */
.footer-sections .page-section { min-height: 0; }

/* ---------- lightbox ---------- */
.lightbox-dialog { border: 0; padding: 0; background: rgba(0, 0, 0, .92); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox-dialog::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox-dialog img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; }
.lightbox-dialog button { position: fixed; top: 16px; right: 16px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  :root { --header-h: 62px; }
  .page-section.content-width--medium .content, .page-section.content-width--narrow .content { width: 100%; }
  .blog-list-section .content, .blog-item-section .content { padding: 0 var(--sqs-mobile-site-gutter); }
  .item-pagination { flex-direction: column; }
  .item-pagination a { max-width: 100%; }
  .item-pagination .pag-next { text-align: left; margin-left: 0; }
}
