@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@300;400&display=swap');

/* ===== Palette ===== */
:root {
  --bg: #1a1817;
  --card: #1d1715;
  --text: #f5f1ea;
  --h2-color: #f4d35e;
  --h3-color: #7f9c8b;
  --border: #2f2b29;
}

/* ===== Base ===== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  line-height: 1.6;
  text-align: center;
  background: linear-gradient(90deg, #1a1817 0%, #000000 100%);
  position: relative;
}

/* ===== Subtle square grid ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

/* ===== Particle container ===== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== Individual particles ===== */
.particles span {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--h2-color);
  opacity: 0.4;
  animation: drift linear infinite;
}

.particles span:nth-child(2) { background: var(--h3-color); width: 5px; height: 5px; animation-duration: 40s; }
.particles span:nth-child(3) { background: var(--h2-color); width: 6px; height: 6px; animation-duration: 55s; }
.particles span:nth-child(4) { background: var(--h3-color); width: 4px; height: 4px; animation-duration: 60s; }
.particles span:nth-child(5) { background: var(--h2-color); width: 7px; height: 7px; animation-duration: 50s; }
.particles span:nth-child(6) { background: var(--h2-color); width: 5px; height: 5px; animation-duration: 45s; }
.particles span:nth-child(7) { background: var(--h3-color); width: 6px; height: 6px; animation-duration: 70s; }

@keyframes drift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(15vw, 5vh); }
  50%  { transform: translate(-20vw, 10vh); }
  75%  { transform: translate(10vw, -10vh); }
  100% { transform: translate(0, 0); }
}

/* ===== Ensure content is above particles ===== */
header, main, section, .hero, .equipment-list, .contact-list {
  position: relative;
  z-index: 1;
}

/* ===== Headings ===== */
h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: .5px;
  margin-bottom: .5rem;
  text-align: center;
}

h2 { color: var(--h2-color); }
h3 { color: var(--h3-color); }

/* ===== Lists ===== */
ul, ol {
  list-style-position: inside;
  padding: 0;
  margin: 1rem auto;
  display: inline-block;
  text-align: center;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
}

/* ===== Layout ===== */
main {
  max-width: 820px;
  margin: 2.5rem auto;
  padding: 1.5rem;
}

main {
  background: linear-gradient(180deg, rgba(29, 23, 21, 1) 0%, rgba(19, 28, 25, 1) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* ===== Navbar ===== */
.site-nav {
  position: relative;
  z-index: 1000;
  margin-bottom: 1.5rem;
}

.navbar-toggle {
  display: none;
  background: var(--h2-color);
  border: 1px solid var(--border);
  color: #111;
  padding: .4rem .9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.navbar-toggle:hover {
  background: var(--h3-color);
  color: #111;
}

.navbar-menu {
  list-style: none;
  padding: 0;
  margin: 15px;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.navbar-menu a,
.dropdown-toggle {
  text-decoration: none;
  color: var(--h3-color);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: 0.3s;
}

.navbar-menu a:hover,
.dropdown-toggle:hover {
  color: var(--h2-color);
}

.has-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 120%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  list-style: none;
  padding: .6rem 0;
  min-width: 180px;
  display: none;
  z-index: 2000;
}

.dropdown-menu.open { display: block; }

.dropdown-menu a {
  display: block;
  padding: .5rem 1.2rem;
  color: var(--text);
  font-size: .85rem;
  transition: 0.3s;
}

.dropdown-menu a:hover { color: var(--h2-color); }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: .7rem 1.6rem;
  border-radius: 30px;
  background: var(--h2-color);
  color: #111;
  text-decoration: none;
  font-size: .9rem;
  transition: 0.3s;
}

.btn-primary:hover {
  background: var(--h3-color);
  color: #111;
}

/* ===== Links ===== */
a {
  color: var(--h3-color);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

a:hover {
  color: var(--h2-color);
  text-decoration: underline;
}

/* ===== Slideshow ===== */
.slideshow {
  position: relative;
  flex: 0 0 300px;
  width: 300px;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  margin: 0 auto;
}

.slideshow .slide {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.slideshow .slide.active {
  opacity: 1;
  display: block;
}

/* ===== Hero section ===== */
.hero-logo img {
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 2rem auto;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: nowrap;
  }

/* ===== Hero Slideshow with fade ===== */
.hero-slideshow {
  position: relative;
  flex: 0 0 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.hero-slideshow .slide {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 500px;
  height: auto;
  border-radius: 10px;
}

.hero-slideshow .slide.active {
  opacity: 1;
  position: absolute;
  display: block;
}

.hero-text {
  flex: 1 1 auto; /* take remaining space */
  text-align: left;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
  }
  .hero-text {
    text-align: center;
  }
  .hero-slideshow {
    flex: 0 0 80%;
  }
}

/* ===== Optional additional styles for slideshow sizing ===== */
.hero-slideshow .slide {
  max-height: 500px;
  height: auto;
}
