/* Light theme modelled on the original Gantry template. */
:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #6e6e6e;
  --heading: #303030;
  --border: #d5d5d5;
  --footer: #eeeeee;
  --link: #2698de;
  --link-hover: #1a6fa3;
  --radius: 4px;
  --max-width: 960px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.7 Arial, Helvetica, sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3 { color: var(--heading); font-weight: normal; line-height: 1.3; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  background: linear-gradient(#fff, #ddd);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 16px;
}

.logo img { display: block; width: 474px; }

.nav-toggle { display: none; }

/* Navigation */
.site-nav { border-top: 1px solid var(--border); }

.menu, .menu ul { list-style: none; margin: 0; padding: 0; }

.menu { display: flex; flex-wrap: wrap; }

.menu li { position: relative; }

.menu a, .menu .nav-heading {
  display: block;
  padding: 10px 14px;
  color: var(--heading);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.menu > li > a, .menu > li > .nav-heading { border-radius: var(--radius); margin: 4px 0; padding: 6px 12px; }

.menu a:hover, .menu a:focus,
.menu .nav-heading:hover, .menu .nav-heading:focus,
.menu li.active > a {
  background: var(--link);
  color: #fff;
  text-decoration: none;
  outline: none;
}

.menu .has-children > .nav-heading::after { content: " \25BE"; font-size: 11px; }
.menu ul .has-children > .nav-heading::after { content: " \25B8"; }

.menu ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 220px;
  padding: 4px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.menu ul ul { top: -5px; left: 100%; }

.menu li:hover > ul,
.menu li:focus-within > ul { display: block; }

/* Slideshow */
.slideshow { padding-top: 20px; }

.slides {
  position: relative;
  aspect-ratio: 800 / 270;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.is-active { opacity: 1; }

.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

.slide figcaption {
  position: absolute;
  right: 0;
  bottom: 16px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.slide figcaption strong { display: block; font-size: 16px; font-weight: normal; }
.slide figcaption span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Content */
.site-main { padding-bottom: 32px; }

.content {
  margin-top: 20px;
  padding: 8px 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: justify;
  font-size: 15px;
}

.page-title {
  margin: 12px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 24px;
  text-align: left;
}

.content h3 { margin: 24px 0 8px; font-size: 17px; text-align: left; }

.content ul, .content ol { padding-left: 22px; }
.content li { margin-bottom: 6px; }

.content a { overflow-wrap: anywhere; }

.contact-email { display: block; margin: 16px 0; }

/* Footer */
.site-footer {
  background: var(--footer);
  border-top: 1px solid var(--border);
  font-size: 12px;
  text-align: center;
}

.site-footer p { margin: 0; padding: 16px 0; }

/* Mobile */
@media (max-width: 760px) {
  .header-inner { padding-top: 12px; padding-bottom: 12px; }

  .logo { flex: 1; min-width: 0; margin-right: 12px; }
  .logo img { width: 100%; max-width: 320px; }

  .nav-toggle {
    display: block;
    flex: none;
    width: 42px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
  }

  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--heading);
    position: relative;
  }

  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }

  .site-nav { display: none; }
  .site-nav.is-open { display: block; }

  .menu { display: block; padding: 4px 0 8px; }

  .menu > li > a, .menu > li > .nav-heading { margin: 0; }

  .menu a, .menu .nav-heading { white-space: normal; }

  /* Submenus are always expanded on small screens. */
  .menu ul,
  .menu ul ul {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 0 16px;
    border: 0;
    box-shadow: none;
    background: none;
  }

  .menu .has-children > .nav-heading { cursor: default; color: var(--text); font-weight: bold; }
  .menu .has-children > .nav-heading:hover { background: none; color: var(--text); }
  .menu .has-children .nav-heading::after { content: none; }

  .content { padding: 4px 16px 12px; text-align: left; }

  .slide figcaption { bottom: 8px; padding: 4px 10px; }
  .slide figcaption strong { font-size: 13px; }
  .slide figcaption span { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}
