/* =========================================================================
   Reptielenhuis De Aarde — website styles
   Colours and sizes used everywhere are defined once here: */
:root {
  --green: #58813b;        /* brand green: headings, bars, links */
  --cream: #fcfbee;        /* background of the content boxes */
  --dark: #202020;         /* menu, footer */
  --black: #000;           /* top bar */
  --page-bg: #404040;      /* behind everything */
  --text: #505050;         /* body text */
  --hero-height: 700px;    /* height of the header photo */
  --max-width: 1300px;     /* width of the whole site */
  --content-width: 900px;  /* width of the text column */
}
/* ========================================================================= */

@font-face { font-family: 'Ubuntu'; src: url('/fonts/ubuntu-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Ubuntu'; src: url('/fonts/ubuntu-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face {
  font-family: 'Informal';
  src: url('/fonts/informal-011-bt.woff2') format('woff2'), url('/fonts/informal-011-bt.woff') format('woff');
  font-weight: normal; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  font: 400 16px/22px 'Ubuntu', Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); }
strong, b { font-weight: 700; }

h1, h2, h3 { font-family: 'Informal', Arial, sans-serif; color: var(--green); margin: 0; }
h1 { font-weight: 400; font-size: 20pt; line-height: 30px; margin-bottom: 10px; }
h2 { font-weight: 400; font-size: 14pt; line-height: 22px; margin-bottom: 16px; }
h3 { font-weight: 400; font-size: 12pt; line-height: 20px; margin-bottom: 12px; }
p { margin: 0 0 22px; }
ul, ol { margin: 0 0 22px 18px; padding: 0; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 60px; z-index: 2000; background: #fff; padding: 8px 12px; }

/* ---------- top bar & menu ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 50px; background: var(--black);
  box-shadow: 5px 5px 10px 0 var(--dark);
}
.topbar__inner { position: relative; max-width: var(--max-width); height: 50px; margin: 0 auto; }
.logo { position: absolute; top: 0; left: 70px; height: 200px; z-index: 5; box-shadow: 2px 5px 5px 0 var(--dark); }
.logo img { display: block; height: 100%; width: auto; }

.nav { position: absolute; top: 0; left: 280px; line-height: 50px; }
.nav__list, .nav__sub { list-style: none; margin: 0; padding: 0; }
.nav__item { display: inline-block; position: relative; }
.nav__item > a { color: #fff; text-decoration: none; margin-right: 30px; }
.nav__item > a:hover, .nav__item.is-active > a { color: var(--green); }
.nav__toggle { display: none; }
.nav__sub {
  position: absolute; top: 50px; left: -20px; min-width: 220px;
  background: var(--dark); box-shadow: 2px 2px 5px 0 var(--dark);
  max-height: 0; overflow: hidden; transition: max-height .5s ease-out; z-index: 10;
}
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { max-height: 600px; }
.nav__sub li { padding: 0 20px; border-bottom: 1px solid var(--green); white-space: nowrap; }
.nav__sub li:last-child { border-bottom: 0; }
.nav__sub a { color: #fff; text-decoration: none; display: block; }
.nav__sub a:hover, .nav__sub li.is-active a { color: var(--green); }

.topbar__right { position: absolute; top: 0; right: 0; height: 50px; display: flex; align-items: center; gap: 10px; padding-right: 10px; }
.lang { display: flex; gap: 6px; color: #fff; margin-right: 10px; }
.lang a { color: var(--green); text-decoration: none; }
.lang a.is-active { color: #fff; }
.social img { display: block; width: 30px; height: 30px; }

.hamburger { display: none; position: relative; width: 30px; height: 24px; margin-left: 10px; background: none; border: 0; padding: 0; cursor: pointer; }
.hamburger span { position: absolute; left: 0; width: 30px; height: 4px; background: #fff; transition: all .35s cubic-bezier(.75,.25,.1,.95); }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }
.hamburger[aria-expanded="true"] span:nth-child(3) { opacity: 0; }

/* ---------- main area ---------- */
.main {
  max-width: var(--max-width); margin: 0 auto; padding-top: 50px; min-height: 600px;
  background: url('/images/site/background.jpg') center bottom / 100% repeat-y;
}
.main--no-hero { padding-top: 230px; }

.hero { position: relative; height: var(--hero-height); box-shadow: 5px 5px 10px 0 var(--dark); overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center top; background-repeat: no-repeat;
  opacity: 0; transition: opacity 2.5s ease;
}
.hero__slide.is-visible { opacity: 1; }

.content { position: relative; z-index: 10; max-width: var(--content-width); margin: -150px auto 0; }
.main--no-hero .content { margin-top: 0; }

.content-header {
  background: var(--green); color: #fff; text-align: center;
  font: 700 23pt/30px 'Informal', Arial, sans-serif;
  padding: 15px; box-shadow: 2px 2px 5px 0 var(--dark);
}

.content-box {
  background: var(--cream); margin-top: 20px; padding: 30px; min-height: 300px;
  box-shadow: 2px 2px 5px 0 var(--dark); overflow: hidden;
}
.content-box img, .block img {
  border: 10px solid #fff; box-shadow: 2px 5px 5px 0 #a0a0a0; margin: 0 0 10px;
}
.content-box img[style*="float: right"] { margin-left: 20px; }
.content-box img[style*="float: left"] { margin-right: 20px; }
.content-box iframe { max-width: 100%; border: 10px solid #fff; box-shadow: 2px 5px 5px 0 #a0a0a0; }
.content-box table { border-collapse: collapse; margin-bottom: 22px; }
.content-box td, .content-box th { padding: 4px 10px 4px 0; vertical-align: top; text-align: left; }

/* side-by-side photos: <div class="photos"> <img ...> <img ...> </div> */
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 22px; }
.photos img { width: 100%; margin: 0; }

/* ---------- homepage blocks ---------- */
.block {
  margin-top: 20px; min-height: 300px; padding: 30px 30px 8px 480px;
  background-color: var(--cream); background-size: 450px; background-repeat: no-repeat; background-position: left top;
  box-shadow: 2px 2px 5px 0 var(--dark); overflow: hidden;
}
.block--alt { background-color: var(--green); background-position: right top; padding: 30px 480px 8px 30px; color: #fff; }
.block--alt h1, .block--alt h2, .block--alt a { color: #fff; }

/* ---------- the two green/cream notes under every page ---------- */
.notes {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px;
  background: var(--cream); box-shadow: 2px 2px 5px 0 var(--dark); text-align: center;
}
.note { display: block; padding: 30px; text-decoration: none; color: var(--green); }
.note--right { background: var(--green); color: #fff; }
.note h1, .note h2 { font-size: 13pt; line-height: 20px; font-weight: 700; }
.note--right h1, .note--right h2 { color: #fff; }
.note p:last-child { margin-bottom: 0; }
.note:hover { filter: brightness(1.04); }

/* ---------- forms ---------- */
.form { max-width: 560px; margin: 10px 0 22px; }
.form__row { margin: 0 0 16px; border: 0; padding: 0; }
.form__row > label:not(.form__choice), .form__row legend { display: block; font-weight: 700; margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=number],
.form input[type=date], .form input[type=time], .form input[type=url], .form select, .form textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  border: 1px solid #c9c7b4; background: #fff; border-radius: 3px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.form__choice { display: block; font-weight: 400; margin-bottom: 4px; cursor: pointer; }
.form__req { color: #c0392b; }
.form__help { display: block; margin-top: 4px; color: #777; }
.form__note { font-size: 14px; color: #777; margin-bottom: 12px; }
.form__hp { position: absolute; left: -9999px; }
.button {
  display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 3px;
  padding: 12px 28px; font: 700 16px 'Ubuntu', Arial, sans-serif; cursor: pointer; text-decoration: none;
}
.button:hover { filter: brightness(1.1); }
.button[disabled] { opacity: .6; cursor: wait; }
.form__status { margin-top: 14px; font-weight: 700; }
.form__status.is-ok { color: var(--green); }
.form__status.is-error { color: #c0392b; }

/* ---------- footer ---------- */
.footer { margin-top: 100px; background: var(--dark); color: #fff; padding: 20px 50px 30px; box-shadow: 5px -5px 10px 0 var(--dark); }
.footer__inner { max-width: var(--max-width); margin: 0 auto; display: flex; gap: 40px; align-items: flex-start; }
.footer__logo { flex: none; height: 240px; margin-top: -40px; box-shadow: 5px 5px 10px 0 var(--dark); }
.footer__logo img { height: 100%; width: auto; display: block; }
.footer__hours { flex: 1; }
.footer__address { order: 3; }
.footer h2 { font-size: 20pt; line-height: 30px; margin: 0 0 6px; color: var(--green); }
.footer__hours h2 + * { margin-top: 0; }
.footer__hours h2:not(:first-child) { margin-top: 22px; }
.footer a { color: #fff; }

/* ---------- smaller screens ---------- */
@media (max-width: 1300px) {
  .hamburger { display: block; }
  .nav {
    position: fixed; top: 50px; right: 0; left: auto; width: 300px; max-width: 100%;
    max-height: calc(100vh - 50px); overflow-y: auto; line-height: 30px;
    background: var(--dark); border-top: 1px solid var(--green);
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__item { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--green); }
  .nav__item > a { flex: 1; margin: 0; padding: 10px 20px; }
  .nav__toggle {
    display: block; width: 50px; background: none; border: 0; border-left: 1px solid #333; color: #fff; cursor: pointer;
  }
  .nav__toggle::after { content: '▾'; font-size: 18px; display: inline-block; transition: transform .2s; }
  .nav__item.is-open .nav__toggle::after { transform: rotate(180deg); }
  .nav__sub { position: static; width: 100%; box-shadow: none; background: #2a2a2a; max-height: 0; min-width: 0; }
  .nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { max-height: 0; }
  .nav__item.is-open .nav__sub { max-height: 800px; }
  .nav__sub li { padding: 8px 20px 8px 36px; border-bottom: 1px solid #333; white-space: normal; }
}

@media (max-width: 1030px) {
  .block, .block--alt {
    max-width: 450px; margin-left: auto; margin-right: auto;
    padding: 20px 20px 330px; background-position: bottom; background-size: 450px;
  }
  .notes { grid-template-columns: 1fr; max-width: 450px; margin-left: auto; margin-right: auto; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; gap: 0; }
  .footer__logo { display: none; }
  .footer__address { order: 0; margin-bottom: 30px; }
  .footer h2 { font-size: 16pt; }
}

@media (max-width: 1000px) {
  .content-box img { float: none !important; display: block; width: 100% !important; margin: 0 0 20px !important; }
  .content-box iframe { width: 100% !important; float: none !important; }
}

@media (max-width: 800px) {
  :root { --hero-height: 400px; }
  .logo { left: 50px; }
  .content { padding: 0 10px; }
}

@media (max-width: 600px) {
  .logo { left: 16px; height: 120px; }
  .main--no-hero { padding-top: 150px; }
  .content-box { padding: 16px; }
  .content-header { font-size: 18pt; }
  .footer { padding: 20px 16px 30px; }
  .lang { margin-right: 4px; }
}

@media (max-width: 450px) {
  .block, .block--alt { padding-bottom: 220px; background-size: 100%; }
}

/* ---------- label shown only on the preview version of the site ---------- */
.env-banner {
  position: fixed; left: 12px; bottom: 12px; z-index: 3000;
  background: #e36c09; color: #fff; padding: 8px 14px; border-radius: 4px;
  font-weight: 700; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.env-banner a { color: #fff; }
