/* TheBartlemans.com – site.css
   Framework-free rebuild of the original Bootstrap 3 one-pager. */

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #41c4ab;
  --accent-dark: #2fa790;
  --text: #333;
  --muted: #666;
  --gray: #f5f5f5;
  --dark: #222;
  --heading-font: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body-font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1170px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 300 16px/1.6 var(--body-font);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
p { font-size: 18px; line-height: 1.5; margin: 0 0 12px; }
a { color: var(--accent); text-decoration: none; transition: color .3s; }
a:hover { color: var(--accent-dark); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--text);
}
h2 { font-size: 36px; }
h3 { font-size: 22px; }
@media (min-width: 481px) { h2 { font-size: 50px; } }

hr.colored {
  width: 100px;
  margin: 15px auto;
  border: 0;
  border-top: 2px solid var(--accent);
}
@media (min-width: 768px) { hr.colored { width: 200px; margin: 20px auto; } }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.text-center { text-align: center; }
section { padding: 100px 0; }
@media (max-width: 767px) { section { padding: 75px 0; } }
.band--gray { background: var(--gray); }

.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex-shrink: 0; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 4px;
}
.skip-link:focus { left: 8px; }

/* ===== Navigation ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 30px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding .5s, background-color .5s, border-color .5s;
}
.site-nav.is-scrolled, .site-nav.is-open {
  padding: 12px 0;
  background: rgba(0, 0, 0, .85);
  border-bottom-color: rgba(255, 255, 255, .1);
}
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; position: relative; }
.site-nav__brand img { height: 40px; width: auto; transition: opacity .5s; }
.site-nav__brand:hover img { opacity: .6; }
.site-nav__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav__links a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  font-weight: 400;
  border-radius: 5px;
  transition: color .3s, background-color .3s;
}
.site-nav__links a:hover { color: rgba(255, 255, 255, .6); }
.site-nav__links a.is-active { background: #fff; color: var(--accent); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid rgba(255, 255, 255, .5); border-radius: 4px;
  color: #fff; font-size: 24px; cursor: pointer;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .25); }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 767px) {
  .site-nav { padding: 12px 0; background: rgba(0, 0, 0, .8); border-bottom-color: rgba(255, 255, 255, .1); }
  .nav-toggle { display: inline-flex; }
  .site-nav__links {
    display: none;
    position: absolute; top: calc(100% + 12px); left: -16px; right: -16px;
    flex-direction: column; gap: 0;
    background: rgba(0, 0, 0, .92);
    padding: 6px 16px 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .site-nav.is-open .site-nav__links { display: flex; }
  .site-nav__links a { padding: 13px 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .site-nav__links li:last-child a { border-bottom: 0; }
  .site-nav__links a.is-active { background: transparent; color: var(--accent); }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid; place-items: center;
  text-align: center; color: #fff;
  background: var(--dark);
  overflow: hidden;
  padding: 110px 16px 90px;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .12), rgba(0, 0, 0, .35)); }
.hero__content { position: relative; max-width: 720px; }
.hero__logo { width: 150px; margin: 0 auto; }
.hero__title { font-size: 55px; line-height: 1; margin: 15px 0 0; color: #fff; }
.hero__sub { font-size: 20px; font-weight: 300; line-height: 1.25; margin: 0; }
@media (min-width: 768px) {
  .hero__logo { width: 300px; }
  .hero__title { font-size: 80px; }
  .hero__sub { font-size: 30px; }
}
.hero__scroll {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; border-radius: 50%;
  color: #fff; font-size: 26px;
  transition: color .5s, border-color .5s;
}
.hero__scroll:hover { color: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .5); }

/* ===== About ===== */
.bio { display: grid; gap: 24px; align-items: center; margin-bottom: 60px; }
.bio:last-child { margin-bottom: 0; }
.bio__media img { width: 100%; }
.bio__text { text-align: center; }
.bio__text p:last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .bio { grid-template-columns: 1fr 1fr; gap: 30px; }
  .bio--flip .bio__media { order: 2; }
}

/* ===== Town ===== */
.features { display: grid; gap: 40px 30px; margin-top: 30px; }
@media (min-width: 576px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature__icon { font-size: 64px; line-height: 1; color: var(--text); margin-bottom: 16px; }
.feature h3 { font-size: 20px; }
.feature p { font-size: 16px; margin: 0; }

/* ===== Quote ===== */
.quote {
  position: relative;
  padding: 100px 16px;
  text-align: center; color: #fff;
  background: var(--dark);
  overflow: hidden;
}
@media (min-width: 768px) { .quote { padding: 150px 16px; } }
@media (min-width: 992px) { .quote { padding: 260px 16px; } }
.quote__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.quote__text {
  position: relative;
  max-width: 960px; margin: 0 auto;
  font-size: 30px; font-weight: 300; line-height: 1.15;
}
@media (min-width: 768px) { .quote__text { font-size: 36px; } }
.quote__text a:hover { text-decoration: underline; }

/* ===== Social / gallery ===== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 30px 0; }
.filter {
  font: 400 12px/1 var(--body-font);
  letter-spacing: 1px; text-transform: uppercase;
  padding: 11px 16px;
  border: 1px solid var(--text); border-radius: 4px;
  background: #fff; color: var(--text);
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.filter:hover, .filter[aria-pressed="true"] { background: var(--text); color: #fff; }

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
@media (max-width: 420px) { .gallery { grid-template-columns: 1fr 1fr; } }
.photo a {
  position: relative; display: block;
  aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--gray);
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo a:hover img, .photo a:focus-visible img { transform: scale(1.06); }
.photo__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px;
  background: rgba(0, 0, 0, .65); color: #fff;
  font-size: 12px; line-height: 1.3; text-align: left;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.photo a:hover .photo__caption, .photo a:focus-visible .photo__caption { transform: none; }
@media (hover: none) { .photo__caption { display: none; } }
.photo.is-entering { animation: photoIn .35s ease; }
@keyframes photoIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.gallery__empty { margin-top: 20px; color: var(--muted); }

/* ===== Footer ===== */
.site-footer {
  position: relative;
  padding: 100px 16px;
  text-align: center; color: #fff;
  background: var(--dark);
  overflow: hidden;
}
.site-footer__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.site-footer__text { position: relative; font-size: 13px; margin: 0; }

/* ===== Reveal on scroll (JS only) ===== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== Back to top ===== */
.to-top {
  position: fixed; right: 15px; bottom: 15px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 18px;
  transition: background-color .3s;
}
.to-top:hover { background: var(--accent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-nav, .to-top, .hero__scroll, .filters { display: none !important; }
  .hero { min-height: auto; }
}
