/* ===============================
   EURO RIDING CENTER – MODERN THEME
   =============================== */

:root {
  --color-bg: #121212;
  --color-surface: #ffffff;
  --color-accent: #f28a2e;
  --color-accent-soft: #f5b45b;
  --color-text-main: #222222;
  --color-text-light: #ffffff;
  --color-border-soft: #e0e0e0;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.25);
  --radius-card: 10px;
  --max-width: 1200px;
  --header-height: 100px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #202020 0%, #060606 50%, #000 100%);
  color: var(--color-text-main);
  line-height: 1.6;
}

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

/* HEADER */
.site-header {
  background: #161616;
  color: var(--color-text-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.45);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-logo {
  height: 120px;
  width: auto;
  user-select: none;
}

.logo-main {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
}

/* HAMBURGER */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.menu-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.menu-icon span {
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

/* NAV DRAWER */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  max-width: 80%;
  height: 100%;
  background: #181818;
  color: #ffffff;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  box-shadow: -8px 0 20px rgba(0,0,0,0.65);
  z-index: 110;
}

.nav-drawer-inner { padding: 1rem 1.25rem 2rem; }

.menu-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  float: right;
}

.nav-drawer ul {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.nav-drawer li + li { margin-top: 0.75rem; }

.nav-drawer a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.nav-drawer a.active { color: var(--color-accent-soft); }

/* BACKDROP */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out;
  z-index: 105;
}

body.nav-open .nav-drawer { transform: translateX(0); }
body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

/* HERO */
.hero-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* MAIN CONTENT */
main { padding: 2rem 0 3rem; }

.card {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  margin: 1.5rem 0;
}

.card h1 { font-size: 1.7rem; margin-top: 0; }
.card h2 { font-size: 1.4rem; margin-top: 0; }

.card-tight-bottom {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.card-tight-top {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  position: relative;
}

.card-tight-top::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr;
  gap: 1.5rem;
}

/* MAP */
.map-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* FOOTER */
.site-footer {
  background: #0e0e0e;
  padding: 1.8rem 0 2.5rem;
  text-align: center;
  color: #bbbbbb;
  font-size: 0.9rem;
}

.footer-small {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

/* TOOLTIP DESIGNER CREDIT */
.designer-credit {
  position: relative;
  color: #777;
  cursor: default;
}

.designer-credit::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: 130%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

.designer-credit::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0,0,0,0.85) transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

.designer-credit:hover::after,
.designer-credit:hover::before {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .brand-block {
    gap: 0.7rem;
  }
  .header-logo {
    height: 50px;
  }
  .logo-main {
    font-size: 1.3rem;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .hero-image {
    max-height: 420px;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 90px;
  }
  .header-logo {
    height: 42px;
  }
  .logo-main {
    font-size: 1.15rem;
  }
  .hero-image {
    max-height: 340px;
  }
  .card {
    padding: 1.3rem;
  }
}
