:root {
  --color-bg: #cccccc;
  --color-text: #5b2e00;
  --color-text-hover: #ffffff;
  --color-panel-bg: rgba(255, 255, 255, 0.88);
  --font-body: "Muli", "Century Gothic", Arial, sans-serif;
  --font-accent: Georgia, "Times New Roman", Times, serif;
  --sidebar-width: 320px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-text-hover);
}

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

/* Background slideshow */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.site-bg__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.site-bg__slide.is-active {
  opacity: 1;
}

/* Layout shell */
.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  min-height: 100vh;
  padding: 2.5rem 2rem 3rem;
  max-width: 1400px;
}

.site-sidebar {
  flex: 0 0 var(--sidebar-width);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.site-logo {
  display: block;
  line-height: 0;
}

.site-logo img {
  width: min(299px, 100%);
  height: auto;
}

.site-nav-toggle {
  display: none;
  align-self: flex-start;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--color-text);
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-text);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav__item {
  position: relative;
}

.site-nav__item > a,
.site-nav__trigger {
  display: block;
  width: 100%;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
}

.site-nav__item > a.is-active,
.site-nav__trigger[aria-expanded="true"] {
  color: var(--color-text-hover);
}

.site-nav__dropdown {
  list-style: none;
  margin: 0.15rem 0 0.5rem;
  padding: 0 0 0 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0.1rem;
}

.site-nav__item.is-open .site-nav__dropdown,
.site-nav__item.is-active .site-nav__dropdown {
  display: flex;
}

.site-nav__dropdown a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.site-nav__dropdown a.is-active {
  color: var(--color-text-hover);
}

.site-contact {
  font-family: var(--font-accent);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
}

.site-contact p {
  margin: 0 0 0.65rem;
}

.site-contact__parking {
  font-size: 0.85rem;
}

.site-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Main content */
.site-main {
  flex: 1 1 420px;
  min-width: 0;
}

.content-panel {
  background-size: 100% auto;
  padding: 1.5rem 1.25rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 470px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

.content-panel p {
  margin: 0 0 1rem;
}

.content-panel .bold {
  font-weight: 700;
}

.content-panel iframe {
  max-width: 100%;
  border: 0;
}

.page-header h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.page-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  max-width: 950px;
  width: 100%;
}

/* Blog */
.blog-container {
  width: 100%;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-text);
}

.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.blog-preview p {
  margin: 0;
  font-size: 0.9rem;
}

/* Romli blocks */
.romlidata {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.romlidata img {
  max-width: 170px;
  object-fit: contain;
}

.romlifooter img {
  max-width: 160px;
  object-fit: contain;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 2rem 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .site-shell {
    flex-direction: column;
    padding: 1.25rem 1rem 2rem;
  }

  .site-sidebar {
    flex: 1 1 auto;
    width: 100%;
  }

  .site-nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

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

  .content-panel {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .site-contact {
    font-size: 0.85rem;
  }

  .site-badges img {
    width: 44px;
    height: 44px;
  }
}
