/* ==========================================================================
   How Much is a Hot Tub? (howmuchisahottub.com) - Master Stylesheet
   ========================================================================== */

:root {
  --primary: #0056b3;
  --primary-dark: #003d80;
  --secondary: #f4f6f8;
  --text: #222222;
  --text-muted: #555555;
  --border: #cccccc;
  --accent-gold: #d97706;
  --bg-light: #ffffff;
  --sidebar-width: 320px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: #f9f9f9;
}

header {
  background-color: var(--primary);
  color: #ffffff;
  padding: 1rem 0;
  border-bottom: 4px solid var(--primary-dark);
  position: relative;
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
}

.site-title span {
  color: #87ceeb;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  display: block;
}

nav a:hover, 
nav a.active {
  background-color: var(--primary-dark);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

nav ul li {
  position: relative;
}

.caution-label {
  color: #fca5a5 !important;
}

.caution-label:hover {
  color: #ffffff !important;
}

.dropdown-item .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-dark);
  min-width: 210px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  padding: 0.5rem 0;
  list-style: none;
}

.dropdown-item:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: normal;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
}

.dropdown-menu a:hover {
  background-color: var(--primary);
}

.container {
  max-width: 1140px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.brand-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 850px) {
  .brand-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    align-items: start;
  }
  
  .full-width-layout {
    display: block;
  }
}

.pricing-sidebar {
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pricing-sidebar h2 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.series-block {
  margin-bottom: 1.5rem;
}

.series-title {
  font-size: 1.05rem;
  font-weight: bold;
  background: var(--secondary);
  padding: 0.4rem 0.6rem;
  border-left: 4px solid var(--primary);
  margin-bottom: 0.5rem;
}

.model-list {
  list-style: none;
}

.model-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 0.92rem;
}

.model-name {
  font-weight: 600;
}

.model-price {
  color: #1b7837;
  font-weight: bold;
}

.main-content {
  background: var(--bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 2rem;
}

.main-content h1 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.meta-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.75rem;
}

.content-section {
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.35rem;
  color: #333333;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.3rem;
}

.content-section p {
  margin-bottom: 1rem;
}

.content-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section li {
  margin-bottom: 0.4rem;
}

/* Callout Boxes */
.buyer-aware-box {
  background-color: #fff8f6;
  border-left: 5px solid #d9534f;
  padding: 1.2rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.buyer-aware-box h3 {
  color: #a94442;
  margin-bottom: 0.5rem;
}

.pro-box {
  background-color: #f0fdf4;
  border-left: 5px solid #16a34a;
  padding: 1.2rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.pro-box h3 {
  color: #15803d;
  margin-bottom: 0.5rem;
}

.warning-box {
  background-color: #fef2f2;
  border-left: 5px solid #ef4444;
  padding: 1.2rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.warning-box h3 {
  color: #991b1b;
  margin-bottom: 0.5rem;
}

footer {
  background: #222222;
  color: #aaaaaa;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

footer a {
  color: #ffffff;
}

.footer-tier-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: left;
  max-width: 1140px;
  margin: 1.5rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #444444;
}

.footer-tier-column h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #555555;
  padding-bottom: 0.25rem;
}

.footer-tier-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-tier-column li {
  margin-bottom: 0.35rem;
}

.footer-tier-column a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-tier-column a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 849px) {
  .mobile-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: var(--primary-dark);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 999;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    width: 100%;
  }

  .dropdown-item .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.25);
    padding-left: 1rem;
    width: 100%;
    margin-top: 0.25rem;
  }

  .dropdown-item:hover .dropdown-menu {
    display: block;
  }

  .pricing-sidebar {
    order: 2;
  }

  .main-content {
    order: 1;
  }
}