/* ============================================================================
   BENNETTS HOMES - UNIFIED BUTTON SYSTEM
   ============================================================================ */

/* ============================================================================
   BASE BUTTON STYLES
   ============================================================================ */

.button,
.button-secondary {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  padding: 18px 30px;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.button:focus,
.button-secondary:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* ============================================================================
   PRIMARY BUTTON VARIANTS
   ============================================================================ */

/* Primary button for dark backgrounds (white background, dark text) */
.button {
  background-color: #fff;
  color: #0D1F30;
  border: 2px solid #fff;
}

.button:hover {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Primary button for light backgrounds (dark background, white text) */
.button.button-light-bg {
  background-color: #0D1F30;
  color: #fff;
  border: 2px solid #0D1F30;
}

.button.button-light-bg:hover {
  background-color: transparent;
  color: #0D1F30;
  border: 2px solid #0D1F30;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Primary button for grey backgrounds */
.button.button-grey-bg {
  background-color: #325165;
  color: #fff;
  border: 2px solid #325165;
}

.button.button-grey-bg:hover {
  background-color: transparent;
  color: #325165;
  border: 2px solid #325165;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   SECONDARY BUTTON VARIANTS
   ============================================================================ */

/* Secondary button for dark backgrounds (outline style) */
.button-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.button-secondary:hover {
  background-color: #fff;
  color: #0D1F30;
  border: 2px solid #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Secondary button for light backgrounds */
.button-secondary.button-light-bg {
  background-color: transparent;
  color: #0D1F30;
  border: 2px solid #0D1F30;
}

.button-secondary.button-light-bg:hover {
  background-color: #0D1F30;
  color: #fff;
  border: 2px solid #0D1F30;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Secondary button for grey backgrounds */
.button-secondary.button-grey-bg {
  background-color: transparent;
  color: #325165;
  border: 2px solid #325165;
}

.button-secondary.button-grey-bg:hover {
  background-color: #325165;
  color: #fff;
  border: 2px solid #325165;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   SPECIAL BUTTON VARIANTS
   ============================================================================ */

/* Tab buttons (for development tabs, etc.) */
.button.button-tab {
  background: transparent;
  border: none;
  border-bottom: 5px solid transparent;
  color: white;
  font-family: "Baskervville", serif;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 40px;
  min-width: auto;
  box-shadow: none;
  transform: none;
}

.button.button-tab:hover,
.button.button-tab.active {
  border-bottom-color: #0D1F30;
  background: transparent;
  color: white;
  transform: none;
  box-shadow: none;
}

/* Navigation buttons (for header navigation) */
.button.button-nav {
  background-color: #fff;
  color: #0d1f30;
  border: 1px solid #fff;
  padding: 8px 20px;
  font-weight: 700;
  min-width: auto;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2.08px;
}

.button.button-nav:hover {
  background-color: #0d1f30;
  color: #fff;
  border: 1px solid #fff;
  transform: scale(1.1);
  box-shadow: none;
}

/* Modal form buttons */
.button.button-modal {
  background: #3f6680;
  color: white;
  border: 2px solid #3f6680;
  text-transform: uppercase;
  font-size: 14px;
  min-width: 150px;
}

.button.button-modal:hover {
  background: #4a7694;
  color: white;
  border: 2px solid #4a7694;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
  .button,
  .button-secondary {
    
    min-width: auto;
    padding: 15px 25px;
    font-size: 14px;
  }
  
  .button.button-tab {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .button.button-nav {
    padding: 6px 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .button,
  .button-secondary {
    padding: 12px 20px;
    font-size: 12px;
    letter-spacing: 1px;
  }
  
  .button.button-tab {
    padding: 10px 15px;
    font-size: 12px;
  }
  .location-card .button,
  .location-card .button-secondary {
    width: 180px;
  }
}

/* ============================================================================
   LEGACY COMPATIBILITY (Temporary during transition)
   ============================================================================ */

/* Ensure existing button containers still work */
.welcome-buttons,
.contact-buttons,
.form-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .welcome-buttons,
  .contact-buttons,
  .form-buttons {
    flex-direction: column;
    gap: 15px;
  }
}