/* =============================================================
   DesertWeather.com — Header Styles  (dw-header.css)
   Pure CSS dropdowns — no JavaScript required.
   <link rel="stylesheet" href="/css/dw-header.css">
   ============================================================= */

/* ── Scoped reset ── */
.dw-header, .dw-header *, .dw-header *::before, .dw-header *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ══════════════════════════════════════
   HERO BAND
══════════════════════════════════════ */
.dw-hero {
  position: relative;
  height: 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 20px;
}

.dw-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    #c4a882 0%, #cdb48d 25%, #d9c49e 50%, #e4d1ad 72%, #eddfc0 100%
  );
  z-index: 0;
}

/* Sun glow — bright, pronounced */
.dw-sun-glow {
  position: absolute;
  top: -80px; right: 110px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,240,100,0.95) 0%,
    rgba(255,210,50,0.80)  12%,
    rgba(255,185,30,0.60)  25%,
    rgba(245,155,10,0.35)  42%,
    rgba(230,130,0,0.15)   58%,
    transparent            100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Mountains — behind palms */
.dw-mountains {
  position: absolute;
  bottom: 0; right: 0;
  width: 60%; height: 85%;
  pointer-events: none;
  z-index: 2;
}

/* Palm trees — in front of mountains */
.dw-palms {
  position: absolute;
  bottom: 0; right: 0;
  width: 60%; height: 100%;
  pointer-events: none;
  z-index: 3;
}

.dw-logo-mark {
  position: relative; z-index: 4;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.dw-logo-mark img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.dw-brand {
  position: relative; z-index: 4;
  flex: 1; min-width: 0;
}

.dw-title {
  font-size: clamp(38px, 3vw, 26px);
  font-weight: 500; color: #3a2410;
  letter-spacing: -0.3px; line-height: 1.1;
  white-space: nowrap;
}

.dw-title span { color: #bf5500; }

.dw-tagline {
  font-size: clamp(13px, 1.4vw, 12px);
/*  color: rgba(58,36,16,0.55);*/
  margin-top: 3px; letter-spacing: 0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ══════════════════════════════════════
   FULL-WIDTH BLEED WRAPPERS
══════════════════════════════════════ */
.dw-header-wrap {
  width: 100%;
  background: #c4a882;
}

.dw-nav-wrap {
  width: 100%;
  background: #1c1410;
  border-top: 2px solid #ffffff;
}

.dw-header {
  width: 1060px;
  margin: 0 auto;
  overflow: visible;
}

.dw-nav {
  width: 1060px;
  margin: 0 auto;
  border-top: none;
}

/* ══════════════════════════════════════
   NAV BAR
══════════════════════════════════════ */
.dw-nav {
  background: #1c1410;
  display: flex;
  align-items: stretch;
  padding: 0 16px;
  overflow-x: visible;
  position: relative;
  z-index: 9999;
}

/* ── Nav items ── */
.dw-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1;
  height: 42px;
}

.dw-item:hover,
.dw-item.dw-active {
  color: #fff8ee;
}

.dw-item.dw-active {
  border-bottom-color: #ffffff;
}

.dw-item:hover {
  border-bottom-color: rgba(224,120,0,0.5);
}

.dw-label {
  cursor: pointer;
  user-select: none;
}

.dw-divider {
  display: inline-block;
  width: 1px;
  background: rgba(255,200,120,0.12);
  margin: 8px 4px;
  align-self: stretch;
}

/* ══════════════════════════════════════
   PURE CSS DROPDOWNS — hover triggered
══════════════════════════════════════ */
.dw-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #201610;
  border: 1px solid rgba(255,180,80,0.12);
  border-top: 2px solid #e07800;
  border-radius: 0 0 8px 8px;
  padding: 6px 0;
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  max-height: 75vh;
  overflow-y: auto;
}

.dw-drop-right .dw-drop {
  left: auto;
  right: 0;
}

.dw-has-drop:hover .dw-drop {
  display: block;
}

.dw-drop:hover {
  display: block;
}

.dw-drop a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.dw-drop a:hover {
  background: rgba(224,120,0,0.18);
  color: #fff8ee;
}

.dw-drop-head {
  padding: 8px 18px 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(240,204,155,1);
  pointer-events: none;
}

.dw-drop-group { padding: 2px 0; }

.dw-drop-divider {
  height: 1px;
  background: rgba(255,180,80,0.1);
  margin: 6px 0;
}

/* ── Hi/Lo temps ── */
.dw-temps {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 16px;
  flex-shrink: 0;
}

.dw-temp-lbl {
  font-size: 10px;
  color: rgba(255,210,140,0.38);
  letter-spacing: 0.3px;
  line-height: 1;
}

.dw-temp-hi { font-size: 13px; font-weight: 500; color: #e06050; line-height: 1.2; }
.dw-temp-lo { font-size: 13px; font-weight: 500; color: #88aaff; line-height: 1.2; }

/* ── Mobile ── */
@media (max-width: 1060px) {
  .dw-header,
  .dw-nav {
	  width: 100%;
	  min-width: 1060px;
	  }
}

@media (max-width: 600px) {
  .dw-hero { height: 100px; padding: 0 16px; gap: 12px; }
  .dw-logo-mark { width: 52px; height: 52px; border-radius: 10px; }
  .dw-tagline { display: none; }
  .dw-temps { display: none; }
  .dw-item { padding: 0 10px; font-size: 11px; }
  .dw-drop { min-width: 200px; }
}