/* ================================
   Dreamers Voices - Site Styles
   Mobile + Desktop (Complete)
   ================================ */

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}

/* --- TOP BAR --- */
.top-bar {
  background: #001a26;
  color: #fff;
  font-size: 11px;
  padding: 12px 8%;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* --- NAV --- */
nav {
  background: #fff;
  padding: 15px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: 90px;
}

.logo-box img { height: 60px; width: auto; }

/* Desktop links container */
.nav-links {
  display: flex;
  align-items: center;
}

/* Desktop links */
.nav-links > a,
.nav-dropbtn {
  color: #001a26;
  margin-left: 30px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  transition: 0.25s;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-dropbtn:hover,
.nav-dropbtn.active {
  color: #C5A021;
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  margin-left: auto; /* keep right */
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #001a26;
  border-radius: 2px;
}

/* --- DROPDOWN (Desktop hover + stays clickable) --- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* dropdown panel */
.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 12px 25px rgba(0,0,0,0.10);
  z-index: 3000;
  padding: 10px 0;
}

/* buffer so moving mouse down does not close menu */
.nav-dropdown-content::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.nav-dropdown-content a {
  display: block;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: #001a26;
  white-space: nowrap;
}

.nav-dropdown-content a:hover,
.nav-dropdown-content a.active {
  background: #fafafa;
  color: #C5A021;
}

/* Desktop: hover opens dropdown (and focus-within for keyboard) */
@media (min-width: 1025px) {
  .nav-dropdown:hover .nav-dropdown-content,
  .nav-dropdown:focus-within .nav-dropdown-content {
    display: block;
  }
}

/* --- HERO --- */
.hero {
  background: linear-gradient(rgba(0,26,38,0.75), rgba(0,26,38,0.75)),
              url("https://images.unsplash.com/photo-1523848309072-c199db53f137?w=1600&auto=format&fit=crop&q=80");
  background-size: cover;
  background-position: center;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 0 8%;
  color: #fff;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero h1 {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero p {
  font-size: 16px;
  color: #C5A021;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  max-width: 750px;
  margin: 0 auto;
}

/* Tailings hero variant */
.hero.hero-tailings {
  background: linear-gradient(rgba(0,26,38,0.78), rgba(0,26,38,0.78)),
              url("tailingmud.jpg");
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

/* --- TICKER --- */
.ticker {
  background: #001a26;
  color: #fff;
  padding: 18px 8%;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  border-bottom: 4px solid #C5A021;
  line-height: 1.4;
  text-transform: uppercase;
}

/* --- COMMON SECTIONS --- */
.section { padding: 80px 8%; }
.bg-light { background: #fbfbfb; }
.bg-white { background: #fff; border-top: 1px solid #eee; }

.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 980px; margin: 0 auto; }

.section-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 50px;
  color: #001a26;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* --- OPERATION CARDS GRID (HOME) --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: start;
}

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  transition: 0.35s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-header {
  background: #001a26;
  color: #fff;
  padding: 14px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
  border-bottom: 3px solid #C5A021;
}

.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 24px; }
.card-body h3 { font-size: 18px; margin-bottom: 10px; color: #001a26; font-weight: 900; }
.card-body p { font-size: 14px; color: #4a5568; line-height: 1.7; }

/* --- ABOUT (VALUES) --- */
.intro-section {
  padding: 80px 8%;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.intro-section h2 {
  color: #001a26;
  font-size: 32px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 900;
}

.intro-section p {
  margin-bottom: 40px;
  color: #555;
  font-size: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: left;
}

.value-item { border-left: 4px solid #C5A021; padding-left: 20px; }
.value-item h4 { color: #001a26; font-size: 18px; margin-bottom: 10px; text-transform: uppercase; font-weight: 900; }
.value-item p { font-size: 14px; color: #666; }

/* --- TEAM --- */
.team-section { padding: 80px 8%; }
.center-wrapper { text-align: center; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
  justify-content: center;
}

.team-card {
  background: #fff;
  border: 1px solid #eee;
  transition: 0.3s;
  text-align: center;
  padding-bottom: 20px;
}

.team-card.gold-border { border-bottom: 4px solid #C5A021; }

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.team-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #e0e0e0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  margin-bottom: 20px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
}

.team-img img { width: 100%; height: 100%; object-fit: cover; }

.team-info { padding: 0 20px; }
.team-name { color: #001a26; font-size: 18px; font-weight: 900; margin-bottom: 5px; text-transform: uppercase; }
.team-role { color: #C5A021; font-size: 12px; font-weight: 900; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.team-bio { font-size: 13px; color: #555; line-height: 1.6; padding-bottom: 15px; }

/* --- TAILINGS CONTENT --- */
.lead { font-size: 16px; color: #555; line-height: 1.85; margin-bottom: 18px; }

.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.ops-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  transition: 0.35s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  overflow: hidden;
}

.ops-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.ops-img { height: 220px; overflow: hidden; }
.ops-img img { width: 100%; height: 100%; object-fit: cover; }

.ops-body { padding: 22px; }
.ops-body h3 { font-size: 18px; margin-bottom: 10px; color: #001a26; font-weight: 900; }
.ops-body p { font-size: 14px; color: #4a5568; line-height: 1.7; }

/* --- FOOTER --- */
footer {
  background: #001a26;
  color: #d1d5db;
  padding: 60px 8% 30px 8%;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-grid h4 {
  color: #C5A021;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 900;
}

.footer-bottom {
  border-top: 1px solid #1a4253;
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  gap: 15px;
}

.footer-bottom a { color: #C5A021; text-decoration: none; margin-left: 15px; }

/* ======================================================
   MOBILE + TABLET (IMPORTANT: hamburger + stacked menu)
   Uses 1024px so it ALWAYS triggers on phones/tablets
   ====================================================== */
@media (max-width: 1024px) {

  /* Top bar stacks */
  .top-bar {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 10px 5%;
  }

  /* Smaller nav */
  nav {
    padding: 12px 5%;
    height: 78px;
  }

  .logo-box img { height: 50px; }

  /* show hamburger */
  .hamburger { display: flex; }

  /* hide desktop nav by default */
  .nav-links {
    display: none;
    position: absolute;
    top: 78px; /* must match nav height */
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    border-bottom: 4px solid #C5A021;
    box-shadow: 0 10px 15px rgba(0,0,0,0.10);
    z-index: 2500;
  }

  /* open state */
  .nav-links.active { display: flex; }

  /* full-width menu items */
  .nav-links > a,
  .nav-dropbtn {
    margin: 0;
    padding: 14px 18px;
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
  }

  /* Mobile dropdown becomes click-open */
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-content {
    position: static;
    display: none;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .nav-dropdown.open .nav-dropdown-content { display: block; }

  .nav-dropdown-content a {
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 18px;
  }

  /* Hero scaling */
  .hero { min-height: 420px; padding: 40px 6%; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 13px; letter-spacing: 1px; }

  /* spacing tightening */
  .section { padding: 60px 6%; }
  .intro-section { padding: 60px 6%; }
  .team-section { padding: 60px 6%; }

  .section-title { font-size: 24px; margin-bottom: 30px; }

  /* Cards become single-column-ish on very small screens */
  .cards-grid { gap: 18px; }
  .card-img { height: 180px; }
  .ops-img { height: 180px; }

  /* Footer stacks */
  footer { padding: 50px 6% 25px 6%; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom a { margin-left: 0; margin-right: 12px; }
}

/* Extra small phones */
@media (max-width: 420px) {
  .hero h1 { font-size: 26px; }
  .ticker { font-size: 12px; padding: 14px 6%; }
}
