/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #888;
  background: #f2f2f2;
  line-height: 1.6;
}

/* Layout containers */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1 0 auto;
}

.inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: #f2f2f2;
  border-bottom: 1px solid #ddd;
}

.site-header-topbar {
  background: #222;
  color: #ddd;
  font-size: 0.8rem;
  padding: 6px 0;
}

.site-header-topbar .inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.site-header-topbar a {
  color: #ddd;
  text-decoration: none;
  margin-left: 12px;
}

.site-header-main {
  padding: 18px 0 12px;
}

.site-header-main .inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Logo */
.site-logo {
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
}

.site-logo a {
  color: inherit;
  text-decoration: none;
}

.site-logo span {
  font-weight: bold;
}

/* Navigation */
.site-nav {
  flex: 1 1 auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: #555;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: #333;
}

.site-nav a.active {
  color: #333;
  border-color: #333;
}

/* Language links */
.site-lang {
  text-align: right;
  font-size: 0.85rem;
}

.site-lang a {
  display: block;
  text-decoration: underline;
  color: #555;
  margin-left: 8px;
}

/* Hero / main banner */
.hero {
  background: #f2f2f2;
  padding: 28px 0 24px;
}

.hero .inner {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* Hero main image full-width on home, top banner on other pages */
.hero-main-image {
  width: 100%;
  display: block;
  transition: opacity 5000ms ease-in-out;
}

.hero-banner-wrap {
  position: relative;
  width: 100%;
}

.hero-banner-wrap .hero-alt {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  object-fit: cover;
  height: 100%;
}

.hero-banner-wrap.alt .hero-main-image:not(.hero-alt) {
  opacity: 0;
}

.hero-banner-wrap.alt .hero-alt {
  opacity: 1;
}

/* On non-home pages, we may want smaller banner, handled via class */
.hero--split .hero-main-image {
  width: 100%;
}

.hero-secondary {
  flex: 0 0 260px;
  margin-left: auto;
}

.hero-secondary img {
  width: 100%;
  display: block;
}

/* Main content */
.main {
  padding: 0 0 40px;
}

.main .inner {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

/* Content and sidebar */
.content-primary {
  flex: 1 1 60%;
}

.content-primary h1 {
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #888;
}

.content-primary h2 {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 16px 0 6px;
}

.content-primary p {
  margin-bottom: 12px;
}

.content-primary a {
  color: #555;
  text-decoration: underline;
}

/* Right column / sidebar */
.sidebar {
  flex: 0 0 260px;
  font-size: 0.9rem;
}

.sidebar h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.sidebar ul {
  list-style: none;
  margin-bottom: 0;
}

.sidebar ul li {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px dotted #333;
}

.sidebar ul li:last-child {
  margin-bottom: 1rem;
}

.sidebar li {
  margin-bottom: 4px;
}

.sidebar a {
  color: #555;
  text-decoration: underline;
}

.sidebar .sidebar-block {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dotted #333;
}

.sidebar .sidebar-block:first-of-type {
  margin-top: 0.25rem;
}

.sidebar .sidebar-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sidebar .sidebar-block p {
  margin-bottom: 0.25em;
}

.sidebar .sidebar-block p:last-child {
  margin-bottom: 0;
}

/* Team grid */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.team-member {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ccc;
}

.team-member:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.team-member img {
  width: 220px;
  max-width: 100%;
  display: block;
}

.team-member-info h2 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-member-info p {
  margin-bottom: 6px;
}

/* Services page paragraphs */
.services-intro h1 {
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 10px;
}

.services-intro p {
  margin-bottom: 12px;
}

/* Contact page */
.contact-details h1 {
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 8px;
}

.contact-details h2 {
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 4px;
}

.contact-details p {
  margin-bottom: 8px;
}

.map-link {
  margin-top: 20px;
}

/* Footer */
.site-footer {
  background: #e5e5e5;
  border-top: 1px solid #ccc;
  font-size: 0.8rem;
  color: #888;
  padding: 18px 0 28px;
  flex-shrink: 0;
}

.site-footer p {
  margin-bottom: 4px;
}

/* Utility */
.text-small {
  font-size: 0.8rem;
}

.text-extra-small {
  font-size: 0.65rem;
  line-height: 1.4;
  color: #888;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header-main .inner {
    align-items: center;
  }

  .site-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-lang {
    text-align: center;
    width: 100%;
  }

  .hero .inner {
    flex-direction: column;
  }

  .hero-secondary {
    margin-left: 0;
    max-width: 260px;
  }

  .main .inner {
    flex-direction: column;
  }

  .sidebar {
    order: -1; /* move sidebar above content on small screens */
  }
}

@media (max-width: 480px) {
  .site-logo {
    width: 100%;
    text-align: center;
  }

  .site-header-main .inner {
    justify-content: center;
  }
}